.brr-repository {
    --brr-navy: #082b4c;
    --brr-navy-deep: #041d34;
    --brr-gold: #d5a928;
    --brr-gold-soft: #fbf4dd;
    --brr-ink: #17212b;
    --brr-muted: #5d6975;
    --brr-line: #dce3e8;
    --brr-surface: #ffffff;
    --brr-background: #f5f7f9;
    --brr-card-radius: 12px;
    color: var(--brr-ink);
    font-family: inherit;
    margin: 0 auto;
    max-width: 1240px;
    width: 100%;
}

.brr-repository,
.brr-repository * {
    box-sizing: border-box;
}

.brr-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(213, 169, 40, 0.25), transparent 26%),
        linear-gradient(135deg, var(--brr-navy-deep), var(--brr-navy));
    border-bottom: 5px solid var(--brr-gold);
    border-radius: 14px;
    color: #fff;
    overflow: hidden;
    padding: clamp(38px, 7vw, 78px) clamp(22px, 6vw, 72px);
    position: relative;
}

.brr-hero h2 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.75rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 8px 0 16px;
    max-width: 760px;
}

.brr-hero > p:last-child {
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    margin: 0;
    max-width: 720px;
}

.brr-eyebrow {
    color: var(--brr-gold);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    margin: 0;
    text-transform: uppercase;
}

.brr-filter-panel {
    background: var(--brr-surface);
    border: 1px solid var(--brr-line);
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(8, 43, 76, 0.12);
    margin: -22px clamp(12px, 4vw, 44px) 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.brr-filter-panel > summary {
    color: var(--brr-navy);
    cursor: pointer;
    font-weight: 750;
    padding: 16px 20px;
}

.brr-filter-panel > summary:focus-visible,
.brr-breadcrumbs a:focus-visible,
.brr-detail-section a:focus-visible {
    outline: 3px solid var(--brr-gold);
    outline-offset: 3px;
}

.brr-filter-panel[open] > summary {
    border-bottom: 1px solid var(--brr-line);
}

.brr-filter-form { padding: 22px; }

.brr-search-field > label,
.brr-field label {
    color: var(--brr-navy-deep);
    display: block;
    font-size: 0.82rem;
    font-weight: 750;
    margin-bottom: 7px;
}

.brr-search-control {
    display: flex;
    gap: 10px;
}

.brr-search-control input,
.brr-field select {
    appearance: none;
    background: #fff;
    border: 1px solid #aebbc5;
    border-radius: 7px;
    color: var(--brr-ink);
    font: inherit;
    min-height: 44px;
    padding: 9px 12px;
    width: 100%;
}

.brr-search-control input:focus,
.brr-field select:focus {
    border-color: var(--brr-navy);
    box-shadow: 0 0 0 3px rgba(213, 169, 40, 0.3);
    outline: 0;
}

.brr-filter-form .brr-button {
    background: var(--brr-navy);
    border-color: var(--brr-navy);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.brr-filter-form .brr-button:hover,
.brr-filter-form .brr-button:focus {
    background: var(--brr-navy-deep);
}

.brr-filter-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 19px;
}

.brr-field { min-width: 0; }

.brr-field-status {
    color: var(--brr-muted);
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    min-height: 1em;
    padding-top: 4px;
}

.brr-filter-actions {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-top: 20px;
}

.brr-reset-link {
    color: var(--brr-navy);
    font-size: 0.9rem;
    font-weight: 700;
    text-underline-offset: 3px;
}

.brr-reset-link:focus-visible {
    outline: 3px solid var(--brr-gold);
    outline-offset: 3px;
}

.brr-results {
    padding: clamp(34px, 6vw, 68px) 0 18px;
}

.brr-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.brr-results-heading {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.brr-results-heading h3 {
    color: var(--brr-navy-deep);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.2;
    margin: 5px 0 0;
}

.brr-results-count {
    color: var(--brr-muted);
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
}

.brr-publication-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brr-publication-card {
    background: var(--brr-surface);
    border: 1px solid var(--brr-line);
    border-radius: var(--brr-card-radius);
    box-shadow: 0 8px 24px rgba(8, 43, 76, 0.07);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.brr-publication-cover {
    aspect-ratio: 16 / 10;
    background: #e8edf1;
    overflow: hidden;
}

.brr-publication-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.brr-cover-placeholder {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(213, 169, 40, 0.14), transparent 55%),
        var(--brr-navy);
    color: var(--brr-gold);
    display: flex;
    font-size: 1.25rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    letter-spacing: 0.18em;
    width: 100%;
}

.brr-publication-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.brr-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}

.brr-badge {
    background: var(--brr-gold-soft);
    border-radius: 999px;
    color: #654d08;
    font-size: 0.71rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    padding: 5px 9px;
    text-transform: uppercase;
}

.brr-badge-access {
    background: #e4f3eb;
    color: #17643a;
}

.brr-publication-card h4 {
    color: var(--brr-navy-deep);
    font-size: 1.18rem;
    line-height: 1.4;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.brr-publication-byline,
.brr-publication-discipline,
.brr-publication-abstract,
.brr-publication-price {
    overflow-wrap: anywhere;
}

.brr-card-button {
    align-self: flex-start;
    background: var(--brr-navy);
    border-color: var(--brr-navy);
    color: #fff;
    margin-top: 18px;
}

.brr-publication-byline {
    color: var(--brr-ink);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.5;
    margin: 0 0 7px;
}

.brr-publication-discipline {
    color: var(--brr-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 14px;
}

.brr-publication-abstract {
    color: var(--brr-muted);
    font-size: 0.91rem;
    line-height: 1.65;
    margin: 0;
}

.brr-publication-price {
    border-top: 1px solid var(--brr-line);
    color: var(--brr-navy);
    font-size: 0.9rem;
    font-weight: 750;
    margin: auto 0 0;
    padding-top: 16px;
}

.brr-pagination {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 38px;
}

.brr-page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.brr-page-link,
.brr-button {
    align-items: center;
    background: var(--brr-surface);
    border: 1px solid var(--brr-line);
    border-radius: 7px;
    color: var(--brr-navy);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
    padding: 8px 12px;
    text-decoration: none;
}

.brr-page-link:hover,
.brr-page-link:focus,
.brr-button:hover,
.brr-button:focus {
    background: var(--brr-navy);
    border-color: var(--brr-navy);
    color: #fff;
}

.brr-page-link:focus-visible,
.brr-button:focus-visible {
    outline: 3px solid var(--brr-gold);
    outline-offset: 3px;
}

.brr-page-link.is-current {
    background: var(--brr-navy);
    border-color: var(--brr-navy);
    color: #fff;
}

.brr-page-direction { gap: 6px; }
.brr-page-ellipsis { align-items: center; display: inline-flex; padding: 0 3px; }

.brr-state {
    background: var(--brr-background);
    border: 1px solid var(--brr-line);
    border-radius: 12px;
    padding: clamp(34px, 7vw, 68px) 24px;
    text-align: center;
}

.brr-state-icon {
    align-items: center;
    background: var(--brr-gold-soft);
    border-radius: 50%;
    color: var(--brr-navy);
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 800;
    height: 54px;
    justify-content: center;
    margin-bottom: 15px;
    width: 54px;
}

.brr-state h3,
.brr-state h4 {
    color: var(--brr-navy-deep);
    margin: 0 0 8px;
}

.brr-state p {
    color: var(--brr-muted);
    margin: 0 auto 18px;
    max-width: 560px;
}

.brr-error-state { margin: 24px auto; max-width: 900px; }

.brr-route-shell { padding: clamp(24px, 5vw, 58px) 18px; }
.brr-route-container { margin: 0 auto; max-width: 1240px; }

.brr-route-title.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.brr-publication-detail { padding-bottom: 30px; }

.brr-breadcrumbs {
    align-items: center;
    color: var(--brr-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.88rem;
    gap: 8px;
    margin-bottom: 24px;
}

.brr-breadcrumbs a {
    color: var(--brr-navy);
    font-weight: 700;
    text-underline-offset: 3px;
}

.brr-detail-hero {
    align-items: start;
    background: var(--brr-background);
    border: 1px solid var(--brr-line);
    border-radius: 14px;
    display: grid;
    gap: clamp(24px, 5vw, 54px);
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    padding: clamp(22px, 5vw, 52px);
}

.brr-detail-no-cover { grid-template-columns: 1fr; }

.brr-statistics-strip,
.brr-statistics-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0 0;
}

.brr-statistics-strip > div,
.brr-statistics-grid > div {
    background: var(--brr-surface);
    border: 1px solid var(--brr-line);
    border-radius: var(--brr-card-radius);
    box-shadow: 0 8px 24px rgba(8, 43, 76, 0.07);
    min-width: 0;
    padding: 20px;
}

.brr-statistics-strip dt,
.brr-statistics-grid dt {
    color: var(--brr-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.brr-statistics-strip dd,
.brr-statistics-grid dd {
    color: var(--brr-navy);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 5px 0 0;
}

.brr-statistics-page,
.brr-about { padding-bottom: 36px; }

.brr-about-content {
    background: var(--brr-surface);
    border: 1px solid var(--brr-line);
    border-radius: var(--brr-card-radius);
    margin-top: 24px;
    padding: clamp(22px, 5vw, 46px);
}

.brr-about-content h3 { color: var(--brr-navy-deep); margin-top: 0; }
.brr-about-content p { line-height: 1.75; max-width: 780px; }
.brr-about-content .brr-button { background: var(--brr-navy); color: #fff; margin-top: 12px; }

.brr-detail-cover {
    aspect-ratio: 3 / 4;
    background: var(--brr-navy);
    border-radius: 9px;
    box-shadow: 0 16px 35px rgba(8, 43, 76, 0.2);
    overflow: hidden;
}

.brr-detail-cover img,
.brr-detail-cover .brr-cover-placeholder {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.brr-detail-heading h1 {
    color: var(--brr-navy-deep);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 12px 0 14px;
    overflow-wrap: anywhere;
}

.brr-detail-author {
    color: var(--brr-ink);
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 24px;
}

.brr-detail-metadata,
.brr-identifier-list {
    display: grid;
    grid-template-columns: minmax(105px, max-content) minmax(0, 1fr);
    margin: 0;
}

.brr-detail-metadata dt,
.brr-detail-metadata dd,
.brr-identifier-list dt,
.brr-identifier-list dd {
    border-bottom: 1px solid var(--brr-line);
    margin: 0;
    overflow-wrap: anywhere;
    padding: 9px 0;
}

.brr-detail-metadata dt,
.brr-identifier-list dt {
    color: var(--brr-muted);
    font-size: 0.84rem;
    font-weight: 700;
    padding-right: 18px;
}

.brr-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.brr-document-actions .brr-button {
    background: var(--brr-navy);
    border-color: var(--brr-navy);
    color: #fff;
}

.brr-document-actions .brr-button-secondary {
    background: #fff;
    color: var(--brr-navy);
}

.brr-document-unavailable {
    background: var(--brr-gold-soft);
    border-left: 4px solid var(--brr-gold);
    color: var(--brr-ink);
    margin-top: 24px;
    padding: 12px 14px;
}

.brr-checkout-form {
    border-top: 1px solid var(--brr-line);
    margin-top: 25px;
    padding-top: 22px;
}

.brr-checkout-form .brr-button {
    background: var(--brr-gold);
    border-color: var(--brr-gold);
    color: var(--brr-navy-deep);
    cursor: pointer;
    min-width: 145px;
}

.brr-checkout-form .brr-button:hover,
.brr-checkout-form .brr-button:focus {
    background: #bd921d;
    border-color: #bd921d;
    color: var(--brr-navy-deep);
}

.brr-checkout-form p {
    color: var(--brr-muted);
    font-size: 0.82rem;
    margin: 9px 0 0;
}

.brr-checkout-result { margin: clamp(24px, 6vw, 70px) auto; }

.brr-checkout-summary {
    display: grid;
    grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
    margin: 24px auto;
    max-width: 650px;
    text-align: left;
}

.brr-checkout-summary dt,
.brr-checkout-summary dd {
    border-bottom: 1px solid var(--brr-line);
    margin: 0;
    overflow-wrap: anywhere;
    padding: 10px 0;
}

.brr-checkout-summary dt {
    color: var(--brr-muted);
    font-weight: 700;
    padding-right: 18px;
}

.brr-status-pill {
    background: #edf0f2;
    border-radius: 999px;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 750;
    padding: 5px 10px;
    text-transform: uppercase;
}

.brr-status-paid { background: #e4f3eb; color: #17643a; }
.brr-status-failed,
.brr-status-cancelled,
.brr-status-expired { background: #fbeaea; color: #8d2525; }
.brr-status-pending { background: var(--brr-gold-soft); color: #654d08; }

.brr-checkout-note {
    border-left: 4px solid var(--brr-gold);
    font-size: 0.86rem;
    padding: 10px 12px;
    text-align: left;
}

.brr-detail-body {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.brr-detail-section {
    background: #fff;
    border: 1px solid var(--brr-line);
    border-radius: 12px;
    padding: clamp(20px, 4vw, 34px);
}

.brr-detail-section h2 {
    color: var(--brr-navy-deep);
    font-size: 1.35rem;
    margin: 0 0 15px;
}

.brr-detail-section > p {
    color: var(--brr-ink);
    line-height: 1.75;
    margin: 0;
}

.brr-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.brr-keywords li {
    background: var(--brr-gold-soft);
    border-radius: 999px;
    color: #654d08;
    font-size: 0.84rem;
    font-weight: 650;
    padding: 6px 11px;
}

.brr-references { white-space: normal; }

.brr-document-viewer object {
    background: var(--brr-background);
    border: 1px solid var(--brr-line);
    height: min(78vh, 900px);
    min-height: 520px;
    width: 100%;
}

.brr-taxonomy-section { padding: clamp(24px, 5vw, 52px) 0; }

.brr-taxonomy-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brr-taxonomy-card {
    align-items: center;
    background: var(--brr-surface);
    border: 1px solid var(--brr-line);
    border-radius: 10px;
    color: var(--brr-navy-deep);
    display: flex;
    font-weight: 700;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    text-decoration: none;
}

.brr-taxonomy-card > span:last-child { overflow-wrap: anywhere; }

.brr-taxonomy-card:hover,
.brr-taxonomy-card:focus {
    border-color: var(--brr-gold);
    box-shadow: 0 7px 20px rgba(8, 43, 76, 0.1);
    color: var(--brr-navy);
}

.brr-taxonomy-card:focus-visible {
    outline: 3px solid var(--brr-gold);
    outline-offset: 3px;
}

.brr-taxonomy-mark {
    align-items: center;
    background: var(--brr-gold-soft);
    border-radius: 8px;
    color: var(--brr-navy);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

.brr-taxonomy-empty,
.brr-taxonomy-context { color: var(--brr-muted); }

.brr-repository .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 960px) {
    .brr-publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brr-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brr-taxonomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brr-statistics-strip,
    .brr-statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .brr-hero { border-radius: 10px; }
    .brr-filter-panel { margin-left: 8px; margin-right: 8px; }
    .brr-filter-form { padding: 17px; }
    .brr-search-control { flex-direction: column; }
    .brr-search-control .brr-button { width: 100%; }
    .brr-filter-grid { grid-template-columns: 1fr; }
    .brr-filter-actions { align-items: stretch; flex-direction: column; }
    .brr-filter-actions .brr-button { width: 100%; }
    .brr-reset-link { text-align: center; }
    .brr-results-heading { align-items: start; flex-direction: column; gap: 8px; }
    .brr-publication-grid { grid-template-columns: 1fr; }
    .brr-taxonomy-grid { grid-template-columns: 1fr; }
    .brr-statistics-strip,
    .brr-statistics-grid { grid-template-columns: 1fr; }
    .brr-detail-hero { grid-template-columns: 1fr; }
    .brr-detail-cover { margin: 0 auto; max-width: 280px; width: 100%; }
    .brr-detail-metadata,
    .brr-identifier-list { grid-template-columns: 1fr; }
    .brr-detail-metadata dt,
    .brr-identifier-list dt { border-bottom: 0; padding-bottom: 0; }
    .brr-document-actions { align-items: stretch; flex-direction: column; }
    .brr-document-actions .brr-button { width: 100%; }
    .brr-checkout-form .brr-button { width: 100%; }
    .brr-checkout-summary { grid-template-columns: 1fr; }
    .brr-checkout-summary dt { border-bottom: 0; padding-bottom: 0; }
    .brr-document-viewer object { min-height: 420px; }
    .brr-pagination { align-items: stretch; flex-wrap: wrap; }
    .brr-page-numbers { order: 3; width: 100%; }
    .brr-page-direction { flex: 1; }
}
