/* Honoring American Troops — site stylesheet
   Palette: paper, navy, Old Glory red, medal gold, Medal of Honor ribbon blue. Light + dark themes. */
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #f1eee5;
  --ink: #141a26;
  --ink-2: #3a4457;
  --muted: #677084;
  --line: #e3ded1;
  --line-2: #d4cdbb;
  --navy: #0e1f3d;
  --navy-2: #173263;
  --navy-ink: #e9eef8;
  --red: #b3192f;
  --red-soft: #fbe9ec;
  --gold: #a87b1f;
  --gold-2: #d6ae52;
  --gold-soft: #f6ecd3;
  --sky: #7fb3e0;
  --green: #247a4a;
  --green-soft: #e3f3ea;
  --link: #173e86;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 26, 38, .05), 0 10px 30px -16px rgba(20, 26, 38, .28);
  --shadow-lg: 0 2px 4px rgba(20, 26, 38, .06), 0 24px 48px -24px rgba(20, 26, 38, .35);
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #111a2e; --surface-2: #17223b; --ink: #e8ecf4; --ink-2: #c3cbda; --muted: #92a0b8;
    --line: #22304f; --line-2: #2d3d60; --navy: #070e1d; --navy-2: #0f1f40; --red: #ef5a6d; --red-soft: #3a1720;
    --gold: #e2bd62; --gold-2: #e9c875; --gold-soft: #2c2512; --green: #56c287; --green-soft: #12301f; --link: #9ec3ff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -16px rgba(0,0,0,.6); --shadow-lg: 0 24px 48px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #111a2e; --surface-2: #17223b; --ink: #e8ecf4; --ink-2: #c3cbda; --muted: #92a0b8;
  --line: #22304f; --line-2: #2d3d60; --navy: #070e1d; --navy-2: #0f1f40; --red: #ef5a6d; --red-soft: #3a1720;
  --gold: #e2bd62; --gold-2: #e9c875; --gold-soft: #2c2512; --green: #56c287; --green-soft: #12301f; --link: #9ec3ff;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -16px rgba(0,0,0,.6); --shadow-lg: 0 24px 48px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; color: var(--ink); margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold-2); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.eyebrow { font: 600 .76rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .7rem; }
.section { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.section--tight { padding-top: 32px; padding-bottom: 32px; }
.section--alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .95rem; }
.lead { font-size: 1.14rem; color: var(--ink-2); }

/* ------------------------------------------------ top bar + header */
.topbar { background: var(--navy); color: #cdd7ea; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--gold-2); }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fbf7a; margin-right: 7px; vertical-align: 1px; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 1.12rem/1.1 var(--serif); letter-spacing: -.01em; }
.brand-sub { font: 600 .64rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .93rem; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--red); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.header-tools { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }
@media (max-width: 1120px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .nav-toggle { display: inline-grid; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); flex-direction: column; align-items: stretch; gap: 4px; background: var(--surface); padding: 84px 18px 24px; border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .25s ease; z-index: 60; overflow-y: auto; }
  .nav a { font-size: 1.05rem; padding: 12px 14px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  body.nav-open .nav { transform: none; }
  body.nav-open .site-header { z-index: 80; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(5, 10, 20, .45); z-index: 50; }
  .header-tools { margin-left: auto; position: relative; z-index: 70; }
}
.nav-theme { display: none; }
@media (max-width: 480px) {
  .brand-sub { display: none; } .brand-name { font-size: 1rem; }
  .site-header .container { gap: 10px; } .brand { gap: 8px; } .brand svg { width: 32px; height: 32px; }
  .header-tools { gap: 6px; } .header-tools [data-theme-toggle] { display: none; }
  .nav-theme { display: block; margin-top: 8px; font: 600 1rem var(--sans); padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; }
}

/* ------------------------------------------------ buttons, chips */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem/1 var(--sans); padding: 13px 20px; border-radius: 11px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #95132a; color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--sm { padding: 9px 13px; font-size: .86rem; border-radius: 9px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem/1 var(--sans); letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
a.chip:hover { border-color: var(--gold-2); color: var(--ink); }
.chip--red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chip--green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip--gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.chip--dark { background: rgba(255,255,255,.1); color: #e9eef8; border-color: rgba(255,255,255,.16); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------ hero (home) */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #27457e 0%, transparent 60%), radial-gradient(900px 480px at -10% 110%, #3a1224 0%, transparent 55%), var(--navy); color: var(--navy-ink); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='.07'%3E%3Cpath d='M20 12l2.4 7.3h7.6l-6.2 4.5 2.4 7.3-6.2-4.5-6.2 4.5 2.4-7.3-6.2-4.5h7.6z'/%3E%3Cpath d='M80 62l1.6 4.9h5.1l-4.1 3 1.6 4.9-4.2-3-4.1 3 1.6-4.9-4.2-3h5.2z'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.04; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 600; }
.hero .lead { color: #c9d4ea; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40em; }
.hero .eyebrow { color: var(--gold-2); }
.searchbar { display: flex; margin-top: 26px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.55); max-width: 620px; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 1.02rem var(--sans); padding: 12px 14px; color: #141a26; background: transparent; }
.searchbar button { border: 0; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: .9rem; color: #aebbd6; }
.hero-links a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.hero-links a:hover { color: var(--gold-2); border-color: var(--gold-2); }
.hero-medal { justify-self: center; width: min(320px, 70vw); filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.hero-medal svg { width: 100%; height: auto; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero-medal { display: none; } }

.statband { background: var(--surface); border-bottom: 1px solid var(--line); }
.statband .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.stat { padding: 22px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.05 var(--serif); color: var(--ink); }
.stat span { font-size: .84rem; color: var(--muted); }
@media (max-width: 760px) { .statband .container { grid-template-columns: repeat(2, 1fr); } .stat { border-left: 0; border-top: 1px solid var(--line); } .stat:nth-child(-n+2) { border-top: 0; } .stat:last-child { grid-column: span 2; } }

/* ------------------------------------------------ page hero (hubs/profiles) */
.page-hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--navy-ink); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 66%, var(--sky) 66% 100%); opacity: .9; }
.page-hero .container { position: relative; padding-top: 34px; padding-bottom: 40px; }
.page-hero h1 { color: #fff; margin: .15em 0 .3em; }
.page-hero .lead { color: #c7d2e8; max-width: 52em; margin-bottom: 0; }
.page-hero .chips { margin-top: 16px; }
.crumbs { font-size: .84rem; color: #9fb0cf; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #6f81a6; }
.crumbs a { color: #d5def0; text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; }
.hero-stats div b { display: block; font: 700 1.7rem/1 var(--serif); color: #fff; }
.hero-stats div span { font-size: .8rem; color: #9fb0cf; text-transform: uppercase; letter-spacing: .08em; }

/* ------------------------------------------------ cards & grids */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--gold-2); box-shadow: var(--shadow-lg); color: inherit; }
.card .kicker { font: 600 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }
.card .count { font: 700 2rem/1 var(--serif); color: var(--ink); }
.card .count small { font: 500 .85rem var(--sans); color: var(--muted); margin-left: 4px; }
.card-meter { height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 14px; overflow: hidden; }
.card-meter { display: block; }
.card-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-2), var(--sky)); border-radius: 99px; }
.conflict-card { position: relative; overflow: hidden; }
.conflict-card .years { color: var(--muted); font-size: .88rem; }
.conflict-card h3 { font-size: 1.22rem; }

/* recipient cards */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 12px; }
.rcard { display: flex; gap: 13px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); position: relative; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; min-width: 0; }
.rcard:hover { border-color: var(--gold-2); transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.rcard-body { min-width: 0; display: flex; flex-direction: column; }
.rcard-name { font: 650 1rem/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis; }
.rcard-meta { font-size: .8rem; color: var(--muted); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard .flag { position: absolute; top: 8px; right: 10px; font-size: .7rem; color: var(--red); }
.avatar { flex-shrink: 0; width: 52px; height: 62px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: var(--gold-2); font: 700 1.05rem/1 var(--serif); letter-spacing: .02em; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.avatar--lg { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; font-size: 3.4rem; }
.avatar--star::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23d6ae52' fill-opacity='.14' d='M32 6l7.6 18.4 19.8 1.3-15.2 12.8 4.8 19.3L32 47.3 15 57.8l4.8-19.3L4.6 25.7l19.8-1.3z'/%3E%3C/svg%3E") center/78% no-repeat; }
.avatar span { position: relative; }

/* compact table list */
.rtable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .93rem; }
.rtable th, .rtable td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable th { font: 600 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.rtable tr:last-child td { border-bottom: 0; }
.rtable td a { font-weight: 600; text-decoration: none; }
.rtable td a:hover { text-decoration: underline; }
.rtable .p { color: var(--red); font-size: .75rem; margin-left: 6px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
@media (max-width: 640px) { .hide-sm { display: none; } .rtable th, .rtable td { padding: 9px 10px; } }

/* A–Z */
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a, .az span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 700 1rem var(--serif); text-decoration: none; color: var(--ink); }
.az a:hover { border-color: var(--gold-2); background: var(--gold-soft); }
.az a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.az span { opacity: .35; }
.page-hero .az a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.page-hero .az a:hover { background: rgba(255,255,255,.14); }
.page-hero .az a[aria-current="page"] { background: var(--gold-2); color: #111; }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; color: var(--ink); }
.pagination a:hover { border-color: var(--gold-2); }
.pagination [aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* bars */
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 58px; gap: 12px; align-items: center; font-size: .9rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-label a { color: inherit; text-decoration: none; }
.bar-label a:hover { color: var(--red); text-decoration: underline; }
.bar-track { display: block; height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy-2), #3f6fb8); min-width: 3px; }
.bar-fill--red { background: linear-gradient(90deg, #8e1426, var(--red)); }
.bar-fill--gold { background: linear-gradient(90deg, #9a6f17, var(--gold-2)); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); gap: 4px; align-items: end; height: 170px; padding: 0 2px; border-bottom: 1px solid var(--line-2); }
.col { background: linear-gradient(180deg, #3f6fb8, var(--navy-2)); border-radius: 5px 5px 0 0; min-height: 2px; position: relative; }
.col:hover { background: var(--red); }
.col-labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); gap: 4px; font-size: .68rem; color: var(--muted); text-align: center; margin-top: 6px; }

/* ------------------------------------------------ profile */
.profile-hero .container { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.profile-hero .rank { font: 600 .82rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-top: 18px; }
.profile-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
@media (max-width: 960px) { .profile-grid { grid-template-columns: 1fr; } .profile-grid > aside { position: static; order: -1; } }
.portrait { margin: 0 0 18px; }
.portrait img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.portrait figcaption { font-size: .74rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.portrait figcaption a { color: inherit; }
@media (max-width: 960px) { .portrait { max-width: 260px; } }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 600 .72rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink); }
.facts dd a { font-weight: 600; }
.card--facts { padding: 8px 20px; }
.summary p { font-size: 1.08rem; color: var(--ink-2); }
.summary p:first-child::first-letter { font: 700 3.3em/.8 var(--serif); float: left; margin: .08em .1em 0 0; color: var(--red); }
.citation { position: relative; margin: 30px 0; padding: 30px 30px 26px 34px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--gold-2); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.citation::before { content: "“"; position: absolute; top: -18px; right: 22px; font: 700 7rem/1 var(--serif); color: var(--gold-soft); }
.citation h2 { font-size: .8rem; font-family: var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.citation p { font: 400 1.14rem/1.72 var(--serif); color: var(--ink); position: relative; }
.citation p:last-child { margin-bottom: 0; }
.citation .source { font: 500 .78rem var(--sans); color: var(--muted); margin-top: 14px; }
.block { margin: 36px 0; }
.block > h2 { font-size: 1.45rem; }
.note { background: var(--gold-soft); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--ink); font-size: .95rem; }
.note--blue { background: color-mix(in srgb, var(--sky) 18%, var(--surface)); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--line-2), var(--line)); }
.timeline li { position: relative; padding: 0 0 20px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--navy-2); }
.timeline li.t-action::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.timeline li.t-award::before { border-color: var(--gold-2); background: var(--gold-2); }
.timeline .t-date { font: 600 .78rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.timeline .t-title { font: 650 1.05rem/1.35 var(--serif); color: var(--ink); }
.timeline .t-text { font-size: .93rem; color: var(--ink-2); }
.wiki-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px 22px; }
.wiki-box p { color: var(--ink-2); }
.wiki-box .attr { font-size: .78rem; color: var(--muted); margin: 0; }
.named-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.named-list li { display: flex; gap: 12px; align-items: baseline; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.named-list li::before { content: "★"; color: var(--gold-2); font-size: .85rem; }
.named-list .type { color: var(--muted); font-size: .85rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 30% 20%, #2a4b86, var(--navy)); color: #fff; text-align: left; font: inherit; }
.video .play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .15s ease; }
.video .play::after { content: ""; border-left: 17px solid var(--red); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video:hover .play { transform: translate(-50%, -50%) scale(1.07); }
.video .vt { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; font-size: .84rem; line-height: 1.35; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.links-list { list-style: none; margin: 0; padding: 0; }
.links-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.links-list li:last-child { border-bottom: 0; }
.links-list .src { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.honor-box { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #dfe7f5; border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.honor-box h2, .honor-box h3 { color: #fff; font-size: 1.12rem; }
.honor-box a { color: #fff; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; font: 600 .82rem var(--sans); padding: 8px 12px; border-radius: 9px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: rgba(255,255,255,.2); color: #fff; }
.honor-box ul { margin: 12px 0 0; padding-left: 18px; font-size: .9rem; }
.honor-box li { margin: 5px 0; }
.sources { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }
.sources a { color: inherit; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pn a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
.pn a:hover { border-color: var(--gold-2); }
.pn small { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.pn b { font-family: var(--serif); }
.pn .next { text-align: right; }

/* ------------------------------------------------ prose (guides) */
.prose { font-size: 1.07rem; color: var(--ink-2); }
.prose h2 { margin-top: 1.9em; color: var(--ink); }
.prose h3 { margin-top: 1.5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .95rem; background: var(--surface); }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold-2); font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.prose .note { font-size: 1rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .93rem; }
.toc b { display: block; font: 600 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 5px 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font: 650 1.05rem/1.4 var(--serif); padding: 16px 28px 16px 0; list-style: none; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 400 1.5rem/1 var(--sans); color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.two-col > aside { position: sticky; top: 92px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .two-col > aside { position: static; } }

/* medals */
a.card.medal-card, .medal-card { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.medal-card > img { width: 96px; height: 120px; object-fit: contain; }
.medal-card .ribbon { width: auto; max-width: 120px; }
.medal-ph { width: 96px; height: 120px; display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; color: var(--gold); font-size: 2rem; }
.ribbon { height: 20px; width: auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.25); margin: 8px 0 0; }
.medal-hero { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.medal-hero img.medal-img { width: 220px; max-height: 320px; object-fit: contain; background: var(--surface); border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
@media (max-width: 700px) { .medal-hero { grid-template-columns: 1fr; } }
.precedence { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* calendar (on this day) */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.month h3 { font-size: 1.05rem; margin-bottom: 10px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days a, .days span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-size: .82rem; text-decoration: none; }
.days a { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.days a.hot { background: color-mix(in srgb, var(--red) 16%, var(--surface)); }
.days a.hot2 { background: color-mix(in srgb, var(--red) 34%, var(--surface)); }
.days a:hover { background: var(--navy); color: #fff; }
.days span { color: var(--muted); opacity: .45; }
.days a[aria-current="page"] { background: var(--gold-2); color: #111; }
.today-card { display: grid; gap: 10px; }
.today-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); text-decoration: none; color: var(--ink); }
.today-item:hover { background: var(--gold-soft); color: var(--ink); }
.today-item b { font-family: var(--serif); }
.today-item .y { font: 700 .95rem var(--serif); color: var(--red); min-width: 44px; }

/* search */
.search-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .search-shell { grid-template-columns: 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; position: sticky; top: 92px; }
@media (max-width: 900px) { .filters { position: static; } }
.filters label { display: grid; gap: 6px; font: 600 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filters select, .filters input[type="number"], .filters input[type="search"], .search-q { width: 100%; font: 500 .95rem var(--sans); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); text-transform: none; letter-spacing: 0; }
.filters .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.search-top { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search-top .search-q { flex: 1; min-width: 220px; font-size: 1.05rem; padding: 13px 16px; }
.result-count { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }

/* footer */
.site-footer { background: var(--navy); color: #b6c3dc; margin-top: 0; font-size: .92rem; }
.site-footer a { color: #e3e9f5; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; padding: 56px 0 36px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h2 { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name { color: #fff; }
.footer-crisis { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.footer-crisis b { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 26px; font-size: .8rem; color: #8797b6; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.flagbar { height: 4px; background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 66%, var(--sky) 66% 100%); }

/* misc */
.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.pill-nav a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.pill-nav a:hover { border-color: var(--gold-2); color: var(--ink); }
.pill-nav a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.org { display: flex; flex-direction: column; gap: 6px; }
.org .tag { align-self: flex-start; }
.help-callout { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 18px 22px; }
@media (max-width: 700px) { .help-callout { grid-template-columns: 1fr; } }
.help-callout .big { font: 700 1.5rem/1 var(--serif); color: var(--green); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kv div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kv b { display: block; font: 700 1.5rem/1.1 var(--serif); }
.kv span { font-size: .82rem; color: var(--muted); }
.map-link { display: inline-flex; gap: 6px; align-items: center; }
.observances { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.observances li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.observances .d { font: 700 1rem/1.2 var(--serif); color: var(--red); }
.observances .d small { display: block; font: 500 .78rem var(--sans); color: var(--muted); }
.observances.past li { opacity: .6; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }

/* maps, resources, extra profile blocks */
.map-wrap { margin: 0; }
.map { position: relative; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--sky) 25%, var(--surface)), var(--surface-2)); overflow: hidden; display: grid; place-items: center; z-index: 0; }
.map.leaflet-container { display: block; }
.map-wrap figcaption { margin-top: 6px; }
.map-popup a { font-weight: 600; }
.chip--sm { font-size: .68rem; padding: 3px 7px; }
.fact-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.fact-list li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.quote { margin: 0 0 12px; padding: 12px 16px; border-left: 4px solid var(--red); background: var(--red-soft); border-radius: 0 10px 10px 0; font-family: var(--serif); color: var(--ink); }
.valor-chips { margin: 26px 0 -6px; }
.battle-mini h3 { font-size: 1.05rem; }
.big-phone { font: 700 1.25rem/1.3 var(--serif); color: var(--red); margin: 6px 0; }
.places td { font-size: .9rem; }
.places .chip { vertical-align: 1px; }

@media print {
  .topbar, .site-header, .site-footer, .honor-box, .pn, .videos, .skip { display: none !important; }
  .page-hero { background: none; color: #000; } .page-hero h1, .crumbs a { color: #000; }
  .profile-grid { grid-template-columns: 1fr; } body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
