:root {
  --navy: #14233b;
  --navy-2: #1d3354;
  --gold: #c8962e;
  --gold-dark: #9d741b;
  --cream: #f4efe4;
  --paper: #fffdf8;
  --ink: #1c2430;
  --muted: #5b6676;
  --line: #ddd5c3;
  --olive: #4a5d3a;
  --red: #a4332b;
  --amber: #b9741a;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 35, 59, .10);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--gold); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .02em; }
.brand-text small { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: #e5c77c; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a:not(.btn) { color: #e8ecf3; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .95rem; }
.site-nav a:not(.btn):hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a.active:not(.btn) { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }
.userbar { background: var(--cream); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); padding: 6px 0; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: 12px 24px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-gold { background: var(--gold); color: #1b1405; border-color: var(--gold); }
.btn-gold:hover { background: #dba93e; color: #1b1405; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.area-portal main .btn-outline, .area-admin main .btn-outline { color: var(--navy); border-color: var(--navy); }
.area-portal main .btn-outline:hover, .area-admin main .btn-outline:hover { background: var(--navy); color: #fff; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #7f2620; color: #fff; }
.btn-link { background: none; border: 0; padding: 0; color: var(--navy-2); text-decoration: underline; cursor: pointer; font: inherit; }
.btn-link.danger { color: var(--red); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #274468 100%); color: #fff; padding: clamp(56px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: repeating-linear-gradient(90deg, var(--gold) 0 40px, transparent 40px 70px); opacity: .8; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero p.lead { font-size: 1.2rem; max-width: 56ch; color: #dde4ef; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero { background: var(--navy); color: #fff; padding: 56px 0 48px; border-bottom: 4px solid var(--gold); }
.page-hero h1 { color: #fff; margin-bottom: 8px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #d3dbe8; max-width: 62ch; margin: 0; font-size: 1.1rem; }

/* Sections */
section.block { padding: clamp(44px, 7vw, 80px) 0; }
section.alt { background: var(--cream); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card.flat { box-shadow: none; }
.icon-dot { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-top: -48px; position: relative; z-index: 2; }
.stat { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--olive); border-bottom: 3px solid var(--olive); transform: rotate(-45deg); }
.cta-band { background: var(--navy); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3dbe8; max-width: 52ch; margin-inline: auto; }
.timeline { border-left: 3px solid var(--gold); padding-left: 24px; margin: 0; }
.timeline > div { margin-bottom: 22px; position: relative; }
.timeline > div::before { content: ""; position: absolute; left: -33px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); }
.timeline strong { font-family: var(--serif); color: var(--navy); font-size: 1.1rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; font-size: .9rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; padding: 3px 8px; background: #e8e2d2; color: #4b4126; }
.badge-urgent { background: var(--red); color: #fff; }
.badge-important { background: var(--amber); color: #fff; }
.badge-pin { background: var(--navy); color: #fff; }
.badge-admin { background: var(--gold); color: #1b1405; }
.badge-off { background: #cfcfcf; color: #444; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 680px; }
.form.wide { max-width: none; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--navy); font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=search], input[type=number], input[type=password], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=file], select, textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid #bdb6a4; border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; }
textarea.tall { min-height: 280px; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(200,150,46,.45); outline-offset: 0; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: 20px; height: 20px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; border: 1px solid; }
.notice-ok { background: #e8f1e3; border-color: #a8c796; color: #28431b; }
.notice-err { background: #fbe9e7; border-color: #e3aaa4; color: #7a1f17; }
.notice-info { background: #eaf0f8; border-color: #b4c6e0; color: #1d3354; }

/* Portal */
.portal-wrap { padding: 40px 0 64px; min-height: 60vh; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.portal-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0; }
.dash-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--cream); border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.15rem; margin: 0; }
.panel-body { padding: 22px; }
.update { padding: 18px 22px; border-bottom: 1px solid var(--line); border-left: 5px solid var(--line); }
.update:last-child { border-bottom: 0; }
.update.lvl-important { border-left-color: var(--amber); background: #fff9ef; }
.update.lvl-urgent { border-left-color: var(--red); background: #fff3f1; }
.update h3 { margin: 6px 0 4px; }
.meta { color: var(--muted); font-size: .86rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a { font-weight: 600; }
.quick { display: grid; gap: 10px; }
.quick a { display: block; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; background: #fff; }
.quick a:hover { border-color: var(--gold); background: var(--cream); }
.article { max-width: 760px; }
.article h3 { margin-top: 1.4em; }
.article ul { padding-left: 1.3em; }
.empty { color: var(--muted); padding: 22px; text-align: center; }
.login-box { max-width: 440px; margin: 56px auto; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.tbl th, table.tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { background: var(--cream); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 99px; text-decoration: none; font-size: .9rem; background: #fff; }
.tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--navy); }
.kpi span { color: var(--muted); font-size: .88rem; }
.tempbox { font-family: ui-monospace, Menlo, Consolas, monospace; background: #fff; border: 2px dashed var(--gold); padding: 10px 14px; border-radius: 8px; display: inline-block; font-size: 1.1rem; margin: 6px 10px 6px 0; }

/* Footer */
.site-footer { background: #0e1a2d; color: #c9d2e0; padding: 48px 0 20px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--sans); }
.site-footer a { color: #e5c77c; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1.4fr; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 6px; }
.muted-light { color: #9fb0c9; max-width: 40ch; margin-top: 14px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #8fa0bb; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 71px; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 3px solid var(--gold); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav a.active:not(.btn) { box-shadow: none; }
}
@media (max-width: 860px) {
  .dash-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { margin-top: -30px; }
}
@media print {
  .site-header, .site-footer, .userbar, .no-print { display: none !important; }
  body { font-size: 12pt; }
}

/* ===== v2: logo + motion ===== */
.logo-mark { width: auto; height: 34px; display: block; filter: drop-shadow(0 0 10px rgba(200,150,46,.35)); transition: transform .4s ease, filter .4s ease; }
.brand:hover .logo-mark { transform: translateX(3px) scale(1.04); filter: drop-shadow(0 0 14px rgba(200,150,46,.7)); }
.brand-foot .logo-mark { height: 30px; }
.site-header { backdrop-filter: saturate(1.4) blur(6px); background: rgba(20,35,59,.94); transition: box-shadow .3s, min-height .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.35); }

/* Hero */
.hero { isolation: isolate; padding-bottom: clamp(120px, 12vw, 150px); }
.hero::after { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; inset: -20%; background:
  radial-gradient(40% 50% at 78% 38%, rgba(200,150,46,.28), transparent 70%),
  radial-gradient(45% 55% at 12% 90%, rgba(60,110,190,.35), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 46px); animation: slide 9s linear infinite; }
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
@keyframes slide { to { background-position: 92px 0; } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(24px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .gold { color: var(--gold); text-shadow: 0 0 28px rgba(200,150,46,.45); }
@keyframes rise { to { opacity: 1; transform: none; } }
.fade-in { opacity: 0; animation: rise .9s .7s ease forwards; }
.fade-in.d2 { animation-delay: .95s; }
.logo-stage { position: relative; display: grid; place-items: center; min-height: 280px; }
.logo-stage .ring { position: absolute; width: min(360px, 80%); aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(200,150,46,.45); animation: spin 40s linear infinite; }
.logo-stage .ring.r2 { width: min(290px, 64%); border-style: solid; border-color: rgba(255,255,255,.12); animation-duration: 28s; animation-direction: reverse; }
.logo-stage .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(200,150,46,.35), transparent 65%); animation: pulse 3.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.18); opacity: .7; } }
.logo-wrap { position: relative; width: min(340px, 78%); animation: float 6s 2s ease-in-out infinite; }
.hero-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 28px rgba(0,0,0,.45)); clip-path: inset(-60px 100% -60px -60px); animation: wipe 1.5s .35s cubic-bezier(.6,.05,.2,1) forwards; }
.hero-logo-gold { position: absolute; inset: 0; width: 100%; height: auto; clip-path: inset(0 100% 0 0); mix-blend-mode: screen; opacity: .0; animation: shine 3.8s 1.9s ease-in-out infinite; }
@keyframes wipe { to { clip-path: inset(-60px -60px -60px -60px); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes shine { 0% { clip-path: inset(0 100% 0 0); opacity: .9; } 55% { clip-path: inset(0 0 0 0); opacity: .9; } 100% { clip-path: inset(0 0 0 100%); opacity: 0; } }

/* Road + van */
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; overflow: hidden; z-index: 1; background: linear-gradient(#0d1829, #0a1322); border-top: 3px solid var(--gold); }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 48px; height: 5px; background: repeating-linear-gradient(90deg, #f4efe4 0 38px, transparent 38px 76px); animation: road 1.1s linear infinite; opacity: .85; }
@keyframes road { to { background-position: -76px 0; } }
.van { position: absolute; bottom: 14px; left: -190px; width: 170px; animation: drive 14s linear infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
@keyframes drive { to { transform: translateX(calc(100vw + 380px)); } }
.van .wheel { transform-box: fill-box; transform-origin: center; animation: spin .7s linear infinite; }
.van .bounce { animation: bump .5s ease-in-out infinite alternate; }
@keyframes bump { to { transform: translateY(-1.5px); } }

/* Stats overlap: keep above road */
.stats { margin-top: 36px; }

/* Ticker */
.ticker { background: var(--gold); color: #1b1405; overflow: hidden; white-space: nowrap; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; padding: 11px 0; border-block: 2px solid #8f6a15; }
.ticker-track { display: inline-flex; gap: 0; animation: tick 34s linear infinite; }
.ticker span { padding: 0 26px; }
.ticker span::after { content: "\2605"; margin-left: 52px; opacity: .55; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .12s; } .js .reveal.d2 { transition-delay: .24s; }

/* Cards: lift + glow */
.card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.grid-3 > .card:hover, .grid-2 > .card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,35,59,.18), 0 0 0 2px var(--gold); border-color: var(--gold); }
.icon-dot { transition: transform .4s ease, background .4s; }
.card:hover .icon-dot { transform: rotate(-8deg) scale(1.1); background: var(--gold); color: var(--navy); }

/* Buttons: shine */
.btn { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .25s ease, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.25); }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); }
.btn-gold:hover::after { left: 130%; transition: left .7s ease; }

/* Network map */
.netmap { background: radial-gradient(70% 90% at 50% 40%, #1b3354, #0e1a2d); color: #fff; padding: clamp(50px, 8vw, 90px) 0; overflow: hidden; }
.netmap h2 { color: #fff; }
.netmap p { color: #c9d6ea; }
.netgrid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.netsvg { width: 100%; height: auto; }
.netsvg .line { stroke: rgba(200,150,46,.55); stroke-width: 1.6; fill: none; stroke-dasharray: 5 7; animation: dash 1.6s linear infinite; }
.netsvg .node { fill: #f4efe4; }
.netsvg .halo { fill: none; stroke: var(--gold); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.netsvg .hub { fill: var(--gold); }
.netsvg text { fill: #e8ecf3; font: 600 12px var(--sans); letter-spacing: .08em; }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.bignum { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 24px; }
.bignum b { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.bignum span { font-size: .88rem; color: #c9d6ea; }

/* Portal polish */
.panel, .update { transition: box-shadow .3s ease; }
.quick a { transition: transform .2s ease, border-color .2s, background .2s; }
.quick a:hover { transform: translateX(4px); }
.login-box { position: relative; }
.login-box::before { content: ""; position: absolute; inset: -2px; border-radius: 12px; background: linear-gradient(120deg, var(--gold), transparent 40%, var(--navy-2)); z-index: -1; opacity: .7; }
.login-logo { display: block; height: 54px; margin: 0 0 14px; }

@media (max-width: 860px) {
  .hero-grid, .netgrid { grid-template-columns: 1fr; }
  .logo-stage { order: -1; min-height: 210px; }
  .hero h1 { max-width: none; }
  .van { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .w, .fade-in { opacity: 1; transform: none; }
  .hero-logo { clip-path: none; }
  .hero-logo-gold { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .van { left: 55%; }
}

.page-hero { position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 120% at 90% 0%, rgba(200,150,46,.28), transparent 70%); }
.page-hero::after { content: ""; position: absolute; right: 4%; top: 50%; width: 220px; height: 146px; transform: translateY(-50%); background: url('/assets/img/logo-white.png') center/contain no-repeat; opacity: .08; }
.page-hero .wrap { position: relative; }

.stat b { font-size: 2.4rem; }

/* ===== v3: calm public site, tribute, credentials ===== */
.flag-stripe { height: 7px; background: linear-gradient(90deg, #b22234 0 33.33%, #f4efe4 33.33% 66.66%, #3c3b6e 66.66% 100%); }
.site-footer .flag-stripe { margin-top: 30px; opacity: .9; }
.cred-grid { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.cred { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 20px; }
.cred b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin-bottom: 4px; }
.cred span { color: var(--muted); font-size: .94rem; display: block; }
.honor { background: linear-gradient(180deg, #0e1a2d, #14233b); color: #fff; text-align: center; padding: clamp(54px, 8vw, 90px) 0; border-block: 4px solid var(--gold); }
.honor .stars { color: var(--gold); letter-spacing: .6em; font-size: 1.1rem; margin-bottom: 14px; }
.honor h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.honor p { max-width: 62ch; margin: 0 auto; color: #d3dbe8; font-size: 1.1rem; }
.tbl th[scope=row] { background: var(--cream); width: 38%; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--navy); }

/* Public site stays composed: stop all looping motion. One-time entrances remain. */
.area-public .hero-bg::before, .area-public .hero-bg::after,
.area-public .logo-stage .ring, .area-public .logo-stage .glow,
.area-public .logo-wrap, .area-public .netsvg .line, .area-public .netsvg .halo { animation: none; }
.area-public .hero-bg::after { background-position: 0 0; }
.area-public .netsvg .halo { opacity: .5; transform: scale(1.6); }

/* Employee portal keeps the energy */
.portal-banner { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(120deg, #0e1a2d, #1d3354 70%); color: #fff; padding: 18px 24px 58px; margin-bottom: 20px; box-shadow: var(--shadow); isolation: isolate; }
.portal-banner::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(35% 45% at 85% 30%, rgba(200,150,46,.35), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.portal-banner h1 { color: #fff; margin: 0 0 4px; }
.portal-banner .eyebrow { margin-bottom: 6px; }
.portal-banner p { margin: 0; color: #d3dbe8; }
.banner-logo { position: absolute; right: 28px; top: 18px; width: 120px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.banner-logo img { display: block; width: 100%; height: auto; }
.banner-logo .shine { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0; animation: shine 4s 1s ease-in-out infinite; }
.portal-banner .road { height: 46px; border-top-width: 2px; }
.portal-banner .road::before { top: 28px; height: 4px; }
.portal-banner .van { width: 96px; bottom: 8px; left: -120px; animation-duration: 12s; }
@media (max-width: 860px) { .banner-logo { position: static; width: 90px; margin-bottom: 8px; } .portal-banner { padding-bottom: 66px; } }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* Admin menu has more items: keep it on one line on wide screens */
@media (min-width: 961px) {
  .area-admin .site-nav, .area-portal .site-nav { flex-wrap: nowrap; gap: 2px; }
  .area-admin .site-nav a:not(.btn), .area-portal .site-nav a:not(.btn) { padding: 8px 8px; font-size: .88rem; white-space: nowrap; }
  .area-admin .brand-text strong, .area-admin .site-nav .btn, .area-portal .brand-text strong, .area-portal .site-nav .btn { white-space: nowrap; }
}

/* Recruiters page and home path chooser / timeline */
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.partner-card { box-shadow: inset 0 4px 0 var(--gold), var(--shadow); }
.partner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.contact-list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; }
.contact-list li > span:first-child { color: var(--muted); font-weight: 600; font-size: .92rem; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.door { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.door:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(20,35,59,.16); border-left-color: var(--navy); color: var(--ink); }
.door-k { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--gold-dark); }
.door strong { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; color: var(--navy); }
.door-go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--navy); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--navy)); }
.timeline li { position: relative; padding-top: 52px; }
.timeline li::before { content: ""; position: absolute; top: 10px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); }
.timeline b { position: absolute; top: 0; left: 30px; background: var(--cream); padding-right: 10px; z-index: 1; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); line-height: 38px; }
.timeline h3 { font-size: 1.1rem; margin-bottom: .3em; }
.timeline p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 800px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 30px; }
  .timeline::before { left: 9px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -30px; top: 3px; }
  .timeline b { position: static; display: block; line-height: 1.2; margin-bottom: 4px; }
}
@media (max-width: 520px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Home: photo beside the tribute text */
.honor-photo { text-align: left; }
.honor-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.honor-fig { margin: 0; }
.honor-fig img { display: block; width: 100%; height: auto; border-radius: 10px; border: 3px solid var(--gold); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.honor-fig figcaption { margin-top: 10px; color: #aebbd0; font-size: .92rem; letter-spacing: .04em; }
.honor-photo .stars { margin-bottom: 12px; }
.honor-photo p { margin: 0; max-width: 52ch; }
@media (max-width: 800px) { .honor-split { grid-template-columns: 1fr; } .honor-photo { text-align: center; } .honor-photo p { margin-inline: auto; } }

/* Management directory */
.dir-dept { font-size: 1.25rem; margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.dir-card h3 { margin-bottom: 2px; }
.dir-title { color: var(--muted); margin-bottom: 12px; }
.dir-card .contact-list { margin-top: 4px; }
.dir-card .contact-list li { grid-template-columns: 4rem 1fr; overflow-wrap: anywhere; }

.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ---- Orientation + admin subnav ---- */
.orient-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;margin-bottom:8px}
.orient-card.is-video{grid-column:span 2}
@media(max-width:700px){.orient-card.is-video{grid-column:auto}}
.video-frame{position:relative;aspect-ratio:16/9;background:#0b1a33;border-radius:8px;overflow:hidden;margin-bottom:12px}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.subnav{background:var(--navy-900,#0b1a33);border-top:1px solid rgba(255,255,255,.12)}
.subnav nav{display:flex;flex-wrap:wrap;gap:2px;padding:4px 0}
.subnav a{color:#dfe6f2;text-decoration:none;font-size:.9rem;padding:8px 12px;border-radius:6px}
.subnav a:hover{background:rgba(255,255,255,.1)}
.subnav a.active{background:var(--gold,#c9a227);color:#0b1a33;font-weight:700}

/* ===== Home page: motion, color, layout (scoped to .page-home) ===== */
.page-home { --red: #c8312a; --blue: #2f6fd0; }
.page-home .hero { background: linear-gradient(125deg, #0a1426 0%, #14305e 48%, #1d4a8c 100%); padding-bottom: 150px; }
.page-home .hero-bg::before { background:
  radial-gradient(38% 50% at 80% 35%, rgba(240,180,50,.45), transparent 70%),
  radial-gradient(40% 55% at 8% 95%, rgba(47,111,208,.6), transparent 70%),
  radial-gradient(30% 40% at 55% 0%, rgba(200,49,42,.35), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate; }
.page-home .hero-bg::after { animation: slide 9s linear infinite; }
.page-home .logo-stage .ring { animation: spin 40s linear infinite; }
.page-home .logo-stage .ring.r2 { animation: spin 28s linear infinite reverse; }
.page-home .logo-stage .glow { animation: pulse 3.6s ease-in-out infinite; }
.page-home .logo-wrap { animation: float 6s 2s ease-in-out infinite; }
.page-home .netsvg .halo { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; opacity: 1; transform: none; }
.page-home .netsvg .line { animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -40; } }
.page-home .hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.05; }
.page-home .hero h1 .gold { background: linear-gradient(100deg, #f3c04e, #fff3c4, #f3c04e); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: rise .8s .26s cubic-bezier(.2,.8,.2,1) forwards, shimmer 4s 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: #a82620; color: #fff; }
.btn-pulse { animation: btnpulse 2.4s ease-in-out infinite; }
@keyframes btnpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(240,180,50,.0); } 50% { box-shadow: 0 0 0 10px rgba(240,180,50,.28); } }
.page-home .road { z-index: 1; }
.page-home .ticker { background: linear-gradient(90deg, var(--red), #e24b3d 50%, var(--red)); color: #fff; border-block: 0; font-size: .9rem; padding: 13px 0; }
.page-home .ticker span::after { color: #ffd36a; opacity: 1; }
.page-home .ticker-track { animation: tick 28s linear infinite; }

.statband { background: linear-gradient(180deg, #0e1a2d, #14305e); padding: 38px 0 44px; }
.page-home .statband .stats { margin-top: 0; }
.page-home .statband .stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-top: 4px solid var(--gold); color: #fff; box-shadow: none; backdrop-filter: blur(4px); transition: transform .3s, background .3s; }
.page-home .statband .stat:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.page-home .statband .stat b { color: #ffd36a; font-size: clamp(2.2rem, 4vw, 3.1rem); }
.page-home .statband .stat span { color: #d3dbe8; }

.page-home .doors-block { background: var(--cream); }
.page-home .doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.page-home .door { position: relative; overflow: hidden; border: 0; border-radius: 14px; color: #fff; padding: 26px 22px 54px; min-height: 210px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: transform .3s, box-shadow .3s; box-shadow: 0 10px 26px rgba(10,20,40,.18); }
.page-home .door:nth-child(1) { background: linear-gradient(145deg, #c8312a, #8f1f1a); }
.page-home .door:nth-child(2) { background: linear-gradient(145deg, #2f6fd0, #173e7c); }
.page-home .door:nth-child(3) { background: linear-gradient(145deg, #d9a21f, #9d741b); }
.page-home .door:nth-child(4) { background: linear-gradient(145deg, #4a5d3a, #26331c); }
.page-home .door::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: rgba(255,255,255,.14); transition: transform .5s; }
.page-home .door:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 20px 40px rgba(10,20,40,.3); }
.page-home .door:hover::before { transform: scale(1.8); }
.page-home .door .door-k { color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; }
.page-home .door strong { color: #fff; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.page-home .door .door-go { position: absolute; left: 22px; bottom: 20px; font-weight: 700; color: #fff; transition: transform .3s; }
.page-home .door:hover .door-go { transform: translateX(8px); }
@media (max-width: 980px) { .page-home .doors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .page-home .doors { grid-template-columns: 1fr; } .page-home .door { min-height: 0; } }

.dark-block { background: radial-gradient(60% 80% at 90% 0%, rgba(47,111,208,.35), transparent 70%), linear-gradient(180deg, #0e1a2d, #14233b); color: #fff; }
.dark-block h2, .dark-block h3 { color: #fff; }
.dark-block .section-head p, .dark-block .card p { color: #d3dbe8; }
.dark-block .eyebrow { color: #ffd36a; }
.dark-block .card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); box-shadow: none; transition: transform .3s, background .3s, border-color .3s; }
.dark-block .card:hover { transform: translateY(-8px); background: rgba(255,255,255,.12); border-color: var(--gold); }
.dark-block .icon-dot { background: var(--gold); color: #1b1405; box-shadow: 0 0 0 0 rgba(240,180,50,.5); animation: dotpulse 2.6s ease-in-out infinite; }
@keyframes dotpulse { 50% { box-shadow: 0 0 0 12px rgba(240,180,50,0); } }

.page-home .cred { transition: transform .3s, box-shadow .3s; }
.page-home .cred:nth-child(5n+1) { border-top-color: var(--red); } .page-home .cred:nth-child(5n+2) { border-top-color: var(--blue); }
.page-home .cred:nth-child(5n+3) { border-top-color: var(--gold); } .page-home .cred:nth-child(5n+4) { border-top-color: var(--olive); }
.page-home .cred:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.page-home .honor-fig img { transition: transform .8s; }
.page-home .honor-fig:hover img { transform: scale(1.04); }
.cta-red { background: linear-gradient(120deg, #a82620, #e24b3d 55%, #a82620); background-size: 200% 100%; animation: shimmer 9s linear infinite; }
.cta-red p { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .page-home .hero h1 .gold { color: var(--gold); -webkit-text-fill-color: initial; background: none; }
  .cta-red { background-size: 100% 100%; }
}

/* Patriotic flag backdrop behind the logo (replaces the rings) */
.page-home .logo-stage .ring, .page-home .logo-stage .glow { display: none; }
.flag-panel { position: absolute; width: min(460px, 96%); aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 3px rgba(200,150,46,.7);
  background: repeating-linear-gradient(180deg, #b22234 0 7.69%, #f4efe4 7.69% 15.38%); transform: perspective(900px) rotateY(-9deg) rotateX(3deg); animation: wave 7s ease-in-out infinite; }
.flag-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,40,.0), rgba(10,20,40,.28) 25%, rgba(255,255,255,.18) 50%, rgba(10,20,40,.28) 75%, rgba(10,20,40,0)); background-size: 200% 100%; animation: sheen 7s linear infinite; z-index: 2; }
.flag-panel::after { content: ""; position: absolute; inset: 0; background: rgba(10,20,45,.36); z-index: 1; }
.flag-panel .canton { position: absolute; left: 0; top: 0; width: 42%; height: 53.85%; background: #3c3b6e; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20' viewBox='0 0 24 20'%3E%3Cpath fill='%23f4efe4' d='M6 3l1.1 2.6 2.8.2-2.1 1.8.7 2.7L6 8.9 3.5 10.3l.7-2.7L2.1 5.8l2.8-.2z'/%3E%3C/svg%3E"); background-size: 24px 20px; }
.logo-stage .logo-wrap { z-index: 3; }
@keyframes wave { 50% { transform: perspective(900px) rotateY(-3deg) rotateX(-2deg) translateY(-6px); } }
@keyframes sheen { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .flag-panel { animation: none; } }

/* Full-bleed waving flag hero */
.flag-panel { display: none; }
#flagCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flag-veil { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(7,14,32,.92) 0%, rgba(7,14,32,.7) 38%, rgba(7,14,32,.25) 75%, rgba(7,14,32,.4) 100%),
  linear-gradient(180deg, rgba(7,14,32,.35), transparent 30%, rgba(7,14,32,.7)); }
.page-home .hero-bg::before, .page-home .hero-bg::after { z-index: 2; mix-blend-mode: screen; }
.page-home .logo-stage { transition: transform .15s ease-out; transform-style: preserve-3d; }
.page-home .logo-stage .glow { display: block; }
.page-home .hero-logo { filter: drop-shadow(0 0 22px rgba(255,255,255,.35)) drop-shadow(0 14px 30px rgba(0,0,0,.7)); }

/* ===================== VINTAGE FIELD MANUAL THEME (home) ===================== */
.page-vintage { --o9:#161b0e; --o8:#1f2615; --o7:#2e3820; --o6:#3d4a2b; --parch:#efe6cf; --parch2:#e4d6b3; --brass:#c19a3e; --brick:#a8322a; --ink:#231f16; --rule:#cdbf98; background: var(--parch); color: var(--ink); }
.page-vintage::after { content:""; position:fixed; inset:-50%; z-index:40; pointer-events:none; opacity:.09; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .7s steps(4) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-2%)} 100%{transform:translate(0,0)} }
.scrollbar { position:fixed; top:0; left:0; right:0; height:4px; z-index:100; background:linear-gradient(90deg,var(--brass),#f0cf7a); transform-origin:0 50%; transform:scaleX(0); }

/* Hero */
.page-vintage .hero { background: var(--o9); padding-bottom: 150px; }
.page-vintage .hero-bg::before { background: radial-gradient(40% 55% at 82% 40%, rgba(193,154,62,.35), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(80,100,50,.5), transparent 70%); }
.page-vintage .hero-bg::after { background-image: none; }
.page-vintage #flagCanvas { filter: sepia(.7) saturate(.7) contrast(1.08) brightness(.92); }
.page-vintage .flag-veil { background: linear-gradient(90deg, rgba(18,22,10,.94) 0%, rgba(18,22,10,.78) 42%, rgba(18,22,10,.4) 78%, rgba(18,22,10,.6) 100%), linear-gradient(180deg, rgba(18,22,10,.4), transparent 35%, rgba(18,22,10,.75)); }
.topo { position:absolute; inset:0; z-index:2; mix-blend-mode:screen; pointer-events:none; opacity:.9;
  background-image: repeating-radial-gradient(circle at 18% 28%, transparent 0 26px, rgba(193,154,62,.16) 26px 27px), repeating-radial-gradient(circle at 88% 72%, transparent 0 34px, rgba(193,154,62,.13) 34px 35px), repeating-radial-gradient(circle at 55% 110%, transparent 0 20px, rgba(193,154,62,.10) 20px 21px);
  animation: topo 30s ease-in-out infinite alternate; }
@keyframes topo { to { background-position: 40px -30px, -50px 30px, 20px 40px; } }
.vh-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:center; }
.page-vintage .hero h1 { margin-top: 22px; }
.page-vintage .eyebrow { color: var(--brass); }

.order { font-family: "Courier New", Courier, ui-monospace, monospace; background: var(--parch); color: var(--ink); max-width: 470px; padding: 14px 18px 16px; border-left: 6px solid var(--brick); transform: rotate(-1.2deg); box-shadow: 0 14px 34px rgba(0,0,0,.5); position: relative; font-size: .93rem; }
.order::after { content:""; position:absolute; inset:0; background: repeating-linear-gradient(180deg, transparent 0 25px, rgba(60,50,30,.07) 25px 26px); pointer-events:none; }
.order-head { display:flex; justify-content:space-between; font-weight:700; letter-spacing:.18em; text-transform:uppercase; font-size:.78rem; border-bottom: 2px dashed rgba(35,31,22,.45); padding-bottom: 8px; margin-bottom: 8px; color: var(--brick); }
.order-line { display:flex; gap:14px; padding: 2px 0; min-height: 1.5em; }
.order-line .k { flex: 0 0 64px; text-transform:uppercase; letter-spacing:.14em; font-size:.75rem; padding-top:2px; color:#6b5f43; }
.order-line .t { font-weight:700; }
.order-line .t.ok { color:#35541f; }
.caret::after { content:""; display:inline-block; width:.55em; height:1.05em; background: var(--ink); margin-left:2px; vertical-align:-2px; animation: blink .7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.print { position:relative; margin:0; justify-self:center; width:min(440px,100%); background:#f3ead2; padding:14px 14px 56px; box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.5) inset; transform: rotate(3deg) translateY(var(--py,0px)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.print:hover { transform: rotate(0deg) scale(1.03); }
.print-img { position:relative; overflow:hidden; }
.print-img img { display:block; width:100%; height:auto; filter: sepia(.6) contrast(1.08) saturate(.8) brightness(.97); }
.print-img .grain { position:absolute; inset:0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(40,25,5,.55)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .05 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.print figcaption { position:absolute; left:20px; bottom:12px; font-family:"Segoe Script","Brush Script MT","Bradley Hand",cursive; font-size:1.25rem; color:#3a3223; transform: rotate(-1.5deg); }
.tape { position:absolute; width:96px; height:28px; background: rgba(226,210,160,.78); box-shadow: 0 1px 3px rgba(0,0,0,.3); z-index:3; }
.tape.t1 { top:-12px; left:-26px; transform: rotate(-38deg); } .tape.t2 { top:-12px; right:-26px; transform: rotate(38deg); }
.stamp { position:absolute; right:-26px; bottom:26px; z-index:4; border:4px double var(--brick); color:var(--brick); padding:6px 16px; text-align:center; font-family: Impact, "Arial Black", sans-serif; text-transform:uppercase; line-height:1; letter-spacing:.12em; background: rgba(243,234,210,.14); opacity:0; transform: rotate(-14deg) scale(2.6); mix-blend-mode: normal; text-shadow: 0 0 1px rgba(168,50,42,.6); }
.stamp span { display:block; font-size:.95rem; } .stamp b { display:block; font-size:1.75rem; }
.stamp.slam { animation: slam .5s cubic-bezier(.2,.9,.3,1.15) forwards; }
@keyframes slam { 0% { opacity:0; transform: rotate(-14deg) scale(2.6); } 65% { opacity:1; transform: rotate(-14deg) scale(.94); } 100% { opacity:.93; transform: rotate(-14deg) scale(1); } }
html:not(.js) .stamp, .stamp.now { opacity:.93; transform: rotate(-14deg); }

.page-vintage .ticker { background: var(--brass); color: #1d1608; border-block: 3px double #5e4814; }
.page-vintage .ticker span::after { color: #5e4814; }

/* Dog tags */
.page-vintage .statband { background: linear-gradient(180deg, var(--o8), var(--o7)); }
.tags { gap: 22px; }
.page-vintage .statband .tag { position:relative; background: linear-gradient(145deg,#e4e5e1,#a3a6a2 45%,#d3d4d0 70%,#9a9d99); color:#2a2c28; border:0; border-radius:20px; padding: 36px 18px 22px; box-shadow: inset 0 0 0 5px rgba(255,255,255,.4), inset 0 0 0 6px rgba(0,0,0,.22), 0 16px 28px rgba(0,0,0,.5); transform-origin: 50% 0; backdrop-filter:none; transition: transform .4s; }
.page-vintage .statband .tag:nth-child(odd) { transform: rotate(-1.6deg); } .page-vintage .statband .tag:nth-child(even) { transform: rotate(1.4deg); }
.page-vintage .statband .tag:hover { animation: swing 1.2s ease-in-out; }
@keyframes swing { 20%{transform:rotate(7deg)} 45%{transform:rotate(-5deg)} 70%{transform:rotate(3deg)} 100%{transform:rotate(0)} }
.tag .hole { position:absolute; top:12px; left:50%; width:16px; height:16px; margin-left:-8px; border-radius:50%; background: var(--o8); box-shadow: inset 0 2px 3px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.7); }
.page-vintage .statband .tag b { color:#1c1e1b; font-family: "Courier New", Courier, monospace; letter-spacing:.04em; text-shadow: 0 1px 0 rgba(255,255,255,.75), 0 -1px 0 rgba(0,0,0,.25); font-size: clamp(2rem,3.6vw,2.9rem); }
.page-vintage .statband .tag span { color:#3d403b; font-weight:600; text-transform:uppercase; letter-spacing:.06em; font-size:.75rem; text-shadow: 0 1px 0 rgba(255,255,255,.6); }

/* Manila folder doors */
.page-vintage .doors-block, .page-vintage section.block { background: var(--parch); }
.page-vintage .doors-block { padding-top: 70px; }
.page-vintage .door { background: #ecdfbd !important; color: var(--ink); border-radius: 3px 14px 6px 6px; border: 1px solid #b9a876; box-shadow: 0 10px 22px rgba(60,45,15,.25), inset 0 0 0 1px rgba(255,255,255,.4); overflow: visible; }
.page-vintage .door::before { display:none; }
.page-vintage .door::after { content:""; position:absolute; top:-15px; left:16px; width:96px; height:16px; border-radius:6px 6px 0 0; background: var(--tab, var(--brick)); border:1px solid rgba(0,0,0,.25); border-bottom:0; }
.page-vintage .door:nth-child(1) { --tab: var(--brick); } .page-vintage .door:nth-child(2) { --tab: #2e4a6b; } .page-vintage .door:nth-child(3) { --tab: var(--brass); } .page-vintage .door:nth-child(4) { --tab: var(--o6); }
.page-vintage .door .door-k { color: #6b5f43; } .page-vintage .door strong { color: var(--ink); } .page-vintage .door .door-go { color: var(--brick); }
.page-vintage .door:hover { transform: translateY(-10px) rotate(-1deg); }
.page-vintage .section-head h2, .page-vintage h2 { color: var(--ink); }
.page-vintage .section-head p { color: #5a4f38; }

/* Dark sections go olive */
.page-vintage .dark-block { background: radial-gradient(60% 80% at 90% 0%, rgba(193,154,62,.18), transparent 70%), linear-gradient(180deg, var(--o8), var(--o9)); color:#fff; }
.page-vintage .dark-block h2, .page-vintage .dark-block h3 { color:#f3ead2; }
.page-vintage .dark-block .eyebrow { color: var(--brass); }
.page-vintage .dark-block .card { background: rgba(239,230,207,.07); border-color: rgba(193,154,62,.35); }
.page-vintage .dark-block .card:hover { border-color: var(--brass); }
.page-vintage .dark-block .icon-dot { background: var(--brass); }

/* Story timeline as a dispatch log */
.page-vintage section.story { background: var(--parch2); border-block: 1px solid var(--rule); }
.page-vintage .timeline::before { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brass) calc(var(--p,0) * 100%), rgba(35,31,22,.25) calc(var(--p,0) * 100%)); }
.page-vintage .timeline li::before { background: var(--parch2); border-color: var(--ink); }
.page-vintage .timeline b { background: var(--parch2); color: var(--brick); font-family: "Courier New", Courier, monospace; letter-spacing:.06em; }
.page-vintage .timeline h3 { color: var(--ink); } .page-vintage .timeline p { color: #5a4f38; }
.tl-van { position:absolute; left:0; top:-10px; width:60px; height:29px; z-index:3; pointer-events:none; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); background: url("data:image/svg+xml,%3Csvg%20%20viewBox=%270%200%20120%2058%27%20xmlns=%27http://www.w3.org/2000/svg%27%20aria-hidden=%27true%27%3E%3Cg%3E%3Cpath%20d=%27M6%2042V28h14v-2h38v2h14l5%204h32q5%200%205%205v5z%27%20fill=%27%2355662f%27/%3E%3Crect%20x=%2722%27%20y=%2716%27%20width=%276%27%20height=%2713%27%20rx=%271%27%20fill=%27%233b4a22%27/%3E%3Cpath%20d=%27M70%2030L65%2011h4l6%2019%27%20fill=%27rgba%28239,230,207,.35%29%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27/%3E%3Cpath%20d=%27M62%2042a11%2011%200%200%201%2022%200zM16%2042a11%2011%200%200%201%2020%200z%27%20fill=%27%233b4a22%27/%3E%3Crect%20x=%27108%27%20y=%2732%27%20width=%275%27%20height=%2710%27%20fill=%27%231c1912%27/%3E%3Ccircle%20cx=%27106%27%20cy=%2733%27%20r=%272.6%27%20fill=%27%23efe6cf%27/%3E%3Crect%20x=%273%27%20y=%2742%27%20width=%27112%27%20height=%273%27%20fill=%27%238a8571%27/%3E%3Cpath%20d=%27M92.0%2032.8%20L93.0%2035.6%20L96.0%2035.7%20L93.6%2037.5%20L94.5%2040.4%20L92.0%2038.7%20L89.5%2040.4%20L90.4%2037.5%20L88.0%2035.7%20L91.0%2035.6Z%27%20fill=%27%23efe6cf%27/%3E%3Cg%20%3E%3Ccircle%20cx=%2726%27%20cy=%2746%27%20r=%2710%27%20fill=%27%231c1912%27/%3E%3Ccircle%20cx=%2726%27%20cy=%2746%27%20r=%277%27%20fill=%27%233a3426%27/%3E%3Cline%20x1=%2726%27%20y1=%2739%27%20x2=%2726%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%280%2026%2046%29%27/%3E%3Cline%20x1=%2726%27%20y1=%2739%27%20x2=%2726%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%2845%2026%2046%29%27/%3E%3Cline%20x1=%2726%27%20y1=%2739%27%20x2=%2726%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%2890%2026%2046%29%27/%3E%3Cline%20x1=%2726%27%20y1=%2739%27%20x2=%2726%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%28135%2026%2046%29%27/%3E%3Ccircle%20cx=%2726%27%20cy=%2746%27%20r=%272.6%27%20fill=%27%23c8b27a%27/%3E%3C/g%3E%3Cg%20%3E%3Ccircle%20cx=%2780%27%20cy=%2746%27%20r=%2710%27%20fill=%27%231c1912%27/%3E%3Ccircle%20cx=%2780%27%20cy=%2746%27%20r=%277%27%20fill=%27%233a3426%27/%3E%3Cline%20x1=%2780%27%20y1=%2739%27%20x2=%2780%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%280%2080%2046%29%27/%3E%3Cline%20x1=%2780%27%20y1=%2739%27%20x2=%2780%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%2845%2080%2046%29%27/%3E%3Cline%20x1=%2780%27%20y1=%2739%27%20x2=%2780%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%2890%2080%2046%29%27/%3E%3Cline%20x1=%2780%27%20y1=%2739%27%20x2=%2780%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%28135%2080%2046%29%27/%3E%3Ccircle%20cx=%2780%27%20cy=%2746%27%20r=%272.6%27%20fill=%27%23c8b27a%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 860px) { .vh-grid { grid-template-columns: 1fr; gap: 36px; } .print { transform: rotate(2deg); width: min(360px, 92%); } .stamp { right: -8px; } .tl-van { width:30px; height:15px; left:-9px; top:0; } .page-vintage .timeline::before { background: linear-gradient(180deg, var(--brass) calc(var(--p,0) * 100%), rgba(35,31,22,.25) calc(var(--p,0) * 100%)); width:4px; } }

/* Credentials as index cards */
.page-vintage .cred { background: #f6eed8; border: 1px solid var(--rule); border-top-width: 5px; background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(60,45,15,.08) 27px 28px); }
.page-vintage .cred b { color: var(--ink); }
.page-vintage .cred:nth-child(5n+2) { border-top-color: #2e4a6b; }
.page-vintage .cred:nth-child(5n+4) { border-top-color: var(--o6); }
.page-vintage .cred:nth-child(5n+1) { border-top-color: var(--brick); }
.page-vintage .cred:nth-child(5n+3) { border-top-color: var(--brass); }

/* Honor, network, CTA */
.honor-flat { background: radial-gradient(70% 120% at 50% 0%, rgba(193,154,62,.2), transparent 70%), var(--o8); border-block: 4px double var(--brass); }
.page-vintage .honor .stars { color: var(--brass); }
.page-vintage .netmap { background: radial-gradient(60% 90% at 80% 20%, rgba(193,154,62,.16), transparent 70%), var(--o9); }
.page-vintage .netmap h2 { color: #f3ead2; } .page-vintage .netmap .eyebrow { color: var(--brass); }
.page-vintage .bignum b { color: var(--brass); }
.page-vintage .cta-red { background: repeating-linear-gradient(135deg, #8f2a22 0 28px, #9d3027 28px 56px); animation: none; border-top: 4px double var(--brass); }
.page-vintage .cta-red h2 { color: #f6eed8; }
.page-vintage .btn-red { background: var(--brick); border-color: var(--brick); }

@media (prefers-reduced-motion: reduce) { .page-vintage::after { animation: none; } .stamp.slam { opacity:.93; transform: rotate(-14deg); } .topo { animation: none; } .scrollbar { display:none; } }
.page-vintage section.block.dark-block { background: radial-gradient(60% 80% at 90% 0%, rgba(193,154,62,.18), transparent 70%), linear-gradient(180deg, var(--o8), var(--o9)); }
.page-vintage .dark-block h2, .page-vintage .dark-block .section-head h2, .page-vintage .honor h2, .page-vintage .cta-red h2 { color: #f3ead2; }
.page-vintage .dark-block .section-head p, .page-vintage .dark-block .card p { color: #d9d2bd; }
.page-vintage .dark-block .card h3 { color: #f3ead2; }
.page-vintage .timeline { border-left: 0; padding-left: 0; }
.page-vintage .timeline b { left: 34px; }
.page-vintage .eyebrow { color: #8a6a1f; }
.page-vintage .hero .eyebrow, .page-vintage .dark-block .eyebrow, .page-vintage .netmap .eyebrow { color: var(--brass); }
@media (max-width: 860px) { .page-vintage .timeline { padding-left: 30px; } .page-vintage .timeline b { left: auto; } }

/* Vintage convoy scene */
.page-vintage .road-v { height: 74px; background: linear-gradient(#3a3322, #241f14); border-top: 3px solid var(--brass); }
.page-vintage .road-v::before { top: 50px; background: repeating-linear-gradient(90deg, #d9c9a0 0 34px, transparent 34px 70px); opacity: .7; }
.convoy { position:absolute; bottom: 10px; left: -560px; display:flex; align-items:flex-end; gap: 46px; animation: convoy 30s linear infinite; filter: sepia(.25) drop-shadow(0 6px 6px rgba(0,0,0,.55)); }
@keyframes convoy { to { transform: translateX(calc(100vw + 1200px)); } }
.vv { display:block; height:auto; flex:none; } .vv.jeep { width: 100px; } .vv.bus { width: 150px; } .vv.truck { width: 132px; } .vv.pax { width: 124px; }
.vv .wheel { transform-box: fill-box; transform-origin: center; animation: spin .6s linear infinite; }
.vv .bounce { animation: bump .45s ease-in-out infinite alternate; }
.convoy .vv:nth-child(2) .bounce { animation-delay: -.15s; } .convoy .vv:nth-child(3) .bounce { animation-delay: -.3s; } .convoy .vv:nth-child(4) .bounce { animation-delay: -.05s; }
.scene-sky { position:absolute; left:0; right:0; bottom: 77px; height: 172px; overflow:hidden; z-index:1; pointer-events:none; }
.scene-sky .plane { position:absolute; top: 10px; left:-120px; width: 86px; animation: fly 38s 4s linear infinite; filter: sepia(.3) drop-shadow(0 4px 4px rgba(0,0,0,.4)); }
.scene-sky .plane::after { content:""; }
@keyframes fly { 0% { transform: translate(0,0); } 50% { transform: translate(55vw,14px); } 100% { transform: translate(calc(100vw + 240px),-6px); } }
.plane .prop { transform-box: fill-box; transform-origin: center; animation: propspin .12s linear infinite; }
@keyframes propspin { 50% { transform: scaleY(.35); } }
.scene-sky .ship { position:absolute; bottom: 2px; right: -680px; width: 620px; height: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.55)); animation: sail 70s 3s linear infinite; z-index: 1; overflow: visible; }
.scene-sky .ship .bob { animation: bob 4.5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(2px) rotate(-.5deg); } }
@keyframes sail { to { transform: translateX(calc(-100vw - 1320px)); } }
.scene-sky::after { content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background: rgba(193,154,62,.35); }
@media (max-width: 860px) { .vv.jeep { width: 76px; } .vv.bus { width: 112px; } .vv.truck { width: 100px; } .vv.pax { width: 94px; } .convoy { gap: 30px; } .scene-sky .plane { width: 64px; } .scene-sky .ship { width: 340px; right: -380px; } }
@media (prefers-reduced-motion: reduce) { .convoy { left: 12%; animation: none; } .scene-sky .plane { left: 55%; animation: none; } .scene-sky .ship { display: none; } }
.page-vintage .hero .vh-grid { position: relative; z-index: 3; }
.scene-sky { z-index: 0; }
.page-vintage .road-v { z-index: 1; }

/* ===================== VINTAGE THEME ON EVERY PAGE ===================== */
.page-vintage { --navy:#252d17; --navy-2:#3d4a2b; --gold:#c19a3e; --gold-dark:#8a6a1f; --cream:#e4d6b3; --paper:#efe6cf; --line:#cdbf98; --muted:#5a4f38; --red:#a8322a; --shadow:0 6px 20px rgba(60,45,15,.18); }
.page-vintage .site-header { background: rgba(26,32,16,.97); border-bottom-color: var(--brass); }
.page-vintage .site-footer { background: #161b0e; color: #cfc7ad; border-top: 4px double var(--brass); }
.page-vintage .site-footer h4 { color: #f3ead2; }
.page-vintage .site-footer a { color: #e2c274; }
.page-vintage .userbar { background: #e4d6b3; border-bottom: 1px solid var(--line); color: #5a4f38; }
.page-vintage .eyebrow { font-family: "Courier New", Courier, ui-monospace, monospace; letter-spacing: .22em; }
.page-vintage .page-hero { background:
  repeating-radial-gradient(circle at 12% 120%, transparent 0 26px, rgba(193,154,62,.14) 26px 27px),
  repeating-radial-gradient(circle at 92% -20%, transparent 0 32px, rgba(193,154,62,.11) 32px 33px),
  linear-gradient(120deg, #161b0e, #2e3820); border-bottom: 4px double var(--brass); }
.page-vintage .page-hero h1 { color: #f3ead2; } .page-vintage .page-hero p { color: #d9d2bd; }
.page-vintage .page-hero::before { background: radial-gradient(40% 120% at 90% 0%, rgba(193,154,62,.25), transparent 70%); }
.page-vintage .card, .page-vintage .panel { background: #f6eed8; border-color: var(--line); }
.page-vintage .card { border-top: 3px solid var(--brass); }
.page-vintage .dark-block .card { border-top: 1px solid rgba(193,154,62,.35); background: rgba(239,230,207,.07); }
.page-vintage .portal-wrap .card, .page-vintage .login-box { border-top: 3px solid var(--brass); }
.page-vintage .list li { border-bottom-color: var(--line); }
.page-vintage .panel-head { background: #e4d6b3; }
.page-vintage .icon-dot { background: var(--navy); color: var(--brass); border-radius: 6px; }
.page-vintage input[type=text], .page-vintage input[type=search], .page-vintage input[type=number], .page-vintage input[type=password], .page-vintage input[type=email], .page-vintage input[type=tel], .page-vintage input[type=date], .page-vintage input[type=time], .page-vintage input[type=datetime-local], .page-vintage input[type=url], .page-vintage input[type=file], .page-vintage select, .page-vintage textarea { background: #fbf6e6; border-color: #b9a876; }
.page-vintage .notice-info { background: #f1e7c8; border-color: #cdbf98; color: #3d3418; }
.page-vintage .notice-ok { background: #e4ead2; border-color: #a9b98a; color: #2b3d17; }
.page-vintage .tbl th { background: #e4d6b3; color: var(--ink); }
.page-vintage .tbl td, .page-vintage .tbl th { border-color: var(--line); }
.page-vintage .badge { background: #e4d6b3; color: #4b4126; }
.page-vintage .badge-pin { background: var(--navy); color: #f3ead2; }
.page-vintage .badge-urgent { background: var(--brick); color: #fff; }
.page-vintage .portal-banner { background:
  repeating-radial-gradient(circle at 10% 130%, transparent 0 24px, rgba(193,154,62,.14) 24px 25px),
  linear-gradient(120deg, #161b0e, #2e3820 70%); border: 1px solid #4a5a2e; }
.page-vintage .portal-banner p { color: #d9d2bd; }
.page-vintage .portal-banner .road-v { height: 40px; border-top-width: 2px; }
.page-vintage .portal-banner .road-v::before { top: 26px; height: 4px; }
.page-vintage .portal-banner .convoy { bottom: 4px; gap: 30px; animation-duration: 22s; }
.page-vintage .portal-banner .vv.jeep { width: 62px; } .page-vintage .portal-banner .vv.bus { width: 92px; }
.page-vintage .portal-banner .banner-logo { filter: sepia(.2); }
.area-portal.page-vintage::after, .area-admin.page-vintage::after { animation: none; opacity: .06; }
.stamp-note { display: inline-block; border: 3px double var(--brick); color: var(--brick); font-family: Impact, "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; padding: 4px 12px; transform: rotate(-3deg); margin-bottom: 12px; opacity: .9; }
.page-vintage .site-nav a:not(.btn):hover { background: rgba(193,154,62,.18); }
.page-vintage .subnav { background: #161b0e; border-top-color: rgba(193,154,62,.3); }
.page-vintage .subnav a.active { background: var(--brass); color: #1d1608; }
.page-vintage .orient-card .video-frame, .page-vintage .video-frame { background: #161b0e; }
.page-vintage .dir-title, .page-vintage .meta { color: #5a4f38; }

/* Animated route map */
.page-vintage .netgrid { grid-template-columns: .8fr 1.5fr; gap: 40px; align-items: center; }
.mapwrap { min-width: 0; }
.usmap { width: 100%; height: auto; display: block; overflow: visible; }
.usmap .route { fill: none; stroke: #c19a3e; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.usmap.go .route { animation: mapdraw 1.5s var(--d) cubic-bezier(.4,0,.2,1) forwards; }
@keyframes mapdraw { to { stroke-dashoffset: 0; } }
.usmap .first { fill: none; stroke: #f0cf7a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.usmap.go .first { animation: mapdraw .9s .2s ease-out forwards; }
.usmap .node .dot { fill: #f3ead2; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.usmap.go .node .dot { animation: nodepop .5s var(--d) cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes nodepop { to { transform: scale(1); } }
.usmap .node .ping { fill: none; stroke: #f0cf7a; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.usmap.go .node .ping { animation: ping 3.6s calc(var(--d) + var(--p)) ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(4.5); opacity: 0; } }
.usmap .fay { fill: #f3ead2; opacity: 0; } .usmap.go .fay { animation: fadein .4s forwards; }
.usmap .hub { fill: #c8312a; stroke: #f3ead2; stroke-width: 2; }
.usmap .halo { fill: rgba(200,49,42,.25); transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-in-out infinite; }
.usmap .truck { fill: #f0cf7a; opacity: 0; } .usmap.go .truck { opacity: 1; }
.usmap .leader { fill: none; stroke: #f3ead2; stroke-width: 1; opacity: 0; } .usmap.go .leader { animation: fadein .5s .8s forwards; }
.usmap .lbl { font: 700 13px "Courier New", Courier, monospace; letter-spacing: .12em; fill: #f3ead2; opacity: 0; } .usmap.go .lbl { animation: fadein .5s 1s forwards; }
.usmap .tag1984 rect { fill: #a8322a; stroke: #f3ead2; stroke-width: 1.5; } .usmap .tag1984 text { font: 700 11px "Courier New", Courier, monospace; fill: #f3ead2; letter-spacing: .08em; }
.usmap .tag1984 { opacity: 0; } .usmap.go .tag1984 { animation: fadein .5s 1.2s forwards; }
@keyframes fadein { to { opacity: 1; } }
.usmap .compass circle, .usmap .compass path { fill: none; stroke: rgba(193,154,62,.55); stroke-width: 1.2; } .usmap .compass text { font: 700 14px "Courier New", monospace; fill: rgba(193,154,62,.8); text-anchor: middle; }
.usmap.static .route, .usmap.static .first { stroke-dashoffset: 0; animation: none; } .usmap.static .node .dot { transform: none; animation: none; } .usmap.static .fay, .usmap.static .leader, .usmap.static .lbl, .usmap.static .tag1984 { opacity: 1; animation: none; }
html:not(.js) .usmap .route, html:not(.js) .usmap .first { stroke-dashoffset: 0; } html:not(.js) .usmap .node .dot { transform: none; } html:not(.js) .usmap .fay, html:not(.js) .usmap .leader, html:not(.js) .usmap .lbl, html:not(.js) .usmap .tag1984 { opacity: 1; }
@media (max-width: 860px) { .page-vintage .netgrid { grid-template-columns: 1fr; } .usmap .lbl { font-size: 17px; } }

/* Owner letter */
.letter-desk { background: radial-gradient(70% 90% at 50% 0%, rgba(193,154,62,.18), transparent 70%), linear-gradient(180deg, #2a3320, #1b2112); padding: clamp(56px, 8vw, 96px) 0; border-block: 4px double var(--brass); }
.letter { position: relative; max-width: 760px; margin: 0 auto; background: #f6eed8; color: #231f16; padding: clamp(30px, 5vw, 56px) clamp(24px, 5vw, 60px) 40px; transform: rotate(-.6deg); box-shadow: 0 30px 60px rgba(0,0,0,.55); background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(60,45,15,.08) 31px 32px); }
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(60,45,15,.2); pointer-events: none; }
.letter h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .8em; }
.letter p { font-family: "Courier New", Courier, ui-monospace, monospace; font-size: 1.02rem; line-height: 2; margin: 0 0 .9em; }
.letter .clip { position: absolute; top: -18px; left: 56px; width: 22px; height: 70px; border: 3px solid #9b957f; border-radius: 12px; border-bottom-color: transparent; transform: rotate(4deg); z-index: 2; }
.letter-stamp { position: absolute; top: 22px; right: 26px; border: 3px double var(--brick); color: var(--brick); padding: 3px 10px; font: 400 .85rem Impact, "Arial Black", sans-serif; letter-spacing: .14em; text-transform: uppercase; transform: rotate(5deg); opacity: .85; }
.signoff { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 26px; }
.sig { font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", "Apple Chancery", "Lucida Handwriting", cursive; font-size: clamp(2rem, 5vw, 2.8rem); color: #1c2a5a; transform: rotate(-4deg); line-height: 1; border-bottom: 2px solid rgba(28,42,90,.35); padding: 0 8px 4px 0; }
.sig-img { max-height: 76px; width: auto; filter: contrast(1.1); }
.sig-name { font-family: "Courier New", Courier, monospace; font-weight: 700; font-size: .92rem; line-height: 1.5; }
.sig-name span { font-weight: 400; color: #5a4f38; }

/* Honors, NEW badge, recruiter tab */
.badge-new { background: var(--brick); color: #fff; vertical-align: middle; margin-left: 6px; animation: newpulse 2s ease-in-out infinite; }
@keyframes newpulse { 50% { box-shadow: 0 0 0 4px rgba(168,50,42,.25); } }
.medal { position: relative; width: 64px; height: 92px; flex: none; }
.medal .ribbon { position: absolute; left: 14px; top: 0; width: 36px; height: 48px; background: linear-gradient(90deg, #a8322a 0 33%, #efe6cf 33% 66%, #2e3a6e 66%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.medal .disc { position: absolute; left: 6px; top: 36px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3d98a, #c19a3e 55%, #8a6a1f); box-shadow: 0 4px 8px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.35), inset 0 0 0 5px rgba(90,60,10,.35); display: grid; place-items: center; }
.medal .disc i { font-style: normal; color: #5a3f0c; font-size: 1.5rem; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.honor-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin: 22px 0 10px; }
.honor-card { position: relative; background: #f6eed8; border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: 6px; padding: 26px 26px 26px 110px; box-shadow: var(--shadow); min-height: 150px; }
.honor-card .medal { position: absolute; left: 26px; top: 26px; }
.honor-card h2 { margin: 0 0 4px; font-size: 1.6rem; }
.ann-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ann { display: flex; align-items: center; gap: 14px; background: #f6eed8; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.ann .yrs { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--navy); color: #f3ead2; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ann .yrs b { font: 700 1.3rem var(--serif); color: var(--brass); } .ann .yrs span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.ann.ms { border-color: var(--brass); box-shadow: 0 0 0 2px rgba(193,154,62,.35); } .ann.ms .yrs { background: linear-gradient(145deg, #c19a3e, #8a6a1f); } .ann.ms .yrs b { color: #fff; }
.honors-panel .hp-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.honors-panel .hp-row .medal { transform: scale(.62); transform-origin: left center; width: 40px; height: 58px; }
.hp-ann { list-style: none; margin: 4px 0 8px; padding: 0; } .hp-ann li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--line); font-size: .95rem; } .hp-ann span { color: var(--gold-dark); font-weight: 700; }
.recruiter-tab { position: fixed; right: 0; top: 46%; z-index: 55; display: flex; flex-direction: column; align-items: center; gap: 4px; background: linear-gradient(145deg, #e4e5e1, #a3a6a2 55%, #cfd0cc); color: #1c1e1b; text-decoration: none; padding: 14px 10px 14px 12px; border-radius: 12px 0 0 12px; box-shadow: -6px 6px 18px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.4); writing-mode: vertical-rl; transform: translateX(8px); transition: transform .25s; font-family: "Courier New", Courier, monospace; letter-spacing: .08em; }
.recruiter-tab:hover { transform: translateX(0); color: #1c1e1b; }
.recruiter-tab span { font-size: .75rem; text-transform: uppercase; opacity: .75; } .recruiter-tab b { font-size: .92rem; text-transform: uppercase; }
@media (max-width: 700px) { .recruiter-tab { top: auto; bottom: 14px; right: 12px; writing-mode: horizontal-tb; flex-direction: row; border-radius: 30px; padding: 10px 16px; transform: none; } .recruiter-tab span { display: none; } }
@media print { .recruiter-tab { display: none; } }

/* Letter typing + signature reveal */
.letterhead { font-family: "Courier New", Courier, monospace; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #6b5f43; border-bottom: 1px solid rgba(60,45,15,.3); padding-bottom: 8px; margin-bottom: 18px; }
.letter p.typing::after { content: ""; display: inline-block; width: .55em; height: 1.05em; background: #231f16; margin-left: 2px; vertical-align: -3px; animation: blink .7s steps(1) infinite; }
.letter { cursor: default; }
.letter .signoff .sig, .letter .signoff .sig-img { clip-path: inset(0 100% 0 0); }
.letter .signoff .sig-name { opacity: 0; }
.letter .signoff.signed .sig, .letter .signoff.signed .sig-img { animation: inkwrite 2.2s cubic-bezier(.5,0,.3,1) forwards; }
.letter .signoff.signed .sig-name { animation: fadein .8s 1.6s forwards; }
@keyframes inkwrite { to { clip-path: inset(0 0 0 0); } }
.letter .signoff.static .sig, .letter .signoff.static .sig-img { clip-path: none; animation: none; } .letter .signoff.static .sig-name { opacity: 1; animation: none; }
html:not(.js) .letter .signoff .sig, html:not(.js) .letter .signoff .sig-img { clip-path: none; } html:not(.js) .letter .signoff .sig-name { opacity: 1; }

/* Safety board */
.safety-board { background: linear-gradient(180deg, #1c2112, #11150a); border: 3px solid #5a4a1c; border-radius: 6px; padding: 14px 16px 14px; text-align: center; box-shadow: inset 0 0 0 2px rgba(193,154,62,.35), 0 10px 22px rgba(0,0,0,.3); color: #efe6cf; }
.sb-top { font: 700 .75rem "Courier New", monospace; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.sb-digits { display: flex; justify-content: center; gap: 8px; margin: 4px 0 8px; }
.sb-digits .dg { width: 52px; height: 72px; display: grid; place-items: center; font: 700 3rem/1 "Courier New", monospace; color: #f0cf7a; background: linear-gradient(180deg, #2a2f1c 0 49%, #0e1108 50% 51%, #232818 52%); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 3px 6px rgba(0,0,0,.5); text-shadow: 0 0 14px rgba(240,207,122,.5); }
.sb-label { font-size: .88rem; color: #cfc7ad; letter-spacing: .04em; }

/* ===== Mission board and branch wall ===== */
.mission-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; align-items: stretch; }
.mission { background: #f3ead2; border: 1px solid #b9a875; border-radius: 4px; box-shadow: 0 8px 22px rgba(30,30,10,.2); padding: 18px 22px 14px; font-family: "Courier New", Courier, monospace; position: relative; background-image: repeating-linear-gradient(transparent 0 31px, rgba(80,70,30,.07) 31px 32px); }
.mission .order-head { display: flex; justify-content: space-between; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: #5a1d17; border-bottom: 2px solid #5a1d17; padding-bottom: 6px; margin-bottom: 8px; }
.mission .order-line { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 5px 0; font-size: .98rem; font-weight: 600; color: #17150a; line-height: 1.4; }
.mission .order-line .k { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: #3f3718; padding-top: 3px; }
.mission .order-line .t em { font-style: normal; color: #5e130b; font-weight: 700; margin-left: 4px; white-space: nowrap; }
.branch-wall { background: #252d17; border: 1px solid #3b4524; border-radius: 4px; box-shadow: 0 8px 22px rgba(30,30,10,.25); padding: 16px 18px; color: #f3ead2; }
.bw-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-family: var(--serif); }
.bw-head b { font-size: 1.05rem; color: #f3ead2; } .bw-head span { font: .75rem "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; color: #a9a58f; }
.bw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bw-plaque { background: linear-gradient(160deg, #3a4421, #2c3519); border: 1px solid #6e6232; border-radius: 3px; padding: 10px 8px 9px; text-align: center; display: grid; gap: 2px; position: relative; }
.bw-plaque i { font-style: normal; color: #c19a3e; font-size: .85rem; }
.bw-plaque strong { font: 700 .86rem var(--serif); color: #f3ead2; line-height: 1.2; }
.bw-plaque span { font: .75rem "Courier New", monospace; color: #b9b497; letter-spacing: .04em; }
.bw-plaque.soon { border-color: #c19a3e; } .bw-plaque.soon span { color: #e6c675; }
.bw-plaque.today { border-color: #e6c675; box-shadow: 0 0 0 2px rgba(230,198,117,.4), 0 0 18px rgba(230,198,117,.45); animation: bwglow 2.2s ease-in-out infinite; } .bw-plaque.today span { color: #f3d98a; }
@keyframes bwglow { 50% { box-shadow: 0 0 0 2px rgba(230,198,117,.7), 0 0 28px rgba(230,198,117,.7); } }
@media (max-width: 900px) { .mission-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .bw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mission .order-line { grid-template-columns: 70px 1fr; } }

/* ===== Milestone anniversary medals ===== */
.mmedal { position: relative; width: 62px; height: 84px; flex: none; transform-origin: 50% 0; }
.mmedal .rib { position: absolute; left: 13px; top: 0; width: 36px; height: 40px; background: linear-gradient(90deg, #a8322a 0 33%, #efe6cf 33% 66%, #2e3a6e 66%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.mmedal .disc { position: absolute; left: 5px; top: 30px; width: 52px; height: 52px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.4), inset 0 0 0 5px rgba(60,40,5,.35); background: radial-gradient(circle at 35% 30%, var(--m1), var(--m2) 55%, var(--m3)); }
.mmedal .disc b { font: 700 1.2rem var(--serif); color: var(--mt); text-shadow: 0 1px 0 rgba(255,255,255,.5); } .mmedal .disc small { font: .75rem "Courier New", monospace; text-transform: uppercase; letter-spacing: .1em; color: var(--mt); }
.mmedal .disc::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg); }
.mmedal.bronze { --m1: #e0a878; --m2: #a8683a; --m3: #6e3f1d; --mt: #3d1f08; }
.mmedal.silver { --m1: #f4f6f8; --m2: #b6bcc4; --m3: #7b828b; --mt: #2b3036; }
.mmedal.gold { --m1: #f7e29a; --m2: #c19a3e; --m3: #8a6a1f; --mt: #4a320a; }
.mmedal.platinum { --m1: #ffffff; --m2: #cfd8e3; --m3: #8fa0b5; --mt: #1c2a40; }
html.js .ann-grid .mmedal { animation: medalswing 2.4s cubic-bezier(.3,1.3,.5,1) both; }
html.js .ann-grid .mmedal .disc::after { animation: medalshine 3.6s ease-in-out 1.2s infinite; }
@keyframes medalswing { 0% { transform: rotate(-38deg) translateY(-14px); opacity: 0; } 30% { opacity: 1; } 55% { transform: rotate(14deg); } 78% { transform: rotate(-6deg); } 100% { transform: rotate(0); } }
@keyframes medalshine { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }
.ann.ms.ann-big, .ann:has(.mmedal) { padding-top: 18px; padding-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { html.js .ann-grid .mmedal, html.js .ann-grid .mmedal .disc::after, .bw-plaque.today { animation: none; } }

/* ===== Recruiter live links ===== */
.steps-list { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; } .steps-list li::marker { color: var(--brass); font-weight: 700; }
.track-req .track-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; margin-top: 10px; }
.track-req .track-form { min-width: min(100%, 460px); flex: 1; }
.track-req .contact-list { margin: 10px 0; }

/* Fixes: numbers on dark cards, calmer credential cards */
.page-vintage .dark-block .icon-dot { background: var(--brass); color: #1b1405; }
.page-vintage .cred { background-image: none; }

/* ===== Header: quiet employee login, forward recruiter CTA ===== */
.nav-quiet { color: rgba(243,234,210,.72); font-size: .82rem; text-decoration: none; padding: 6px 4px; border-bottom: 1px solid transparent; white-space: nowrap; letter-spacing: .02em; }
.nav-quiet:hover { color: #f3ead2; border-bottom-color: var(--brass); }
@media (max-width: 1120px) { .site-nav a { font-size: .92rem; } .site-nav { gap: 14px; } }
@media (max-width: 860px) { .nav-quiet { display: block; padding: 12px 4px; font-size: .95rem; } }

/* ===== Mobile call bar (public pages) ===== */
.callbar { display: none; }
@media (max-width: 700px) {
  .area-public .recruiter-tab { display: none; }
  .callbar { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: rgba(24,30,14,.96); border-top: 2px solid var(--brass); box-shadow: 0 -6px 18px rgba(0,0,0,.3); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 6px; font: 700 .9rem var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
  .callbar .cb-call { background: var(--brass); color: #1b1405; } .callbar .cb-call i { font-style: normal; font-size: 1.1rem; }
  .callbar .cb-book { background: transparent; color: #f3ead2; border: 1px solid rgba(243,234,210,.5); }
  .area-public .site-footer { padding-bottom: 84px; }
}
@media print { .callbar { display: none; } }

/* ===== Services: service orders and route steps ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.svc-order { position: relative; background: #f3ead2; border: 1px solid #b9a875; border-radius: 4px; padding: 16px 20px 46px; font-family: "Courier New", Courier, monospace; color: #2a2616; box-shadow: 0 10px 26px rgba(30,30,10,.22); background-image: repeating-linear-gradient(transparent 0 29px, rgba(80,70,30,.1) 29px 30px); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.svc-order:nth-child(1) { transform: rotate(-.6deg); } .svc-order:nth-child(3) { transform: rotate(.6deg); }
.svc-order:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 18px 36px rgba(30,30,10,.3); }
.svc-order::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #a8322a; }
.svc-order .order-head { display: flex; justify-content: space-between; gap: 8px; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: #6b2a22; border-bottom: 2px dashed rgba(107,42,34,.55); padding-bottom: 7px; margin-bottom: 12px; }
.svc-order h2 { font: 700 1.35rem/1.2 var(--serif); color: #1f2412; margin: 0 0 8px; }
.svc-order p { font-family: var(--sans); font-size: .96rem; line-height: 1.5; margin: 0 0 14px; color: #3a3623; }
.svc-order .order-line { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 5px 0; font-size: .86rem; line-height: 1.35; border-top: 1px dotted rgba(80,70,30,.3); }
.svc-order .order-line .k { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: #6b5f36; padding-top: 2px; } .svc-order .order-line .t { font-weight: 700; }
.svc-stamp { position: absolute; right: 12px; bottom: 12px; font: 800 .78rem var(--sans); text-transform: uppercase; letter-spacing: .18em; color: rgba(168,50,42,.55); border: 2px solid rgba(168,50,42,.55); padding: 3px 9px; border-radius: 3px; transform: rotate(-9deg); }
.route-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; position: relative; counter-reset: none; }
.route-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 24px; border-top: 4px dashed rgba(35,31,22,.35); }
.route-steps::after { content: ""; position: absolute; top: 14px; left: 6%; width: 44px; height: 20px; border-radius: 4px 8px 3px 3px; background: #4a5a2a; box-shadow: inset 0 -5px 0 #2d3819; animation: routevan 7s ease-in-out infinite alternate; }
@keyframes routevan { to { left: calc(94% - 44px); } }
.route-steps li { position: relative; text-align: center; padding-top: 0; }
.route-steps .pin { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy); color: var(--brass); font: 700 1.3rem var(--serif); border: 3px solid #f3ead2; box-shadow: 0 0 0 2px var(--brass); position: relative; z-index: 2; }
.route-steps strong { display: block; font: 700 1.2rem var(--serif); color: var(--ink); margin-bottom: 6px; } .route-steps p { margin: 0 auto; max-width: 30ch; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } .svc-order:nth-child(n) { transform: none; } }
@media (max-width: 700px) {
  .route-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 8px; }
  .route-steps::before { left: 33px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 4px dashed rgba(35,31,22,.35); }
  .route-steps::after { display: none; }
  .route-steps li { text-align: left; padding-left: 74px; } .route-steps .pin { position: absolute; left: 8px; top: 0; margin: 0; } .route-steps p { margin: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .route-steps::after { animation: none; left: 6%; } .svc-order { transition: none; } }
.page-cov .cov-map { padding-block: clamp(40px, 6vw, 70px); }
@media (max-width: 700px) {
  .page-cov .cov-map .mapwrap { margin: 0 -16px; padding: 0 16px; }
  .page-cov .usmap .route { stroke-width: 1.7; opacity: 1; }
  .page-cov .usmap .first { stroke-width: 3.6; }
  .page-cov .usmap .lbl { font-size: 15px; }
  .page-cov .usmap image { opacity: .85; }
}

/* Directory cards: stack label over value so long emails fit */
.dir-card .contact-list li { grid-template-columns: 1fr; gap: 0; }
.dir-card .contact-list a { overflow-wrap: anywhere; font-size: .95rem; }

/* ===== Who to call: switchboard ===== */
.dir-tabs { display: flex; gap: 8px; margin: 4px 0 14px; } .dir-tabs a { padding: 8px 16px; border: 1px solid var(--rule, #b9a875); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; background: #f3ead2; } .dir-tabs a.on { background: var(--navy); color: #f3ead2; border-color: var(--navy); }
.wc-find { max-width: 620px; margin: 10px 0 18px; } .wc-find label { display: block; font: 700 .78rem "Courier New", monospace; text-transform: uppercase; letter-spacing: .14em; color: #6b5f36; margin-bottom: 6px; } .wc-find input { width: 100%; font-size: 1.05rem; padding: 14px 16px; }
.wc-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: #252d17; color: #f3ead2; border-radius: 4px; padding: 12px 18px; margin-bottom: 22px; border: 1px solid #3b4524; }
.wc-main span { font: .75rem "Courier New", monospace; letter-spacing: .14em; text-transform: uppercase; color: #a9a58f; } .wc-main a, .wc-main b { font: 700 1.3rem "Courier New", monospace; color: #e6c675; text-decoration: none; } .wc-main small { color: #b9b497; }
.wc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wc-card { display: flex; gap: 18px; background: #f3ead2; border: 1px solid #b9a875; border-radius: 6px; padding: 16px 18px; box-shadow: 0 8px 22px rgba(30,30,10,.18); transition: opacity .25s, transform .25s, box-shadow .25s; position: relative; }
.wc-card.dim { opacity: .35; transform: scale(.985); } .wc-card.hit { box-shadow: 0 0 0 3px var(--brass), 0 14px 30px rgba(30,30,10,.3); transform: translateY(-3px); }
.wc-plate { flex: none; width: 88px; align-self: flex-start; text-align: center; padding: 10px 6px 8px; border-radius: 6px; background: linear-gradient(145deg, #3a4421, #1f2711); border: 2px solid #c19a3e; box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), 0 4px 10px rgba(0,0,0,.3); color: #f3ead2; }
.wc-plate small { display: block; font: .75rem "Courier New", monospace; letter-spacing: .22em; text-transform: uppercase; color: #c19a3e; } .wc-plate b { font: 700 2.1rem/1.1 "Courier New", monospace; color: #f3d98a; text-shadow: 0 0 10px rgba(243,217,138,.35); }
.wc-body { min-width: 0; } .wc-body h2 { margin: 0 0 4px; font-size: 1.4rem; } .wc-about { margin: 0 0 10px; color: #3a3623; }
.wc-who-label { font: 700 .75rem "Courier New", monospace; letter-spacing: .16em; text-transform: uppercase; color: #6b2a22; margin-bottom: 4px; border-top: 1px dashed rgba(107,42,34,.5); padding-top: 8px; }
.wc-who { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .92rem; } .wc-who span { color: #6b5f36; font-size: .84rem; } .wc-who em { font: normal .8rem "Courier New", monospace; color: #7a2118; }
.wc-mini { list-style: none; margin: 0; padding: 8px 18px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; } .wc-mini li { display: flex; align-items: center; gap: 10px; } .wc-ext { display: inline-block; min-width: 42px; text-align: center; font: 700 .95rem "Courier New", monospace; background: #252d17; color: #f3d98a; border: 1px solid #c19a3e; border-radius: 4px; padding: 3px 6px; } .wc-name { font-weight: 600; }
@media (max-width: 800px) { .wc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .wc-card { flex-direction: column; gap: 12px; } .wc-plate { width: 100%; display: flex; align-items: baseline; justify-content: center; gap: 8px; } .wc-mini { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wc-card { transition: none; } }

/* Admin sub menu: fit all sections on one row on desktop */
.subnav a { padding: 8px 9px; font-size: .88rem; }
.wc-plate.wc-direct b { font-size: 1.15rem; padding: 7px 0 5px; letter-spacing: .04em; }

/* Military dog tags (home stat band) */
.page-vintage .statband { overflow: hidden; padding: 70px 0 54px; }
.page-vintage .statband .stats.tags { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 46px 26px; }
.page-vintage .statband .tag {
  position: relative; text-align: left; min-height: 150px;
  padding: 20px 16px 26px 54px; border-radius: 22px / 26px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 62%, rgba(255,255,255,.28) 100%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 1px, rgba(255,255,255,.025) 1px 2px),
    linear-gradient(160deg, #e9eae6 0%, #b4b7b2 42%, #d9dad6 68%, #a2a5a0 100%);
  border: 0;
  /* rubber silencer ring, bevelled rim, drop shadow */
  box-shadow:
    0 0 0 5px #17191a, 0 0 0 6px rgba(255,255,255,.14),
    inset 0 0 0 3px rgba(255,255,255,.55), inset 0 0 0 4px rgba(0,0,0,.35),
    inset 0 0 0 8px rgba(0,0,0,.05), inset 0 0 0 9px rgba(255,255,255,.35),
    0 18px 26px rgba(0,0,0,.55);
  transform-origin: 18px 22px;
}
/* chain hole with a rolled rim */
.page-vintage .statband .tag .hole {
  top: 18px; left: 18px; width: 17px; height: 17px; margin: 0;
  background: #0e1011;
  box-shadow: 0 0 0 3px #c7c9c4, 0 0 0 4px rgba(0,0,0,.4), inset 0 2px 4px rgba(0,0,0,.9);
}
/* ball chain through the hole */
.page-vintage .statband .tag .hole::before {
  content: ""; position: absolute; left: 50%; bottom: 50%; width: 11px; height: 120px;
  transform: translateX(-50%) rotate(-24deg); transform-origin: 50% 100%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, #c9ccc8 28%, #6d706b 70%, #3a3c39 100%) 0 0 / 11px 8px repeat-y;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); z-index: -1;
}
/* the notch on the tag's edge */
.page-vintage .statband .tag::before {
  content: ""; position: absolute; left: -1px; top: 62px; width: 13px; height: 22px;
  border-radius: 0 12px 12px 0; background: var(--o8);
  box-shadow: inset -2px 0 3px rgba(0,0,0,.8), 2px 0 0 #17191a;
}
/* stamped footer line */
.page-vintage .statband .tag::after {
  content: "HIGHLAND EXPRESS"; position: absolute; left: 54px; right: 14px; bottom: 11px;
  font: 700 .62rem "Courier New", Courier, monospace; letter-spacing: .22em; color: #3a3d38;
  text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(0,0,0,.25);
}
/* embossed, stamped type */
.page-vintage .statband .tag b {
  display: block; margin: 0 0 6px; font-weight: 700; letter-spacing: .08em; line-height: 1;
  font-size: clamp(1.9rem, 3vw, 2.7rem); color: #3b3e39;
  text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 -1px 1px rgba(0,0,0,.55), 1px 1px 0 rgba(0,0,0,.15);
}
.page-vintage .statband .tag span {
  display: block; font: 700 .7rem/1.35 "Courier New", Courier, monospace; letter-spacing: .1em;
  color: #3b3e39; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 -1px 1px rgba(0,0,0,.4);
}
.page-vintage .statband .tag:nth-child(odd) { transform: rotate(-1.4deg); }
.page-vintage .statband .tag:nth-child(even) { transform: rotate(1.2deg); }
@media (max-width: 1000px) { .page-vintage .statband .stats.tags { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) {
  .page-vintage .statband .stats.tags { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 14px; }
  .page-vintage .statband .tag { padding: 30px 10px 18px; }
  .page-vintage .statband .tag b { font-size: clamp(1.5rem, 7.5vw, 2rem); }
  .page-vintage .statband .tag span { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) { .page-vintage .statband .tag:hover { animation: none; } }

/* Fleet and repair approvals */
.hist-wrap { overflow-x: auto; }
.hist { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hist th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.hist td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hist .num, .hist th.num { text-align: right; white-space: nowrap; }
.hist .mono { font-family: "Courier New", Courier, monospace; font-size: .85rem; letter-spacing: .02em; }
.panel-body { padding: 4px 6px 12px; }
.fleet-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 4px 0 16px; }
.fleet-search { display: flex; gap: 8px; flex: 1 1 320px; min-width: 0; }
.fleet-search input[type=text] { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.pager { display: flex; gap: 16px; justify-content: center; padding: 14px; font-size: .92rem; }
.edit-det { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.edit-det summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.rq-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.danger-btn { color: #9b1c1c; border-color: #9b1c1c; }
.rq-list li a { text-decoration: none; }
@media (max-width: 560px) { .fleet-search { flex-basis: 100%; } .hist th, .hist td { padding: 8px 8px; } }

/* Route delay and closure alerts */
.route-alert { border-bottom: 3px solid rgba(0,0,0,.35); font-size: .95rem; }
.route-alert.ra-closed { background: #8f1d1d; color: #fff; } .route-alert.ra-delay { background: #f0c14b; color: #2a1d00; }
.ra-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-block: 7px; }
.ra-flag { font: 700 .75rem "Courier New", Courier, monospace; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; background: rgba(0,0,0,.28); white-space: nowrap; }
.ra-delay .ra-flag { background: rgba(42,29,0,.85); color: #f0c14b; }
.ra-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; flex: 1 1 280px; min-width: 0; }
.ra-list em { font-style: normal; opacity: .8; font-size: .85em; margin-left: 6px; }
.ra-kind { font: 700 .75rem "Courier New", Courier, monospace; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; background: rgba(0,0,0,.25); margin-right: 4px; }
.route-alert .ra-more { color: inherit; font-weight: 700; white-space: nowrap; }
.route-alert a { color: inherit; text-decoration-thickness: 2px; }
.ra-board { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ra-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; align-items: center; padding: 12px 14px; background: #fbf7ea; border: 1px solid var(--line); border-left: 5px solid #3f7a47; border-radius: 8px; }
.ra-row-delay { border-left-color: #d49b00; } .ra-row-closed { border-left-color: #9b1c1c; }
.ra-name { font-weight: 700; } .ra-note { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); } .ra-note em { font-style: normal; font-size: .85em; }
.ra-pill { font: 700 .75rem "Courier New", Courier, monospace; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.ra-pill.ra-ok { background: #dcebd6; color: #2f6b3a; } .ra-pill.ra-delay { background: #f6e3b4; color: #7a4f00; } .ra-pill.ra-closed { background: #f3d3cf; color: #9b1c1c; }
.ra-foot { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.route-status-block { padding-block: 34px 10px; }
.kind-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; } .kind-pick legend { font-weight: 700; font-size: .86rem; padding: 0; margin-bottom: 6px; }
.kp { display: flex; align-items: center; gap: 10px; font-weight: 400; flex-wrap: wrap; } .kp input { width: auto; }
.wx-body { padding: 8px 16px 14px; display: grid; gap: 10px; }
.wx-item { border-left: 4px solid #d49b00; background: #fbf2d8; border-radius: 6px; padding: 10px 12px; display: grid; gap: 4px; } .wx-item.sev { border-left-color: #9b1c1c; background: #f6dcd8; }
.alert-post-note { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 14px; }
.recruiter-tab .rt-alert { font: 700 .75rem "Courier New", Courier, monospace; font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: #9b1c1c; color: #fff; padding: 6px 4px; border-radius: 3px; animation: rtpulse 1.6s ease-in-out infinite; }
.recruiter-tab.has-alert { transform: translateX(0); }
@keyframes rtpulse { 50% { background: #c73030; } }
@media (max-width: 700px) { .recruiter-tab .rt-alert { padding: 3px 7px; } }
@media (prefers-reduced-motion: reduce) { .recruiter-tab .rt-alert { animation: none; } }
.wx-item .badge { justify-self: start; }

.ra-signup{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0 0}
.ra-signup span{color:var(--muted,#5b6270)}
.area-pick{border:1px solid rgba(0,0,0,.18);border-radius:6px;padding:12px 14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px 16px;margin:0 0 16px}
.area-pick legend{padding:0 6px;font-weight:700}
.area-pick .ap{display:flex;gap:8px;align-items:center;min-height:32px}
.area-pick .ap:first-of-type{grid-column:1/-1}
.actions .kp{display:flex;gap:8px;align-items:center;margin-right:10px}

.ra-oklist{margin-top:14px;font-size:.92rem;line-height:1.6;color:var(--muted,#5b6270)}
.ra-oklist strong{color:inherit}

.ra-meps{display:block;font-weight:400;opacity:.75}
.meps-pick{border:1px solid rgba(0,0,0,.18);border-radius:6px;margin:0 0 16px;max-height:420px;overflow:auto}
.meps-pick .mp{border-bottom:1px solid rgba(0,0,0,.1);padding:8px 12px}
.meps-pick summary{cursor:pointer;display:flex;gap:10px;align-items:center;flex-wrap:wrap;min-height:32px}
.meps-pick summary .ap{display:inline-flex}
.route-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px 16px;padding:8px 0 4px 26px}

.panel, .table-wrap { min-width: 0; max-width: 100%; }
@media (max-width: 900px) {
  table.tbl.stack, table.tbl.stack tbody, table.tbl.stack tr, table.tbl.stack td { display: block; width: 100%; }
  table.tbl.stack thead { position: absolute; left: -9999px; }
  table.tbl.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.tbl.stack td { border: 0; padding: 3px 0; display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
  table.tbl.stack td::before { content: attr(data-label); flex: 0 0 96px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
  table.tbl.stack td:first-child { font-weight: 700; }
  table.tbl.stack td:first-child::before { display: none; }
  table.tbl.stack td > .actions, table.tbl.stack td > form, table.tbl.stack td > span { flex: 1 1 200px; min-width: 0; }
  .meps-pick { max-height: none; overflow: visible; }
}

.users-stack { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.users-stack .card form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.edit-row td { background: var(--cream); padding: 14px 18px; }
table.tbl tr.edit-row { display: table-row; }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 16px; align-items: end; }
.edit-grid .field { margin: 0; }
.edit-actions { display: flex; gap: 14px; align-items: center; }
@media (max-width: 900px) { table.tbl.stack tr.edit-row, table.tbl.stack tr.edit-row td { display: block; } table.tbl.stack tr.edit-row td::before { display: none; } .users-stack .card form .row { grid-template-columns: 1fr; } }

.bday-list { list-style: none; margin: 0; padding: 6px 0; }
.bday-list li { display: flex; gap: 12px; align-items: baseline; padding: 8px 18px; border-bottom: 1px solid var(--line); }
.bday-list li:last-child { border-bottom: 0; }
.bday-date { flex: 0 0 56px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bday-list li.is-past { opacity: .6; }
.bday-list li.is-today { background: rgba(193,154,62,.18); }
.bday-list li em { margin-left: auto; font-style: normal; font-size: .85rem; font-weight: 700; color: var(--gold-dark, #8a6a1f); }
.bday-more { padding: 0 18px 12px; margin: 0; }

/* Shorter portal menu on narrow desktops so Employee Training fits */
@media (min-width: 961px) and (max-width: 1180px) {
  .area-admin .site-nav a:not(.btn), .area-portal .site-nav a:not(.btn) { padding: 8px 5px; font-size: .82rem; }
  .area-admin .brand-text small, .area-portal .brand-text small { display: none; }
}

/* Online forms on the Documents page */
.form-embed { margin-top: 10px; border: 1px solid var(--line, #d8d2c0); border-radius: 8px; padding: 8px 12px 12px; background: #fff; }
.form-embed > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.form-embed iframe { display: block; max-width: 100%; margin-top: 8px; }

/* Leadership rank badges */
.rank { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--navy); color: #f3ead2; border: 1px solid var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.rank-stars { display: inline-flex; gap: 1px; }
.rank-stars svg { width: 12px; height: 12px; fill: var(--gold); }
.rank-big { margin-left: 0; font-size: .85rem; padding: 4px 14px 4px 10px; }
.rank-big .rank-stars svg { width: 16px; height: 16px; }
.dir-card .rank, .card h3 + .rank { margin: 0 0 6px; }
@media (max-width: 520px) { .userbar .rank { display: inline-flex; margin: 4px 0 0 0; } }
@media print { .rank { border-color: #000; background: #fff; color: #000; } .rank-stars svg { fill: #000; } }
.rank-compact { padding: 2px 8px; }
.rank-compact .rank-label { display: none; }
/* Fix: Who to call mini list clipped in narrow dashboard panel; checkbox rows keep text beside the box */
.wc-mini { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.wc-mini li { min-width: 0; } .wc-name { min-width: 0; overflow-wrap: break-word; }
.kp { flex-wrap: nowrap; align-items: flex-start; } .kp input { margin-top: .4em; flex: none; }
/* Employee accounts: keep the access dropdown and its button on one tidy line */
.actions form.inline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.actions form.inline select { width: auto; min-width: 120px; padding: 6px 10px; font-size: .9rem; }

/* Army style rank patches */
.rank { background: #2f3a1c; border-color: #b8913a; box-shadow: inset 0 0 0 1px rgba(0,0,0,.45); }
.rank-chev { height: 22px; width: auto; flex: none; fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; }
.rank-chev .fillg { fill: var(--gold); stroke: none; } .rank-chev .ring { stroke-width: 1.2; }
.rank-enlisted { padding: 3px 11px 3px 8px; border-radius: 8px; }
.rank-big .rank-chev { height: 30px; }
.rank-compact .rank-chev { height: 20px; }
.rank-ladder td, .rank-roster td { vertical-align: middle; }
.rank-ladder .rank, .rank-roster .rank { margin-left: 0; }
.lead-sm { max-width: 62ch; }
@media print { .rank-chev { stroke: #000; } .rank-chev .fillg { fill: #000; } }
@media (max-width: 520px) {
  .rank-ladder { width: 100%; table-layout: auto; } .rank-ladder td { padding-left: 4px; padding-right: 4px; }
  .rank { max-width: 100%; } .rank-label { font-size: .75rem; letter-spacing: .03em; white-space: normal; line-height: 1.2; }
  .rank { white-space: normal; }
  .portal-wrap .grid-2 > .card { min-width: 0; }
}
.rank-ins { height: 20px; width: auto; flex: none; fill: #cfd5de; stroke: none; } .rank-ins.gold { fill: var(--gold); } .rank-big .rank-ins { height: 28px; } .rank-compact .rank-ins { height: 18px; }
@media print { .rank-ins, .rank-ins.gold { fill: #000; } }

/* Required notices */
.badge-ok { background: #dcebd2; color: #28431b; }
.nt-search { display: flex; gap: 10px; margin: 8px 0 16px; } .nt-search input { flex: 1 1 auto; min-width: 0; font-size: 1.05rem; padding: 13px 14px; } .nt-search .btn { flex: none; }
.nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nt-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-decoration: none; min-height: 64px; min-width: 0; }
.nt-tile b { font: 700 1.15rem var(--serif); color: var(--navy); } .nt-tile span { font-size: .95rem; overflow-wrap: anywhere; } .nt-tile small { color: var(--muted); font-size: .78rem; }
.nt-tile:hover { border-color: var(--gold); } .nt-tile.is-on { background: var(--navy); color: #f3ead2; border-color: var(--gold); } .nt-tile.is-on b { color: var(--gold); } .nt-tile.is-on small { color: #d8cfae; }
.nt-tile[hidden] { display: none; }
.notices .card { margin-bottom: 18px; } .notices .card h2 { font-size: 1.3rem; }
.nt-agency { margin: 0 0 10px; color: var(--muted); }
.nt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; } .nt-actions.sm { margin: 8px 0 0; }
.nt-links { margin: 10px 0; padding-left: 1.2em; } .nt-links li { margin: 4px 0; overflow-wrap: anywhere; }
.nt-note { background: var(--cream); border-left: 3px solid var(--gold); padding: 8px 12px; margin: 10px 0; font-size: .95rem; border-radius: 0 6px 6px 0; }
.nt-list { list-style: none; margin: 0 0 12px; padding: 0; } .nt-list li { padding: 14px 0; border-top: 1px solid var(--line); } .nt-list li:first-child { border-top: 0; }
.nt-list .is-dim .nt-title { opacity: .6; } .nt-title { font-weight: 700; }
@media (max-width: 520px) { .nt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nt-search { flex-direction: column; } .nt-actions .btn { width: 100%; text-align: center; } .nt-actions.sm .btn { width: auto; } }
.nt-pick { margin: 0 0 16px; } .nt-pick label { display: block; font-weight: 600; margin-bottom: 4px; } .nt-pick .nt-search { margin: 0; } .nt-pick select { flex: 1 1 auto; min-width: 0; font-size: 1.05rem; padding: 12px; }
@media (max-width: 520px) { .nt-grid:not(.searching) { display: none; } }

/* Filter rows on admin lists */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; } .filters select, .filters input[type=search] { width: auto; flex: 1 1 200px; min-width: 0; }
/* Bigger tap targets on touch screens */
@media (pointer: coarse) {
  .btn-sm, button.btn-link, .actions button, form.inline button, .actions a, .tbl .btn-link { min-height: 40px; display: inline-flex; align-items: center; }
  .btn-sm { padding-top: 8px; padding-bottom: 8px; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
}

.ch-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.ch-count{border:1px solid var(--line);border-radius:6px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.ch-count b{font-size:1.6rem;line-height:1.1}
.ch-count small{color:var(--muted)}

/* Portal menu with many links (people who also run help queues or closures): keep clear of the logo */
@media (min-width: 1201px) and (max-width: 1440px) {
  .area-portal .site-nav a:not(.btn) { padding: 8px 6px; font-size: .84rem; }
  .area-portal .site-nav { gap: 0; }
  .area-portal .brand { flex-shrink: 0; margin-right: 14px; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .area-portal .site-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; }
  .area-portal .brand { flex-shrink: 0; margin-right: 14px; }
}

/* Hidden on phones: the Drivers door above already links to careers */
@media (max-width: 640px) { .hide-phone { display: none !important; } }

/* Employee Training: category buttons and subfolders */
.train-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.train-tabs .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fbf7ea; color: inherit; text-decoration: none; font-weight: 700; }
.train-tabs .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-n { font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.12); }
.train-folders { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.train-folder { display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; }
.train-folder h3 { margin: 0; }
.train-sub { margin: 0; padding-left: 18px; font-size: .92rem; }
.train-sub-folder { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbf7ea; }
.train-sub-folder > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.train-sub-folder > .orient-grid { padding: 4px 16px 16px; }
.folder-ic { width: 22px; height: 16px; border-radius: 2px 5px 3px 3px; background: var(--gold); display: inline-block; position: relative; flex: none; }
.folder-ic::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 5px; background: var(--gold); border-radius: 2px 2px 0 0; }

/* Dropdown menu groups */
details.navdd { position: relative; }
details.navdd > summary { list-style: none; cursor: pointer; color: #e8ecf3; padding: 8px 12px; border-radius: 6px; font-size: .95rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
details.navdd > summary::-webkit-details-marker { display: none; }
details.navdd > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
details.navdd[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
details.navdd > summary:hover, details.navdd[open] > summary { background: rgba(255,255,255,.1); color: #fff; }
details.navdd.has-active > summary { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
details.navdd > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.navdd-panel { position: absolute; left: 0; top: 100%; min-width: 210px; z-index: 60; display: flex; flex-direction: column; padding: 6px; background: var(--navy); border: 1px solid rgba(255,255,255,.18); border-top: 2px solid var(--gold); border-radius: 0 0 8px 8px; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.page-vintage .navdd-panel { background: #161b0e; border-color: rgba(193,154,62,.4); }
.navdd-panel a, .site-nav .navdd-panel a:not(.btn), .subnav .navdd-panel a { display: block; padding: 10px 12px; border-radius: 6px; white-space: nowrap; box-shadow: none; color: #e8ecf3; font-size: .92rem; }
.navdd-panel a.active, .site-nav .navdd-panel a.active:not(.btn) { background: var(--gold); color: #1d1608; box-shadow: none; border-radius: 6px; }
.site-nav details.navdd { align-self: center; }
.subnav nav { align-items: center; }
.subnav details.navdd > summary { color: #dfe6f2; font-size: .9rem; }
.subnav details.navdd.has-active > summary { background: var(--gold, #c9a227); color: #0b1a33; font-weight: 700; box-shadow: none; border-radius: 6px; }
@media (max-width: 960px) {
  details.navdd { width: 100%; }
  details.navdd > summary { width: 100%; justify-content: space-between; padding: 12px; }
  .navdd-panel { position: static; border: 0; border-left: 2px solid var(--gold); border-radius: 0; box-shadow: none; margin: 0 0 6px 12px; background: transparent; }
  .subnav .navdd-panel a { white-space: normal; }
}

/* Dashboard: slimmer notice, help card, folded updates */
.notice-slim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 14px; margin-bottom: 14px; font-size: .95rem; }
.help-jump { display: grid; gap: 8px; }
.help-jump label { font-weight: 700; font-size: .92rem; }
.help-jump select { width: 100%; min-height: 44px; }
.help-jump .btn { justify-self: start; }
.help-queues { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.help-queues .eyebrow { width: 100%; }
.more-updates { border-top: 1px solid var(--line); }
.more-updates > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; min-height: 44px; }
.more-updates[open] > summary { border-bottom: 1px solid var(--line); }
.ov-h { font-size: 1.05rem; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }

/* Collapsible sections */
.nt-dd > summary, .dir-group > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nt-dd > summary { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbf7ea; margin-bottom: 12px; }
.dir-group { margin-bottom: 14px; }
.dir-group > summary.dir-dept { margin: 14px 0 10px; }
.dir-group[hidden], .dir-card[hidden] { display: none; }
.dir-search { margin: 6px 0 12px; max-width: 460px; }
.dir-search input { width: 100%; min-height: 44px; }
details.wx-dd > summary.panel-head, details.set-dd > summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
details.wx-dd > summary::-webkit-details-marker, details.set-dd > summary::-webkit-details-marker, .nt-dd > summary::-webkit-details-marker, .dir-group > summary::-webkit-details-marker, .more-updates > summary::-webkit-details-marker, .train-sub-folder > summary::-webkit-details-marker { display: none; }
details.set-dd[open] > summary { margin-bottom: 12px; }
.honor-year { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 4px; }
.honor-year label { font-weight: 700; }
.honor-year select { min-height: 44px; }
.nt-dd > summary::after, .dir-group > summary::after, .more-updates > summary::after, .train-sub-folder > summary::after, details.wx-dd > summary::after, details.set-dd > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.nt-dd[open] > summary::after, .dir-group[open] > summary::after, .more-updates[open] > summary::after, .train-sub-folder[open] > summary::after, details.wx-dd[open] > summary::after, details.set-dd[open] > summary::after { transform: rotate(225deg); }
.more-updates > summary { display: flex; align-items: center; }

/* Phone dashboard order: updates first, then safety board and help, then the rest */
@media (max-width: 860px) {
  .dash-grid { gap: 20px; }
  .dash-grid > .dash-col { display: contents !important; }
  .dash-grid .dash-col > * { order: 20; }
  .dash-grid .dash-col > .dash-updates { order: 2; }
  .dash-grid .dash-col > .safety-board { order: 3; }
  .dash-grid .dash-col > .help-card { order: 1; }
}

/* Admin menu fold: always open on desktop, a button on phones */
details.admin-fold > summary { display: none; list-style: none; }
details.admin-fold > summary::-webkit-details-marker { display: none; }
@media (max-width: 960px) {
  details.admin-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 4px; font-weight: 700; color: #fff; cursor: pointer; }
  details.admin-fold > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
  details.admin-fold[open] > summary::after { transform: rotate(225deg); }
}
.train-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; max-width: 560px; }
.train-search input { flex: 1 1 220px; min-height: 44px; }

/* ===== Seasonal themes (only active on holidays; see private/themes.php) ===== */
.crowned { position: relative; display: inline-block; white-space: nowrap; }
.crowned .crown { position: absolute; left: -.18em; top: -.78em; width: .95em; transform: rotate(-14deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); animation: crownbob 3.2s ease-in-out infinite alternate; }
.crowned .crown svg { display: block; width: 100%; height: auto; }
.crowned-sm .crown { position: static; display: inline-block; width: 1.15em; margin-right: .3em; vertical-align: -.22em; transform: none; animation: none; }
@keyframes crownbob { from { transform: rotate(-14deg) translateY(0); } to { transform: rotate(-10deg) translateY(-2px); } }

.th-bar .th-prev { display: block; font: 600 .78rem system-ui, sans-serif; opacity: .9; margin-top: 2px; }
.th-bar .th-prev a { color: inherit; text-decoration: underline; }
body.th-on .site-header { border-bottom-color: var(--th-br); }
.th-has-bulbs .th-bar { padding-bottom: 17px; }
.th-has-bulbs .th-bar::before, .th-has-bulbs .th-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 10px; pointer-events: none; background-repeat: repeat-x; background-size: 48px 10px; }
.th-has-bulbs .th-bar::before { background-image: radial-gradient(circle at 6px 5px, var(--th-b1) 0 3.4px, transparent 4px), radial-gradient(circle at 30px 5px, var(--th-b3) 0 3.4px, transparent 4px); filter: drop-shadow(0 0 4px var(--th-b1)); animation: bulbA .9s ease-in-out infinite alternate; }
.th-has-bulbs .th-bar::after { background-image: radial-gradient(circle at 18px 5px, var(--th-b2) 0 3.4px, transparent 4px), radial-gradient(circle at 42px 5px, var(--th-b4) 0 3.4px, transparent 4px); filter: drop-shadow(0 0 4px var(--th-b2)); animation: bulbA .9s ease-in-out .45s infinite alternate; }
@keyframes bulbA { from { opacity: 1; } to { opacity: .22; } }

/* Hero and banner overlays */
.th-tint { position: absolute; inset: 0; z-index: 3; background: var(--th-tint); opacity: var(--th-op); mix-blend-mode: color; pointer-events: none; }
.th-trim { position: absolute; left: 0; right: 0; top: 0; height: 7px; z-index: 4; background: var(--th-trim); pointer-events: none; }
.th-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.portal-banner .th-canvas, .portal-banner .th-trim { z-index: 1; }
.th-on .hero .wrap, .th-on .portal-banner h1 { position: relative; z-index: 5; }
body.th-on.page-vintage .road-v { background: linear-gradient(var(--th-r1), var(--th-r2)); border-top-color: var(--th-br); }
body.th-on.page-vintage .ticker { background: var(--th-tb); color: var(--th-tf); border-block-color: var(--th-tbd); }
body.th-on.page-vintage .statband { background: linear-gradient(180deg, var(--th-s1), var(--th-s2)); }
.th-rib { position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: 20px 20px 0 0; background: var(--th-tag); pointer-events: none; }
body.th-on .tag .hole { z-index: 1; }

/* Banner towed by the plane */
.th-banner { position: absolute; top: 12px; left: -120px; padding: 5px 22px 5px 14px; font: 700 13px/1.1 Georgia, serif; white-space: nowrap; background: var(--bn, #efe6cf); color: var(--bnf, #2a2418); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 5% 50%); animation: fly 38s 4s linear infinite; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.vv .wave { transform-box: fill-box; transform-origin: left center; animation: flapm .5s ease-in-out infinite alternate; }
@keyframes flapm { to { transform: scaleX(.86) skewY(4deg); } }
.vv .bulb { animation: bulbm 1s ease-in-out infinite alternate; }
.vv .b0 { fill: #ff3b3b; } .vv .b1 { fill: #ffd34d; } .vv .b2 { fill: #3fdc6b; } .vv .b3 { fill: #4aa8ff; }
@keyframes bulbm { from { opacity: 1; } to { opacity: .25; } }

/* Solemn days: slow, quiet, no sparkle */
.th-sol .convoy { animation-duration: 75s; }
.th-sol .scene-sky .plane, .th-sol .th-banner { animation-duration: 55s; }
.th-sol .ticker-track { animation: none; justify-content: center; width: 100%; }
.th-sol .ticker span::after { display: none; }

@media (max-width: 860px) { .th-banner { font-size: 12px; top: 10px; } }
@media (prefers-reduced-motion: reduce) { .th-banner { left: 55%; animation: none; } .th-has-bulbs .th-bar::before, .th-has-bulbs .th-bar::after, .vv .bulb, .vv .wave, .crowned .crown { animation: none; } }
.crowned .emb { display: inline-block; width: 1.15em; vertical-align: -.12em; }
.crowned .emb svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.crowned .emb-dragon { margin-left: .22em; animation: dragonhop 2.4s ease-in-out infinite; }
.crowned .emb-dragon .flame { transform-box: fill-box; transform-origin: left center; animation: flick .5s ease-in-out infinite alternate; }
.crowned .emb-dragon .wing { transform-box: fill-box; transform-origin: bottom right; animation: wingflap .6s ease-in-out infinite alternate; }
.crowned .emb-glass { margin-right: .22em; animation: glassglint 3s ease-in-out infinite; }
.crowned-sm .emb { width: 1.5em; }
@keyframes dragonhop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-.18em); } 90% { transform: translateY(0); } }
@keyframes flick { from { transform: scale(1); opacity: 1; } to { transform: scale(1.35, .8); opacity: .7; } }
@keyframes wingflap { from { transform: rotate(0); } to { transform: rotate(-16deg); } }
@keyframes glassglint { 0%, 85%, 100% { transform: scale(1) rotate(0); } 92% { transform: scale(1.18) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .crowned .emb, .crowned .emb .flame, .crowned .emb .wing { animation: none; } }
.portal-banner .th-quote { margin: 8px 0 0; color: #f3d98a; font: italic 600 1.02rem/1.3 Georgia, serif; position: relative; z-index: 5; }
/* Barber Shop look: candy-stripe pole, shop floor and a striped top edge */
.crowned .emb-barber { width: .6em; margin-right: .3em; vertical-align: -.08em; }
.crowned .emb-barber .bpstripes { animation: bpole 1.2s linear infinite; }
@keyframes bpole { to { transform: translateY(12px); } }
.crowned-sm .emb-barber { width: .75em; }
.portal-banner.pb-barber::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; z-index: 2; background: repeating-linear-gradient(135deg, #b3202b 0 12px, #f4eee1 12px 24px, #2a418a 24px 36px, #f4eee1 36px 48px); background-size: 68px 9px; animation: bpbar 2s linear infinite; }
@keyframes bpbar { to { background-position: 68px 0; } }
.portal-banner.pb-barber .road-v { background: conic-gradient(#2a2418 25%, #3f3826 0 50%, #2a2418 0 75%, #3f3826 0) 0 0 / 26px 26px; }
@media (prefers-reduced-motion: reduce) { .crowned .emb-barber .bpstripes, .portal-banner.pb-barber::after { animation: none; } }
.th-poppy { width: 1.15em; height: 1.15em; vertical-align: -.22em; margin: 0 .55em; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.th-salute { background: linear-gradient(180deg, var(--th-s1), var(--th-s2)); padding: 26px 0 8px; text-align: center; }
.th-salute-h { margin: 0 0 14px; color: var(--th-br); font: 700 .8rem/1 "Courier New", monospace; letter-spacing: .22em; text-transform: uppercase; }
.th-salute ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.th-salute li { background: var(--c); color: #fff; border: 1px solid var(--a); border-top: 4px solid var(--a); border-radius: 8px; padding: 12px 8px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; opacity: 0; transform: translateY(10px); animation: saluteIn .7s ease forwards; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.th-salute li b { font: 700 1rem/1.15 Georgia, serif; color: var(--a); }
.th-salute li span { font: italic .82rem/1.25 Georgia, serif; color: #f4eee1; opacity: .92; text-wrap: balance; }
@keyframes saluteIn { to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .th-salute ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .th-salute li { animation: none; opacity: 1; transform: none; } }
.forgot-link{display:inline-block;margin-left:14px;font-size:.95rem;padding:10px 0}

/* ---- Extras: sky by time of day, opening sequence, live map, celebrations, trust bar, veteran wall ---- */
.tod { position: absolute; inset: 0; pointer-events: none; z-index: 3; mix-blend-mode: normal; }
.tod-stars { position: absolute; inset: 0; opacity: .85; animation: todtw 4s ease-in-out infinite alternate;
  background-image: radial-gradient(1.2px 1.2px at 8% 14%, #fff, transparent), radial-gradient(1px 1px at 22% 32%, #fff, transparent), radial-gradient(1.5px 1.5px at 37% 10%, #fff, transparent), radial-gradient(1px 1px at 51% 26%, #fff, transparent), radial-gradient(1.3px 1.3px at 66% 12%, #fff, transparent), radial-gradient(1px 1px at 79% 30%, #fff, transparent), radial-gradient(1.4px 1.4px at 91% 16%, #fff, transparent), radial-gradient(1px 1px at 15% 46%, #fff, transparent), radial-gradient(1px 1px at 58% 44%, #fff, transparent), radial-gradient(1.2px 1.2px at 85% 48%, #fff, transparent); }
.tod-dusk .tod-stars { opacity: .35; }
@keyframes todtw { from { opacity: .55; } to { opacity: .95; } }
body.th-on .tod { opacity: .75; }
.hero-bg { will-change: transform; }


.usmap .van { fill: #fff3c4; stroke: #c8312a; stroke-width: .8; filter: drop-shadow(0 0 3px rgba(240,207,122,.9)); }

.cel-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9000; }
.celebrate { display: flex; gap: 18px; align-items: center; padding: 16px 20px; margin-bottom: 18px; border-radius: 10px; border: 2px solid #d4af37; background: linear-gradient(120deg, #fff8dc, #fbe9a8 55%, #fff4c9); color: #3a2c05; box-shadow: 0 6px 20px rgba(212,175,55,.3); }
.celebrate.bday { border-color: #c8232a; background: linear-gradient(120deg, #fff1f0, #ffe2dd 55%, #fff4e6); color: #4a1410; }
.celebrate h2 { margin: 0 0 2px; font-size: 1.35rem; }
.celebrate p { margin: 0; }
.celebrate .mmedal { flex: 0 0 auto; }
.celebrate .cake { font-size: 2.4rem; line-height: 1; }
.celebrate .cake svg { width: 46px; height: 46px; display: block; }

.trustbar { background: #0e1a30; color: #f3ead2; border-bottom: 3px solid #d4af37; }
.trustbar ul { list-style: none; margin: 0 auto; padding: 14px 16px; max-width: 1180px; display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: center; }
.trustbar li { display: flex; align-items: center; gap: 8px; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.trustbar li::before { content: ""; width: 9px; height: 9px; background: #d4af37; transform: rotate(45deg); flex: 0 0 auto; }
.trustbar a { color: #f3d98a; }

.vetwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 24px; }
.vet { background: #fbf7ea; border: 1px solid var(--line, #d8cfae); border-top: 5px solid #1a2b50; border-radius: 6px; padding: 18px; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.vet b { display: block; font-family: var(--serif, Georgia, serif); font-size: 1.2rem; }
.vet .vb { display: inline-block; margin: 6px 0; font: 700 .75rem "Courier New", monospace; letter-spacing: .1em; text-transform: uppercase; color: #8c1d1d; }
.vet p { margin: 6px 0 0; font-size: .95rem; }

/* page transitions and small touches */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  body { animation: pgin .45s ease both; }
  .btn { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
  .btn:active { transform: translateY(0) scale(.98); }
  .card, .door, .panel { transition: transform .2s ease, box-shadow .2s ease; }
  .card:hover, .door:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.14); }
}
@keyframes pgin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .open-seq, .cel-canvas { display: none; } .scene-sky .ship { animation: none; } .tod-stars { animation: none; } }

/* Sky by time of day, clearly visible */
.tod-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.tod-dawn { background: radial-gradient(ellipse 70% 60% at 12% 105%, rgba(255,170,80,.85), transparent 60%), linear-gradient(180deg, rgba(255,120,90,.45), rgba(255,190,120,.18) 60%, transparent); }
.tod-dawn .tod-orb { width: 120px; height: 120px; left: 7%; bottom: 8%; background: radial-gradient(circle, #fff1c0 0 38%, rgba(255,190,90,.6) 40%, transparent 70%); }
.tod-day { background: linear-gradient(180deg, rgba(90,160,245,.6), rgba(170,210,255,.28) 60%, rgba(255,255,255,.05)); }
.tod-day .tod-orb { width: 150px; height: 150px; right: 9%; top: 6%; background: radial-gradient(circle, #fffbe0 0 30%, rgba(255,235,140,.75) 34%, rgba(255,235,140,.18) 55%, transparent 72%); }
.tod-dusk { background: linear-gradient(180deg, rgba(60,35,120,.75), rgba(200,70,100,.5) 55%, rgba(255,140,60,.35)); }
.tod-dusk .tod-orb { width: 130px; height: 130px; right: 10%; bottom: 6%; background: radial-gradient(circle, #ffd9a0 0 36%, rgba(255,120,60,.7) 40%, transparent 70%); }
.tod-night { background: linear-gradient(180deg, rgba(1,4,18,.88), rgba(5,10,34,.62) 70%, rgba(5,10,34,.4)); }
.tod-night .tod-orb { width: 86px; height: 86px; right: 11%; top: 9%; background: radial-gradient(circle at 36% 34%, #fffef2 0 52%, #d8dcea 56%, #aeb6cf 100%); box-shadow: 0 0 40px 14px rgba(190,205,255,.35); }
.tod-night .tod-stars, .tod-dusk .tod-stars { opacity: 1; }
.tod-dusk .tod-stars { opacity: .5; }



/* ===== Opening: film leader countdown, then the title ===== */
.os-lock { overflow: hidden; }
.open-seq { position: fixed; inset: 0; z-index: 9999; background: #06080c; cursor: pointer; overflow: hidden; color: #efe6cf; transition: opacity .6s ease, transform .6s ease; }
.open-seq.out { opacity: 0; transform: scale(1.05); pointer-events: none; }
.open-seq::after { content: ""; position: absolute; inset: -50%; z-index: 9; pointer-events: none; opacity: .16; animation: osgrain .5s steps(4) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes osgrain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } 100% { transform: translate(3%,3%); } }
.os-leader { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, #1a1d22, #06080c 75%); animation: osleaderout .25s 2.05s forwards; }
@keyframes osleaderout { to { opacity: 0; } }
.os-dial { position: relative; width: min(320px, 72vw); aspect-ratio: 1; border-radius: 50%; border: 3px solid #e9dfc3; box-shadow: 0 0 0 10px rgba(233,223,195,.08), inset 0 0 40px rgba(0,0,0,.6); animation: osflick .18s steps(2) infinite; }
.os-dial::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#e9dfc3,#e9dfc3) 50% 0 / 2px 100% no-repeat, linear-gradient(#e9dfc3,#e9dfc3) 0 50% / 100% 2px no-repeat; opacity: .7; }
.os-dial::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(233,223,195,.5), rgba(233,223,195,0) 28%); animation: osspin 1s linear 3; }
.os-dial i { position: absolute; inset: 14%; border: 2px solid rgba(233,223,195,.7); border-radius: 50%; }
@keyframes osspin { to { transform: rotate(360deg); } }
@keyframes osflick { 0% { transform: translate(0,0); } 50% { transform: translate(1px,-1px); } }
.os-num { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(6rem, 20vw, 9.5rem)/1 Georgia, "Times New Roman", serif; opacity: 0; z-index: 2; text-shadow: 0 0 24px rgba(233,223,195,.35); animation: osnum .7s linear both; }
.os-num.n3 { animation-delay: .05s; } .os-num.n2 { animation-delay: .75s; } .os-num.n1 { animation-delay: 1.45s; }
@keyframes osnum { 0% { opacity: 0; } 2%, 96% { opacity: 1; } 100% { opacity: 0; } }
.os-reel { position: absolute; bottom: 12%; left: 0; right: 0; text-align: center; font: 700 .85rem "Courier New", monospace; letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
.os-title { position: absolute; inset: 0; display: grid; place-items: center; clip-path: circle(0% at 50% 50%); animation: osiris .95s 2s cubic-bezier(.6,0,.2,1) forwards; overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, #243321 0, #0f160e 62%, #080c08 100%); }
@keyframes osiris { to { clip-path: circle(150% at 50% 50%); } }
.os-beam { position: absolute; bottom: -10%; width: 38vmax; height: 130vmax; left: 50%; margin-left: -19vmax; transform-origin: 50% 100%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(180deg, rgba(240,217,138,.0), rgba(240,217,138,.22) 40%, rgba(240,217,138,0) ); clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); }
.os-beam.b1 { animation: osb1 3.6s 2s ease-in-out both; } .os-beam.b2 { animation: osb2 3.6s 2s ease-in-out both; }
@keyframes osb1 { from { transform: rotate(-60deg); } to { transform: rotate(-12deg); } } @keyframes osb2 { from { transform: rotate(60deg); } to { transform: rotate(12deg); } }
.os-stars { position: absolute; top: 7%; left: 0; right: 0; text-align: center; color: rgba(212,175,55,.55); letter-spacing: .7em; font-size: 1rem; opacity: 0; animation: osin .8s 3.4s forwards; }
.os-card { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 18px; transform: translateY(-4%); }
.os-card img { width: min(150px, 34vw); height: auto; filter: drop-shadow(0 0 22px rgba(240,217,138,.55)); opacity: 0; transform: scale(.7); animation: oslogo .9s 3.45s cubic-bezier(.2,.9,.3,1.15) forwards; }
@keyframes oslogo { to { opacity: 1; transform: none; } }
.os-name { font: 700 clamp(1.5rem, 5.6vw, 3rem) Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .5em; color: #fff; opacity: 0; animation: osname 1.3s 3.7s ease-out forwards; }
@keyframes osname { from { opacity: 0; letter-spacing: .7em; } to { opacity: 1; letter-spacing: .2em; } }
.os-rule { width: min(380px, 70vw); height: 2px; background: linear-gradient(90deg, transparent, #d4af37, transparent); transform: scaleX(0); animation: osrule .9s 4.1s ease-out forwards; }
@keyframes osrule { to { transform: scaleX(1); } }
.os-since { font: 700 .95rem "Courier New", monospace; letter-spacing: .42em; text-transform: uppercase; color: #f0d98a; opacity: 0; animation: osin .8s 4.3s forwards; }
.os-sub { font: italic 1.05rem Georgia, serif; color: rgba(239,230,207,.85); opacity: 0; animation: osin .8s 4.55s forwards; }
@keyframes osin { to { opacity: 1; } }
.open-seq em { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 10; font-style: normal; font-size: .85rem; opacity: .55; letter-spacing: .1em; }
@media (prefers-reduced-motion: reduce) { .open-seq { display: none; } }

/* ===== Theme banner: dark plate with a lit medallion ===== */
.th-bar { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; padding: 11px 16px; color: #fff; overflow: hidden;
  background: linear-gradient(90deg, #060913 0%, color-mix(in srgb, var(--th-bar) 62%, #060913) 50%, #060913 100%); border-bottom: 1px solid rgba(255,255,255,.1); }
.th-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--th-trim), #fff, var(--th-trim), transparent); background-size: 200% 100%; animation: thline 5s linear infinite; }
.th-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; left: -160px; transform: skewX(-20deg); pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); animation: thsweep 8s 2s ease-in-out infinite; }
@keyframes thline { to { background-position: -200% 0; } }
@keyframes thsweep { 0% { left: -160px; } 28%, 100% { left: calc(100% + 60px); } }
.th-bar .th-medal { position: relative; flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; color: var(--th-trim); font-size: 17px; line-height: 1; }
.th-bar .th-medal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--th-trim), rgba(255,255,255,.12), var(--th-trim), rgba(255,255,255,.12), var(--th-trim));
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 63%); mask: radial-gradient(circle, transparent 60%, #000 63%); animation: thspin 9s linear infinite; }
.th-bar .th-medal::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.th-bar .th-medal b { position: relative; z-index: 1; text-shadow: 0 0 10px var(--th-trim); }
.th-bar .th-medal svg { position: relative; z-index: 1; width: 20px; height: 20px; margin: 0; }
@keyframes thspin { to { transform: rotate(360deg); } }
.th-bar .th-txt { display: grid; gap: 1px; text-align: left; min-width: 0; }
.th-bar .th-txt small { font: 700 .75rem "Courier New", Courier, monospace; letter-spacing: .24em; text-transform: uppercase; color: var(--th-trim); }
.th-bar .th-txt strong { font: 600 1.02rem/1.25 Georgia, "Times New Roman", serif; letter-spacing: .01em; text-wrap: balance; color: #fff; }
.th-bar .th-prev { flex-basis: 100%; text-align: center; font: 600 .78rem system-ui, sans-serif; opacity: .85; font-style: normal; }
.th-bar .th-prev a { color: inherit; text-decoration: underline; }
.th-sol .th-bar::after { display: none; } .th-sol .th-bar::before { animation-duration: 12s; }
@media (max-width: 640px) { .th-bar { gap: 4px 12px; padding: 10px 12px; } .th-bar .th-medal.r { display: none; } .th-bar .th-medal { width: 30px; height: 30px; font-size: 14px; } .th-bar .th-txt strong { font-size: .95rem; } .th-bar .th-txt small { letter-spacing: .16em; } }
@media (prefers-reduced-motion: reduce) { .th-bar::before, .th-bar::after, .th-bar .th-medal::before { animation: none; } }

.scene-sky .ship .w1 { animation: shw 1.1s linear infinite; } .scene-sky .ship .w2 { animation: shw 1.7s linear infinite reverse; }
@keyframes shw { to { transform: translateX(-36px); } }
.scene-sky .ship .spray { animation: shsp .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes shsp { from { opacity: .9; transform: translateY(0) scale(1); } to { opacity: .5; transform: translateY(-3px) scale(1.2); } }
.scene-sky .ship .radar { animation: shrad 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes shrad { from { transform: scaleX(1); } to { transform: scaleX(.15); } }
.scene-sky .ship .flag { animation: shflag 1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
.scene-sky .ship .ens { animation: shflag .8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
@keyframes shflag { from { transform: skewY(-3deg) scaleX(1); } to { transform: skewY(3deg) scaleX(.93); } }
.scene-sky .ship .shell { filter: drop-shadow(0 0 5px #ffd36a); }
.scene-sky .ship .smoke { opacity: 0; transform-box: fill-box; transform-origin: center; animation: shsm 7s ease-out infinite; }
@keyframes shsm { 0%, 2% { opacity: 0; transform: scale(.3); } 5% { opacity: .85; transform: scale(1); } 42% { opacity: 0; transform: translate(22px,-16px) scale(2.8); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scene-sky .ship * { animation: none !important; } }

/* Banner contrast and flag */
.th-bar { background: linear-gradient(90deg, #04070f 0%, #0b1530 50%, #04070f 100%); border-bottom: 1px solid rgba(255,255,255,.14); }
.th-bar .th-txt small { color: #f4d77a; font-size: .78rem; }
.th-bar .th-txt strong { color: #ffffff; font-size: 1.08rem; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.th-bar .th-medal.has-flag { width: 46px; }
.th-bar .th-medal.has-flag::before, .th-bar .th-medal.has-flag::after { display: none; }
.th-bar .th-medal .th-flag { position: relative; z-index: 1; width: 42px; height: 21px; margin: 0; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.25); animation: thwave 2.2s ease-in-out infinite alternate; transform-origin: 0 50%; }
@keyframes thwave { from { transform: skewY(-3deg) scaleX(1); } to { transform: skewY(3deg) scaleX(.95); } }
@media (max-width: 640px) { .th-bar .th-medal.has-flag { width: 36px; } .th-bar .th-medal .th-flag { width: 34px; height: 17px; } }
@media (prefers-reduced-motion: reduce) { .th-flag { animation: none; } }

/* Headlights coming out of the screen */
.os-hl { position: absolute; left: 50%; top: 56%; width: 0; height: 0; pointer-events: none; }
.os-hl i { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 22%, #fff3b8 34%, rgba(255,226,140,.55) 52%, rgba(255,200,90,0) 72%); filter: blur(.5px); }
.os-hl i.l { animation: oshll 1.3s 2.25s cubic-bezier(.5,0,.9,.6) forwards, oshlout .5s 3.45s forwards; } .os-hl i.r { animation: oshlr 1.3s 2.25s cubic-bezier(.5,0,.9,.6) forwards, oshlout .5s 3.45s forwards; }
@keyframes oshlout { to { opacity: 0; } }
@keyframes oshll { 0% { opacity: 0; transform: translate(-6px,0) scale(.12); } 12% { opacity: 1; } 100% { opacity: 1; transform: translate(-46vw,10vh) scale(16); } }
@keyframes oshlr { 0% { opacity: 0; transform: translate(6px,0) scale(.12); } 12% { opacity: 1; } 100% { opacity: 1; transform: translate(46vw,10vh) scale(16); } }
.os-hl em { position: absolute; left: -50vw; width: 100vw; height: 3px; top: -1px; background: linear-gradient(90deg, transparent, rgba(255,240,190,.95), transparent); opacity: 0; animation: osflare 1.3s 2.25s ease-in forwards, oshlout .5s 3.45s forwards; font-size: 0; }
@keyframes osflare { 0% { opacity: 0; transform: scaleX(.1); } 80% { opacity: .9; transform: scaleX(1); } 100% { opacity: 1; transform: scaleX(1.2); } }
.os-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 56%, #fffbe6, #ffe9a8 45%, #ffd36a 100%); opacity: 0; animation: osflash .9s 3.35s ease-out forwards; z-index: 5; pointer-events: none; }
@keyframes osflash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }

/* ---- Six branch convoy, flags and lights ---- */
.vv { overflow: visible; }
.convoy { gap: 40px; animation-duration: 44s; }
.convoy .vv:nth-child(5) .bounce { animation-delay: -.22s; } .convoy .vv:nth-child(6) .bounce { animation-delay: -.11s; }
.vv .lt { opacity: 0; transition: opacity 1.2s; pointer-events: none; }
body[data-tod="dawn"] .vv .lt, body[data-tod="dusk"] .vv .lt, body[data-tod="night"] .vv .lt { opacity: 1; }
.vv .usf .wave { transform-box: fill-box; transform-origin: left center; animation: flapm .5s ease-in-out infinite alternate; }
.page-vintage .portal-banner .vv.pax { width: 84px; }
.page-vintage .portal-banner .convoy { gap: 24px; }
@media (max-width: 860px) { .convoy { gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .vv .usf .wave { animation: none; } }

/* Air show layer */
.hero > .wrap, .hero > .container { position: relative; z-index: 2; }
.hero canvas.air { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.scene-sky .ship .lt { opacity: 0; transition: opacity 1.2s; }
body[data-tod="dawn"] .scene-sky .ship .lt, body[data-tod="dusk"] .scene-sky .ship .lt, body[data-tod="night"] .scene-sky .ship .lt { opacity: 1; }

/* Short opening for returning visitors, skip button, holiday tint */
.os-skip { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; z-index: 11; min-height: 44px; min-width: 76px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(239,230,207,.5); background: rgba(0,0,0,.45); color: #efe6cf; font: 700 .85rem "Courier New", monospace; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.os-skip:hover { background: rgba(239,230,207,.18); }
.open-seq { --osc: #d4af37; }
.os-rule { background: linear-gradient(90deg, transparent, var(--osc, #d4af37), transparent) !important; }
.os-flash { background: radial-gradient(circle at 50% 56%, #fffbe6, color-mix(in srgb, var(--osc, #ffd36a) 35%, #ffe9a8) 45%, var(--osc, #ffd36a) 100%) !important; }
.os-short .os-leader { display: none; }
.os-short .os-title { animation: none; clip-path: none; }
.os-short .os-beam { display: none; }
.os-short .os-hl i.l { animation: oshll .8s .1s cubic-bezier(.5,0,.9,.6) forwards, oshlout .3s .9s forwards; }
.os-short .os-hl i.r { animation: oshlr .8s .1s cubic-bezier(.5,0,.9,.6) forwards, oshlout .3s .9s forwards; }
.os-short .os-hl em { animation: osflare .8s .1s ease-in forwards, oshlout .3s .9s forwards; }
.os-short .os-flash { animation: osflash .7s .85s ease-out forwards; }
.os-short .os-stars { animation: osin .4s .95s forwards; }
.os-short .os-card img { animation: oslogo .5s .95s cubic-bezier(.2,.9,.3,1.15) forwards; }
.os-short .os-name { animation: osname .7s 1.05s ease-out forwards; }
.os-short .os-rule { animation: osrule .5s 1.2s ease-out forwards; }
.os-short .os-since { animation: osin .4s 1.3s forwards; }
.os-short .os-sub { animation: osin .4s 1.4s forwards; }
.vv.hmv { width: 108px; }
@media (max-width: 860px) { .vv.hmv { width: 82px; } }
.page-vintage .portal-banner .vv.hmv { width: 68px; }

/* Themed opening: tint, effects, Christmas train */
.os-fx { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.os-card { z-index: 3; }
.os-themed .os-title::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 56%, color-mix(in srgb, var(--ost, #0000) 70%, transparent), transparent 75%); pointer-events: none; }
.os-xmas .os-title { background: linear-gradient(#081226 0%, #112243 55%, #1d3558 100%); }
.os-xmas .os-hl, .os-xmas .os-flash, .os-xmas .os-beam { display: none; }
.os-moon { position: absolute; top: 9%; right: 12%; width: clamp(54px, 9vmin, 96px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #fffdf0, #f1ecd0 60%, #d9d2ae); box-shadow: 0 0 60px 18px rgba(255,248,214,.28); z-index: 1; }
.os-hills { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 1; background: radial-gradient(120% 90% at 20% 100%, #e8eef6 0 48%, transparent 49%), radial-gradient(110% 80% at 85% 100%, #d4deec 0 46%, transparent 47%); }
.os-rail { position: absolute; left: 0; right: 0; bottom: 14%; height: 3px; background: #2a2f3a; box-shadow: 0 5px 0 -1px #6b7384; z-index: 1; }
.os-train { position: absolute; left: 0; bottom: calc(14% + 2px); width: max(760px, 96vw); z-index: 2; transform: translateX(-102%); animation: ostrain 4.8s 2.2s cubic-bezier(.3,.1,.5,1) forwards; }
.os-train svg { display: block; width: 100%; height: auto; overflow: visible; }
.os-train .win { fill: #ffd98a; filter: drop-shadow(0 0 6px rgba(255,217,138,.9)); }
.os-train .beam { fill: rgba(255,246,200,.28); }
.os-train .drv { transform-box: fill-box; transform-origin: center; animation: spin .5s linear infinite; }
.os-train .puff { fill: rgba(240,244,250,.85); opacity: 0; transform-box: fill-box; transform-origin: center; animation: ospuff 1.2s ease-out infinite; }
.os-train .puff.p2 { animation-delay: .4s; } .os-train .puff.p3 { animation-delay: .8s; }
@keyframes ostrain { from { transform: translateX(-102%); } to { transform: translateX(100vw); } }
@keyframes ospuff { 0% { opacity: .9; transform: translate(0,0) scale(.5); } 100% { opacity: 0; transform: translate(-60px,-70px) scale(3.2); } }
.os-xmas .os-card { transform: translateY(-14%); }
.os-xmas.os-short .os-train { animation: ostrain 3s .1s cubic-bezier(.3,.1,.5,1) forwards; }
@media (max-width: 700px) { .os-train { width: 150vw; } }

/* Longer, slower, grander train */
.os-train { width: max(1150px, 146vw); animation: ostrain 7.6s 2.2s cubic-bezier(.3,.1,.5,1) forwards; }
.os-xmas.os-short .os-train { animation: ostrain 4.6s .1s cubic-bezier(.3,.1,.5,1) forwards; }
.os-train .win { fill: #ffcf70; filter: drop-shadow(0 0 8px rgba(255,200,100,.95)); }
.os-train .beam { fill: rgba(255,244,190,.34); }
@media (max-width: 700px) { .os-train { width: 230vw; } }

/* Memorial opening: battlefield cross */
.os-solemn { background: radial-gradient(120% 90% at 50% 105%, #2b3037 0%, #101317 45%, #050607 100%); cursor: pointer; }
.os-solemn::after { opacity: .08; }
.os-sglow { position: absolute; left: 50%; top: 46%; width: min(120vmin, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(236,228,205,.22), rgba(236,228,205,0) 62%); opacity: 0; animation: ossg 3s .3s ease-out forwards, ossgp 6s 3.3s ease-in-out infinite; }
@keyframes ossg { to { opacity: 1; } } @keyframes ossgp { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
.os-sg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 22px; text-align: center; }
.os-bfc { width: min(270px, 56vw); height: auto; opacity: 0; transform: translateY(14px); filter: drop-shadow(0 12px 22px rgba(0,0,0,.7)); animation: osbfc 2.4s .6s ease-out forwards; }
@keyframes osbfc { to { opacity: 1; transform: none; } }
.os-sh { font: 700 clamp(.8rem, 2.4vw, 1.05rem) "Courier New", monospace; letter-spacing: .32em; text-transform: uppercase; color: #cfc7b0; opacity: 0; animation: osin 1.6s 2.4s forwards; margin-top: 10px; }
.os-sline { width: min(300px, 60vw); height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.8), transparent); transform: scaleX(0); animation: osrule 1.4s 2.8s ease-out forwards; }
.os-sm { font: italic clamp(1.15rem, 3.6vw, 1.7rem) Georgia, serif; color: #f2ecdc; opacity: 0; animation: osin 1.6s 3.2s forwards; }
.os-nocross .os-sh { margin-top: 0; animation-delay: .8s; } .os-nocross .os-sline { animation-delay: 1.2s; } .os-nocross .os-sm { animation-delay: 1.6s; }
.os-solemn.os-short .os-sglow { animation-delay: 0s; } .os-solemn.os-short .os-bfc { animation-delay: .1s; animation-duration: 1.2s; }
.os-solemn.os-short .os-sh { animation-delay: 1s; } .os-solemn.os-short .os-sline { animation-delay: 1.3s; } .os-solemn.os-short .os-sm { animation-delay: 1.5s; }

/* ===== Modern solemn openings (Memorial, Pearl Harbor, Patriot) ===== */
.os-solemn { --k: 1; background: #04050a; overflow: hidden; font-family: "Helvetica Neue", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.os-solemn.os-short { --k: .42; }
.os-solemn::after { opacity: .05; }
.os-solemn > div, .os-solemn > canvas { position: absolute; pointer-events: none; }
.osm-sky, .osm-sun, .osm-rays, .osm-aur, .osm-sea, .osm-ripple, .osm-hill, .osm-mist, .osm-stage, .osm-bar { display: none; }
.osm-lights { inset: 0; width: 100%; height: 100%; z-index: 3; }
.osm-sky { display: block; inset: 0; opacity: 0; animation: osmfade 3s calc(.1s * var(--k)) ease-out forwards; }
@keyframes osmfade { to { opacity: 1; } }
.osm-text { left: 0; right: 0; z-index: 6; text-align: center; padding: 0 22px; display: grid; gap: 14px; justify-items: center; }
.osm-kick { font-weight: 500; font-size: clamp(.72rem, 2.2vw, .95rem); letter-spacing: .55em; text-transform: uppercase; color: rgba(255,238,205,.82); opacity: 0; animation: osmup 1.4s calc(3.6s * var(--k)) ease-out forwards; }
.osm-big { font-weight: 200; font-size: clamp(2rem, 7.4vw, 4.6rem); line-height: 1.06; letter-spacing: .02em; color: #fff; display: grid; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.osm-big span { opacity: 0; animation: osmup 1.8s calc(4.3s * var(--k)) ease-out forwards; }
.osm-big span.g { font-weight: 300; color: #ffd9a0; animation-delay: calc(5.6s * var(--k)); }
.osm-sub { font-weight: 300; font-size: clamp(.8rem, 2.4vw, 1.05rem); letter-spacing: .14em; color: rgba(236,230,214,.8); max-width: 34ch; line-height: 1.6; opacity: 0; animation: osmup 1.6s calc(7s * var(--k)) ease-out forwards; }
@keyframes osmup { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.os-solemn .os-skip { z-index: 12; }
.os-solemn > em { z-index: 12; }
.os-solemn.out { transition: opacity 1s ease; }

/* Memorial: first light over the battlefield cross */
.os-s-memorial .osm-sky { background: linear-gradient(#03040a 0%, #0b0f20 38%, #2b2230 64%, #8a4d36 84%, #e39a52 100%); }
.os-s-memorial .osm-sun { display: block; left: 50%; bottom: calc(46% - 65vmin); width: 130vmin; aspect-ratio: 1; margin-left: -65vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,150,.95) 0, rgba(255,176,92,.55) 16%, rgba(255,140,60,.18) 40%, transparent 66%); opacity: 0; transform: translateY(24%); animation: osmsun 4.5s calc(.8s * var(--k)) cubic-bezier(.2,.7,.3,1) forwards, osmpulse 7s calc(5.3s * var(--k)) ease-in-out infinite; z-index: 1; }
@keyframes osmsun { to { opacity: 1; transform: none; } } @keyframes osmpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
.os-s-memorial .osm-rays { display: block; left: 50%; bottom: calc(40% - 90vmin); width: 180vmin; aspect-ratio: 1; margin-left: -90vmin; z-index: 1; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,214,150,.13) 0 3deg, transparent 3deg 12deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%); opacity: 0; animation: osmfade 4s calc(1.6s * var(--k)) forwards, osmspin 120s linear infinite; }
@keyframes osmspin { to { transform: rotate(360deg); } }
.os-s-memorial .osm-hill { display: block; left: -10%; right: -10%; bottom: 0; height: 22%; z-index: 4; background: radial-gradient(130% 100% at 50% 100%, #05060a 58%, transparent 59%); }
.os-s-memorial .osm-mist { display: block; left: -20%; width: 140%; height: 22%; bottom: 10%; z-index: 5; filter: blur(22px); background: radial-gradient(60% 100% at 30% 50%, rgba(255,205,150,.30), transparent 70%), radial-gradient(50% 100% at 75% 60%, rgba(255,190,130,.22), transparent 70%); opacity: .8; animation: osmdrift 26s linear infinite alternate; }
.os-s-memorial .osm-mist.m2 { bottom: 4%; height: 18%; opacity: .6; animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes osmdrift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.os-s-memorial .osm-stage { display: block; left: 50%; bottom: 10%; height: min(54vh, 480px); aspect-ratio: 240 / 300; transform: translateX(-50%); z-index: 5; opacity: 0; animation: osmcross 3.2s calc(1.8s * var(--k)) cubic-bezier(.2,.7,.2,1) forwards; }
.os-s-memorial .osm-cross { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 26px rgba(255,170,80,.5)) drop-shadow(0 14px 20px rgba(0,0,0,.6)); }
@keyframes osmcross { from { opacity: 0; transform: translate(-50%, 24px) scale(.97); } to { opacity: 1; transform: translateX(-50%); } }
.osm-tags { transform-box: fill-box; transform-origin: 50% 0; animation: osmswing 5s ease-in-out infinite alternate; }
@keyframes osmswing { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
.osm-glint { animation: osmglint 4s 3s ease-in-out infinite; opacity: 0; }
@keyframes osmglint { 0%, 70%, 100% { opacity: 0; } 80% { opacity: .95; } }
.os-s-memorial .osm-text { top: 6%; }
.os-s-memorial .osm-bar { display: none; }

/* Pearl Harbor: still water at first light */
.os-s-pearl .osm-sky { background: linear-gradient(#02040a 0%, #08142c 32%, #1b2c4d 52%, #5b5f7c 60%, #d6a587 66%); }
.os-s-pearl .osm-sun { display: block; left: 50%; top: 44%; width: 15vmin; aspect-ratio: 1; margin-left: -7.5vmin; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fffdf2, #f3ead0 62%, #d6c9a6); box-shadow: 0 0 80px 24px rgba(255,238,200,.28); opacity: 0; animation: osmfade 3.5s calc(1s * var(--k)) forwards; z-index: 1; }
.os-s-pearl .osm-sea { display: block; left: 0; right: 0; bottom: 0; height: 37%; z-index: 2; background: linear-gradient(#27324a 0%, #0c1426 38%, #04070e 100%); }
.os-s-pearl .osm-sea::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 100%; margin-left: -9%; background: repeating-linear-gradient(0deg, rgba(255,240,205,.55) 0 2px, transparent 2px 9px); -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); opacity: .7; animation: osmshim 4s ease-in-out infinite alternate; }
@keyframes osmshim { from { transform: scaleX(.8); opacity: .45; } to { transform: scaleX(1.15); opacity: .8; } }
.os-s-pearl .osm-ripple { display: block; left: 50%; top: 80%; width: 70vmin; height: 16vmin; margin: -8vmin 0 0 -35vmin; border: 1.5px solid rgba(220,235,255,.65); border-radius: 50%; z-index: 3; opacity: 0; transform: scale(.05); animation: osmrip 7.5s calc(2s * var(--k)) ease-out infinite; }
.os-s-pearl .osm-ripple.r2 { animation-delay: calc(4.5s * var(--k)); } .os-s-pearl .osm-ripple.r3 { animation-delay: calc(7s * var(--k)); }
@keyframes osmrip { 0% { opacity: 0; transform: scale(.05); } 12% { opacity: .85; } 100% { opacity: 0; transform: scale(2.1); } }
.os-s-pearl .osm-text { top: 9%; }
.os-s-pearl .osm-big { font-size: clamp(1.9rem, 6.6vw, 4.2rem); letter-spacing: .12em; text-transform: uppercase; font-weight: 200; }
.os-s-pearl .osm-big span.g { color: #cfe0ff; font-size: .5em; letter-spacing: .4em; font-weight: 300; }

/* Patriot Day: red, white and blue light */
.os-s-patriot .osm-sky { background: radial-gradient(120% 100% at 50% 100%, #101a36 0%, #070b18 55%, #020307 100%); }
.os-s-patriot .osm-aur { display: block; width: 90vmax; height: 46vmax; left: 50%; top: 50%; margin: -23vmax 0 0 -45vmax; border-radius: 50%; filter: blur(70px); opacity: 0; z-index: 1; animation: osmfade 4s calc(.6s * var(--k)) forwards, osmaur 16s ease-in-out infinite alternate; }
.os-s-patriot .osm-aur.a1 { background: rgba(200,35,42,.55); --dx: -22vmax; --dy: 12vmax; animation-delay: calc(.6s * var(--k)), 0s; }
.os-s-patriot .osm-aur.a2 { background: rgba(240,244,255,.30); --dx: 4vmax; --dy: -16vmax; animation-delay: calc(1.2s * var(--k)), -5s; }
.os-s-patriot .osm-aur.a3 { background: rgba(42,78,168,.65); --dx: 24vmax; --dy: 10vmax; animation-delay: calc(1.8s * var(--k)), -9s; }
@keyframes osmaur { from { transform: translate(var(--dx), var(--dy)) scale(.85) rotate(0deg); } to { transform: translate(calc(var(--dx) * -.7), calc(var(--dy) * -.6)) scale(1.15) rotate(25deg); } }
.os-s-patriot .osm-text { top: 50%; transform: translateY(-52%); }
.os-s-patriot .osm-big { font-size: clamp(2.2rem, 8.6vw, 5.8rem); letter-spacing: .05em; text-transform: uppercase; font-weight: 200; }
.os-s-patriot .osm-big span.g { color: #fff; font-weight: 600; letter-spacing: .08em; }
.os-s-patriot .osm-bar { display: flex; left: 0; right: 0; bottom: 0; height: 6px; z-index: 6; opacity: 0; animation: osmfade 2s calc(6s * var(--k)) forwards; }
.os-s-patriot .osm-bar i { flex: 1; } .os-s-patriot .osm-bar i:nth-child(1) { background: #c8232a; } .os-s-patriot .osm-bar i:nth-child(2) { background: #f1f1ec; } .os-s-patriot .osm-bar i:nth-child(3) { background: #2a4ea8; }
@media (max-width: 600px) { .osm-kick { letter-spacing: .32em; } .os-s-memorial .osm-stage { height: min(40vh, 360px); } }

/* Memorial: Arlington headstones; Patriot Day: towers of light */
.os-s-memorial .osm-sun { bottom: calc(42% - 65vmin); }
.os-s-memorial .osm-rays { bottom: calc(42% - 90vmin); }
.os-s-memorial .osm-hill { display: none; }
.os-s-memorial .osm-stage { left: 0; right: 0; bottom: 0; width: auto; height: 60%; aspect-ratio: auto; transform: none; opacity: 1; animation: none; z-index: 5; }
.os-s-memorial .osm-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,185,110,.30), rgba(255,185,110,0) 65%); mix-blend-mode: soft-light; pointer-events: none; }
.osm-field { display: block; width: 100%; height: 100%; }
.osm-row { opacity: 0; animation: osmrow 1.2s ease-out forwards; }
@keyframes osmrow { from { opacity: 0; } to { opacity: 1; } }
.osm-flag { animation: osmwave 1.1s ease-in-out infinite alternate; transform-box: view-box; }
@keyframes osmwave { from { transform: skewY(-6deg) scaleX(1); } to { transform: skewY(7deg) scaleX(.82); } }
.osm-cap { left: 0; right: 0; bottom: 34px; text-align: center; z-index: 7; font-weight: 400; font-size: clamp(.68rem, 2vw, .85rem); letter-spacing: .5em; text-transform: uppercase; color: rgba(255,240,215,.8); opacity: 0; animation: osmup 1.6s calc(8s * var(--k)) ease-out forwards; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.os-s-memorial .osm-mist { z-index: 6; bottom: 22%; opacity: .55; }
.os-s-memorial .osm-mist.m2 { bottom: 8%; }

.os-s-patriot .osm-stage { display: block; left: 0; right: 0; bottom: 0; height: 100%; z-index: 5; }
.os-s-patriot .osm-text { top: 6%; transform: none; }
.os-s-patriot .osm-big { font-size: clamp(1.8rem, 6.4vw, 4.2rem); }
.osm-tw { --tw: min(8.6vw, 68px); position: absolute; bottom: 9%; width: var(--tw); height: min(50vh, 400px); background: linear-gradient(90deg, #080b12, #1a2130 50%, #080b12); box-shadow: 0 0 40px rgba(180,200,255,.18); clip-path: inset(100% 0 0 0); animation: osmtower 3.6s calc(1.2s * var(--k)) cubic-bezier(.3,.6,.2,1) forwards; }
.osm-tw.tl { left: calc(50% - var(--tw) - min(2.6vw, 24px)); } .osm-tw.tr { left: calc(50% + min(2.6vw, 24px)); }
@keyframes osmtower { to { clip-path: inset(0 0 0 0); } }
.osm-tw::before { content: ""; position: absolute; inset: 2px 3px 0; background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(8,10,16,.96) 7px 9px), repeating-linear-gradient(90deg, rgba(255,226,160,.95) 0 2px, rgba(8,10,16,.96) 2px 4px); -webkit-mask: linear-gradient(#000, #000) 0 100% / 100% 0% no-repeat; mask: linear-gradient(#000, #000) 0 100% / 100% 0% no-repeat; animation: osmlit 6s calc(2.6s * var(--k)) ease-in-out forwards, osmflick 3.2s calc(9s * var(--k)) ease-in-out infinite alternate; }
@keyframes osmlit { to { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } }
@keyframes osmflick { from { filter: brightness(1); } to { filter: brightness(.7); } }
.osm-tw::after { content: ""; position: absolute; left: -60%; right: -60%; bottom: 100%; height: 26vh; background: linear-gradient(0deg, rgba(255,232,180,.30), rgba(255,232,180,0)); filter: blur(10px); opacity: 0; animation: osmfade 4s calc(6s * var(--k)) forwards; }
.osm-ant { position: absolute; left: 50%; bottom: 100%; width: 2px; height: 36px; margin-left: -1px; background: #2a303d; }
.osm-glowline { position: absolute; left: 12%; right: 12%; bottom: 9%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,226,160,.8), transparent); opacity: 0; animation: osmfade 3s calc(4s * var(--k)) forwards; box-shadow: 0 0 24px 6px rgba(255,214,150,.3); }
@media (max-width: 600px) { .osm-tw { --tw: 11vw; height: 40vh; } }
.os-s-memorial .osm-stage::after { background: linear-gradient(rgba(255,185,110,0), rgba(255,185,110,.28) 22%, rgba(255,185,110,0) 70%), linear-gradient(rgba(0,0,0,0) 70%, rgba(0,0,0,.7)); mix-blend-mode: normal; }
.osm-cap { bottom: 62px; }
.osm-tw::before { opacity: .8; }

/* ===== Cinematic openings (cinema.js) ===== */
.open-seq.cn { --k: 1; background: #02040a; color: #f4efe6; font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; }
.open-seq.cn.os-short { --k: .42; }
.open-seq.cn::after { opacity: .07; }
.cn canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cn-cam { position: absolute; inset: -4%; width: 108%; height: 108%; transform-origin: var(--ox, 50%) var(--oy, 55%); animation: cncam calc(22s * var(--k)) cubic-bezier(.3,.1,.2,1) both, cnin calc(2.4s * var(--k)) ease both; will-change: transform; }
.cn-cam canvas { inset: 0; }
.cn-fg { filter: blur(6px); transform-origin: 50% 100%; animation: cnfg calc(22s * var(--k)) ease-out both; }
.cn-lit { clip-path: inset(100% 0 0 0); animation: cnlit calc(7s * var(--k)) calc(2.4s * var(--k)) cubic-bezier(.3,.6,.3,1) forwards; }
.cn:not(.cn-patriot) .cn-lit { display: none; }
.cn-fx { mix-blend-mode: normal; pointer-events: none; }
.cn-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, rgba(0,0,0,0) 38%, rgba(0,0,0,.62) 100%), linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); }
.cn-bar { position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 6; animation: cnbar calc(2.6s * var(--k)) ease both; }
.cn-bar.t { top: 0; transform-origin: top; } .cn-bar.b { bottom: 0; transform-origin: bottom; }
.cn-text { position: absolute; z-index: 7; left: 0; right: 0; top: 50%; transform: translateY(-62%); text-align: center; padding: 0 6vw; text-shadow: 0 2px 30px rgba(0,0,0,.65), 0 0 60px rgba(0,0,0,.4); pointer-events: none; }
.cn-xmas .cn-text, .cn-pearl .cn-text { top: 40%; } .cn-vets .cn-text { top: 62%; }
@media (min-aspect-ratio: 6/5) { .cn-vets .cn-text, .cn-mar .cn-text { top: 48%; left: 52%; } .cn-patriot .cn-text, .cn-vets .cn-text, .cn-mar .cn-text { left: 40%; right: 0; text-align: left; padding: 0 7vw 0 0; top: 46%; } .cn-patriot .cn-sub, .cn-vets .cn-sub, .cn-mar .cn-sub { margin-left: 0; } }
.cn-kick { font: 600 clamp(.72rem, 1.5vw, .95rem)/1 "Inter", system-ui, sans-serif; letter-spacing: .5em; text-transform: uppercase; color: #e8c88f; opacity: 0; animation: cnrise 1.6s calc(3.4s * var(--k)) ease forwards; padding-left: .5em; }
.cn-big { margin-top: 1.1rem; font-weight: 500; font-size: clamp(2.3rem, 7.4vw, 6rem); line-height: 1.04; letter-spacing: .005em; }
.cn-big span { display: block; opacity: 0; filter: blur(14px); animation: cnreveal 2s ease forwards; }
.cn-big span:nth-child(1) { animation-delay: calc(4.2s * var(--k)); }
.cn-big span.g { font-style: italic; color: #f6dca4; animation-delay: calc(5.6s * var(--k)); }
.cn-sub { margin: 1.5rem auto 0; max-width: 34rem; font: 400 clamp(.9rem, 1.8vw, 1.15rem)/1.55 "Inter", system-ui, sans-serif; letter-spacing: .04em; color: rgba(244,239,230,.82); opacity: 0; animation: cnrise 1.8s calc(7.1s * var(--k)) ease forwards; }
.cn-cap { position: absolute; z-index: 7; left: 0; right: 0; bottom: calc(9vh + 84px); text-align: center; font: 500 .72rem/1 "Inter", system-ui, sans-serif; letter-spacing: .45em; text-transform: uppercase; color: rgba(244,222,180,.8); opacity: 0; animation: cnrise 1.8s calc(8s * var(--k)) ease forwards; }
.cn-sig { position: absolute; z-index: 7; left: 0; right: 0; bottom: calc(9vh + 40px); display: flex; align-items: center; justify-content: center; gap: .7rem; font: 600 .68rem/1 "Inter", system-ui, sans-serif; letter-spacing: .4em; text-transform: uppercase; color: rgba(244,239,230,.7); opacity: 0; animation: cnrise 1.6s calc(9s * var(--k)) ease forwards; pointer-events: none; }
.cn-sig img { height: 26px; width: auto; opacity: .85; }
.cn-xmas .cn-kick { animation-delay: calc(5s * var(--k)); } .cn-xmas .cn-big span:nth-child(1) { animation-delay: calc(5.8s * var(--k)); } .cn-xmas .cn-big span.g { animation-delay: calc(7s * var(--k)); } .cn-xmas .cn-sub { animation-delay: calc(8.2s * var(--k)); }
.cn-xmas .cn-big span.g { font-size: .5em; font-style: italic; margin-top: .4em; }
.cn em { z-index: 9; bottom: calc(9vh + 10px); font-size: .72rem; } .cn .os-skip { top: calc(9vh + 12px); z-index: 12; }
@keyframes cncam { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes cnfg { from { transform: scale(1); } to { transform: scale(1.28) translateY(2%); } }
@keyframes cnin { from { opacity: 0; } to { opacity: 1; } }
@keyframes cnbar { from { transform: scaleY(5); } to { transform: scaleY(1); } }
@keyframes cnrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cnreveal { from { opacity: 0; filter: blur(14px); transform: translateY(10px) scale(1.03); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes cnlit { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 700px) { .cn-big { font-size: clamp(2rem, 11vw, 3.4rem); } .cn-kick { letter-spacing: .3em; } .cn-bar { height: 6vh; } .cn-cap { bottom: calc(6vh + 84px); letter-spacing: .3em; } .cn-sig { bottom: calc(6vh + 40px); } .cn em { bottom: calc(6vh + 10px); } .cn .os-skip { top: calc(6vh + 12px); } .cn-memorial .cn-text { top: 21%; } .cn-patriot .cn-text { top: 71%; } .cn-vets .cn-text, .cn-mar .cn-text { top: 60%; } .cn-xmas .cn-text, .cn-pearl .cn-text { top: 36%; } }


/* ===== Design pass: account, dashboard order, slimmer holiday strip, footer ===== */
.acct-name { font: 700 1.25rem/1.3 var(--serif, Georgia, serif); margin: 0 0 10px; }
.acct-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.acct-dl dt { font: 700 .72rem/1.9 "Courier New", monospace; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.acct-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* holiday strip: calmer than the route delay bar */
.th-bar { padding: 5px 14px; gap: 2px 12px; }
.th-bar .th-medal { width: 24px; height: 24px; font-size: 13px; } .th-bar .th-medal svg { width: 15px; height: 15px; }
.th-bar .th-txt small { font-size: .7rem; letter-spacing: .18em; } .th-bar .th-txt strong { font-size: .88rem; line-height: 1.3; font-weight: 600; }
.th-has-bulbs .th-bar { padding-bottom: 14px; }
@media (max-width: 700px) { .th-bar .th-txt strong { font-size: .8rem; } .th-bar .th-medal { display: none; } }
.portal-banner { padding-top: 14px; } .portal-banner h1 { margin-bottom: 4px; }
/* footer */
.site-footer { padding: 36px 0 16px; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-outline-light { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.45); text-decoration: none; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer-grid { gap: 22px; } .footer-grid > div:nth-child(2) ul.plain { columns: 2; column-gap: 20px; } .footer-grid > div:nth-child(2) li { break-inside: avoid; } .site-footer .legal { font-size: .8rem; } }
.site-footer a.btn-gold { color: #1a1a10; text-decoration: none; font-weight: 700; }
@media (max-width: 900px) { .area-public .foot-cta .btn-outline-light { display: none; } }

/* ===== Calm inner pages, replay link, opening legibility ===== */
.replay-link { margin-left: 14px; font-size: .8rem; opacity: .75; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .replay-link { display: none; } .open-seq { display: none !important; } }
.area-portal .portal-banner::before, .area-portal .banner-logo .shine, .area-portal .badge-new, .area-portal .bw-plaque.today, .area-admin .badge-new, .area-admin .shine { animation: none !important; }
.cn-text::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(120vw, 900px); height: 140%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(2,4,10,.55) 0%, rgba(2,4,10,.32) 45%, rgba(2,4,10,0) 72%); }
.cn-sub, .cn-cap { text-shadow: 0 1px 14px rgba(0,0,0,.85); }
.cn .os-skip:focus-visible { outline: 3px solid #e8c88f; outline-offset: 3px; }

.cn-navy .cn-text, .cn-cg .cn-text, .cn-af .cn-text, .cn-thanks .cn-text { top: 36%; }
.cn-af .cn-text::before { background: radial-gradient(ellipse at center, rgba(4,12,34,.6) 0%, rgba(4,12,34,.34) 45%, rgba(4,12,34,0) 72%); }
.cn-mar .cn-text { top: 30%; } .cn-mar .cn-text::before { background: radial-gradient(ellipse at center, rgba(18,3,6,.62) 0%, rgba(18,3,6,.36) 45%, rgba(18,3,6,0) 72%); }
@media (min-aspect-ratio: 6/5) { .cn-mar .cn-text { left: 40%; top: 46%; } .cn-mar .cn-big { font-size: clamp(2rem, 4.2vw, 3.9rem); } }
.cn-sub { max-width: 42rem; }

.cn-memorial .cn-text { top: 28%; transform: translateY(-50%); } .cn-memorial .cn-fx { filter: blur(.5px); } .cn-memorial .cn-big { font-size: clamp(2rem, 3.8vw, 3.5rem); } .cn-memorial .cn-sub { font-size: clamp(.95rem, 1.3vw, 1.15rem); }
@media (max-width: 700px) { .cn-memorial .cn-text { top: 24%; } .cn-memorial .cn-big { font-size: clamp(2rem, 10vw, 3.2rem); } }

.cn-mar .cn-text { top: 24%; transform: translateY(-50%); } .cn-mar .cn-big { font-size: clamp(2rem, 3.8vw, 3.5rem); } @media (min-aspect-ratio: 6/5) { .cn-mar .cn-text { left: 0; right: 0; text-align: center; padding: 0 6vw; top: 24%; } .cn-mar .cn-sub { margin-left: auto; } } @media (max-width: 700px) { .cn-mar .cn-text { top: 23%; } .cn-mar .cn-big { font-size: clamp(2rem, 10vw, 3.2rem); } }
.cn-mar .cn-fx { filter: blur(.4px); }
.cn-mar .cn-text { top: 26%; } @media (min-aspect-ratio: 6/5) { .cn-mar .cn-text { top: 26%; } }
@keyframes cnfade { from { opacity: 1; } to { opacity: 0; } } .cn-closing .cn-text, .cn-closing .cn-cap { animation: cnfade 2s ease forwards !important; }
.cn-memorial .cn-text { top: 24%; }
/* Veterans Day: headline centered beneath the flag */
.cn-vets .cn-text { top: 62%; left: 0; right: 0; text-align: center; padding: 0 6vw; transform: translateY(-50%); }
.cn-vets .cn-sub { margin-left: auto; margin-right: auto; }
.cn-vets .cn-big { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
@media (min-aspect-ratio: 6/5) { .cn-vets .cn-text { top: 62%; left: 0; right: 0; text-align: center; padding: 0 6vw; } }
@media (max-width: 700px) { .cn-vets .cn-text { top: 70%; } .cn-vets .cn-big { font-size: clamp(1.9rem, 9vw, 3rem); } }
/* Veterans Day: the words arrive after the lights have become the flag */
.cn-vets .cn-kick { animation-delay: calc(9.4s * var(--k)); }
.cn-vets .cn-big span:nth-child(1) { animation-delay: calc(10.2s * var(--k)); }
.cn-vets .cn-big span.g { animation-delay: calc(11.6s * var(--k)); }
.cn-vets .cn-sub { animation-delay: calc(13s * var(--k)); }
.cn-vets .cn-cap { animation-delay: calc(14s * var(--k)); }
.cn-vets .cn-sig { animation-delay: calc(14.6s * var(--k)); } .cn-vets .cn-cap { display: none; }

/* the newer scenes share the Veterans Day timing: words arrive after the picture has formed */
.cn-presidents .cn-kick, .cn-juneteenth .cn-kick, .cn-labor .cn-kick, .cn-columbus .cn-kick, .cn-armed .cn-kick, .cn-flagarmy .cn-kick, .cn-spouse .cn-kick { animation-delay: calc(9.4s * var(--k)); }
.cn-presidents .cn-big span:nth-child(1), .cn-juneteenth .cn-big span:nth-child(1), .cn-labor .cn-big span:nth-child(1), .cn-columbus .cn-big span:nth-child(1), .cn-armed .cn-big span:nth-child(1), .cn-flagarmy .cn-big span:nth-child(1), .cn-spouse .cn-big span:nth-child(1) { animation-delay: calc(10.2s * var(--k)); }
.cn-presidents .cn-big span.g, .cn-juneteenth .cn-big span.g, .cn-labor .cn-big span.g, .cn-columbus .cn-big span.g, .cn-armed .cn-big span.g, .cn-flagarmy .cn-big span.g, .cn-spouse .cn-big span.g { animation-delay: calc(11.6s * var(--k)); }
.cn-presidents .cn-sub, .cn-juneteenth .cn-sub, .cn-labor .cn-sub, .cn-columbus .cn-sub, .cn-armed .cn-sub, .cn-flagarmy .cn-sub, .cn-spouse .cn-sub { animation-delay: calc(13s * var(--k)); }
.cn-presidents .cn-sig, .cn-juneteenth .cn-sig, .cn-labor .cn-sig, .cn-columbus .cn-sig, .cn-armed .cn-sig, .cn-flagarmy .cn-sig, .cn-spouse .cn-sig { animation-delay: calc(14.6s * var(--k)); }
.cn-presidents .cn-cap, .cn-juneteenth .cn-cap, .cn-labor .cn-cap, .cn-columbus .cn-cap, .cn-armed .cn-cap, .cn-flagarmy .cn-cap, .cn-spouse .cn-cap { display: none; }
.cn-juneteenth .cn-text, .cn-labor .cn-text, .cn-columbus .cn-text, .cn-armed .cn-text, .cn-flagarmy .cn-text, .cn-spouse .cn-text { top: 66%; left: 0; right: 0; text-align: center; padding: 0 6vw; transform: translateY(-50%); }
.cn-presidents .cn-text { top: 72%; left: 0; right: 0; text-align: center; padding: 0 6vw; transform: translateY(-50%); }
.cn-presidents .cn-big, .cn-juneteenth .cn-big, .cn-labor .cn-big, .cn-columbus .cn-big, .cn-armed .cn-big, .cn-flagarmy .cn-big, .cn-spouse .cn-big { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
.cn-presidents .cn-sub, .cn-juneteenth .cn-sub, .cn-labor .cn-sub, .cn-columbus .cn-sub, .cn-armed .cn-sub, .cn-flagarmy .cn-sub, .cn-spouse .cn-sub { margin-left: auto; margin-right: auto; }
@media (min-aspect-ratio: 6/5) { .cn-presidents .cn-text { top: 50%; left: 44%; right: 0; text-align: left; padding: 0 7vw 0 0; } .cn-presidents .cn-sub { margin-left: 0; } .cn-juneteenth .cn-text, .cn-labor .cn-text, .cn-columbus .cn-text, .cn-armed .cn-text, .cn-flagarmy .cn-text, .cn-spouse .cn-text { top: 68%; left: 0; right: 0; text-align: center; padding: 0 6vw; } }
@media (max-width: 700px) { .cn-presidents .cn-big, .cn-juneteenth .cn-big, .cn-labor .cn-big, .cn-columbus .cn-big, .cn-armed .cn-big, .cn-flagarmy .cn-big, .cn-spouse .cn-big { font-size: clamp(1.8rem, 8.6vw, 2.8rem); } .cn-presidents .cn-text { top: 76%; } .cn-juneteenth .cn-text, .cn-labor .cn-text, .cn-columbus .cn-text, .cn-armed .cn-text, .cn-flagarmy .cn-text, .cn-spouse .cn-text { top: 70%; } }

.cn-labor .cn-text { top: 27%; } @media (min-aspect-ratio: 6/5) { .cn-labor .cn-text { top: 26%; } } @media (max-width: 700px) { .cn-labor .cn-text { top: 24%; } }

.cn-spouse .cn-text { top: 25%; } @media (min-aspect-ratio: 6/5) { .cn-spouse .cn-text { top: 24%; } } @media (max-width: 700px) { .cn-spouse .cn-text { top: 22%; } }

/* service birthdays share the same timing: words after the picture */
.cn-navy .cn-kick, .cn-af .cn-kick, .cn-cg .cn-kick, .cn-sf .cn-kick { animation-delay: calc(9.4s * var(--k)); }
.cn-navy .cn-big span:nth-child(1), .cn-af .cn-big span:nth-child(1), .cn-cg .cn-big span:nth-child(1), .cn-sf .cn-big span:nth-child(1) { animation-delay: calc(10.2s * var(--k)); }
.cn-navy .cn-big span.g, .cn-af .cn-big span.g, .cn-cg .cn-big span.g, .cn-sf .cn-big span.g { animation-delay: calc(11.6s * var(--k)); }
.cn-navy .cn-sub, .cn-af .cn-sub, .cn-cg .cn-sub, .cn-sf .cn-sub { animation-delay: calc(13s * var(--k)); margin-left: auto; margin-right: auto; }
.cn-navy .cn-sig, .cn-af .cn-sig, .cn-cg .cn-sig, .cn-sf .cn-sig { animation-delay: calc(14.6s * var(--k)); }
.cn-navy .cn-cap, .cn-af .cn-cap, .cn-cg .cn-cap, .cn-sf .cn-cap { display: none; }
.cn-navy .cn-text, .cn-af .cn-text, .cn-cg .cn-text, .cn-sf .cn-text { top: 66%; left: 0; right: 0; text-align: center; padding: 0 6vw; transform: translateY(-50%); }
.cn-navy .cn-big, .cn-af .cn-big, .cn-cg .cn-big, .cn-sf .cn-big { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
@media (min-aspect-ratio: 6/5) { .cn-navy .cn-text, .cn-af .cn-text, .cn-cg .cn-text, .cn-sf .cn-text { top: 68%; left: 0; right: 0; text-align: center; } }
@media (max-width: 700px) { .cn-navy .cn-big, .cn-af .cn-big, .cn-cg .cn-big, .cn-sf .cn-big { font-size: clamp(1.8rem, 8.6vw, 2.8rem); } .cn-navy .cn-text, .cn-af .cn-text, .cn-cg .cn-text, .cn-sf .cn-text { top: 70%; } }

/* Marine Corps now shares the service-birthday timing and layout */
.cn-mar .cn-fx { filter: none; }
.cn-mar .cn-kick { animation-delay: calc(9.4s * var(--k)); }
.cn-mar .cn-big span:nth-child(1) { animation-delay: calc(10.2s * var(--k)); }
.cn-mar .cn-big span.g { animation-delay: calc(11.6s * var(--k)); }
.cn-mar .cn-sub { animation-delay: calc(13s * var(--k)); margin-left: auto; margin-right: auto; }
.cn-mar .cn-sig { animation-delay: calc(14.6s * var(--k)); }
.cn-mar .cn-cap { display: none; }
.cn-mar .cn-text { top: 66%; left: 0; right: 0; text-align: center; padding: 0 6vw; transform: translateY(-50%); }
.cn-mar .cn-big { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
@media (min-aspect-ratio: 6/5) { .cn-mar .cn-text { top: 68%; left: 0; right: 0; text-align: center; padding: 0 6vw; } }
@media (max-width: 700px) { .cn-mar .cn-big { font-size: clamp(1.8rem, 8.6vw, 2.8rem); } .cn-mar .cn-text { top: 70%; } }

.cn-xmas .cn-text { top: 27%; } .cn-xmas .cn-big { font-size: clamp(2.4rem, 5.4vw, 4rem); }
@media (max-width: 700px) { .cn-xmas .cn-text { top: 22%; } .cn-xmas .cn-big { font-size: clamp(2rem, 11vw, 3.2rem); } }

.cn-xmas .cn-kick { animation-delay: calc(9.4s * var(--k)); } .cn-xmas .cn-big span:nth-child(1) { animation-delay: calc(10.2s * var(--k)); } .cn-xmas .cn-big span.g { animation-delay: calc(11.6s * var(--k)); } .cn-xmas .cn-sub { animation-delay: calc(13s * var(--k)); } .cn-xmas .cn-sig { animation-delay: calc(14.6s * var(--k)); }
@media (min-aspect-ratio: 6/5) { .cn-xmas .cn-text { top: 30%; left: 5vw; right: auto; width: 46vw; text-align: left; padding: 0; } .cn-xmas .cn-sub { margin-left: 0; } .cn-xmas .cn-big { font-size: clamp(2.2rem, 4.6vw, 3.6rem); } }

@media (max-height: 500px) and (orientation: landscape) { .cn .cn-big { font-size: clamp(1.3rem, 5vh, 1.9rem); } .cn .cn-sub { font-size: .78rem; margin-top: .3rem; } .cn .cn-kick { font-size: .62rem; margin-bottom: .2rem; } .cn-juneteenth .cn-text, .cn-labor .cn-text, .cn-columbus .cn-text, .cn-armed .cn-text, .cn-flagarmy .cn-text { top: 74%; } .cn .cn-sig { bottom: 10vh; } .cn-xmas .cn-text { top: 40%; } }
@media (max-height: 500px) and (orientation: landscape) { .cn .cn-sig, .cn em { display: none; } .cn-armed .cn-kick { display: none; } .cn-armed .cn-text { top: 80%; } }

/* ---- cinema upgrades: bloom, grain, sound toggle, signature glint ---- */
.cn-bloom { mix-blend-mode: screen; filter: blur(8px) saturate(1.2); opacity: .4; pointer-events: none; will-change: opacity, translate; }
.cn-cam canvas { will-change: translate; }
.cn-grain { position: absolute; inset: -20%; z-index: 5; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: cngrain .9s steps(6) infinite; }
@keyframes cngrain { 0% { transform: translate(0, 0); } 17% { transform: translate(-3%, 2%); } 33% { transform: translate(2%, -3%); } 50% { transform: translate(-2%, -1%); } 67% { transform: translate(3%, 3%); } 83% { transform: translate(-1%, 3%); } 100% { transform: translate(0, 0); } }
.cn .os-snd { position: absolute; z-index: 12; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(9vh + 14px); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 40px; padding: .55rem .9rem; border-radius: 999px; border: 1px solid rgba(244,239,230,.28); background: rgba(6,8,16,.5); color: rgba(244,239,230,.82); font: 600 .62rem/1 "Inter", system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; animation: cnrise 1.4s calc(2.6s * var(--k)) ease forwards; }
.cn .os-snd i { width: 14px; height: 10px; background: linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 6px, transparent 6px 8px, currentColor 8px 10px, transparent 10px 12px, currentColor 12px 14px); clip-path: polygon(0 60%, 14% 60%, 14% 30%, 28% 30%, 28% 80%, 42% 80%, 42% 10%, 56% 10%, 56% 70%, 70% 70%, 70% 40%, 84% 40%, 84% 60%, 100% 60%, 100% 100%, 0 100%); opacity: .55; }
.cn .os-snd.on { color: #f6dca4; border-color: rgba(246,220,164,.6); } .cn .os-snd.on i { opacity: 1; animation: cneq .7s ease-in-out infinite alternate; }
@keyframes cneq { to { transform: scaleY(.55); } }
.cn .os-snd:hover, .cn .os-snd:focus-visible { border-color: rgba(246,220,164,.8); outline: none; }
@media (max-width: 700px) { .cn .os-snd { bottom: calc(6vh + 8px); padding: .5rem .75rem; } }
@media (max-height: 500px) and (orientation: landscape) { .cn .os-snd { bottom: 10vh; } }
.cn-sig img { animation: cnglint 4.2s calc(var(--sd, 0s) + 2.2s) ease-in-out infinite; }
@keyframes cnglint { 0%, 70%, 100% { filter: drop-shadow(0 0 0 rgba(255,214,140,0)); } 82% { filter: drop-shadow(0 0 10px rgba(255,214,140,.95)) brightness(1.5); } }
@media (prefers-reduced-motion: reduce) { .cn-grain { animation: none; } .cn-sig img { animation: none; } }

/* cinematic titles: letters turn up one by one, then a light passes along the line */
.cn-big span.cl-on { opacity: 1; filter: none; animation: none; transform: none; }
.cn-big .cw { display: inline-block; white-space: nowrap; font-weight: inherit; }
.cn-big .cl { display: inline-block; font-style: inherit; opacity: 0; transform: translateY(.42em) scale(1.22); filter: blur(9px); animation: cnletter .95s cubic-bezier(.2,.75,.2,1) forwards, cnshine 1.25s ease-out; will-change: transform, opacity; }
@keyframes cnletter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes cnshine { 30% { color: #fffdf2; text-shadow: 0 0 16px rgba(255,238,196,.95), 0 0 44px rgba(255,200,110,.6); } }
.cn-kick { animation-name: cnkick; animation-duration: 2.1s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
@keyframes cnkick { from { opacity: 0; letter-spacing: .85em; filter: blur(5px); } to { opacity: 1; filter: blur(0); } }
@media (max-width: 700px) { .cn-kick { animation-name: cnrise; } }
.cn-sig::before, .cn-sig::after { content: ""; height: 1px; width: clamp(22px, 6vw, 84px); background: linear-gradient(90deg, rgba(232,200,143,0), rgba(232,200,143,.85)); transform: scaleX(0); transform-origin: right; animation: cnrule 1.5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: inherit; }
.cn-sig::after { background: linear-gradient(270deg, rgba(232,200,143,0), rgba(232,200,143,.85)); transform-origin: left; }
@keyframes cnrule { to { transform: scaleX(1); } }
/* the signature ending, the same on every opening */
.cn-final .cn-cam { transition: filter 1.5s ease; filter: brightness(.28) saturate(.75); }
.cn-final .cn-text, .cn-final .cn-cap, .cn-final em, .cn-final .os-skip, .cn-final .os-snd { transition: opacity .7s ease; opacity: 0 !important; animation: cnfade .7s ease forwards !important; }
.cn-final .cn-big .cl { animation: none; opacity: 1; transform: none; filter: none; }
.cn-final .cn-sig { animation: cnsigfin 1.5s cubic-bezier(.3,.7,.2,1) forwards !important; color: #f4efe6; }
.cn-final .cn-sig img { animation: cnsigglint 1.6s .5s ease-out forwards; opacity: 1; }
@keyframes cnsigfin { from { opacity: .8; transform: none; } to { opacity: 1; transform: translateY(calc(-41vh + 53px)) scale(2.05); } }
@keyframes cnsigglint { 0% { filter: drop-shadow(0 0 0 rgba(255,214,140,0)); } 45% { filter: drop-shadow(0 0 16px rgba(255,220,150,1)) brightness(1.7); } 100% { filter: drop-shadow(0 0 6px rgba(255,214,140,.5)) brightness(1.1); } }
@media (max-width: 700px) { @keyframes cnsigfin { from { opacity: .8; transform: none; } to { opacity: 1; transform: translateY(calc(-44vh + 53px)) scale(1.4); } } }
@media (max-height: 500px) and (orientation: landscape) { .cn-final .cn-sig { display: flex !important; } }

/* ===== Hero cinema (herofx.js) ===== */
#heroFx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; z-index: 2; }
.page-home .hero-bg #flagCanvas { will-change: translate; }
.page-home .hero { box-shadow: inset 0 0 160px 30px rgba(3,8,20,.55); }
.page-home .hero-bg::after { background-image: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(2,6,16,.5) 100%), repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 46px); animation: none; }
.hero-shake { animation: heroshake .42s cubic-bezier(.2,.8,.2,1); }
@keyframes heroshake { 0% { transform: translate(0,0); } 15% { transform: translate(-3px,4px); } 35% { transform: translate(3px,-3px); } 55% { transform: translate(-2px,2px); } 75% { transform: translate(1px,-1px); } 100% { transform: translate(0,0); } }
/* fit the headline and both calls to action in the first screen */
@media (min-width: 900px) and (max-height: 900px) {
  .page-home .hero { padding-top: clamp(34px, 5vh, 60px); padding-bottom: clamp(96px, 11vh, 130px); }
  .page-home .hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
  .page-home .hero .hero-actions { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero-shake { animation: none; } }

/* ===== Interior page cinema (page heads, entrances, login stage) ===== */
.page-hero { --phb: clamp(48px, 6vw, 68px); padding: clamp(52px, 7vw, 82px) 0 var(--phb); isolation: isolate; box-shadow: inset 0 -60px 80px -40px rgba(0,0,0,.45), inset 0 0 140px 10px rgba(6,9,3,.5); }
.page-hero::before { background: radial-gradient(46% 130% at 88% 4%, rgba(226,180,84,.34), transparent 70%), radial-gradient(30% 90% at 6% 110%, rgba(193,154,62,.14), transparent 70%), linear-gradient(105deg, transparent 38%, rgba(255,236,190,.16) 48%, rgba(255,246,220,.05) 54%, transparent 62%) no-repeat -120% 0 / 220% 100%; animation: phglow 2.2s cubic-bezier(.2,.7,.2,1) both, phsweep 2.6s .35s cubic-bezier(.3,.6,.2,1) both, phbreathe 9s 2.4s ease-in-out infinite alternate; }
.page-hero::after { width: clamp(180px, 22vw, 300px); height: clamp(120px, 14.6vw, 200px); right: 5%; opacity: .1; filter: drop-shadow(0 0 22px rgba(226,180,84,.55)); animation: phmark 1.8s .15s cubic-bezier(.2,.7,.2,1) both, phdrift 14s 2s ease-in-out infinite alternate; }
.page-hero .wrap { z-index: 1; }
.page-hero h1 { position: relative; padding-bottom: 16px; margin-bottom: 14px; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.5); animation: phrise 1s .1s cubic-bezier(.2,.75,.2,1) both; }
.page-hero h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 92px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #e8c46b, #c19a3e 60%, rgba(193,154,62,0)); transform-origin: left; animation: phrule 1.1s .75s cubic-bezier(.2,.7,.2,1) both; }
.page-hero .eyebrow { animation: phkick 1.2s cubic-bezier(.2,.7,.2,1) both; }
.page-hero p { animation: phrise 1s .38s cubic-bezier(.2,.75,.2,1) both; }
.page-hero .wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--phb) - 1px); height: 32px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg%20%20viewBox=%270%200%20120%2058%27%20xmlns=%27http://www.w3.org/2000/svg%27%20aria-hidden=%27true%27%3E%3Cg%3E%3Cpath%20d=%27M6%2042V28h14v-2h38v2h14l5%204h32q5%200%205%205v5z%27%20fill=%27%2355662f%27/%3E%3Crect%20x=%2722%27%20y=%2716%27%20width=%276%27%20height=%2713%27%20rx=%271%27%20fill=%27%233b4a22%27/%3E%3Cpath%20d=%27M70%2030L65%2011h4l6%2019%27%20fill=%27rgba%28239,230,207,.35%29%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27/%3E%3Cpath%20d=%27M62%2042a11%2011%200%200%201%2022%200zM16%2042a11%2011%200%200%201%2020%200z%27%20fill=%27%233b4a22%27/%3E%3Crect%20x=%27108%27%20y=%2732%27%20width=%275%27%20height=%2710%27%20fill=%27%231c1912%27/%3E%3Ccircle%20cx=%27106%27%20cy=%2733%27%20r=%272.6%27%20fill=%27%23efe6cf%27/%3E%3Crect%20x=%273%27%20y=%2742%27%20width=%27112%27%20height=%273%27%20fill=%27%238a8571%27/%3E%3Cpath%20d=%27M92.0%2032.8%20L93.0%2035.6%20L96.0%2035.7%20L93.6%2037.5%20L94.5%2040.4%20L92.0%2038.7%20L89.5%2040.4%20L90.4%2037.5%20L88.0%2035.7%20L91.0%2035.6Z%27%20fill=%27%23efe6cf%27/%3E%3Cg%20%3E%3Ccircle%20cx=%2726%27%20cy=%2746%27%20r=%2710%27%20fill=%27%231c1912%27/%3E%3Ccircle%20cx=%2726%27%20cy=%2746%27%20r=%277%27%20fill=%27%233a3426%27/%3E%3Cline%20x1=%2726%27%20y1=%2739%27%20x2=%2726%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%280%2026%2046%29%27/%3E%3Cline%20x1=%2726%27%20y1=%2739%27%20x2=%2726%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%2845%2026%2046%29%27/%3E%3Cline%20x1=%2726%27%20y1=%2739%27%20x2=%2726%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%2890%2026%2046%29%27/%3E%3Cline%20x1=%2726%27%20y1=%2739%27%20x2=%2726%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%28135%2026%2046%29%27/%3E%3Ccircle%20cx=%2726%27%20cy=%2746%27%20r=%272.6%27%20fill=%27%23c8b27a%27/%3E%3C/g%3E%3Cg%20%3E%3Ccircle%20cx=%2780%27%20cy=%2746%27%20r=%2710%27%20fill=%27%231c1912%27/%3E%3Ccircle%20cx=%2780%27%20cy=%2746%27%20r=%277%27%20fill=%27%233a3426%27/%3E%3Cline%20x1=%2780%27%20y1=%2739%27%20x2=%2780%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%280%2080%2046%29%27/%3E%3Cline%20x1=%2780%27%20y1=%2739%27%20x2=%2780%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%2845%2080%2046%29%27/%3E%3Cline%20x1=%2780%27%20y1=%2739%27%20x2=%2780%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%2890%2080%2046%29%27/%3E%3Cline%20x1=%2780%27%20y1=%2739%27%20x2=%2780%27%20y2=%2753%27%20stroke=%27%23c8b27a%27%20stroke-width=%271.6%27%20transform=%27rotate%28135%2080%2046%29%27/%3E%3Ccircle%20cx=%2780%27%20cy=%2746%27%20r=%272.6%27%20fill=%27%23c8b27a%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat 0 100% / 66px 32px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); animation: phvan 9s 1s cubic-bezier(.45,.05,.3,1) both; }
@keyframes phglow { from { opacity: 0; transform: translateY(26%) scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes phsweep { from { background-position: 0 0, 0 0, -120% 0; } to { background-position: 0 0, 0 0, 220% 0; } }
@keyframes phbreathe { from { opacity: 1; } to { opacity: .72; } }
@keyframes phmark { from { opacity: 0; transform: translateY(-50%) translateX(70px) scale(1.12); } to { opacity: .1; transform: translateY(-50%); } }
@keyframes phdrift { from { transform: translateY(-50%); } to { transform: translateY(-54%) translateX(-14px) scale(1.04); } }
@keyframes phrise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes phrule { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes phkick { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; } }
@keyframes phvan { 0% { background-position: -8% 100%; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { background-position: 108% 100%; opacity: 0; } }
@media (max-width: 700px) {
  .page-hero::after { top: auto; bottom: 8px; right: -26px; width: 170px; height: 113px; transform: none; opacity: .07; animation: phmarkm 1.8s .15s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes phmarkm { from { opacity: 0; transform: translateX(50px); } to { opacity: .07; transform: none; } }
  .page-hero .wrap::after { background-size: 42px 20px; height: 20px; animation-duration: 6s; }
}
/* cards on public pages answer the pointer */
.area-public .block .card:not(.flat):hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60,45,15,.24); }
.js .reveal.d3 { transition-delay: .36s; }
/* home: tidy the details */
.page-vintage .bignum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
.page-vintage .bignum b { font-size: clamp(2.1rem, 3.2vw, 2.8rem); text-shadow: 0 0 22px rgba(226,180,84,.35); }
@media (min-width: 861px) { .page-vintage .timeline b { left: 40px; } }
@media (max-width: 640px) {
  .letter { padding-top: 62px; }
  .letter .clip { left: 26px; }
  .letter-stamp { top: 16px; right: 16px; font-size: .72rem; padding: 2px 8px; }
  .page-home .hero .order { font-size: .8rem; padding: 11px 13px 12px; }
  .page-home .hero .order-head { font-size: .7rem; padding-bottom: 6px; margin-bottom: 6px; }
  .page-home .hero .order-line { gap: 8px; padding: 1px 0; }
  .page-home .hero .order-line .k { flex-basis: 50px; font-size: .66rem; letter-spacing: .1em; }
}
/* sign-in pages: a lit desk instead of a flat sheet */
.login-stage { position: relative; overflow: hidden; isolation: isolate; min-height: min(78vh, 760px); display: flex; align-items: center; background:
  radial-gradient(60% 70% at 50% 38%, rgba(226,180,84,.2), transparent 70%),
  repeating-radial-gradient(circle at 8% 118%, transparent 0 30px, rgba(193,154,62,.1) 30px 31px),
  repeating-radial-gradient(circle at 94% -16%, transparent 0 36px, rgba(193,154,62,.08) 36px 37px),
  linear-gradient(160deg, #161b0e, #2a3320 55%, #171c0f) !important; box-shadow: inset 0 0 180px 40px rgba(4,6,2,.7); }
.login-stage > .wrap { width: 100%; }
.login-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 130vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none; background: conic-gradient(from 0deg, transparent 0 8%, rgba(232,196,107,.07) 10%, transparent 14% 31%, rgba(232,196,107,.05) 34%, transparent 38% 58%, rgba(232,196,107,.07) 61%, transparent 65% 82%, rgba(232,196,107,.05) 85%, transparent 89%); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 68%); mask-image: radial-gradient(circle, #000 0, transparent 68%); animation: lgspin 90s linear infinite; }
.login-stage::after { content: ""; position: absolute; right: 4%; bottom: 6%; width: clamp(160px, 24vw, 340px); aspect-ratio: 3 / 2; z-index: -1; pointer-events: none; background: url('/assets/img/logo-white.png') center/contain no-repeat; opacity: .05; }
.login-stage .login-box { margin: 8px auto; box-shadow: 0 34px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(232,196,107,.35), 0 0 90px rgba(226,180,84,.14); animation: lgrise 1s cubic-bezier(.2,.75,.2,1) both; }
.login-stage .login-box:hover { transform: none; }
.login-stage .login-box::before { display: none; }
.login-stage .login-logo { animation: lgrise .9s .25s cubic-bezier(.2,.75,.2,1) both; }
.login-stage .stamp-note { animation: lgstamp .5s .95s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes lgspin { to { rotate: 360deg; } }
@keyframes lgrise { from { opacity: 0; transform: translateY(34px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lgstamp { from { opacity: 0; transform: rotate(-11deg) scale(2.3); } to { opacity: .9; transform: rotate(-3deg); } }
@media (max-width: 640px) { .login-stage { min-height: 0; padding: 34px 0 44px; } }

/* Timeline: year labels sit under the rail so the jeep never covers them */
@media (min-width: 861px) {
  .page-vintage .timeline li { padding-top: 64px; }
  .page-vintage .timeline b { top: 34px; left: 0; padding-right: 0; background: transparent; }
  .page-vintage .timeline li::before { top: 10px; }
}
/* phones: keep the kicker line clear of the Skip button */
@media (max-width: 700px) { .cn-xmas .cn-text { top: 27%; } .cn-memorial .cn-text { top: 29%; } }

.cn.ph .cn-text::before { display: none; }

/* Portal Nov 13: Get help tiles, Who to call link */
.help-q { margin: 0 0 10px; font-weight: 700; font-size: .95rem; }
.help-opts { display: grid; gap: 8px; }
.help-opts a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; min-height: 44px; border: 1px solid var(--rule, #b9a875); border-left: 4px solid var(--gold, #c8962e); border-radius: 8px; background: rgba(255,255,255,.45); color: var(--ink); text-decoration: none; min-width: 0; }
.help-opts a:hover, .help-opts a:focus-visible { background: #fff; border-left-color: var(--navy, #14233b); }
.help-opts strong { font-size: .98rem; } .help-opts span { font-size: .84rem; opacity: .75; overflow-wrap: anywhere; }
.wc-linkonly { display: flex; }

/* My account: three even cards that fit the page at every width */
.acct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.acct-grid .card { min-width: 0; margin: 0; display: flex; flex-direction: column; }
.acct-grid .card .form { flex: 1; }
.acct-bday .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-bday select { width: 100%; min-width: 0; }
@media (max-width: 1000px) { .acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .acct-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } .acct-dl { grid-template-columns: 1fr; gap: 0; } .acct-dl dd { margin-bottom: 8px; } }

.sb-edit { margin: 6px 0 0; text-align: center; font-size: .85rem; }

/* Profile photos */
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold, #c8962e); background: #fff; }
.avatar-ini { display: inline-flex; align-items: center; justify-content: center; background: var(--navy, #14233b); color: #f3ead2; font: 700 1.05rem/1 var(--serif, Georgia, serif); letter-spacing: .04em; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.5rem; }
.dir-head { display: flex; align-items: center; gap: 12px; min-width: 0; } .dir-head h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.photo-now { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }
.acct-photo input[type=file] { width: 100%; max-width: 100%; }
.photo-queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.photo-queue .card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }

/* Phones: bigger tap targets for small links */
@media (max-width: 760px) {
  .panel-head a, .sb-edit a, .help-card .meta a, .banner-more, .alert-details, .alertbar a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
  .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .portal-wrap .list a, .more-updates summary { min-height: 44px; }
}

/* ===== Final polish v3 ===== */
:root { --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --fs-label: .78rem; --focus: #7a5410; --focus-on-dark: #f0cf7a; }

/* Focus rings that read on cream and on dark */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .dark-block :focus-visible, .letter-desk :focus-visible, .netmap :focus-visible,
.statband :focus-visible, .cta-band :focus-visible, .hero :focus-visible, .open-seq :focus-visible, .safety-board :focus-visible, .fleet-band :focus-visible { outline-color: var(--focus-on-dark); }

/* Small labels: darker and a touch larger on light surfaces */
.panel .eyebrow, .card .eyebrow, .help-queues .eyebrow, .hp-row .eyebrow { color: #7a5410; font-size: var(--fs-label); }
.dark-block .card .eyebrow { color: #ffd36a; }

/* Slimmer signed in strip */
.userbar { padding: 3px 0; font-size: .82rem; }

/* Empty panels shrink to one line */
.panel-slim .panel-head { border-bottom: 0; padding: 12px 22px; gap: 12px; }
.panel-head .meta { margin-left: auto; }
.help-queues-dd > summary { display: none; }

/* Credential icons */
.cred-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 10px; background: rgba(193,154,62,.18); color: #6b4e0e; }
.cred-ic svg { width: 22px; height: 22px; }

/* Fleet photo band */
.fleet-band { background: linear-gradient(180deg, #1b2112, #161b0e); padding: 0; border-block: 4px double var(--brass, #c19a3e); }
.fleet-band figure { margin: 0; position: relative; }
.fleet-band img { display: block; width: 100%; height: clamp(220px, 32vw, 460px); object-fit: cover; object-position: 50% 62%; }
.fleet-band figcaption { position: absolute; inset: auto 0 0 0; padding: 40px max(20px, calc((100vw - 1120px) / 2)) 22px; background: linear-gradient(180deg, transparent, rgba(14,17,8,.88)); color: #f3ead2; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.fleet-band figcaption .eyebrow { margin: 0; color: #f0cf7a; }

/* People gallery (About) and photo card (Careers) */
.people-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; }
.people-grid figure, .photo-card { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow); background: #1b2112; }
.people-grid img, .photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.people-grid figure { aspect-ratio: 4 / 3; }
.people-grid .pg-tall { grid-row: span 2; aspect-ratio: auto; }
.people-grid .pg-port { aspect-ratio: 4 / 3; }
.people-grid .pg-port img { object-position: 50% 28%; }
.people-grid figcaption, .photo-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: .86rem; color: #f3ead2; background: linear-gradient(180deg, transparent, rgba(14,17,8,.82)); }
.photo-card { margin-bottom: 22px; aspect-ratio: 2 / 1; }
.photo-card img { object-position: 60% 40%; }
@media (max-width: 760px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .people-grid .pg-tall { grid-row: auto; aspect-ratio: 4 / 3; } .people-grid .pg-tall img { object-position: 50% 20%; } }

/* Admin overview: Needs attention, even card heights, equal columns */
.attn { background: #f6eed8; border: 1px solid var(--line); border-left: 5px solid var(--brass, #c19a3e); border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 22px; }
.attn-h { font-size: 1.05rem; margin: 0 0 8px; }
.attn-ok { margin: 0; color: var(--muted); }
.attn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.attn-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 14px 8px 10px; min-height: 44px; }
.attn-list a:hover { border-color: var(--brass, #c19a3e); }
.attn-list b { min-width: 30px; text-align: center; background: #a8322a; color: #fff; border-radius: 99px; padding: 2px 8px; font-family: var(--serif); }
.attn-list span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; color: var(--ink); }
.attn-list small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.area-admin .grid-3 { align-items: stretch; }
@media (min-width: 1100px) { .area-admin .grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.area-admin .grid-3 > .card.flat { display: flex; flex-direction: column; align-items: flex-start; }
.area-admin .grid-3 > .card.flat > p { flex: 1 1 auto; }
.area-admin .grid-3 > .card.flat:has(.badge-important) { border-color: #a8322a; }

/* Phone dashboard order: updates, Get help, Orders of the Day, safety board, the rest */
@media (max-width: 860px) {
  .portal-wrap.is-dash { display: flex; flex-direction: column; gap: 20px; }
  .portal-wrap.is-dash > * { order: 0; margin-top: 0; margin-bottom: 0; }
  .portal-wrap.is-dash > .dash-grid { display: contents; }
  .portal-wrap.is-dash .dash-col > * { order: 20; }
  .portal-wrap.is-dash .dash-col > .dash-updates { order: 1; }
  .portal-wrap.is-dash .dash-col > .help-card { order: 2; }
  .portal-wrap.is-dash > .mission-row { order: 3; }
  .portal-wrap.is-dash .dash-col > .safety-board { order: 4; }
  .help-queues-dd > summary { display: flex; align-items: center; min-height: 44px; font-weight: 700; cursor: pointer; }
}

/* Touch targets on phones */
@media (max-width: 760px) { .help-queues .btn, .dir-tabs a, .help-opts a { min-height: 44px; } }

/* Map labels stay readable on phones */
@media (max-width: 700px) { .usmap .lbl { font-size: 19px; } .usmap .tag1984 text { font-size: 16px; } .usmap .tag1984 rect { width: 196px; height: 28px; y: -20px; } }

/* Dog tags a little smaller on phones */
@media (max-width: 560px) { .page-vintage .statband { padding: 54px 0 40px; } .page-vintage .statband .tag span { font-size: .7rem; } }

.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 38px; min-width: 60px; border: 0; background: transparent; color: var(--navy-2); font: 700 .86rem var(--sans); cursor: pointer; border-radius: 6px; }
.pw-toggle:hover { background: rgba(0,0,0,.06); }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 96px; } }
.page-vintage .eyebrow { color: #7a5410; }

/* Openings: keep the small lines readable over bright scenes (Christmas is left exactly as approved) */
.cn:not(.cn-xmas) .cn-kick, .cn:not(.cn-xmas) .cn-sub { text-shadow: 0 1px 10px rgba(0,0,0,.8), 0 0 3px rgba(0,0,0,.6); }
.cn:not(.cn-xmas) .cn-big { text-shadow: 0 2px 26px rgba(0,0,0,.5); }
.cn-pearl .cn-kick, .cn-labor .cn-sub, .cn-columbus .cn-kick { color: #ffe9b8; }

/* ===== Final sweep (update 70) ===== */
/* Recruiter tab: one clear action, a red beacon when a route alert is live */
.recruiter-tab { padding: 18px 11px; gap: 8px; }
.recruiter-tab b { letter-spacing: .14em; }
.recruiter-tab.has-alert { padding-top: 32px; }
.recruiter-tab .rt-alert { position: absolute; top: 12px; left: 50%; margin-left: -5px; writing-mode: horizontal-tb; width: 10px; height: 10px; padding: 0; border-radius: 50%; font-size: 0; box-shadow: 0 0 0 0 rgba(155,28,28,.6); animation: rtPing 1.8s ease-out infinite; }
@keyframes rtPing { 0% { box-shadow: 0 0 0 0 rgba(200,40,40,.65); } 100% { box-shadow: 0 0 0 12px rgba(200,40,40,0); } }
@media (prefers-reduced-motion: reduce) { .recruiter-tab .rt-alert { animation: none; } }
/* Doors: the arrow leads, the whole card is the target */
.page-home .door .door-go { letter-spacing: .02em; }
.page-home .door:focus-visible { outline: 3px solid var(--focus-on-dark, #f6d58a); outline-offset: 3px; }
/* Phones: the first screen belongs to the headline, so alert strips collapse to one line */
@media (max-width: 700px) {
  .route-alert .ra-inner { flex-wrap: nowrap; align-items: center; gap: 10px; padding-block: 8px; }
  .route-alert .ra-flag { flex: none; font-size: .68rem; padding: 3px 7px; }
  .route-alert .ra-list { min-width: 0; flex: 1; }
  .route-alert .ra-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
  .route-alert .ra-list li em, .route-alert .ra-list li .ra-kind { display: none; }
  .route-alert .ra-more { flex: none; }
  .th-bar { padding-block: 6px; } .th-bar .th-txt strong { font-size: .84rem; line-height: 1.25; }
}

/* ===== Elite sweep (update 71): motion and interaction. No copy or layout changes. ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Page to page: the header holds still while the page beneath it changes */
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vtOut .2s ease both; }
  ::view-transition-new(root) { animation: vtIn .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }

  /* Section headings: the label, the headline and the lead arrive in order */
  .js .section-head.reveal { opacity: 1; transform: none; }
  .js .section-head.reveal > * { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), clip-path 1s cubic-bezier(.2,.7,.2,1); }
  .js .section-head.reveal > h2 { clip-path: inset(0 0 100% 0); transform: translateY(.55em); transition-delay: .1s; }
  .js .section-head.reveal > p { transition-delay: .24s; }
  .js .section-head.reveal.in > * { opacity: 1; transform: none; }
  .js .section-head.reveal.in > h2 { clip-path: inset(-.25em -.1em -.35em -.1em); }
  .section-head .eyebrow::after { content: ""; display: inline-block; width: 44px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: .7; transform-origin: 0 50%; transition: transform 1s .35s cubic-bezier(.2,.7,.2,1); }
  .js .section-head.reveal:not(.in) .eyebrow::after { transform: scaleX(0); }

  /* Timeline: each stop lights as the van reaches it */
  .page-vintage .timeline li::before { transition: background-color .4s, transform .55s cubic-bezier(.3,1.7,.5,1), box-shadow .7s; }
  .page-vintage .timeline li.lit::before { background: var(--brass); transform: scale(1.18); box-shadow: 0 0 0 6px rgba(193,154,62,.22); }

  /* Dog tags sway with the speed of the scroll, then settle */
  .page-vintage .statband .tag { rotate: calc(var(--sway, 0deg) * var(--swm, 1)); }
  .page-vintage .statband .tag:nth-child(2) { --swm: .7; } .page-vintage .statband .tag:nth-child(3) { --swm: 1.2; } .page-vintage .statband .tag:nth-child(4) { --swm: .85; }

  /* Primary buttons lean toward the pointer */
  .btn.mag { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, translate .35s cubic-bezier(.2,.8,.2,1); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 961px) {
  /* Menu links: a rule slides in under the pointer and leaves the other way */
  .area-public .site-nav > a:not(.btn):not(.active) { position: relative; }
  .area-public .site-nav > a:not(.btn):not(.active)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; background: var(--brass, #c19a3e); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .area-public .site-nav > a:not(.btn):not(.active):hover::after, .area-public .site-nav > a:not(.btn):not(.active):focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  /* Cards turn to face the pointer and catch the light */
  .tiltable { position: relative; }
  .tiltable > .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.2), transparent 62%); }
  .dark-block .tiltable > .glare { background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgba(226,180,84,.16), transparent 62%); }
  .page-vintage .tiltable.tilting, .page-vintage .tiltable.tilting:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s linear, box-shadow .3s, border-color .3s; transition-delay: 0s; }
  .tiltable.tilting > .glare { opacity: 1; }
}
/* The hero steps back as the page scrolls past it */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 861px) {
    .page-home .hero .vh-grid { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
    @keyframes heroOut { to { opacity: .2; transform: translateY(-46px) scale(.975); } }
  }
}
/* Flag Day opening: the words sit on bright stripes, so they get a deeper shade and clear the signature line */
.cn-flagarmy .cn-text { top: 42%; }
.cn.ph.cn-flagarmy .cn-text::before { display: block; background: radial-gradient(ellipse at center, rgba(4,8,22,.66) 0%, rgba(4,8,22,.42) 42%, rgba(4,8,22,0) 74%); }
/* Labor Day and the October holiday weekend now open on photographs: titles sit in the open sky */
.cn.ph.cn-columbus .cn-text { top: 30%; } @media (max-width: 700px) { .cn.ph.cn-columbus .cn-text { top: 27%; } }

/* columbus: subtitle stays readable against the bright sky */
.cn.ph.cn-columbus .cn-sub { color: #fff3d6; text-shadow: 0 1px 3px rgba(20,12,10,.9), 0 0 16px rgba(20,12,10,.8), 0 0 36px rgba(20,12,10,.55); font-weight: 600; }

/* account page: your details are easy to read, including long email addresses */
.acct-dl { gap: 10px 20px; }
.acct-dl dt { font-size: .82rem; line-height: 1.9; opacity: .75; }
.acct-dl dd { font-size: 1.12rem; line-height: 1.5; font-weight: 600; color: var(--ink, inherit); }
@media (max-width: 640px) { .acct-dl dd { font-size: 1.15rem; margin-bottom: 12px; } }
/* label above value at every width, so a long email address gets the whole card and breaks only at the @ */
.acct-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
.acct-dl dd { margin-bottom: 12px; overflow-wrap: break-word; word-break: normal; }
.acct-dl dd.acct-mail { font-size: 1.02rem; }

/* account: your service */
.acct-service .vet-status { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; min-width: 0; }
.acct-service .vet-status legend { font: 700 .82rem "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .75; padding: 0; margin-bottom: 8px; }
.acct-service .vet-state { font-weight: 600; color: #8a5a00; } .acct-service .vet-state.ok { color: #1f6b3a; }
.vet .vb + div { font-weight: 600; } .vet p { opacity: .85; }

/* From the owner: a field desk. Olive drab canvas, brass stitching, gold oak leaf insignia (a major's rank) either side,
   and the letter set in a red, cream and blue air mail border like the V-mail letters that came home. */
.letter-desk { position: relative; overflow: hidden; isolation: isolate; border-block: 0; --leaf: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20100%20100%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22g%22%20x1=%220%22%20y1=%220%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%23f0d58a%22/%3E%3Cstop%20offset=%22.55%22%20stop-color=%22%23c9a24a%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%238f6a1f%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url(%23g)%22%20stroke=%22%236f5217%22%20stroke-width=%221.6%22%20stroke-linejoin=%22round%22%20d=%22M50%205%20C56%2013%2058%2018%2056%2024%20C64%2020%2072%2022%2077%2030%20C71%2032%2069%2036%2071%2042%20C79%2040%2087%2046%2087%2054%20C81%2056%2077%2058%2077%2064%20C83%2064%2087%2070%2083%2078%20C75%2078%2069%2076%2065%2080%20C65%2086%2061%2090%2054%2092%20L54%2098%20L46%2098%20L46%2092%20C39%2090%2035%2086%2035%2080%20C31%2076%2025%2078%2017%2078%20C13%2070%2017%2064%2023%2064%20C23%2058%2019%2056%2013%2054%20C13%2046%2021%2040%2029%2042%20C31%2036%2029%2032%2023%2030%20C28%2022%2036%2020%2044%2024%20C42%2018%2044%2013%2050%205%20Z%22/%3E%3Cpath%20d=%22M50%2014%20V92%22%20stroke=%22%236f5217%22%20stroke-width=%221.4%22%20stroke-opacity=%22.7%22%20fill=%22none%22/%3E%3C/svg%3E");
  background:
    radial-gradient(65% 90% at 50% 45%, rgba(214,196,120,.20), transparent 70%),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(10,12,4,.55) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.10) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.09) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #55603a, #454e2d 55%, #3a4226); }
.letter-desk::before, .letter-desk::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; z-index: 0;
  background: repeating-linear-gradient(135deg, #a8322a 0 16px, #f3ead2 16px 32px, #3f5f8c 32px 48px); box-shadow: 0 0 0 2px rgba(0,0,0,.18) inset; }
.letter-desk::before { top: 0; } .letter-desk::after { bottom: 0; }
.letter-desk .wrap { position: relative; z-index: 1; }
.leaf-side { position: absolute; top: 50%; width: clamp(90px, 13vw, 190px); aspect-ratio: 1; background: var(--leaf) center / contain no-repeat; z-index: 0; opacity: .9;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.leaf-l { left: clamp(10px, 6vw, 110px); transform: translateY(-50%) rotate(-14deg); }
.leaf-r { right: clamp(10px, 6vw, 110px); transform: translateY(-50%) rotate(14deg) scaleX(-1); }
.leaf-side::after { content: ""; position: absolute; inset: -14%; border: 2px dotted rgba(240,213,138,.55); border-radius: 50%; }
@media (max-width: 1080px) { .leaf-side { display: none; } }
.letter-desk .letter { border: 12px solid transparent; border-image: repeating-linear-gradient(135deg, #a8322a 0 14px, #f6eed8 14px 28px, #3f5f8c 28px 42px) 12;
  background-clip: padding-box; background-color: #f4e8c8; }
.letter-desk .letter::before { inset: 6px; }
.letter .sig-name span::before { content: ""; display: inline-block; width: 1.25em; height: 1.25em; margin-right: .45em; vertical-align: -.3em; background: var(--leaf) center / contain no-repeat; }
.letter-desk .letter { box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 70px rgba(120,85,30,.22), 0 0 0 1px rgba(0,0,0,.25); }

/* license and DOT dates */
.cred-row { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 8px; } .cred-row:first-of-type { border-top: 0; }
.cred-name { font: 700 .8rem "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.cred-state { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 1.1rem; } .cred-state span { font-size: .95rem; font-weight: 600; }
.cred-state.ok span { color: #1f6b3a; } .cred-state.soon span { color: #8a6a00; } .cred-state.warn span { color: #a3560a; } .cred-state.bad span { color: #a4332b; } .cred-state.wait span { color: #2a4a8a; }
.cred-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .cred-form input[type=date] { width: auto; min-width: 11rem; }
.cred-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 8px; border-left: 6px solid; font-size: 1rem; background: #fbf4dc; border-color: #c8962e; color: #3b2f0d; }
.cred-banner.warn { background: #fde9cf; border-color: #d9731a; } .cred-banner.bad { background: #fbdcd8; border-color: #a4332b; color: #4a1511; } .cred-banner a { font-weight: 700; }
.cred-admin-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid #0001; padding: 10px 0; } .cred-admin-row .who { flex: 1 1 280px; min-width: 0; }
.cred-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #e6efe6; color: #1f6b3a; }
.cred-chip.soon { background: #f6edc9; color: #7a5d00; } .cred-chip.warn { background: #fbdcb8; color: #8a4a05; } .cred-chip.bad { background: #f4c9c4; color: #8c1d1d; } .cred-chip.wait { background: #d9e4f6; color: #1f3d7a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cred-admin-row input[type=date], .cred-admin-row select { width: auto; min-width: 11rem; max-width: 100%; }
.nondriving { margin: 0 0 16px; padding: 16px 18px; border-radius: 8px; background: #b3201a; color: #fff; border: 3px solid #7d0f0b; box-shadow: 0 0 0 3px rgba(179,32,26,.25); }
.nondriving .nd-tag { font: 900 1.35rem/1.2 Impact, "Arial Black", sans-serif; letter-spacing: .08em; margin-bottom: 6px; }
.nondriving p { margin: 4px 0 0; font-size: 1rem; line-height: 1.45; color: #fff; } .nondriving a { color: #fff; font-weight: 700; text-decoration: underline; }
.nd-chip { background: #b3201a !important; color: #fff !important; margin-left: 6px; letter-spacing: .04em; }
@media (prefers-reduced-motion: no-preference) { .nondriving .nd-tag { animation: ndpulse 2.4s ease-in-out infinite; } @keyframes ndpulse { 50% { opacity: .78; } } }

/* employee edit screen */
.emp-back { margin: 0 0 8px; } .emp-head { margin: 0 0 18px; } .emp-head h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 3vw, 2rem); }
.emp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; } .emp-col { display: grid; gap: 18px; min-width: 0; }
.emp-grid .field input, .emp-grid .field select { width: 100%; max-width: 100%; }
.emp-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; } .emp-btns form { margin: 0; }
@media (max-width: 860px) { .emp-grid { grid-template-columns: minmax(0, 1fr); } }

.ra-dismiss { margin-left: auto; font: 700 .8rem var(--sans); padding: 6px 14px; border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; min-height: 34px; }
.ra-dismiss:hover, .ra-dismiss:focus-visible { background: rgba(255,255,255,.18); } .route-alert.ra-delay .ra-dismiss:hover { background: rgba(0,0,0,.1); }
.route-alert[hidden] { display: none; }

/* Careers: one clear hiring band that sends people to ZipRecruiter. */
.hire-band { background: radial-gradient(60% 120% at 80% 50%, rgba(236,190,110,.28), transparent 70%), linear-gradient(180deg, #3b2a1d, #22170f); color: #f3ead2; border-block: 4px double var(--brass, #c19a3e); padding: clamp(36px, 5vw, 60px) 0; }
.hire-inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hire-copy { flex: 1 1 420px; min-width: 0; } .hire-copy h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.6rem, 3.4vw, 2.3rem); } .hire-copy p { margin: 0 0 14px; max-width: 58ch; color: #e8dcc0; }
.hire-facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hire-facts li { border: 1px solid rgba(227,194,122,.5); color: #f3d98f; border-radius: 999px; padding: 4px 14px; font-size: .88rem; }
.hire-cta { display: grid; gap: 8px; justify-items: start; flex: 0 1 auto; } .hire-cta .meta { color: #cdbf9d; margin: 0; }
.hire-cta .btn-lg { font-size: 1.1rem; padding: 16px 30px; }

/* Long lists: search row, paging and collapsed extras. */
.list-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.list-tools input[type=search] { flex: 1 1 240px; min-width: 0; } .list-tools select { flex: 0 1 190px; min-width: 0; }
.list-tools input, .list-tools select { padding: 8px 10px; border: 1px solid rgba(60,45,15,.35); border-radius: 6px; font: inherit; background: #fffdf6; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; } .pager-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.list-foot { margin-top: 12px; } .pager-info { margin: 0; }
.nd-more summary { cursor: pointer; font-weight: 700; margin-top: 8px; text-decoration: underline; } .nd-more p { margin: 4px 0; }
.add-emp > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; } .add-emp > summary::-webkit-details-marker { display: none; }
.add-emp > summary h3 { margin: 0; } .add-emp > summary::after { content: "Open"; font: 700 .8rem var(--sans); border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px; } .add-emp[open] > summary::after { content: "Close"; } .add-emp[open] > summary { margin-bottom: 14px; }
.panel .list-tools { padding: 12px 14px 0; } .panel .list-foot { padding: 0 14px 14px; }

/* Designer pass: spacing, alignment and touch sizes. */
.honors-panel .panel-body, .help-card .panel-body { padding: 16px 20px 20px; }
.honors-panel .hp-row .eyebrow { margin-bottom: 2px; }
.area-admin .card.flat > .btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.letter-desk::after { display: none; }
@media (max-width: 700px) {
  .site-footer a:not(.btn) { display: inline-block; padding: 9px 0; }
  .ra-more, .ra-dismiss { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 8px; }
  .replay-link { display: inline-block; padding: 12px 6px; }
  .hp-card-link, .panel-head a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 6px; }
}
/* Phone dog tags: keep the stamped text clear of the chain hole and the notch. */
@media (max-width: 1000px) {
  .page-vintage .statband .tag { padding: 22px 12px 32px 42px; min-height: 142px; }
  .page-vintage .statband .tag .hole { top: 14px; left: 13px; width: 14px; height: 14px; }
  .page-vintage .statband .tag .hole::before { height: 80px; }
  .page-vintage .statband .tag::before { top: 52px; width: 11px; height: 18px; }
  .page-vintage .statband .tag::after { left: 42px; right: 8px; letter-spacing: .12em; font-size: .56rem; }
  .page-vintage .statband .tag b { font-size: clamp(1.5rem, 7vw, 2rem); }
}
input[type=file] { max-width: 100%; font: inherit; font-size: .9rem; }
input[type=file]::file-selector-button { font: 700 .85rem var(--sans); padding: 8px 14px; margin-right: 10px; border: 1px solid var(--navy); border-radius: 6px; background: #fff; color: var(--navy); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--navy); color: #fff; }
@media (max-width: 700px) { .area-admin .tbl a, .area-admin .hint a, .area-admin .meta a { display: inline-block; padding: 9px 4px; } }
