/* Additional styles for the multi-section site structure.
   This file is layered on top of the legacy theme so we can
   introduce the new information architecture without rewriting
   every existing rule at once. */

.site-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.site-brand-main {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.site-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #d9c693;
}

.site-tagline {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(244, 236, 216, 0.88);
}

.header-nav {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.header-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-right: 0;
}

.primary-nav-link {
    color: #f4ecd8;
    border: 1px solid rgba(197, 160, 89, 0.35);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-nav-link:hover,
.primary-nav-link.is-active {
    color: #1a0d08;
    background: #c5a059;
    border-color: #c5a059;
}

.utility-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.search-form {
    margin-right: 0;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
}

.utility-form {
    margin: 0;
}

.utility-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    background: rgba(244, 236, 216, 0.08);
    color: #f4ecd8;
    font-size: 13px;
    line-height: 1;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.utility-chip:hover,
.utility-chip.is-active {
    color: #1a0d08;
    background: #d7b573;
    border-color: #d7b573;
    transform: translateY(-1px);
}

.utility-chip .material-icons-outlined {
    font-size: 18px;
}

.utility-chip--staff {
    background: rgba(197, 160, 89, 0.16);
}

.utility-chip--auth {
    min-width: 118px;
}

.utility-chip--search {
    min-width: 44px;
    padding: 0 14px;
    border: none;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.inline-form {
    display: inline;
}

.site-shell-banner {
    margin: 0 auto;
    padding: 24px 24px 0;
}

.site-shell-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    background: rgba(252, 249, 242, 0.88);
    border: 1px solid rgba(140, 107, 54, 0.28);
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.site-shell-banner__copy {
    max-width: 720px;
}

.site-shell-banner__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8c6b36;
}

.site-shell-banner__title {
    margin: 0 0 8px;
    font-size: 28px;
    color: #8b1e1e;
}

.site-shell-banner__lead {
    margin: 0;
    color: #4f4f4f;
    line-height: 1.8;
}

.site-shell-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.site-shell-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(140, 107, 54, 0.35);
    background: rgba(255, 255, 255, 0.7);
    color: #2c1a12;
    font-size: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-shell-link:hover,
.site-shell-link.is-active {
    background: #fff4da;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.site-main {
    padding-top: 8px;
}

.footer-panel {
    padding: 0 8px;
    width: 100%;
    max-width: 360px;
}

.site-footer-inner {
    display: grid;
    gap: 28px;
    justify-items: center;
}

.site-footer-panels {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
    align-items: start;
    justify-items: center;
}

.footer-panel--story {
    max-width: 520px;
    margin: 0;
}

.footer-panel--trust {
    justify-self: stretch;
}

.footer-heading {
    margin: 0 0 12px;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 16px;
}

.footer-copy {
    margin: 0;
    color: #d5c29b;
    line-height: 1.8;
    font-size: 14px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
}

.footer-link-list a {
    color: #d5c29b;
    font-size: 13px;
}

.footer-link-list a:hover {
    color: #fff;
}

.footer-link-list--trust {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px 18px;
}

.site-footer-text {
    grid-column: 1 / -1;
    margin-top: 8px;
    text-align: center;
}

.page-actions--auth {
    margin-top: 20px;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(252, 249, 242, 0.94);
    border: 1px solid rgba(140, 107, 54, 0.28);
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    margin-top: 0;
}

.auth-card p {
    line-height: 1.8;
}

.auth-form p {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #6d5224;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(140, 107, 54, 0.4);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--accent-gold);
    border-radius: 999px;
    background: var(--bg-mahogany);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 15px;
    cursor: pointer;
}

.auth-submit:hover {
    color: #fff7e6;
}

.section-hero {
    margin-bottom: 36px;
    padding: 36px;
    background:
        linear-gradient(135deg, rgba(197, 160, 89, 0.16), rgba(139, 30, 30, 0.08)),
        rgba(252, 249, 242, 0.85);
    border: 1px solid rgba(140, 107, 54, 0.35);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.section-hero--compact {
    margin-bottom: 28px;
    padding: 28px 32px;
}

.section-eyebrow {
    margin: 0 0 10px;
    color: #8c6b36;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-lead {
    max-width: 780px;
    margin: 0;
    font-size: 15px;
    color: #4f4f4f;
    line-height: 1.9;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #8c6b36;
    background: rgba(255, 255, 255, 0.7);
    color: #2c1a12;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.section-link:hover {
    transform: translateY(-1px);
    background: #fff7e6;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.section-link--external-reference {
    border-color: rgba(140, 107, 54, 0.24);
    background: rgba(248, 242, 229, 0.72);
    color: #5d4630;
}

.portal-home-page .section-hero {
    padding: 42px;
    margin-bottom: 32px;
}

.portal-home-page .section-eyebrow {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: none;
}

.portal-home-page .page-title {
    max-width: 720px;
    margin: 0 0 18px;
    text-align: left;
    line-height: 1.35;
}

.portal-home-page .page-title::after {
    margin-top: 14px;
    font-size: 16px;
    text-align: left;
}

.portal-home-page .page-lead {
    max-width: 760px;
    color: #43352d;
}

.portal-home-page .portal-home-actions {
    align-items: center;
}

.portal-home-page .section-link--primary {
    background: #8c6b36;
    border-color: #8c6b36;
    color: #fff7e6;
    box-shadow: 0 10px 22px rgba(76, 45, 16, 0.18);
}

.portal-home-page .section-link--primary:hover {
    background: #745626;
    color: #fffaf0;
}

.portal-home-page .section-link--secondary {
    background: rgba(255, 247, 230, 0.72);
}

.zone-grid,
.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.zone-card,
.info-slab {
    background: rgba(252, 249, 242, 0.92);
    border: 1px solid rgba(140, 107, 54, 0.28);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.zone-card h2,
.info-slab h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.zone-card-label {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: #8c6b36;
    text-transform: uppercase;
}

.zone-card-link {
    display: inline-block;
    margin-top: 12px;
    color: #8b1e1e;
    font-weight: 700;
}

.portal-home-page .portal-home-zones {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    align-items: stretch;
}

.portal-home-page .zone-subgrid {
    display: grid;
    gap: 20px;
}

.portal-home-page .zone-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portal-home-page .zone-card-linkbox {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.portal-home-page .zone-card p {
    margin: 0;
    line-height: 1.8;
    color: #43352d;
}

.portal-home-page .zone-card .zone-card-label {
    margin: 0 0 8px;
}

.portal-home-page .zone-card--featured {
    padding: 32px;
    background:
        linear-gradient(160deg, rgba(197, 160, 89, 0.18), rgba(139, 30, 30, 0.06)),
        rgba(252, 249, 242, 0.96);
    border-color: rgba(140, 107, 54, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.portal-home-page .zone-card--featured h2 {
    font-size: 30px;
}

.portal-home-page .zone-card--support {
    min-height: 0;
}

.portal-home-page .zone-card--muted {
    background: rgba(249, 246, 239, 0.88);
}

.portal-home-page .zone-card-link {
    margin-top: 18px;
}

.portal-home-page .zone-card-linkbox:hover,
.portal-home-page .zone-card-linkbox:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(140, 107, 54, 0.5);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.portal-home-page .zone-card-linkbox:hover .zone-card-link,
.portal-home-page .zone-card-linkbox:focus-visible .zone-card-link {
    color: #6d1414;
}

.portal-home-page .zone-card-linkbox:focus-visible {
    outline: 2px solid rgba(140, 107, 54, 0.55);
    outline-offset: 3px;
}

.content-section {
    margin-bottom: 40px;
}

.portal-home-page .content-section {
    padding: 28px;
    border: 1px solid rgba(140, 107, 54, 0.22);
    border-radius: 16px;
    background: rgba(252, 249, 242, 0.82);
}

.portal-home-page .content-section--vault {
    background:
        linear-gradient(160deg, rgba(197, 160, 89, 0.12), rgba(139, 30, 30, 0.04)),
        rgba(252, 249, 242, 0.92);
    border-color: rgba(140, 107, 54, 0.32);
}

.portal-home-page .content-section--materials {
    background: rgba(249, 246, 239, 0.72);
}

.portal-home-page .portal-materials-card-media {
    aspect-ratio: 5 / 7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(241, 232, 217, 0.95)),
        rgba(252, 249, 242, 0.98);
    border-bottom: 1px solid rgba(140, 107, 54, 0.18);
}

.portal-home-page .portal-materials-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
}

.portal-home-page .section-heading--portal {
    align-items: flex-end;
}

.portal-home-page .section-heading-copy {
    max-width: 640px;
}

.portal-home-page .section-kicker {
    margin: 0 0 8px;
    color: #8c6b36;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.portal-home-page .section-summary {
    margin: 10px 0 0;
    color: #5a4b42;
    line-height: 1.8;
}

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

.content-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
    background: rgba(252, 249, 242, 0.95);
    border: 1px solid rgba(140, 107, 54, 0.22);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.content-card a {
    display: block;
    height: 100%;
}

.content-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #e6dcc5;
}

.content-card-body {
    padding: 18px;
}

.content-card-body h2,
.content-card-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.content-card-meta {
    margin-top: 0;
    margin-bottom: 10px;
    color: #8c6b36;
    font-size: 13px;
}

.detail-article {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(252, 249, 242, 0.92);
    border: 1px solid rgba(140, 107, 54, 0.28);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.detail-cover-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    display: block;
}

.detail-richtext {
    line-height: 1.9;
}

.detail-richtext p:first-child {
    margin-top: 0;
}

.empty-state {
    color: #4f4f4f;
}

.empty-state--panel {
    display: block;
    width: 100%;
    padding: 24px;
    background: rgba(252, 249, 242, 0.92);
    border: 1px dashed rgba(140, 107, 54, 0.5);
    border-radius: 14px;
    box-sizing: border-box;
}

.research-archive-hero {
    margin-bottom: 28px;
}

.research-archive-summary {
    margin: 16px 0 0;
    color: #6d5224;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.research-archive-section {
    margin-bottom: 32px;
}

.research-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(246, 240, 228, 0.95)),
        rgba(252, 249, 242, 0.95);
}

.research-card-link {
    color: inherit;
}

.research-card-link:hover {
    text-decoration: none;
}

.research-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.research-card-meta {
    margin-bottom: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.research-card-title {
    margin-bottom: 0;
    color: #2f2118;
    line-height: 1.45;
}

.research-card-excerpt {
    margin: 0;
    color: #4f4f4f;
    line-height: 1.85;
}

.research-card-linktext {
    margin: auto 0 0;
    color: #7b1820;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.research-empty-state {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.research-empty-state-title {
    margin: 0 0 10px;
    color: #2f2118;
    font-family: var(--font-heading);
    font-size: 22px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pagination-prev,
.pagination-next,
.pagination-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(140, 107, 54, 0.32);
    background: rgba(252, 249, 242, 0.94);
    color: #2c1a12;
    font-size: 14px;
}

.pagination-prev:hover,
.pagination-next:hover {
    text-decoration: none;
    background: #fff7e6;
    transform: translateY(-1px);
}

.pagination-info {
    color: #6d5224;
}

.detail-article--research {
    max-width: 900px;
}

.research-entry-header {
    margin-bottom: 20px;
}

.research-entry-header .page-title {
    margin-bottom: 12px;
    text-align: left;
}

.research-entry-header .page-title::after {
    text-align: left;
}

.research-entry-meta {
    margin: 0;
    color: #6d5224;
    font-size: 14px;
    letter-spacing: 0.06em;
}

.info-slab--research-abstract {
    max-width: 42em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
}

.research-abstract-label {
    margin: 0 0 10px;
    color: #8c6b36;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.research-abstract-text {
    margin: 0;
    color: #3e322a;
    font-size: 15px;
    line-height: 1.95;
}

.research-entry-body {
    max-width: 42em;
    margin: 0 auto;
    color: #2f2118;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.01em;
}

.research-entry-body p {
    margin: 0 0 1.35em;
}

.research-entry-body p:last-child {
    margin-bottom: 0;
}

.info-slab--research-navigation {
    margin-top: 32px;
}

.info-slab--detail-navigation {
    max-width: 44em;
    margin: 32px auto 0;
}

.info-slab--detail-navigation h2 {
    margin-bottom: 10px;
}

.info-slab--detail-navigation p {
    margin: 0;
    color: #4f4f4f;
    line-height: 1.8;
}

.info-slab--detail-navigation .page-actions {
    margin-top: 18px;
}

.materials-archive-hero {
    margin-bottom: 28px;
}

.materials-archive-section {
    margin-bottom: 32px;
}

.materials-card {
    background:
        linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(244, 239, 229, 0.94)),
        rgba(252, 249, 242, 0.95);
}

.materials-card-link {
    color: inherit;
}

.materials-card-link:hover {
    text-decoration: none;
}

.materials-card-media {
    aspect-ratio: 5 / 7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(241, 232, 217, 0.95)),
        rgba(252, 249, 242, 0.98);
    border-bottom: 1px solid rgba(140, 107, 54, 0.18);
}

.materials-card-image,
.materials-card-media .content-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.materials-card-body {
    padding: 20px;
}

.materials-card-meta {
    margin-bottom: 8px;
    color: #7a6243;
    font-size: 12px;
    letter-spacing: 0.06em;
}

.materials-card-title {
    margin-bottom: 10px;
    color: #2f2118;
    line-height: 1.45;
}

.materials-card-excerpt {
    margin: 0;
    color: #51453a;
    line-height: 1.8;
}

.materials-empty-state {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.materials-empty-state-title {
    margin: 0 0 10px;
    color: #2f2118;
    font-family: var(--font-heading);
    font-size: 22px;
}

.detail-article--materials {
    max-width: 900px;
}

.materials-detail-cover {
    display: flex;
    justify-content: center;
    margin: 0 auto 28px;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(241, 232, 217, 0.94)),
        rgba(252, 249, 242, 0.98);
    border: 1px solid rgba(140, 107, 54, 0.22);
    border-radius: 12px;
}

.materials-detail-cover-image {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.materials-entry-header {
    margin-bottom: 20px;
}

.materials-entry-header .page-title {
    margin-bottom: 12px;
    text-align: left;
}

.materials-entry-header .page-title::after {
    text-align: left;
}

.materials-entry-meta {
    margin: 0;
    color: #6d5224;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.materials-entry-meta-separator {
    margin: 0 8px;
    color: #9b8665;
}

.info-slab--materials-summary {
    max-width: 42em;
    margin: 0 auto 28px;
}

.materials-summary-label {
    margin: 0 0 10px;
    color: #8c6b36;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.materials-summary-text {
    margin: 0;
    color: #3e322a;
    font-size: 15px;
    line-height: 1.9;
}

.materials-entry-body {
    max-width: 42em;
    margin: 0 auto;
    color: #2f2118;
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.01em;
}

.materials-entry-body p {
    margin: 0 0 1.3em;
}

.materials-entry-body p:last-child {
    margin-bottom: 0;
}

.materials-page-actions {
    margin-top: 32px;
}

.cart-item-meta {
    margin: 0;
    font-size: 13px;
    color: #6f6250;
}

.empty-cart-message {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 12px 0 4px;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    margin-top: 12px;
    border-radius: 999px;
    border: 1px solid #8c6b36;
    background: rgba(255, 255, 255, 0.7);
}

.vault-filter-toggle,
.vault-filter-summary {
    display: none;
}

.grimoire-list-page .sidebar-title--secondary {
    margin-top: 32px;
}

.grimoire-list-page .stock-toggle-wrap {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--accent-gold-dark);
}

code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95em;
    background: rgba(26, 13, 8, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
}

@media (max-width: 960px) {
    .zone-grid,
    .policy-grid,
    .content-grid,
    .content-grid--wide {
        grid-template-columns: 1fr;
    }

    .portal-home-page .portal-home-zones {
        grid-template-columns: 1fr;
    }

    .portal-home-page .zone-subgrid {
        grid-template-columns: 1fr;
    }

    .site-footer-panels {
        grid-template-columns: 1fr;
    }

    .footer-panel,
    .footer-panel--trust {
        max-width: 100%;
        justify-self: stretch;
    }

    .footer-link-list--trust {
        justify-content: center;
    }

    .site-shell-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-shell-banner__links {
        justify-content: flex-start;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-home-page .section-heading--portal {
        align-items: flex-start;
    }
}

@media (min-width: 961px) {
    .site-footer-panels {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
        align-items: stretch;
    }

    .header-menu {
        width: 100%;
        display: none;
        gap: 14px;
        box-sizing: border-box;
    }

    .header-nav.is-open {
        flex-direction: column;
    }

    .header-nav.is-open .header-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .primary-nav,
    .utility-nav {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .utility-chip,
    .utility-form,
    .utility-form .utility-chip {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .utility-chip {
        justify-content: center;
    }

    .utility-chip--auth {
        min-width: 0;
    }

    .utility-form {
        display: block;
    }

    .utility-nav > a {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-form {
        width: 100%;
        margin-right: 0;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-input {
        width: 100%;
    }

    .site-shell-banner {
        padding: 20px 16px 0;
    }

    .section-hero,
    .detail-article {
        padding: 24px;
    }

    .auth-card {
        padding: 24px;
    }

    .portal-home-page .section-hero,
    .portal-home-page .content-section {
        padding: 24px;
    }

    .portal-home-page .page-title {
        font-size: 28px;
    }

    .portal-home-page .portal-home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-home-page .portal-home-actions .section-link {
        width: 100%;
    }

    .portal-home-page .portal-materials-card-media {
        padding: 14px;
    }

    .portal-home-page .zone-card--featured h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .research-list-page .section-hero,
    .materials-list-page .section-hero {
        margin-bottom: 16px;
        padding: 18px 18px 16px;
    }

    .research-list-page .section-eyebrow,
    .materials-list-page .section-eyebrow {
        margin-bottom: 6px;
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    .research-list-page .page-title,
    .materials-list-page .page-title {
        margin-bottom: 8px;
        font-size: 28px;
        text-align: left;
    }

    .research-list-page .page-title::after,
    .materials-list-page .page-title::after {
        display: none;
    }

    .research-list-page .page-lead,
    .materials-list-page .page-lead {
        font-size: 13px;
        line-height: 1.6;
    }

    .research-list-page .content-section,
    .materials-list-page .content-section {
        margin-bottom: 24px;
    }

    .research-card-body {
        padding: 18px;
    }

    .research-card-title {
        font-size: 22px;
    }

    .research-empty-state {
        padding: 20px;
    }

    .materials-card-body {
        padding: 18px;
    }

    .materials-card-media {
        padding: 14px;
    }

    .materials-card-title {
        font-size: 22px;
    }

    .materials-empty-state {
        padding: 20px;
    }

    .pagination {
        gap: 10px;
    }

    .pagination-prev,
    .pagination-next,
    .pagination-info {
        width: 100%;
    }

    .research-detail-page .detail-article {
        padding: 24px 20px;
    }

    .research-entry-header .page-title {
        font-size: 28px;
        text-align: left;
    }

    .research-entry-header .page-title::after {
        display: none;
    }

    .research-entry-meta {
        font-size: 13px;
    }

    .materials-detail-page .detail-article {
        padding: 24px 20px;
    }

    .materials-detail-cover {
        margin-bottom: 24px;
        padding: 14px;
    }

    .materials-detail-cover-image {
        max-width: 100%;
    }

    .materials-entry-header .page-title {
        font-size: 28px;
        text-align: left;
    }

    .materials-entry-header .page-title::after {
        display: none;
    }

    .materials-entry-meta {
        font-size: 13px;
        line-height: 1.7;
    }

    .research-abstract-text {
        font-size: 14px;
        line-height: 1.85;
    }

    .research-entry-body {
        font-size: 15px;
        line-height: 1.9;
    }

    .research-entry-body p {
        margin-bottom: 1.2em;
    }

    .materials-summary-text {
        font-size: 14px;
        line-height: 1.82;
    }

    .materials-entry-body {
        font-size: 15px;
        line-height: 1.9;
    }

    .materials-entry-body p {
        margin-bottom: 1.2em;
    }

    .research-detail-page .page-actions {
        flex-direction: column;
    }

    .research-detail-page .page-actions .section-link {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 14px;
    }

    .vault-detail-page .page-actions {
        flex-direction: column;
    }

    .vault-detail-page .page-actions .section-link {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 14px;
    }

    .materials-detail-page .page-actions {
        flex-direction: column;
    }

    .materials-detail-page .page-actions .section-link {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 14px;
    }

    .info-slab--detail-navigation {
        margin-top: 24px;
    }

    .info-slab--detail-navigation p {
        font-size: 14px;
        line-height: 1.75;
    }

    .grimoire-list-page .section-hero--compact {
        margin-bottom: 16px;
        padding: 18px 18px 16px;
    }

    .grimoire-list-page .section-eyebrow {
        margin-bottom: 6px;
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    .grimoire-list-page .page-title {
        margin-bottom: 8px;
        font-size: 28px;
        text-align: left;
    }

    .grimoire-list-page .page-title::after {
        display: none;
    }

    .grimoire-list-page .page-lead {
        font-size: 13px;
        line-height: 1.6;
    }

    .grimoire-list-page .grimoire-list-layout {
        gap: 16px;
    }

    .grimoire-list-page .category-sidebar {
        padding: 16px;
        margin-bottom: 0;
    }

    .vault-filter-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .vault-filter-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 14px;
        border: 1px solid rgba(140, 107, 54, 0.38);
        border-radius: 999px;
        background: rgba(255, 247, 230, 0.78);
        color: #2c1a12;
        font-size: 14px;
        font-family: var(--font-heading);
        cursor: pointer;
    }

    .vault-filter-summary::after {
        content: "+";
        font-size: 20px;
        line-height: 1;
        color: #8c6b36;
    }

    .vault-filter-toggle:checked + .vault-filter-summary::after {
        content: "-";
    }

    .vault-filter-panel {
        display: none;
        padding-top: 14px;
    }

    .vault-filter-toggle:checked + .vault-filter-summary + .vault-filter-panel {
        display: block;
    }

    .grimoire-list-page .sidebar-title {
        margin-bottom: 12px;
        padding-bottom: 8px;
        font-size: 18px;
    }

    .grimoire-list-page .sidebar-title--secondary {
        margin-top: 20px;
    }

    .grimoire-list-page .category-menu li {
        margin-bottom: 8px;
    }

    .grimoire-list-page .category-menu a {
        padding: 7px 10px;
        font-size: 14px;
    }

    .grimoire-list-page .stock-toggle-wrap {
        margin-top: 20px;
        padding-top: 16px;
    }

    .grimoire-list-page .antique-toggle {
        align-items: flex-start;
        font-size: 14px;
    }

    .grimoire-list-page .toggle-label {
        line-height: 1.5;
    }

    .grimoire-list-page .search-results-title {
        margin-bottom: 14px;
        padding-bottom: 10px;
        font-size: 20px;
    }

    .grimoire-list-page .list-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px 12px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .grimoire-list-page .list-count {
        font-size: 13px;
    }

    .grimoire-list-page .sort-form {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .grimoire-list-page .sort-form label {
        margin-right: 0;
        font-size: 13px;
        white-space: nowrap;
    }

    .grimoire-list-page .sort-select {
        max-width: 148px;
        padding: 6px 28px 6px 10px;
        font-size: 13px;
        background-position: right 10px center;
    }

    .grimoire-list-page .grimoire-list {
        gap: 18px;
    }

    .grimoire-list-page .grimoire-item {
        padding: 12px;
    }

    .grimoire-list-page .grimoire-thumb {
        margin-bottom: 12px;
    }
}

.empty-state--panel p:last-child {
    margin-bottom: 0;
}

.portal-empty-state-title,
.research-empty-state-title,
.materials-empty-state-title {
    margin: 0 0 10px;
    color: #2f2118;
    font-family: var(--font-heading);
    font-size: 22px;
}

.archive-helper {
    margin-bottom: 22px;
    padding: 20px 22px;
    background: rgba(252, 249, 242, 0.9);
    border: 1px solid rgba(140, 107, 54, 0.24);
    border-radius: 14px;
}

.archive-helper-kicker {
    margin: 0 0 8px;
    color: #8c6b36;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.archive-helper-text {
    margin: 0;
    color: #4f4f4f;
    line-height: 1.85;
}

.archive-helper-actions {
    margin-top: 16px;
}

.archive-empty-state {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .archive-helper {
        padding: 18px;
        margin-bottom: 16px;
    }

    .archive-helper-actions {
        flex-direction: column;
    }

    .archive-helper-actions .section-link {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .portal-empty-state {
        padding: 20px;
    }
}

.grimoire-list-page .section-hero--compact {
    margin-bottom: 20px;
    padding: 22px 26px 18px;
}

.grimoire-list-page .page-title {
    margin-bottom: 10px;
}

.grimoire-list-page .page-title::after {
    display: none;
}

.grimoire-list-page .page-lead {
    max-width: 34em;
    font-size: 14px;
    line-height: 1.75;
}

.vault-hero-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(140, 107, 54, 0.18);
}

.vault-hero-linkgroup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.vault-hero-linkgroup--guide {
    justify-content: flex-end;
}

.vault-hero-linktext {
    margin: 0;
    color: #5c4c3e;
    font-size: 13px;
    line-height: 1.7;
}

.grimoire-list-page .vault-hero-links .section-link {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
}

.research-list-page .section-hero--compact {
    margin-bottom: 20px;
    padding: 22px 26px 18px;
}

.research-list-page .page-title {
    margin-bottom: 10px;
}

.research-list-page .page-title::after {
    display: none;
}

.research-list-page .page-lead {
    max-width: 34em;
    font-size: 14px;
    line-height: 1.75;
}

.research-list-page .research-archive-section {
    margin-bottom: 28px;
}

.research-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(140, 107, 54, 0.18);
}

.research-hero-linkgroup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.research-hero-linktext {
    margin: 0;
    color: #5c4c3e;
    font-size: 13px;
    line-height: 1.7;
}

.research-list-page .research-hero-links .section-link {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
}

.materials-list-page .section-hero--compact {
    margin-bottom: 20px;
    padding: 22px 26px 18px;
}

.materials-list-page .page-title {
    margin-bottom: 10px;
}

.materials-list-page .page-title::after {
    display: none;
}

.materials-list-page .page-lead {
    max-width: 34em;
    font-size: 14px;
    line-height: 1.75;
}

.materials-list-page .materials-archive-section {
    margin-bottom: 28px;
}

.materials-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(140, 107, 54, 0.18);
}

.materials-hero-linkgroup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.materials-hero-linktext {
    margin: 0;
    color: #5c4c3e;
    font-size: 13px;
    line-height: 1.7;
}

.materials-list-page .materials-hero-links .section-link {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
}

.materials-list-page .materials-card-media {
    aspect-ratio: 5 / 3.2;
    padding: 8px;
}

.materials-list-page .materials-card-body {
    padding: 18px;
}

.page-actions--vault-related {
    align-items: center;
}

.page-actions--vault-related .section-link--vault-policy {
    margin-left: auto;
}

.page-actions--research-related {
    align-items: center;
}

.page-actions--research-related .section-link--research-return {
    margin-left: auto;
}

.page-actions--materials-related {
    align-items: center;
}

.page-actions--materials-related .section-link--materials-return {
    margin-left: auto;
}

@media (max-width: 768px) {
    .vault-detail-page .page-actions--vault-related {
        flex-direction: column;
        align-items: stretch;
    }

    .vault-detail-page .page-actions--vault-related .section-link {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
    }

    .vault-detail-page .page-actions--vault-related .section-link--vault-policy {
        margin-left: 0;
    }

    .research-detail-page .page-actions--research-related {
        flex-direction: column;
        align-items: stretch;
    }

    .research-detail-page .page-actions--research-related .section-link {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
    }

    .research-detail-page .page-actions--research-related .section-link--research-return {
        margin-left: 0;
    }

    .materials-detail-page .page-actions--materials-related {
        flex-direction: column;
        align-items: stretch;
    }

    .materials-detail-page .page-actions--materials-related .section-link {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
    }

    .materials-detail-page .page-actions--materials-related .section-link--materials-return {
        margin-left: 0;
    }

    .research-list-page .section-hero--compact {
        margin-bottom: 16px;
        padding: 18px 18px 16px;
    }

    .research-list-page .page-title {
        margin-bottom: 8px;
        font-size: 28px;
        text-align: left;
    }

    .research-list-page .page-lead {
        font-size: 13px;
        line-height: 1.6;
    }

    .research-hero-links {
        gap: 12px;
        margin-top: 14px;
        padding-top: 12px;
    }

    .research-hero-linkgroup {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 12px;
    }

    .research-hero-linktext {
        width: auto;
        flex: 1 1 auto;
        font-size: 13px;
        line-height: 1.6;
    }

    .research-list-page .research-hero-links .section-link {
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .materials-list-page .section-hero--compact {
        margin-bottom: 16px;
        padding: 18px 18px 16px;
    }

    .materials-list-page .page-title {
        margin-bottom: 8px;
        font-size: 28px;
        text-align: left;
    }

    .materials-list-page .page-lead {
        font-size: 13px;
        line-height: 1.6;
    }

    .materials-hero-links {
        gap: 12px;
        margin-top: 14px;
        padding-top: 12px;
    }

    .materials-hero-linkgroup {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 12px;
    }

    .materials-hero-linktext {
        width: auto;
        flex: 1 1 auto;
        font-size: 13px;
        line-height: 1.6;
    }

    .materials-list-page .materials-hero-links .section-link {
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .materials-list-page .materials-card-media {
        aspect-ratio: 5 / 3.4;
        padding: 7px;
    }

    .vault-hero-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 8px 10px;
        margin-top: 14px;
        padding-top: 12px;
    }

    .vault-hero-linkgroup {
        width: auto;
        justify-content: flex-start;
    }

    .vault-hero-linkgroup--guide {
        width: auto;
        justify-content: flex-end;
        align-self: end;
    }

    .vault-hero-linktext {
        width: 100%;
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 2px;
    }

    .grimoire-list-page .vault-hero-links .section-link {
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }
}
