@font-face { font-family: "Manrope Variable"; src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader Variable"; src: url('/assets/fonts/newsreader-latin-ext.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }

:root {
  --navy: #062846;
  --navy-dark: #02182c;
  --navy-mid: #12466f;
  --paper: #f3eee4;
  --paper-light: #faf8f2;
  --gold: #b97b22;
  --gold-light: #e0b45f;
  --ink: #111d28;
  --muted: #455461;
  --rule: #cbbfad;
  --success: #1e6f50;
  --danger: #a33b36;
  --font-display: "Newsreader Variable", "Iowan Old Style", Georgia, serif;
  --font-sans: "Manrope Variable", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper-light); color: var(--ink); font-family: var(--font-sans); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body, button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.container { width: min(calc(100% - 96px), var(--container)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; background: white; color: var(--navy); padding: 12px 18px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.skip-link:focus { top: 16px; }

.primary-header { position: relative; z-index: 50; background: var(--navy-dark); color: white; border-bottom: 1px solid rgba(198,148,63,.9); }
.header-inner { width: min(calc(100% - 40px), 1450px); min-height: 100px; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); }
.brand { display: flex; flex: 0 0 auto; align-items: center; }
.esam-wordmark { display: inline-grid; grid-template-columns: auto 1px auto; align-items: center; gap: 14px; color: var(--navy); line-height: 1; }
.esam-wordmark strong { font-family: var(--font-display); font-size: 2.9rem; font-weight: 450; letter-spacing: -.045em; }
.esam-wordmark-rule { width: 1px; height: 52px; background: currentColor; opacity: .72; }
.esam-wordmark-name { display: grid; gap: 1px; font-family: var(--font-display); font-size: .63rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.esam-wordmark-compact strong { font-size: 2.4rem; }
.esam-wordmark-compact .esam-wordmark-rule { height: 43px; }
.esam-wordmark-compact .esam-wordmark-name { font-size: .55rem; }
.esam-wordmark-inverse { color: white; }
.desktop-nav { flex: 1; align-self: stretch; }
.desktop-nav > ul { height: 100%; margin: 0; padding: 0; list-style: none; display: flex; align-items: stretch; justify-content: flex-end; gap: clamp(8px, 1vw, 17px); }
.mega-nav-item > details { height: 100%; }
.mega-nav-item > details > summary { height: 100%; min-height: 100px; list-style: none; display: flex; align-items: center; gap: 4px; position: relative; color: white; font-size: clamp(.65rem, .74vw, .78rem); font-weight: 520; white-space: nowrap; cursor: pointer; }
.mega-nav-item > details > summary::-webkit-details-marker { display: none; }
.mega-nav-item > details > summary::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 29px; height: 1px; background: var(--gold-light); transition: right .28s cubic-bezier(.2,.7,.2,1); }
.mega-nav-item > details > summary svg { color: #8fa2b3; transition: transform .2s ease, color .2s ease; }
.mega-nav-item:hover > details > summary::after, .mega-nav-item:focus-within > details > summary::after, .mega-nav-item > details[open] > summary::after { right: 0; }
.mega-nav-item:hover > details > summary svg, .mega-nav-item:focus-within > details > summary svg, .mega-nav-item > details[open] > summary svg { color: var(--gold-light); transform: rotate(180deg); }
.mega-panel { display: block; position: absolute; z-index: 60; left: 0; right: 0; top: 100%; color: white; background: #08213a; border-top: 1px solid rgba(213,185,117,.28); border-bottom: 1px solid var(--gold); box-shadow: 0 24px 45px rgba(0,0,0,.28); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.mega-nav-item:hover > .mega-panel, .mega-nav-item:focus-within > .mega-panel, .mega-nav-item:has(> details[open]) > .mega-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.desktop-nav > ul:has(.mega-nav-item:hover) .mega-nav-item:not(:hover) .mega-panel,
.desktop-nav > ul:has(.mega-nav-item:focus-within) .mega-nav-item:not(:focus-within) .mega-panel { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); }
.mega-panel-inner { width: min(calc(100% - 64px), 1450px); margin-inline: auto; display: grid; grid-template-columns: minmax(230px, 290px) 1fr; gap: clamp(38px, 5vw, 78px); padding: 38px 0 42px; }
.mega-panel-intro { padding-right: 34px; border-right: 1px solid rgba(213,185,117,.28); }
.mega-panel-intro > span { color: var(--gold-light); font-size: .66rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.mega-panel-intro h2 { margin: 10px 0 10px; font-family: var(--font-display); font-size: 2rem; line-height: 1.04; font-weight: 500; }
.mega-panel-intro p { margin: 0; color: #b8c7d3; font-size: .8rem; line-height: 1.6; }
.mega-panel-intro a { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--gold-light); font-size: .76rem; font-weight: 700; }
.mega-panel-intro a:hover { color: white; }
.mega-columns { display: grid; gap: clamp(26px, 4vw, 64px); }
.mega-columns-1 { grid-template-columns: minmax(220px, 420px); }
.mega-columns-2 { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.mega-columns-3 { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
.mega-columns-4 { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
.mega-columns section h3 { margin: 0 0 12px; padding-bottom: 11px; color: var(--gold-light); border-bottom: 1px solid rgba(213,185,117,.3); font-family: var(--font-display); font-size: 1rem; font-weight: 500; }
.mega-columns section > div { display: grid; }
.mega-columns section a { display: grid; gap: 1px; padding: 7px 0; color: #eef3f6; font-size: .78rem; line-height: 1.3; transition: color .16s ease, padding-left .16s ease; }
.mega-columns section a:hover, .mega-columns section a:focus-visible { color: var(--gold-light); padding-left: 5px; }
.mega-columns section small { color: #8fa2b3; font-size: .66rem; }
.search-link { width: 44px; height: 44px; display: grid; place-items: center; color: white; border: 0; border-left: 1px solid rgba(255,255,255,.26); background: transparent; margin-left: 1px; padding: 0 0 0 14px; cursor: pointer; }
.language-switch { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .7rem; color: #b8c6d2; }
.language-switch a { padding: 3px 0; color: #9cafbd; cursor: pointer; font-size: inherit; }
.language-switch a[aria-current="page"] { color: white; font-weight: 750; }
.language-switch a:hover { color: var(--gold-light); }
.language-switch i { color: var(--gold); font-style: normal; }
.esam-wordmark-image { display: inline-flex; width: min(320px, 27vw); height: 62px; }
.esam-wordmark-image img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.esam-wordmark-image.esam-wordmark-compact { width: 250px; height: 58px; }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav > nav { position: absolute; z-index: 20; left: 0; right: 0; top: 100px; max-height: calc(100dvh - 100px); overflow-y: auto; background: var(--navy-dark); padding: 12px 24px 24px; display: grid; border-bottom: 1px solid var(--gold); box-shadow: 0 18px 30px rgba(0,0,0,.24); }
.mobile-nav > nav > a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.mobile-nav-group { border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-nav-group > summary { min-height: 48px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: .88rem; }
.mobile-nav-group > summary::-webkit-details-marker { display: none; }
.mobile-nav-group > summary svg { color: #8fa2b3; transition: transform .18s ease; }
.mobile-nav-group[open] > summary { color: var(--gold-light); }
.mobile-nav-group[open] > summary svg { transform: rotate(180deg); }
.mega-panel-mobile { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; color: white; background: transparent; border: 0; box-shadow: none; transition: none; }
.mega-panel-mobile .mega-panel-inner { width: 100%; display: block; padding: 0 0 18px; }
.mega-panel-mobile .mega-panel-intro { padding: 0 0 14px; border: 0; }
.mega-panel-mobile .mega-panel-intro > span, .mega-panel-mobile .mega-panel-intro h2, .mega-panel-mobile .mega-panel-intro p { display: none; }
.mega-panel-mobile .mega-panel-intro a { margin: 2px 0 8px; font-size: .75rem; }
.mega-panel-mobile .mega-columns { grid-template-columns: 1fr; gap: 15px; }
.mega-panel-mobile .mega-columns section h3 { margin-bottom: 4px; padding-bottom: 7px; font-size: .88rem; }
.mega-panel-mobile .mega-columns section a { padding: 7px 0; color: #c7d3dd; font-size: .8rem; }

.hero-section { background: var(--navy-dark); color: white; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); min-height: 584px; width: min(100%, 1536px); margin-inline: auto; }
.hero-copy { min-width: 0; position: relative; z-index: 2; align-self: start; padding: 110px 42px 55px max(48px, calc((100vw - var(--container)) / 2)); }
.hero-copy h1 { margin: 0; max-width: 660px; font-family: var(--font-display); font-size: clamp(3.55rem, 5.85vw, 4.9rem); line-height: .98; font-weight: 410; letter-spacing: -.037em; text-wrap: balance; font-variation-settings: "opsz" 64; }
.hero-copy h1 span, .hero-copy h1 em { display: block; white-space: nowrap; }
.hero-copy h1 span:first-child { transform: scaleX(.92); transform-origin: left center; }
.hero-copy h1 em { color: var(--gold-light); font-style: normal; }
.hero-copy p { max-width: 405px; margin: 35px 0 0; font-size: .96rem; font-weight: 390; color: #e3e9ee; line-height: 1.72; }
.hero-actions { display: flex; gap: 16px; margin-top: 37px; }
.hero-copy h1 { animation: heroCopyIn .82s .08s cubic-bezier(.2,.72,.2,1) both; }
.hero-copy p { animation: heroCopyIn .82s .19s cubic-bezier(.2,.72,.2,1) both; }
.hero-actions { animation: heroCopyIn .82s .3s cubic-bezier(.2,.72,.2,1) both; }
.hero-actions .button { padding-inline: 34px; }
.hero-media { position: relative; margin: 0 calc((100vw - min(100vw, 1536px))/ -2) 0 -31%; min-height: 584px; overflow: hidden; background: var(--navy-dark); }
.hero-media::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: linear-gradient(90deg, var(--navy-dark) 0%, rgba(3,26,47,.82) 31%, rgba(3,26,47,.18) 78%, transparent 100%); pointer-events: none; }
.hero-media img { object-fit: cover; object-position: 100% center; filter: contrast(1.04) brightness(.94); transform: scale(1.006); transition: filter .8s ease, transform 1.5s cubic-bezier(.2,.7,.2,1); animation: heroImageIn 1.2s cubic-bezier(.2,.72,.2,1) both; }
.hero-section:hover .hero-media img { filter: contrast(1.03) brightness(.98); transform: scale(1.016); }
.hero-media figcaption { position: absolute; z-index: 2; right: 30px; bottom: 25px; display: flex; align-items: center; gap: 12px; color: #f6f7f8; font-size: .67rem; font-weight: 450; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero-media figcaption span { display: block; width: 44px; height: 1px; background: var(--gold-light); }

.button { min-height: 52px; padding: 0 29px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 560; font-size: .88rem; letter-spacing: -.01em; cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button-gold { color: var(--navy-dark); background: var(--gold-light); }
.button-gold:hover { background: #e1bc74; box-shadow: 0 10px 25px rgba(0,0,0,.18); }
.button-outline-light { color: white; border-color: rgba(213,185,117,.85); background: transparent; }
.button-outline-light:hover { border-color: white; background: rgba(255,255,255,.055); }
.button-primary { background: var(--gold); color: var(--navy-dark); }
.button-primary:hover { background: var(--gold-light); }
.button-navy { background: var(--navy); color: white; }
.button-navy:hover { background: var(--navy-mid); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: .88rem; font-weight: 700; }
.text-link:hover { color: #7f5b1f; }
.light-link { color: var(--gold-light); }

.section { padding: 96px 0; }
.paper-section, .research-section, .newsletter-section { background: var(--paper-light); }
.paper-section { padding-top: 72px; }
.publications-section, .events-section { background: var(--paper); border-top: 1px solid var(--rule); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.paper-section .section-heading { margin-bottom: 32px; }
.section-heading h2, .newsletter-grid h2, .newsletter-grid h3 { margin: 0; font-family: var(--font-display); color: var(--navy); font-size: clamp(2.65rem, 4.3vw, 3.7rem); line-height: 1; font-weight: 410; letter-spacing: -.032em; font-variation-settings: "opsz" 56; }
.section-heading h2::after { content: ""; display: block; width: 48px; height: 1px; background: var(--gold); margin-top: 18px; }
.section-heading > a { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 570; padding: 0 0 9px; border-bottom: 1px solid rgba(193,138,50,.62); }
.section-heading > a:hover { color: #845f22; }
.section-heading-light h2, .section-heading-light > a { color: white; }

.editorial-news-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.content-card { min-width: 0; padding: 34px 32px 0 0; }
.content-card + .content-card { padding-left: 32px; border-left: 1px solid var(--rule); }
.content-card-image { position: relative; display: block; aspect-ratio: 16/9; margin: -12px 0 24px; overflow: hidden; background: #d9d7d1; }
.content-card-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(13,42,74,.09); pointer-events: none; }
.content-card-image img { object-fit: cover; filter: contrast(1.035); transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .55s ease; }
.content-card:hover .content-card-image img { transform: scale(1.025); filter: contrast(1.09); }
.content-card-body h3 { margin: 12px 0 14px; font-family: var(--font-display); color: var(--navy); font-size: clamp(1.45rem, 2.1vw, 2.1rem); line-height: 1.1; font-weight: 420; letter-spacing: -.02em; font-variation-settings: "opsz" 40; }
.content-card-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.content-byline { display: block; margin: -7px 0 12px; color: #8a6a37; font-size: .72rem; font-weight: 650; }
.content-card-body p { margin: 0 0 22px; color: var(--muted); font-size: .86rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.content-card-compact .content-card-image { aspect-ratio: 4/3; }
.content-card-compact .content-card-body h3 { font-size: 1.55rem; }
.content-type { color: #a87526; font-size: .65rem; font-weight: 680; text-transform: uppercase; letter-spacing: .12em; }

.content-card-lead { grid-row: 1 / 3; padding: 0 21px 0 0; }
.content-type-overline { display: block; margin: 0 0 7px; }
.content-card-lead .content-card-image { aspect-ratio: 1.62; margin: 0 0 25px; }
.content-card-lead .content-card-body h3 { max-width: 760px; font-size: clamp(2rem, 2.75vw, 2.78rem); line-height: 1.05; }
.content-card-lead .content-card-body p { max-width: 720px; }
.content-card-rail { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 0 0 28px 20px; border-left: 1px solid var(--rule); }
.content-card + .content-card.content-card-rail { padding-left: 17px; }
.content-card-rail + .content-card-rail { padding-top: 28px; border-top: 1px solid var(--rule); }
.content-card-rail .content-card-image { width: 100%; min-width: 0; align-self: start; aspect-ratio: .58; min-height: 0; margin: 23px 0 0; }
.content-card-rail + .content-card-rail .content-card-image { margin-top: 0; }
.content-card-rail .content-card-body { min-width: 0; align-self: center; }
.content-card-rail .content-card-body h3 { margin-top: 9px; font-size: clamp(1.25rem, 1.55vw, 1.58rem); line-height: 1.08; }
.content-card-rail .content-card-body p { margin-bottom: 16px; font-size: .86rem; -webkit-line-clamp: 3; }
.content-card-rail .text-link svg, .publication-rows b svg:last-child, .section-heading > a svg, .research-index svg, .program-index > div > a svg, .event-row .text-link svg { transition: transform .2s ease; }
.content-card-rail .text-link:hover svg, .publication-rows a:hover b svg:last-child, .section-heading > a:hover svg, .event-row .text-link:hover svg { transform: translateX(4px); }

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImageIn {
  from { opacity: .55; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1.006); }
}

.motion-ready [data-reveal].reveal-pending > .container { opacity: 0; transform: translateY(22px); }
.motion-ready [data-reveal].reveal-pending.is-visible > .container { opacity: 1; transform: translateY(0); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.72,.2,1); }

.publications-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(42px, 5vw, 74px); align-items: stretch; }
.publication-feature { display: grid; grid-template-columns: minmax(190px, 235px) minmax(0, 1fr); gap: clamp(30px, 3.5vw, 52px); align-items: center; padding-right: clamp(36px, 4vw, 62px); border-right: 1px solid var(--rule); }
.publication-cover { position: relative; width: 100%; aspect-ratio: .72; padding: 10px; box-shadow: 0 24px 38px rgba(23,34,44,.18); background: #e9e2d6; border: 1px solid #d3c9ba; transition: transform .35s ease, box-shadow .35s ease; }
.publication-feature:hover .publication-cover { transform: translateY(-3px); box-shadow: 0 28px 44px rgba(23,34,44,.22); }
.publication-cover img { object-fit: contain; padding: 10px; }
.publication-summary h3 { margin: 12px 0 14px; font-family: var(--font-display); color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; line-height: 1.05; }
.publication-summary p { max-width: 630px; color: var(--muted); font-size: 1.02rem; }
.publication-rows { border-top: 1px solid var(--rule); }
.publication-rows a { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 22px; align-content: center; min-height: 50%; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.publication-rows a > svg { grid-row: 1 / 3; align-self: center; width: 38px; height: 38px; stroke-width: 1.25; color: var(--navy); }
.publication-rows span { grid-column: 2; color: #9a722f; text-transform: uppercase; font-size: .69rem; letter-spacing: .1em; }
.publication-rows strong { grid-column: 2; margin-top: 7px; font-family: var(--font-display); color: var(--navy); font-size: clamp(1.15rem, 1.55vw, 1.45rem); line-height: 1.22; font-weight: 500; }
.publication-rows b { grid-column: 3; grid-row: 1 / 3; align-self: center; display: flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--navy); font-size: .78rem; }
.publication-rows b svg:first-child { color: var(--gold); }
.publication-rows a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.research-section { border-top: 1px solid var(--rule); }
.research-program-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 4vw, 62px); align-items: stretch; }
.research-index { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 26px; border-top: 1px solid var(--rule); }
.research-index a { min-height: 91px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 0 10px 0 0; border-bottom: 1px solid var(--rule); }
.research-index a:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
.research-index span { color: var(--gold); font-family: var(--font-display); font-size: 1.55rem; }
.research-index strong { font-family: var(--font-display); color: var(--navy); font-size: 1.13rem; font-weight: 500; line-height: 1.22; }
.research-index svg { color: var(--gold); transition: transform .2s; }
.research-index a:hover { background: white; }
.research-index a:hover svg { transform: translateX(5px); }
.program-index { padding: 0 0 0 clamp(32px, 3vw, 48px); border-left: 1px solid var(--rule); }
.program-index-heading { min-height: 91px; padding-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 26px; border-bottom: 1px solid var(--rule); }
.program-index h3 { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.program-index-heading p { max-width: 275px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.program-index > div:last-child { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 24px; }
.program-index > div > a { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; color: var(--navy); font-family: var(--font-display); font-size: .98rem; line-height: 1.15; }
.program-index > div > a > span { grid-column: 1 / -1; position: relative; aspect-ratio: .94; overflow: hidden; background: #d8d4ca; }
.program-index > div > a img { object-fit: cover; filter: grayscale(.72) contrast(1.08); transition: transform .3s ease, filter .3s ease; }
.program-index > div > a strong { min-width: 0; font-weight: 500; }
.program-index > div > a svg { color: var(--gold); transition: transform .18s ease; }
.program-index > div > a:hover img { transform: scale(1.025); filter: grayscale(.2) contrast(1.04); }
.program-index > div > a:hover svg { transform: translateX(4px); }

.memory-section { position: relative; background: var(--navy-dark) url('/uploads/legacy/5-b152b7e4d1f6.jpg') center 38%/cover no-repeat; color: white; }
.memory-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,28,50,.98), rgba(6,28,50,.88) 56%, rgba(6,28,50,.74)); }
.memory-inner { position: relative; padding: 96px 0 76px; }
.memory-intro { max-width: 720px; }
.memory-intro h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 500; }
.memory-intro h2::after { content: ""; display: block; width: 48px; height: 1px; background: var(--gold); margin: 18px 0 22px; }
.memory-intro p { color: #dbe4ec; font-size: 1.02rem; }
.memory-paths { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border-top: 1px solid rgba(213,185,117,.5); }
.memory-paths a { min-height: 190px; padding: 30px 30px 20px 0; display: grid; align-content: start; border-right: 1px solid rgba(213,185,117,.4); }
.memory-paths a + a { padding-left: 30px; }
.memory-paths span { color: var(--gold-light); font-size: .76rem; }
.memory-paths strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin-top: 24px; }
.memory-paths small { color: #cbd6df; margin-top: 8px; line-height: 1.5; }
.memory-paths a:hover strong { color: var(--gold-light); }
.memory-latest { margin-top: 25px; color: #bccbd7; font-size: .86rem; }
.memory-latest a { color: white; text-decoration: underline; text-underline-offset: 3px; }

.event-list { border-top: 1px solid var(--rule); }
.event-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.event-number { font-family: var(--font-display); color: var(--gold); font-size: 2.65rem; border-right: 1px solid var(--rule); }
.event-row h3 { margin: 5px 0 2px; font-family: var(--font-display); color: var(--navy); font-size: 1.5rem; font-weight: 500; }
.event-row p { margin: 0; color: var(--muted); font-size: .9rem; }

.media-section { background: var(--navy); color: white; padding: 92px 0; }
.media-feature { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; border-top: 1px solid rgba(213,185,117,.45); padding-top: 30px; }
.media-image { min-height: 430px; position: relative; overflow: hidden; border: 1px solid rgba(213,185,117,.35); }
.media-image::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(213,185,117,.22); pointer-events: none; }
.media-image img { object-fit: cover; filter: grayscale(.28) saturate(.72) contrast(1.06) brightness(.86); transition: transform .5s ease, filter .5s ease; }
.media-image:hover img { transform: scale(1.018); filter: grayscale(0) saturate(.86) contrast(1.04) brightness(.9); }
.play-control { position: absolute; left: 40px; bottom: 36px; width: 62px; height: 62px; border: 1px solid var(--gold-light); border-radius: 50%; display: grid; place-items: center; color: white; background: rgba(6,28,50,.65); }
.media-copy { padding: 30px 0 30px 58px; }
.media-copy h3 { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.1; font-weight: 500; margin: 12px 0; }
.media-copy p { color: #cbd6df; }

.newsletter-section { padding: 58px 0; border-bottom: 1px solid var(--rule); }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.newsletter-grid h2 { font-size: clamp(2rem, 3.2vw, 3rem); padding-right: 52px; border-right: 1px solid var(--rule); }
.newsletter-grid h3 { font-size: 1.75rem; margin-bottom: 16px; }
.newsletter-controls { display: flex; }
.newsletter-controls input { flex: 1; min-width: 0; border: 1px solid var(--rule); background: white; padding: 12px 14px; }
.consent-row { margin-top: 10px; display: flex; gap: 8px; color: var(--muted); font-size: .72rem; }
.form-error { color: var(--danger); font-size: .84rem; font-weight: 650; }
.form-success { color: var(--success); font-size: .84rem; font-weight: 650; }

.site-footer { background: var(--navy-dark); color: #dce5ed; padding: 68px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 42px; }
.footer-brand .esam-wordmark { margin-bottom: 6px; }
.footer-brand p { color: #bfcbd6; font-size: .8rem; margin: 18px 0; }
.footer-brand a:hover, .footer-column a:hover { color: white; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(213,185,117,.45); border-radius: 50%; color: var(--gold-light); }
.footer-column { display: grid; align-content: start; gap: 11px; }
.footer-column h2 { color: var(--gold-light); font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; margin: 0 0 10px; }
.footer-column a { color: #bfcbd6; font-size: .78rem; }
.footer-bottom { border-top: 1px solid rgba(213,185,117,.42); margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; color: #93a3b1; font-size: .7rem; }

.page-hero { background: var(--navy-dark); color: white; padding: 78px 0; border-bottom: 1px solid var(--gold); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 500; line-height: 1; margin: 0; }
.page-hero p { max-width: 760px; color: #d6e0e8; font-size: 1.05rem; margin: 22px 0 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.archive-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .76rem; }
.archive-toolbar a { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-weight: 700; }
.archive-grid .content-card { padding: 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.archive-grid .content-card + .content-card { border-left: 0; }
.archive-grid .content-card-image { margin: -28px -28px 24px; }
.public-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.public-pagination a, .public-pagination span { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; color: var(--navy); border: 1px solid var(--rule); background: white; font-size: .78rem; }
.public-pagination a:hover { color: #7c5923; border-color: var(--gold); }
.results-heading { margin-bottom: 36px; }
.results-heading h2 { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.results-heading p { margin: 8px 0 0; color: var(--muted); }
.empty-state { border: 1px solid var(--rule); padding: 50px; text-align: center; }
.empty-state h2 { font-family: var(--font-display); color: var(--navy); }
.download-library { padding-top: 0; }
.download-library h2 { font-family: var(--font-display); color: var(--navy); font-size: 2.3rem; font-weight: 500; }
.download-rows { border-top: 1px solid var(--rule); }
.download-rows a { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); color: var(--navy); }
.download-rows span { display: grid; }
.download-rows small { color: var(--muted); }
.research-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.research-page-grid > a { padding: 32px; min-height: 280px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.research-page-grid span { color: var(--gold); font-size: .76rem; }
.research-page-grid h2 { color: var(--navy); font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; line-height: 1.15; margin: 30px 0 10px; }
.research-page-grid p { color: var(--muted); font-size: .9rem; }
.research-page-grid small { color: #8a6a37; font-size: .72rem; line-height: 1.5; }
.research-page-grid b { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: .8rem; }
.research-map-section .section-heading { align-items: end; }
.research-map-section .section-heading > p { max-width: 520px; margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.directorates-band { padding: 78px 0; color: white; background: var(--navy); }
.directorates-band > .container { display: grid; grid-template-columns: minmax(240px, .62fr) 1.38fr; gap: 72px; }
.directorates-band h2 { margin: 0; font-family: var(--font-display); font-size: 2.8rem; font-weight: 500; }
.directorates-band p { color: #c5d1db; font-size: .9rem; }
.directorate-links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(213,185,117,.38); border-left: 1px solid rgba(213,185,117,.38); }
.directorate-links a { min-height: 86px; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 16px; border-right: 1px solid rgba(213,185,117,.38); border-bottom: 1px solid rgba(213,185,117,.38); font-family: var(--font-display); font-size: 1rem; line-height: 1.2; }
.directorate-links span, .directorate-links svg { color: var(--gold-light); }
.directorate-links a:hover { background: rgba(255,255,255,.05); }
.programs-band { padding: 70px 0; background: var(--paper); }
.programs-band h2 { color: var(--navy); font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; }
.programs-band > div > div { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
.programs-band a { display: flex; justify-content: space-between; align-items: center; padding: 22px 10px 22px 0; border-bottom: 1px solid var(--rule); color: var(--navy); font-family: var(--font-display); font-size: 1.35rem; }
.programs-band a:nth-child(odd) { margin-right: 30px; }
.search-hero p { max-width: 720px; margin: 12px 0 0; color: #ccd8e2; }
.search-filter-form { max-width: 980px; display: grid; grid-template-columns: minmax(300px, 1fr) 210px auto; gap: 8px; margin-top: 32px; }
.search-filter-form label { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #697883; background: white; }
.search-filter-form input { flex: 1; min-width: 0; min-height: 52px; border: 0; outline: 0; padding: 0; color: var(--ink); }
.search-filter-form select { min-height: 54px; padding: 0 14px; color: var(--ink); border: 0; background: white; }

.detail-page { background: var(--paper-light); }
.detail-hero { overflow: hidden; color: white; background: var(--navy-dark); border-bottom: 1px solid var(--gold); }
.detail-breadcrumb { min-height: 48px; display: flex; align-items: center; gap: 10px; color: #c9d5df; border-bottom: 1px solid rgba(224,180,95,.28); font-size: .72rem; font-weight: 540; }
.detail-breadcrumb a { transition: color .18s ease; }
.detail-breadcrumb a:hover { color: white; }
.detail-breadcrumb span { color: var(--gold-light); }
.detail-header-grid { min-height: 306px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 380px); gap: clamp(42px, 6vw, 84px); align-items: center; padding: 30px 0 36px; }
.detail-header-grid-no-cover { min-height: 280px; grid-template-columns: minmax(0, 1020px); padding-block: 42px; }
.detail-header-copy { min-width: 0; padding-left: clamp(18px, 2vw, 28px); border-left: 1px solid rgba(224,180,95,.72); }
.detail-header-copy > .content-type { color: var(--gold-light); }
.detail-header-copy h1 { max-width: 900px; margin: 13px 0 18px; color: white; font-family: var(--font-display); font-size: clamp(3rem, 4.8vw, 5.2rem); font-weight: 500; line-height: .98; letter-spacing: -.032em; text-wrap: balance; font-variation-settings: "opsz" 70; }
.detail-header-copy > p { max-width: 740px; margin: 0; color: #e1e9ef; font-family: var(--font-display); font-size: clamp(1.04rem, 1.35vw, 1.24rem); line-height: 1.48; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 24px; color: #d0dce5; font-size: .72rem; font-weight: 570; }
.detail-meta span { display: inline-flex; align-items: center; }
.detail-meta span + span::before { content: ""; width: 3px; height: 3px; margin: 0 12px; border-radius: 50%; background: var(--gold); }
.detail-cover { width: 100%; max-width: 410px; aspect-ratio: 4/3; position: relative; justify-self: end; overflow: hidden; margin: 0; background: #ded8cd; border: 1px solid rgba(224,180,95,.72); box-shadow: 14px 16px 0 rgba(255,255,255,.045); }
.detail-cover::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(9,38,66,.1); pointer-events: none; }
.detail-cover img { object-fit: cover; object-position: center; }
.detail-cover-publication { background: #e8e2d8; }
.detail-cover-publication img { object-fit: contain; padding: 8%; }
.detail-cover-person { aspect-ratio: 4/5; max-width: 420px; }
.detail-cover-page { max-width: 360px; aspect-ratio: 16/10; background: white; }
.detail-cover-page img { object-fit: contain; padding: 8%; }
.detail-reading-section { background: var(--paper-light); }
.detail-content-grid { display: grid; grid-template-columns: 250px minmax(0, 820px); justify-content: center; gap: clamp(54px, 6vw, 88px); padding-top: clamp(48px, 5vw, 68px); padding-bottom: clamp(78px, 9vw, 124px); }
.detail-sidebar { min-width: 0; }
.detail-sidebar-inner { position: sticky; top: 28px; display: grid; align-content: start; gap: 0; border-top: 1px solid var(--gold); }
.detail-back-link { min-height: 58px; display: flex; align-items: center; gap: 10px; color: var(--navy); border-bottom: 1px solid var(--rule); font-size: .76rem; font-weight: 680; }
.detail-back-link svg { flex: 0 0 auto; transform: rotate(180deg); transition: transform .18s ease; }
.detail-back-link:hover { color: #805d25; }
.detail-back-link:hover svg { transform: rotate(180deg) translateX(3px); }
.detail-facts { margin: 0; }
.detail-facts > div { display: grid; gap: 3px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.detail-facts dt { color: #52616d; font-size: .61rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.detail-facts dd { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: 1.04rem; font-weight: 560; line-height: 1.25; overflow-wrap: anywhere; }
.detail-primary-action { min-height: 56px; display: flex; align-items: center; gap: 11px; margin-top: 20px; padding: 0 16px; color: white; background: var(--navy); font-size: .75rem; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.detail-primary-action:hover { background: var(--navy-mid); transform: translateY(-1px); }
.detail-article-column { min-width: 0; }
.rich-content { color: #243a4d; font-family: var(--font-sans); font-size: clamp(1rem, 1.08vw, 1.08rem); line-height: 1.82; }
.rich-content > :first-child { margin-top: 0; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 1.42em; }
.rich-content h2, .rich-content h3, .rich-content h4 { color: var(--navy); font-family: var(--font-display); line-height: 1.13; font-weight: 560; letter-spacing: -.018em; }
.rich-content h2 { margin: 0 0 .72em; padding-bottom: .5em; border-bottom: 1px solid var(--rule); font-size: clamp(2.15rem, 3vw, 2.8rem); }
.rich-content h3 { margin: 1.8em 0 .55em; font-size: clamp(1.55rem, 2.2vw, 2rem); }
.rich-content .detail-document-heading { margin: 2.15em 0 .72em; padding-left: 15px; color: var(--navy); border-left: 2px solid var(--gold); font-size: clamp(1.35rem, 1.8vw, 1.72rem); }
.rich-content .detail-article-clause { margin: 1.1em 0 1.15em; padding: 14px 18px; color: #253b4e; border-left: 2px solid var(--gold); background: var(--paper); font-weight: 480; line-height: 1.68; }
.rich-content .detail-article-clause strong { margin-right: 5px; color: #795116; font-size: .82em; font-weight: 780; letter-spacing: .035em; }
.rich-content .detail-article-list-item { position: relative; margin: 0 0 1.05em; padding: 0 0 1.05em 24px; border-bottom: 1px solid rgba(203,191,173,.6); }
.rich-content .detail-article-list-item::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--gold); }
.rich-content ul, .rich-content ol { padding-left: 1.25em; margin: 0 0 1.5em; }
.rich-content li { padding-left: .25em; margin-bottom: .45em; }
.rich-content blockquote { margin: 2em 0; padding: 5px 0 5px 28px; color: var(--navy); border-left: 2px solid var(--gold); font-size: 1.28em; line-height: 1.5; }
.rich-content hr { height: 1px; margin: 48px 0; border: 0; background: var(--rule); }
.rich-content img { display: block; width: auto; max-width: 100%; height: auto; margin: 34px auto; border: 1px solid var(--rule); }
.rich-content a { color: #7b591f; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rich-content table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: .88rem; }
.rich-content th, .rich-content td { padding: 11px; border: 1px solid var(--rule); text-align: left; }
.detail-summary-body { margin: 0; color: #21384f; font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.62; }
.detail-summary-body::first-letter { color: var(--navy); font-size: 1.28em; }
.detail-empty-note { margin: 0; padding: 28px 30px; color: #536171; border-left: 2px solid var(--gold); background: var(--paper); font-family: var(--font-display); font-size: 1.16rem; }
.detail-legacy-facts { display: grid; margin: 0; border-top: 1px solid var(--rule); }
.detail-legacy-facts > div { display: grid; grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr); gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--rule); }
.detail-legacy-facts dt { color: #7f6337; font-family: var(--font-sans); font-size: .67rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.detail-legacy-facts dd { margin: 0; color: var(--navy); font-size: 1.08rem; line-height: 1.35; }
.detail-plain-content > p:first-of-type { margin-top: 0; }
.content-attachments { margin-top: 58px; padding-top: 34px; border-top: 1px solid var(--rule); }
.content-attachments > header { display: flex; align-items: baseline; gap: 13px; margin-bottom: 25px; }
.content-attachments > header > span { color: var(--gold); font-family: var(--font-display); font-size: 1.15rem; }
.content-attachments > header h2 { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 500; }
.content-attachments > div { display: grid; gap: 15px; }
.content-attachments article { min-width: 0; }
.content-attachments img, .content-attachments video { display: block; width: 100%; height: auto; background: #e5e2dc; }
.content-attachments audio { width: 100%; }
.content-attachments article > p { margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
.detail-document-link { min-height: 66px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 15px; color: var(--navy); border: 1px solid var(--rule); background: var(--paper); transition: border-color .2s ease, background .2s ease; }
.detail-document-link:hover { border-color: var(--gold); background: white; }
.detail-document-link > span { min-width: 0; display: grid; }
.detail-document-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.detail-document-link small { color: var(--muted); font-size: .64rem; }
.content-attachments-gallery > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.content-attachments-gallery img { aspect-ratio: 4/3; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.content-attachments-gallery article > a { display: block; overflow: hidden; }
.content-attachments-gallery article > a:hover img { transform: scale(1.022); filter: contrast(1.04); }
.detail-related-section { padding: clamp(64px, 7vw, 100px) 0; background: var(--paper); border-top: 1px solid var(--rule); }
.detail-related-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.detail-related-heading > div > span { color: #986c28; font-size: .64rem; font-weight: 700; letter-spacing: .11em; }
.detail-related-heading h2 { margin: 4px 0 0; color: var(--navy); font-family: var(--font-display); font-size: clamp(2.35rem, 3.8vw, 3.4rem); font-weight: 430; line-height: 1; letter-spacing: -.025em; }
.detail-related-heading > a { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 7px; color: var(--navy); border-bottom: 1px solid rgba(193,138,50,.65); font-size: .75rem; font-weight: 650; }
.detail-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.detail-related-card { min-width: 0; display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 20px; padding: 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.detail-related-media { min-height: 170px; position: relative; overflow: hidden; background: #ded9cf; }
.detail-related-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .45s ease; }
.detail-related-card:hover .detail-related-media img { transform: scale(1.025); }
.detail-related-media-empty { display: grid; place-items: center; color: rgba(9,38,66,.32); background: rgba(9,38,66,.055); font-family: var(--font-display); font-size: 3rem; }
.detail-related-card > div { min-width: 0; align-self: center; }
.detail-related-card h3 { margin: 8px 0 10px; color: var(--navy); font-family: var(--font-display); font-size: clamp(1.25rem, 1.65vw, 1.65rem); font-weight: 500; line-height: 1.12; }
.detail-related-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.detail-related-card p { display: -webkit-box; margin: 0 0 15px; overflow: hidden; color: var(--muted); font-size: .75rem; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.detail-related-card .text-link { font-size: .7rem; }
.legal-page { max-width: 840px; }
.legal-page h2 { margin: 36px 0 10px; color: var(--navy); font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p { color: #4e5963; font-size: 1rem; }
.legal-page a { color: #7b591f; text-decoration: underline; text-underline-offset: 3px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .85fr) 1.15fr; background: var(--paper-light); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 7vw, 100px); }
.auth-panel > a { width: fit-content; }
.auth-panel h1 { margin: 42px 0 4px; font-family: var(--font-display); color: var(--navy); font-size: 3rem; font-weight: 500; }
.auth-panel > p { color: var(--muted); margin-top: 0; }
.auth-form { display: grid; gap: 9px; margin: 30px 0; }
.auth-form label, .editor-form label { color: var(--navy); font-size: .78rem; font-weight: 700; }
.auth-form input, .editor-form input, .editor-form textarea, .editor-form select, .upload-form input { width: 100%; border: 1px solid #cbd0d4; background: white; padding: 11px 12px; color: var(--ink); }
.auth-form .button { margin-top: 12px; }
.auth-art { background: var(--navy-dark) url('/uploads/legacy/20-b1bde47ba636.jpg') center/cover no-repeat; color: white; position: relative; display: flex; align-items: flex-end; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: rgba(6,28,50,.78); }
.auth-art > div { position: relative; max-width: 700px; padding: clamp(44px, 8vw, 110px); }
.auth-art span { color: var(--gold-light); letter-spacing: .22em; }
.auth-art h2 { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1; font-weight: 500; margin: 20px 0; }
.auth-art p { color: #d5dfe7; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 268px 1fr; background: #e8edf1; color: #17232e; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy-dark); color: white; display: flex; flex-direction: column; padding: 28px 20px; }
.admin-brand { display: grid; padding: 0 12px 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-brand strong { font-family: var(--font-display); font-size: 2rem; }
.admin-brand span { color: #c3d1dc; font-size: .72rem; font-weight: 650; letter-spacing: .08em; }
.admin-sidebar nav { display: grid; gap: 3px; margin-top: 18px; overflow-y: auto; padding-right: 4px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: #e0e9f0; font-size: .8rem; font-weight: 520; }
.admin-sidebar nav a:hover { color: white; background: rgba(255,255,255,.105); }
.admin-nav-section { padding: 13px 12px 4px; color: #a7bac8; font-size: .58rem; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.admin-user { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 22px 12px 0; display: grid; }
.admin-user strong { font-size: .82rem; }
.admin-user span { color: #bdcbd6; font-size: .68rem; overflow: hidden; text-overflow: ellipsis; }
.admin-user button { margin-top: 13px; padding: 0; color: #e0e9f0; border: 0; background: none; display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: .76rem; }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 32px; background: white; border-bottom: 1px solid #cbd4da; box-shadow: 0 3px 14px rgba(3,26,47,.04); }
.admin-topbar form { width: min(520px, 52vw); display: flex; align-items: center; gap: 9px; }
.admin-topbar form svg { color: #4f606d; }
.admin-topbar input { width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-bottom: 1px solid #c7d1d8; color: var(--ink); background: transparent; font-size: .78rem; font-weight: 500; }
.admin-topbar input:focus { border-color: var(--gold); outline: 0; }
.admin-topbar a { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.admin-page { padding: 34px; max-width: 1480px; margin: 0 auto; }
.admin-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-page-heading span { color: #895e1c; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 780; }
.admin-page-heading h1 { color: var(--navy); font-family: var(--font-display); font-size: 2.55rem; font-weight: 500; margin: 2px 0; }
.admin-page-heading p { color: #44535f; font-size: .82rem; font-weight: 470; margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.metric-card { min-height: 145px; display: grid; grid-template-columns: 1fr auto; align-content: space-between; padding: 22px; background: #fff; border: 1px solid #cbd4da; box-shadow: 0 7px 20px rgba(3,26,47,.055); }
.metric-card svg { color: #9a681d; }
.metric-card span { color: #42515d; font-size: .75rem; font-weight: 580; }
.metric-card strong { grid-column: 1 / -1; font-family: var(--font-display); color: var(--navy); font-size: 2.5rem; line-height: 1; }
.metric-card small { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; color: #566570; font-size: .66rem; font-weight: 500; }
.metric-card-success { border-top: 2px solid #34795c; }
.metric-card-review { border-top: 2px solid #c3932f; }
.metric-card-scheduled { border-top: 2px solid #4c76a1; }
.admin-dashboard-heading { margin-bottom: 24px; }
.admin-dashboard-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.admin-dashboard-layout > * { min-width: 0; }
.admin-dashboard-main { min-width: 0; }
.metric-grid-editorial { gap: 12px; }
.metric-grid-editorial .metric-card { min-height: 132px; }
.admin-editorial-table { margin-top: 0; }
.admin-editorial-table table { min-width: 850px; }
.admin-dashboard-lower { display: grid; grid-template-columns: minmax(250px, .72fr) 1.28fr; gap: 22px; }
.admin-list-rows { display: grid; }
.admin-list-rows a { min-height: 47px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid #d7dee3; color: #283844; font-size: .75rem; font-weight: 500; }
.admin-list-rows a:last-child { border-bottom: 0; }
.admin-list-rows strong { color: var(--navy); font-family: var(--font-display); font-size: 1rem; }
.admin-list-rows svg { color: #a27a38; }
.activity-list { display: grid; }
.activity-list > div { min-height: 58px; display: grid; grid-template-columns: 30px 1fr auto; gap: 11px; align-items: center; padding: 8px 18px; border-bottom: 1px solid #e6e9eb; }
.activity-list > div:last-child { border-bottom: 0; }
.activity-avatar { width: 30px; height: 30px; display: grid; place-items: center; color: var(--gold-light); background: var(--navy-dark); border-radius: 50%; font-size: .62rem; font-weight: 750; }
.activity-list p { min-width: 0; margin: 0; display: grid; }
.activity-list p strong { overflow: hidden; color: var(--navy); font-family: var(--font-display); font-size: .84rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.activity-list p small, .activity-list time { color: #586773; font-size: .62rem; font-weight: 500; }
.admin-schedule-rail { min-height: 560px; padding: 20px; background: #f8f4eb; border: 1px solid #cfc4b4; box-shadow: 0 7px 20px rgba(3,26,47,.045); }
.admin-schedule-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid #cfc4b4; }
.admin-schedule-heading h2 { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.admin-schedule-heading a { display: inline-flex; align-items: center; gap: 5px; color: #80602d; font-size: .66rem; }
.schedule-list { display: grid; }
.schedule-list article { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid #cfc4b4; }
.schedule-list time { color: var(--navy); font-family: var(--font-display); font-size: .82rem; line-height: 1.25; }
.schedule-list article > div { padding-left: 14px; border-left: 1px solid #cfc4b4; }
.schedule-list span { color: #895d1d; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.schedule-list h3 { margin: 5px 0; color: var(--navy); font-family: var(--font-display); font-size: .98rem; font-weight: 500; line-height: 1.25; }
.schedule-list small { color: #53626e; font-size: .63rem; font-weight: 500; }
.schedule-empty { min-height: 430px; display: grid; place-items: center; align-content: center; text-align: center; color: #71808a; }
.schedule-empty svg { color: var(--gold); }
.schedule-empty h3 { margin: 14px 0 3px; color: var(--navy); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.schedule-empty p { max-width: 220px; margin: 0 0 15px; font-size: .72rem; }
.schedule-empty a { display: inline-flex; align-items: center; gap: 6px; color: #80602d; font-size: .7rem; font-weight: 700; }
.admin-panel { background: white; border: 1px solid #cbd4da; margin-top: 22px; box-shadow: 0 7px 20px rgba(3,26,47,.045); }
.panel-heading { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #d4dce1; }
.panel-heading h2 { color: var(--navy); font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin: 0; }
.panel-heading a { font-size: .76rem; color: #7d5518; font-weight: 650; }
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.admin-table-wrap th { padding: 12px 18px; text-align: left; color: #40505c; background: #edf2f5; font-size: .68rem; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.admin-table-wrap td { padding: 15px 18px; color: #293844; border-top: 1px solid #d7dee3; vertical-align: middle; }
.admin-table-wrap td strong { display: block; color: var(--navy); max-width: 580px; }
.admin-table-wrap td small { display: block; color: #566570; max-width: 460px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-table-wrap td > a { color: #775015; font-weight: 720; }
.status { display: inline-flex; padding: 4px 8px; background: #e3e9ed; color: #364753; font-size: .65rem; font-weight: 720; text-transform: uppercase; letter-spacing: .06em; }
.status-published { background: #d8eee4; color: #165b40; }
.status-clearance-approved { background: #d8eee4; color: #165b40; }
.status-clearance-pending { background: #f8e9bd; color: #6f4d09; }
.status-clearance-rejected { background: #f6dddd; color: #8a2d2d; }
.status-draft { background: #eee4d1; color: #684811; }
.status-review { background: #f8e9bd; color: #6f4d09; }
.status-scheduled { background: #d8e6f4; color: #1e568a; }
.status-archived { background: #e1e5e8; color: #46545f; }
.admin-filter-bar { display: grid; grid-template-columns: minmax(240px, 1fr) 170px 160px 100px auto auto; gap: 10px; align-items: center; padding: 14px; background: white; border: 1px solid #dfe3e6; }
.admin-filter-bar label { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid #d6dce0; }
.admin-filter-bar label svg { color: #7d8992; }
.admin-filter-bar input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: .76rem; }
.admin-filter-bar select { min-height: 40px; padding: 0 10px; color: #3c4852; border: 1px solid #d6dce0; background: white; font-size: .74rem; }
.admin-filter-bar .button { min-height: 40px; padding-inline: 14px; font-size: .74rem; }
.admin-filter-bar > a { color: #80602d; font-size: .72rem; text-align: center; }
.audit-filter-bar { grid-template-columns: minmax(230px, 1fr) repeat(3, minmax(130px, .55fr)) repeat(2, minmax(135px, .55fr)) auto auto; }
.audit-filter-bar > input { min-height: 40px; padding: 0 10px; color: #3c4852; border: 1px solid #d6dce0; background: white; font-size: .74rem; }
.compact-filter-bar { grid-template-columns: 220px auto auto; justify-content: start; }
.operations-filter-bar { grid-template-columns: minmax(180px, 280px) minmax(180px, 260px) auto auto; justify-content: start; }
.admin-export-form { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.admin-export-form input[type="hidden"] { display: none; }
.admin-export-form .button { min-height: 40px; padding-inline: 15px; font-size: .74rem; }
.admin-export-form small { color: #687680; font-size: .68rem; }
.audit-action { display: inline-flex; padding: 5px 8px; color: #27445c; background: #e9f0f5; border: 1px solid #cedbe5; font-size: .67rem; font-weight: 700; }
.audit-details summary { color: #815e25; cursor: pointer; font-size: .72rem; font-weight: 700; }
.audit-details pre { max-width: 460px; max-height: 230px; overflow: auto; margin: 10px 0 0; padding: 12px; color: #d7e1e9; background: #09243b; font-size: .68rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.integrity { display: inline-flex; padding: 4px 7px; border: 1px solid #ccd5dc; font-size: .62rem; font-weight: 750; }
.integrity-valid { color: #276246; border-color: #a8ceb9; background: #edf8f2; }
.integrity-invalid { color: #8f3733; border-color: #d8aaa7; background: #fbefee; }
.integrity-legacy { color: #6c7780; background: #f3f5f6; }
.text-button { padding: 0; color: #815e25; border: 0; background: none; cursor: pointer; font-size: .72rem; font-weight: 700; }
.operations-form { max-width: 850px; }
.operations-form > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #e4e7e9; }
.operations-form > header h2 { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.operations-form > header span { color: #78858f; font-size: .7rem; }
.operations-form footer { display: flex; justify-content: flex-end; padding: 18px 22px; border-top: 1px solid #e4e7e9; }
.operations-form select { min-height: 44px; padding: 0 12px; color: var(--ink); border: 1px solid #ccd4d9; background: white; }
.settings-form-grid .check-row { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.settings-form-grid .check-row input { width: 18px; height: 18px; }
.settings-form-grid.single-column { grid-template-columns: 1fr; }
.submission-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 22px; align-items: start; }
.submission-data { margin-top: 0; }
.submission-data dl { margin: 0; }
.submission-data dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 22px; border-bottom: 1px solid #e6e9eb; }
.submission-data dt { color: #798690; font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.submission-data dd { margin: 0; color: #263744; font-size: .82rem; word-break: break-word; }
.submission-data dd a { color: #815e25; text-decoration: underline; }
.submission-message { white-space: normal; line-height: 1.65; }
.form-page-hero { min-height: 340px; display: flex; align-items: end; }
.public-form-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); gap: clamp(40px, 8vw, 110px); align-items: start; }
.public-form-intro > span { color: #906b31; font-size: .7rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.public-form-intro > h2 { color: var(--navy); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 500; line-height: 1.08; }
.public-form-intro > p { color: #5f6c76; line-height: 1.75; }
.public-contact-form { display: grid; gap: 15px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--rule); background: var(--paper-light); box-shadow: 0 25px 60px rgba(6, 30, 51, .08); }
.public-contact-form > label { display: grid; gap: 7px; color: var(--navy); font-size: .75rem; font-weight: 720; }
.public-contact-form label small { color: #7b8790; font-weight: 450; }
.public-contact-form input, .public-contact-form textarea { width: 100%; padding: 12px 13px; color: var(--ink); border: 1px solid #cbd1d5; background: white; resize: vertical; }
.public-contact-form input:focus, .public-contact-form textarea:focus { border-color: #98723a; outline: 2px solid rgba(193,138,50,.13); }
.public-contact-form .public-consent { display: flex; grid-template-columns: none; align-items: flex-start; gap: 9px; font-weight: 480; line-height: 1.5; }
.public-contact-form .public-consent input { width: 18px; height: 18px; margin-top: 2px; }
.public-consent a { color: #75531f; text-decoration: underline; }
.public-contact-form .button { justify-self: start; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.admin-pagination a, .admin-pagination span { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #d5dce0; background: white; color: var(--navy); font-size: .74rem; }
.admin-pagination a:hover { border-color: #9d773d; color: #7b5922; }
.table-actions { display: flex; gap: 12px; justify-content: flex-end; }
.table-actions form { display: inline; }
.table-actions button { border: 0; background: none; color: #973e39; cursor: pointer; font-size: inherit; padding: 0; }
.editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.editor-main-column, .editor-side-column { background: white; border: 1px solid #dfe3e6; padding: 24px; display: grid; gap: 9px; }
.editor-side-column { position: sticky; top: 84px; }
.editor-form input, .editor-form textarea, .editor-form select { margin-bottom: 10px; font-size: .86rem; }
.editor-form textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.55; }
.editor-help { margin: -4px 0 12px; color: #75818a; font-size: .68rem; line-height: 1.5; }
.editor-section { display: grid; gap: 9px; margin-top: 12px; padding-top: 24px; border-top: 1px solid #e1e5e8; }
.editor-section-heading { margin-bottom: 10px; }
.editor-section-heading span { color: #99743a; font-size: .64rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.editor-section-heading h2 { margin: 2px 0 0; color: var(--navy); font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.editor-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.editor-field-grid label { display: grid; gap: 7px; }
.checkbox-row { display: flex !important; align-items: center; gap: 9px; margin: 8px 0 14px; }
.checkbox-row input { width: auto; margin: 0; }
.upload-form { background: white; border: 1px dashed #aeb8bf; padding: 28px; display: grid; grid-template-columns: auto 1fr minmax(210px, 320px) minmax(180px, 260px) auto; gap: 18px; align-items: center; }
.upload-form > svg { color: var(--gold); }
.upload-form p { margin: 2px 0; color: #7a858d; font-size: .72rem; }
.admin-empty { padding: 30px; color: #6d7881; }
.navigation-editor { display: grid; gap: 20px; }
.navigation-editor-toolbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px; background: white; border: 1px solid #dfe3e6; }
.navigation-editor-toolbar p { margin: 0; color: #68747d; font-size: .8rem; }
.navigation-editor-toolbar > div { display: flex; gap: 9px; }
.button-outline-admin { color: var(--navy); border-color: #c8d0d6; background: white; }
.button-outline-admin:hover { border-color: var(--navy); }
.navigation-editor-list { display: grid; gap: 18px; }
.navigation-editor-item { background: white; border: 1px solid #dfe3e6; }
.navigation-editor-item > header { min-height: 60px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 0 18px; color: white; background: var(--navy); }
.navigation-editor-item > header > span { color: var(--gold-light); font-family: var(--font-display); font-size: 1.35rem; }
.navigation-editor-item > header > strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.navigation-editor-actions, .navigation-column-heading > button, .navigation-link-row > div { display: flex; gap: 5px; }
.navigation-editor-actions button, .navigation-column-heading > button, .navigation-link-row button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: #d7e1e9; border: 1px solid rgba(255,255,255,.18); background: transparent; cursor: pointer; }
.navigation-editor-actions button:hover, .navigation-column-heading > button:hover, .navigation-link-row button:hover { color: white; border-color: var(--gold-light); }
.navigation-editor-actions button:disabled, .navigation-column-heading > button:disabled, .navigation-link-row button:disabled { opacity: .28; cursor: not-allowed; }
.navigation-editor-meta { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(240px, 1fr) minmax(280px, 1.5fr); gap: 14px; padding: 20px 20px 4px; }
.navigation-editor label { display: grid; gap: 5px; color: var(--navy); font-size: .7rem; font-weight: 700; }
.navigation-editor label > span { text-transform: uppercase; letter-spacing: .06em; }
.navigation-editor input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; color: #26323c; border: 1px solid #cfd6db; background: white; font-size: .78rem; font-weight: 400; }
.navigation-editor input:focus { border-color: #947037; outline: 2px solid rgba(185,151,84,.18); outline-offset: 0; }
.navigation-column-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; padding: 16px 20px 18px; }
.navigation-column-editor { min-width: 0; padding: 15px; border: 1px solid #dfe3e6; background: #f8f9fa; }
.navigation-column-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #dfe3e6; }
.navigation-column-heading > button { color: #8b4240; border-color: #d8c2c1; background: white; }
.navigation-link-list { display: grid; gap: 7px; margin-top: 12px; }
.navigation-link-row { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(130px, 1.2fr) auto; gap: 6px; align-items: center; }
.navigation-link-row input { height: 36px; background: white; }
.navigation-link-row button { width: 27px; height: 27px; color: #5e6b75; border-color: #ced5da; background: white; }
.navigation-add-link, .navigation-add-column { display: inline-flex; align-items: center; gap: 6px; color: #775822; border: 0; background: none; cursor: pointer; font-size: .72rem; font-weight: 700; }
.navigation-add-link { margin-top: 12px; padding: 6px 0; }
.navigation-add-column { margin: 0 20px 20px; padding: 7px 0; }
.navigation-add-link:disabled, .navigation-add-column:disabled { opacity: .4; cursor: not-allowed; }
.navigation-save-bar { position: sticky; z-index: 5; bottom: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; background: rgba(255,255,255,.96); border: 1px solid #d8dee2; box-shadow: 0 -8px 24px rgba(20,35,48,.08); backdrop-filter: blur(8px); }
.navigation-save-bar p { margin: 0; }
.admin-locale-tabs { display: flex; gap: 2px; margin: -8px 0 20px; border-bottom: 1px solid #d3d9dd; }
.admin-locale-tabs a { padding: 10px 18px; color: #64717b; border-bottom: 2px solid transparent; font-size: .76rem; font-weight: 700; }
.admin-locale-tabs a.is-active { color: var(--navy); border-color: var(--gold); background: rgba(255,255,255,.6); }
.locale-badge { display: inline-flex; min-width: 30px; justify-content: center; padding: 3px 6px; color: var(--navy); border: 1px solid #ccd4da; background: #f7f9fa; font-size: .64rem; font-weight: 750; }
.site-settings-editor { display: grid; gap: 20px; }
.settings-editor-section { margin-top: 0; }
.settings-editor-section .panel-heading span { display: block; color: #98743b; font-size: .62rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.settings-brand-preview { min-height: 110px; display: flex; align-items: center; gap: 28px; margin: 22px; padding: 20px 24px; color: var(--navy); border: 1px solid #e0d9ca; background: var(--paper-light); }
.settings-brand-preview p { max-width: 320px; margin: 0; color: #6c7780; font-size: .72rem; }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; padding: 4px 22px 26px; }
.settings-form-grid label { display: grid; gap: 6px; color: var(--navy); font-size: .72rem; font-weight: 700; }
.settings-form-grid input, .settings-form-grid textarea { width: 100%; padding: 10px 12px; color: var(--ink); border: 1px solid #ccd4d9; background: white; font-size: .82rem; font-weight: 450; resize: vertical; }
.settings-form-grid input:focus, .settings-form-grid textarea:focus { border-color: #96713a; outline: 2px solid rgba(193,138,50,.13); }
.settings-wide { grid-column: 1 / -1; }
.settings-save-bar { margin-top: 0; }
.settings-list { display: grid; }
.settings-list > div { min-height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; border-bottom: 1px solid #e5e8ea; }
.settings-list > div:last-child { border-bottom: 0; }
.settings-list span { color: #58636c; }
.settings-list strong { font-size: .8rem; }
.settings-editor-section > header > span { color: #7a858d; font-size: .7rem; }
.settings-brand-preview > img { width: min(200px, 100%); height: auto; padding: 10px 14px; background: var(--navy); object-fit: contain; }
.settings-link-group { min-width: 0; margin: 0; padding: 16px; border: 1px solid #d9dfe3; background: #f8f9fa; }
.settings-link-group legend { padding: 0 8px; color: #8a672f; font-family: var(--font-display); font-size: 1rem; }
.settings-link-group label { margin-top: 8px; }
.healthy { color: var(--success); }
.unhealthy { color: var(--danger); }
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--navy-dark); color: white; text-align: center; }
.not-found > div { max-width: 720px; }
.not-found span { color: var(--gold-light); font-size: .85rem; letter-spacing: .2em; }
.not-found h1 { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); line-height: 1; font-weight: 500; margin: 20px 0; }
.not-found p { color: #cad6df; }
.not-found div > div { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

body.overlay-open, body.mobile-sheet-open { overflow: hidden; }
.search-overlay, .mobile-menu-sheet { position: fixed; z-index: 300; inset: 0; visibility: hidden; pointer-events: none; }
.search-overlay.is-open, .mobile-menu-sheet.is-open { visibility: visible; pointer-events: auto; }
.search-overlay-backdrop, .mobile-menu-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(2,17,31,.72); opacity: 0; backdrop-filter: blur(8px); transition: opacity .25s ease; cursor: default; }
.search-overlay.is-open .search-overlay-backdrop, .mobile-menu-sheet.is-open .mobile-menu-backdrop { opacity: 1; }
.search-command { position: relative; width: min(calc(100% - 40px), 760px); margin: clamp(96px, 15vh, 170px) auto 0; color: var(--ink); background: var(--paper-light); border-top: 3px solid var(--gold); box-shadow: 0 30px 90px rgba(0,0,0,.35); opacity: 0; transform: translateY(-18px) scale(.985); transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1); }
.search-overlay.is-open .search-command { opacity: 1; transform: translateY(0) scale(1); }
.search-command > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; color: #7a6a4f; border-bottom: 1px solid var(--rule); font-size: .69rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.search-command > header button, .mobile-menu-sheet section > header button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: var(--navy); border: 0; background: transparent; cursor: pointer; }
.search-command form { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 24px; padding: 0 0 0 18px; color: var(--gold); border: 1px solid #c9c1b4; background: white; }
.search-command form input { min-width: 0; height: 64px; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-family: var(--font-display); font-size: 1.25rem; }
.search-command form button { align-self: stretch; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; color: var(--navy-dark); border: 0; background: var(--gold-light); cursor: pointer; font-size: .78rem; font-weight: 750; }
.search-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 24px 26px; }
.search-quick-links > span { grid-column: 1 / -1; margin-bottom: 8px; color: #8a6b3a; font-size: .64rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.search-quick-links button { min-height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 0 14px; color: var(--navy); border: 1px solid var(--rule); border-right: 0; background: transparent; cursor: pointer; font-size: .76rem; text-align: left; }
.search-quick-links button:last-child { border-right: 1px solid var(--rule); }
.search-quick-links button:hover { color: #74531d; background: var(--paper); }
.mobile-bottom-navigation, .mobile-menu-sheet { display: none; }
.page-transition-shell { animation: pageEnter .34s cubic-bezier(.2,.76,.2,1) both; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .motion-ready [data-reveal].reveal-pending > .container { opacity: 1; transform: none; }
}

@media (max-width: 1280px) {
  .admin-dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-schedule-rail { min-height: 0; }
  .schedule-list { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .schedule-empty { min-height: 220px; }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .header-inner { width: min(calc(100% - 40px), 1450px); gap: 10px; }
  .esam-wordmark { gap: 10px; }
  .esam-wordmark strong { font-size: 2.65rem; }
  .esam-wordmark-rule { height: 46px; }
  .esam-wordmark-name { font-size: .54rem; letter-spacing: .075em; }
  .desktop-nav > ul { gap: 12px; }
  .mega-nav-item > details > summary { font-size: .67rem; gap: 2px; }
  .mega-nav-item > details > summary svg { width: 11px; height: 11px; }
  .search-link { width: 35px; height: 42px; padding-left: 9px; }
  .search-link svg { width: 18px; height: 18px; }
  .language-switch { gap: 5px; font-size: .61rem; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .search-link { margin-left: auto; }
  .mobile-nav { display: block; }
  .hero-grid { grid-template-columns: .94fr 1.06fr; }
  .hero-copy { padding-right: 28px; }
  .editorial-news-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto auto; }
  .content-card-lead { grid-column: 1 / -1; grid-row: auto; padding: 0 0 34px; }
  .content-card-rail { display: block; padding: 30px 28px 0 0; border-top: 1px solid var(--rule); border-left: 0; }
  .content-card-rail + .content-card-rail { padding: 30px 0 0 28px; border-left: 1px solid var(--rule); }
  .content-card-rail .content-card-image { min-height: 0; margin: 0 0 22px; aspect-ratio: 16/10; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .publications-layout { grid-template-columns: 1fr; }
  .publication-feature { padding: 0 0 48px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .publication-rows a { min-height: 132px; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .footer-brand { grid-row: span 2; }
  .research-program-grid { grid-template-columns: 1fr; }
  .program-index { padding: 28px 0 0; border-top: 1px solid var(--rule); border-left: 0; }
  .directorates-band > .container { grid-template-columns: 1fr; gap: 35px; }
  .directorate-links { grid-template-columns: repeat(2, 1fr); }
  .admin-filter-bar { grid-template-columns: minmax(220px, 1fr) repeat(3, 130px) auto; }
  .admin-filter-bar > a { grid-column: 1 / -1; text-align: left; }
  .upload-form { grid-template-columns: auto 1fr; }
  .upload-form input, .upload-form button, .upload-form p { grid-column: 2; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .header-inner { width: min(calc(100% - 32px), 1450px); min-width: 0; min-height: 76px; gap: 12px; }
  .brand .esam-wordmark { gap: 9px; }
  .brand .esam-wordmark strong { font-size: 2.2rem; }
  .brand .esam-wordmark-rule { height: 39px; }
  .brand .esam-wordmark-name { font-size: .48rem; letter-spacing: .08em; }
  .language-switch { display: none; }
  .header-inner > .search-link, .mobile-nav { display: none; }
  .mobile-bottom-navigation { position: fixed; z-index: 220; left: 0; right: 0; bottom: 0; min-height: calc(68px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 8px env(safe-area-inset-bottom); color: #9cafbd; border-top: 1px solid rgba(215,173,94,.42); background: rgba(3,26,47,.97); box-shadow: 0 -10px 28px rgba(1,15,27,.18); backdrop-filter: blur(18px); }
  .mobile-bottom-navigation a, .mobile-bottom-navigation button { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 2px; color: inherit; border: 0; background: transparent; cursor: pointer; }
  .mobile-bottom-navigation span { max-width: 100%; overflow: hidden; font-size: .58rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-bottom-navigation .is-active { color: var(--gold-light); }
  .mobile-bottom-navigation .is-active::before { content: ""; position: absolute; top: 0; width: 30px; height: 2px; background: var(--gold-light); }
  .mobile-bottom-navigation a, .mobile-bottom-navigation button { position: relative; }
  .mobile-menu-sheet { display: block; }
  .mobile-menu-sheet section { position: absolute; left: 0; right: 0; bottom: 0; max-height: min(82dvh, 720px); display: flex; flex-direction: column; color: var(--ink); border-radius: 22px 22px 0 0; border-top: 3px solid var(--gold); background: var(--paper-light); box-shadow: 0 -24px 60px rgba(0,0,0,.28); transform: translateY(102%); transition: transform .34s cubic-bezier(.2,.82,.2,1); overflow: hidden; }
  .mobile-menu-sheet.is-open section { transform: translateY(0); }
  .mobile-menu-sheet section > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px 0 22px; border-bottom: 1px solid var(--rule); }
  .mobile-menu-sheet section > header div { display: grid; }
  .mobile-menu-sheet section > header span { color: #92703a; font-size: .61rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-menu-sheet section > header strong { color: var(--navy); font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
  .mobile-menu-sheet-links { overflow-y: auto; padding: 4px 20px; }
  .mobile-menu-sheet-links > a { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); }
  .mobile-menu-sheet-links > a > span { min-width: 0; display: grid; gap: 1px; }
  .mobile-menu-sheet-links strong { color: var(--navy); font-family: var(--font-display); font-size: 1.14rem; font-weight: 500; }
  .mobile-menu-sheet-links small { overflow: hidden; color: #71808b; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-menu-sheet-links svg { flex: 0 0 auto; color: var(--gold); }
  .mobile-menu-sheet section > footer { display: flex; justify-content: flex-end; padding: 15px 22px calc(14px + env(safe-area-inset-bottom)); background: var(--paper); }
  .language-switch-mobile { display: flex; font-size: .76rem; }
  .language-switch-mobile a { color: #65737e; }
  .language-switch-mobile a[aria-current="page"] { color: var(--navy); }
  .search-command { width: calc(100% - 24px); margin-top: 88px; }
  .search-command form { grid-template-columns: auto 1fr; margin: 16px; padding-left: 14px; }
  .search-command form input { height: 58px; font-size: 1.05rem; }
  .search-command form button { grid-column: 1 / -1; min-height: 48px; justify-content: center; margin-left: -14px; }
  .search-quick-links { grid-template-columns: 1fr; padding: 0 16px 18px; }
  .search-quick-links button, .search-quick-links button:last-child { border-right: 1px solid var(--rule); border-bottom: 0; }
  .search-quick-links button:last-child { border-bottom: 1px solid var(--rule); }
  .search-filter-form { grid-template-columns: 1fr; }
  .search-filter-form .button { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 60px 16px 46px; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(2.75rem, 12.5vw, 3.45rem); overflow-wrap: break-word; }
  .hero-copy h1 span { white-space: normal; }
  .hero-copy h1 span:first-child { transform: none; }
  .hero-media { min-height: 360px; margin: 0 -16px; }
  .hero-media::after { background: linear-gradient(180deg, var(--navy-dark) 0%, rgba(6,28,50,.15) 35%); }
  .section { padding: 68px 0; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 2.55rem; }
  .section-heading > a { margin-top: 10px; }
  .editorial-news-grid, .archive-grid { grid-template-columns: 1fr; }
  .content-card-lead { grid-column: auto; padding: 0 0 30px; }
  .content-card-rail, .content-card-rail + .content-card-rail { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .content-card-rail .content-card-image { min-height: 150px; margin: 0; aspect-ratio: 4/3; }
  .archive-grid .content-card { border-left: 0; }
  .publication-feature { grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
  .publication-rows a { grid-template-columns: 1fr auto; padding: 18px 0; }
  .publication-rows span { grid-column: 1; }
  .publication-rows strong { grid-column: 1; }
  .publication-rows b { grid-column: 2; grid-row: 1 / span 2; }
  .research-index, .research-page-grid { grid-template-columns: repeat(2, 1fr); }
  .program-index-heading { align-items: start; }
  .program-index > div:last-child { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .memory-paths { grid-template-columns: 1fr; }
  .memory-paths a, .memory-paths a + a { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(213,185,117,.4); }
  .memory-paths strong { margin-top: 10px; }
  .event-row { grid-template-columns: 70px 1fr; gap: 20px; }
  .event-row .text-link { grid-column: 2; }
  .media-feature { grid-template-columns: 1fr; }
  .media-copy { padding: 30px 0 0; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 35px; }
  .newsletter-grid h2 { padding: 0 0 32px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .footer-bottom { gap: 14px; flex-direction: column; }
  .detail-breadcrumb { min-height: 48px; }
  .detail-header-grid { min-height: 0; grid-template-columns: 1fr; gap: 34px; padding: 38px 0 50px; }
  .detail-header-grid-no-cover { min-height: 0; }
  .detail-header-copy { padding-left: 20px; }
  .detail-header-copy h1 { font-size: clamp(3rem, 10vw, 4.45rem); }
  .detail-cover { max-width: 560px; min-height: 0; justify-self: start; aspect-ratio: 16/10; box-shadow: 10px 12px 0 rgba(255,255,255,.04); }
  .detail-cover-person { max-width: 360px; aspect-ratio: 4/5; justify-self: start; }
  .detail-content-grid { grid-template-columns: 1fr; justify-content: stretch; gap: 42px; padding-top: 48px; padding-bottom: 82px; }
  .detail-sidebar-inner { position: static; }
  .detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-facts > div:nth-child(odd) { padding-right: 18px; }
  .detail-facts > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rule); }
  .detail-primary-action { width: fit-content; min-width: 220px; }
  .detail-related-grid { grid-template-columns: 1fr; }
  .detail-related-card { grid-template-columns: 190px minmax(0, 1fr); }
  .detail-related-media { min-height: 150px; }
  .programs-band > div > div { grid-template-columns: 1fr; }
  .programs-band a:nth-child(odd) { margin-right: 0; }
  .research-map-section .section-heading { display: block; }
  .research-map-section .section-heading > p { margin-top: 18px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 18px; }
  .admin-sidebar nav { grid-template-columns: repeat(3, 1fr); }
  .admin-sidebar nav a { font-size: .72rem; }
  .admin-user { display: none; }
  .admin-topbar { padding: 0 16px; }
  .admin-topbar form { width: min(62vw, 460px); }
  .admin-page { padding: 22px 16px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-dashboard-lower { grid-template-columns: 1fr; }
  .schedule-list { grid-template-columns: 1fr; }
  .admin-filter-bar { grid-template-columns: 1fr 1fr; }
  .admin-filter-bar label { grid-column: 1 / -1; }
  .admin-filter-bar .button, .admin-filter-bar > a { width: 100%; }
  .editor-form { grid-template-columns: 1fr; }
  .editor-side-column { position: static; }
  .editor-field-grid { grid-template-columns: 1fr; }
  .navigation-editor-toolbar { align-items: flex-start; flex-direction: column; }
  .navigation-editor-toolbar > div { width: 100%; flex-wrap: wrap; }
  .navigation-editor-meta { grid-template-columns: 1fr; }
  .navigation-link-row { grid-template-columns: 1fr; padding-bottom: 9px; border-bottom: 1px solid #e2e6e9; }
  .navigation-link-row > div { justify-content: flex-end; }
  .settings-form-grid { grid-template-columns: 1fr; }
  .settings-wide { grid-column: auto; }
  .settings-brand-preview { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .brand .esam-wordmark-name { display: none; }
  .brand .esam-wordmark-rule { display: none; }
  .brand .esam-wordmark strong { font-size: 2.5rem; }
  .hero-actions, .newsletter-controls { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section-heading { display: block; }
  .section-heading > a { margin-top: 18px; }
  .publication-feature { grid-template-columns: 1fr; }
  .publication-cover { width: min(70vw, 290px); }
  .publication-feature { justify-items: start; }
  .publication-rows a { grid-template-columns: 42px minmax(0, 1fr); }
  .publication-rows span { grid-column: 2; grid-row: 1; }
  .publication-rows strong { grid-column: 2; grid-row: 2; }
  .publication-rows b { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 14px; }
  .publication-rows a > svg { grid-row: 1 / 3; }
  .publication-rows a > svg { width: 30px; height: 30px; }
  .research-index, .research-page-grid { grid-template-columns: 1fr; }
  .research-index a:nth-child(even) { padding-left: 0; border-left: 0; }
  .program-index-heading { display: block; }
  .program-index-heading p { margin-top: 9px; }
  .program-index > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-card-rail, .content-card-rail + .content-card-rail { grid-template-columns: 112px minmax(0, 1fr); }
  .content-card-rail .content-card-image { min-height: 132px; }
  .content-card-rail .content-card-body p { display: none; }
  .directorate-links { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 52px 1fr; }
  .event-number { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .admin-sidebar nav { grid-template-columns: repeat(2, 1fr); }
  .admin-page-heading { align-items: flex-start; flex-direction: column; }
  .admin-topbar form { width: 100%; }
  .admin-topbar > a { font-size: 0; }
  .admin-topbar > a svg { width: 18px; height: 18px; }
  .upload-form { grid-template-columns: 1fr; }
  .upload-form > * { grid-column: 1 !important; }
  .esam-wordmark-image { width: min(230px, 66vw); height: 52px; }
  .admin-locale-tabs a { flex: 1; text-align: center; }
  .detail-breadcrumb { gap: 7px; font-size: .65rem; }
  .detail-header-grid { gap: 26px; padding: 30px 0 40px; }
  .detail-header-copy h1 { margin-top: 12px; font-size: clamp(2.72rem, 13vw, 3.5rem); line-height: 1; }
  .detail-header-copy > p { font-size: 1.02rem; }
  .detail-meta { margin-top: 22px; font-size: .66rem; }
  .detail-meta span + span::before { margin-inline: 8px; }
  .detail-cover { width: calc(100% - 12px); aspect-ratio: 4/3; }
  .detail-cover-page { max-width: 340px; aspect-ratio: 16/10; }
  .detail-cover-person { max-width: 290px; aspect-ratio: 4/5; }
  .detail-content-grid { gap: 36px; padding-top: 38px; padding-bottom: 72px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-facts > div:nth-child(odd), .detail-facts > div:nth-child(even) { padding: 13px 0; border-left: 0; }
  .detail-primary-action { width: 100%; }
  .rich-content { font-size: 1.08rem; line-height: 1.76; }
  .rich-content blockquote { margin: 1.6em 0; padding-left: 20px; }
  .detail-legacy-facts > div { grid-template-columns: 1fr; gap: 5px; padding: 14px 0; }
  .content-attachments-gallery > div { grid-template-columns: 1fr; }
  .detail-related-heading { display: block; margin-bottom: 25px; }
  .detail-related-heading > a { margin-top: 18px; }
  .detail-related-card { grid-template-columns: 104px minmax(0, 1fr); gap: 15px; padding: 15px; }
  .detail-related-media { min-height: 124px; }
  .detail-related-card h3 { font-size: 1.24rem; }
  .detail-related-card p { display: none; }
}

/* PHP uygulama uyarlamaları */
.hero-media > img, .content-card-image > img, .detail-cover > img, .media-image > img, .program-index > div > a > span > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.publication-cover > img { width: 100%; height: 100%; object-fit: contain; }
.search-overlay > .search-command > p { margin: -8px 24px 24px; color: var(--muted); font-size: .75rem; }
.mobile-menu-sheet-links { overflow-y: auto; padding: 4px 20px; }
.mobile-menu-sheet-links details { border-bottom: 1px solid var(--rule); }
.mobile-menu-sheet-links details > summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; color: var(--navy); font-family: var(--font-display); font-size: 1.1rem; list-style: none; cursor: pointer; }
.mobile-menu-sheet-links details > summary::-webkit-details-marker { display: none; }
.mobile-menu-sheet-links details[open] > summary { color: #815e25; }
.mobile-menu-sheet-links details > div { display: grid; padding: 0 0 18px 14px; }
.mobile-menu-sheet-links details h3 { margin: 16px 0 4px; color: #92703a; font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; }
.mobile-menu-sheet-links details a { padding: 7px 0; color: #43515d; font-size: .78rem; }
.mobile-menu-sheet-links .mobile-menu-all { display: flex; align-items: center; justify-content: space-between; color: var(--navy); font-weight: 750; }
.mobile-menu-sheet section > footer { justify-content: space-between; }
.admin-panel > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #e4e7e9; }
.admin-panel > header h2, .admin-panel > h2 { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.admin-panel > header a { color: #815e25; font-size: .74rem; font-weight: 700; }
.admin-quick-links { display: grid; }
.admin-quick-links a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #e6e9eb; color: var(--navy); font-size: .76rem; }
.admin-filter-form { display: flex; gap: 10px; margin-bottom: 18px; }
.admin-filter-form input { flex: 1; min-height: 44px; padding: 0 13px; border: 1px solid #d6dce0; background: white; }
.editor-form { display: block; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.editor-main-fields, .editor-sidebar > .admin-panel { display: grid; gap: 9px; padding: 24px; margin-top: 0; }
.editor-sidebar { position: sticky; top: 82px; display: grid; gap: 16px; }
.editor-sidebar .button { width: 100%; }
.button-outline-danger { color: #8f3733; border-color: #cda8a5; background: white; }
.button-outline-danger:hover { border-color: #8f3733; }
.admin-flash { margin: 0 0 18px; padding: 12px 15px; border-left: 3px solid #4c76a1; background: white; color: #3b4852; font-size: .78rem; }
.admin-flash-success { border-color: var(--success); background: #edf8f2; }
.admin-flash-error { border-color: var(--danger); background: #fbefee; }
.code-editor { min-height: 620px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.form-help { color: var(--muted); font-size: .72rem; }
.upload-form { grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) auto; }
.upload-form label { display: grid; gap: 7px; color: var(--navy); font-size: .72rem; font-weight: 700; }
.media-admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.media-admin-grid article { min-width: 0; display: grid; gap: 8px; padding: 14px; margin: 0; }
.media-admin-grid img, .media-file-icon { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef1f3; }
.media-file-icon { display: grid; place-items: center; color: var(--gold); }
.media-admin-grid strong, .media-admin-grid code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-admin-grid small { color: var(--muted); font-size: .66rem; }
.media-admin-grid code { font-size: .62rem; }
.media-index-form { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.media-index-form strong { color: var(--navy); }
.media-index-form p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.security-panel { max-width: 780px; display: grid; gap: 18px; padding: 28px; }
.security-panel > p, .security-panel li, .security-panel dd { color: var(--muted); line-height: 1.7; }
.security-panel ol { display: grid; gap: 7px; margin: 0; padding-left: 22px; }
.security-codes { overflow-wrap: anywhere; white-space: pre-wrap; padding: 18px; border: 1px solid #cdd5db; background: #f6f8f9; color: var(--navy); font: 700 .88rem/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.security-uri { display: block; overflow-wrap: anywhere; margin-top: 10px; padding: 12px; background: #f6f8f9; font-size: .72rem; }
.admin-form { display: grid; gap: 9px; max-width: 430px; padding-top: 6px; }
.admin-form label { color: var(--navy); font-size: .76rem; font-weight: 750; }
.admin-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd0d4; background: white; }
.security-panel .button { justify-self: start; }

@media (max-width: 900px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { position: static; }
  .media-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-filter-bar { grid-template-columns: 1fr 1fr; }
  .audit-filter-bar label { grid-column: 1 / -1; }
  .submission-layout, .public-form-layout { grid-template-columns: 1fr; }
  .public-form-layout { gap: 36px; }
  .admin-nav-section { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .admin-filter-form, .upload-form { display: grid; grid-template-columns: 1fr; }
  .media-admin-grid { grid-template-columns: 1fr; }
  .audit-filter-bar, .operations-filter-bar, .compact-filter-bar { grid-template-columns: 1fr; }
  .admin-export-form { align-items: flex-start; flex-direction: column; }
  .submission-data dl > div { grid-template-columns: 1fr; gap: 6px; }
  .public-contact-form { padding: 20px; }
  .content-attachments-gallery { grid-template-columns: 1fr; }
}
