/* Clearwater Fire Department — dark, ember-lit */
:root {
  --bg: #09090b;
  --bg-2: #0e0e11;
  --surface: #131317;
  --surface-2: #1a1a1f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --red: #ef2b2d;
  --red-2: #ff5a4e;
  --red-deep: #9f1218;
  --gold: #f5b301;
  --green: #4ade80;
  --amber: #fbbf24;
  --sans: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 16px;
  --r-sm: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: .98; font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; font-weight: 800; }
h3, .h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.red { color: var(--red); background: linear-gradient(90deg, var(--red), var(--red-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub { display: block; font-size: 12.5px; color: var(--dim); font-weight: 500; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stack { display: grid; gap: 16px; }
.empty { color: var(--dim); padding: 12px 0; }
.eyebrow { font: 700 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); margin: 0 0 12px; }
.lede { font-size: clamp(16.5px, 1.5vw, 19px); color: #c4c4cc; max-width: 62ch; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(9, 9, 11, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand img { width: auto; height: 40px; filter: drop-shadow(0 4px 14px rgba(239, 43, 45, .35)); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.brand small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(239, 43, 45, .14); box-shadow: inset 0 0 0 1px rgba(239, 43, 45, .35); }
.top-right { display: flex; align-items: center; gap: 8px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.acct, .menu { position: relative; }
.acct summary { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 13px; font-family: var(--mono); }
.acct summary img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); z-index: 50; display: flex; flex-direction: column; }
.pop-name { margin: 6px 10px 0; font-weight: 700; }
.pop-sub { margin: 0 10px 8px; color: var(--muted); font-size: 13px; }
.pop a, .pop button { display: block; text-align: left; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--text); font: 600 14px var(--sans); background: none; border: 0; cursor: pointer; }
.pop a:hover, .pop button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.pop a[aria-current="page"] { color: var(--red-2); }
.menu { display: none; }
.menu summary { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-content: center; gap: 5px; }
.menu summary span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 700 14.5px/1 var(--sans); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #f43f3f, #d4161b); color: #fff; box-shadow: 0 10px 30px -8px rgba(239, 43, 45, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 38px -8px rgba(239, 43, 45, .85), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.btn-white { background: #fff; color: #111; }
.btn-white:hover { color: #111; transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }
.link:hover { color: var(--red-2); }

/* Hero */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 78% 35%, rgba(239, 43, 45, .28), transparent 70%),
  radial-gradient(40% 50% at 10% 0%, rgba(239, 43, 45, .12), transparent 70%),
  linear-gradient(180deg, rgba(9, 9, 11, .35), var(--bg) 92%),
  url("/img/hero-bg.webp") center 30% / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero { padding: clamp(48px, 8vw, 104px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: #d4d4d8; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239, 43, 45, .6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 43, 45, .55); } 70% { box-shadow: 0 0 0 10px rgba(239, 43, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 43, 45, 0); } }
.hero-media { margin: 0; position: relative; border-radius: 22px; padding: 1px; background: linear-gradient(140deg, rgba(255, 255, 255, .22), rgba(239, 43, 45, .45) 45%, rgba(255, 255, 255, .04)); box-shadow: 0 40px 100px -30px rgba(239, 43, 45, .45), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.hero-media > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 50%; border-radius: 21px; }
.hero-media figcaption { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px; background: rgba(9, 9, 11, .66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); }
.hero-media figcaption img { height: 34px; width: auto; }
.hero-media figcaption span { display: flex; flex-direction: column; line-height: 1.2; }
.hero-media figcaption b { font-size: 14px; }
.hero-media figcaption small { font-size: 11.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.stat { position: relative; padding: 20px 22px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(239, 43, 45, .7), transparent); }
.stat-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--red-2); background: rgba(239, 43, 45, .12); border: 1px solid rgba(239, 43, 45, .25); }
.stat b { font: 800 clamp(28px, 3.4vw, 38px)/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; color: var(--dim); font-weight: 700; }
.stat > span:last-child { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.stats-note { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12.5px; margin: 12px 2px 0; }
.stats-note .dot { width: 6px; height: 6px; background: var(--green); animation: none; }

.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero.slim { padding: clamp(40px, 6vw, 64px) 0 clamp(28px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 14px; }
.page-hero .hero-bg { background:
  radial-gradient(50% 90% at 85% 0%, rgba(239, 43, 45, .22), transparent 70%),
  linear-gradient(180deg, rgba(9, 9, 11, .55), var(--bg) 95%),
  url("/img/hero-bg.webp") center 35% / cover no-repeat; }

/* Sections & cards */
.section { padding-top: clamp(56px, 7vw, 88px); }
main > :last-child { padding-bottom: clamp(64px, 8vw, 104px); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.head-row p.muted { margin: 10px 0 0; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
.more:hover { color: var(--text); }
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tight { gap: 12px; }
ol.grid-2, ol.grid-4 { list-style: none; padding: 0; margin: 0; }
.tag { display: inline-flex; align-items: center; font: 700 11px/1 var(--mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: #d4d4d8; border: 1px solid var(--line); }
.tag-red { background: rgba(239, 43, 45, .15); border-color: rgba(239, 43, 45, .4); color: #fecaca; }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--sans); padding: 6px 10px; border-radius: 999px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-on { color: var(--green); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .25); }
.pill-off { color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }

/* Posts */
.post { display: flex; flex-direction: column; gap: 10px; }
.post-pinned { border-color: rgba(239, 43, 45, .35); box-shadow: 0 0 0 1px rgba(239, 43, 45, .12), 0 20px 50px -30px rgba(239, 43, 45, .6); }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; font-weight: 600; }
.post-body { color: #c4c4cc; }
.post-body p:last-child { margin: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.post-foot span { margin-right: auto; }

/* Divisions */
.patch { object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .55)); }
.div-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 28px 20px 22px; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.div-card::before { content: ""; position: absolute; width: 200px; height: 200px; top: -40px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(239, 43, 45, .2), transparent 65%); opacity: .7; transition: opacity .2s; }
.div-card > * { position: relative; }
.div-card:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(239, 43, 45, .4); box-shadow: 0 24px 50px -24px rgba(239, 43, 45, .55); }
.div-card:hover::before { opacity: 1; }
.div-card .patch { transition: transform .3s; }
.div-card:hover .patch { transform: scale(1.06) rotate(-2deg); }
.div-card h3 { font-size: 16.5px; }
.div-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.division { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px; scroll-margin-top: 90px; }
.division-art { display: grid; place-items: center; border-radius: 14px; background: radial-gradient(circle at 50% 40%, rgba(239, 43, 45, .2), transparent 70%), rgba(255, 255, 255, .02); border: 1px solid var(--line); aspect-ratio: 1; }
.division h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 12px 0 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 18px 0; }
.facts dt { font: 700 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 6px 0 0; font-weight: 700; }
.stackd { flex-direction: column; gap: 14px; }
.names { margin-bottom: 16px; }
.names summary { font-weight: 700; color: var(--muted); padding: 6px 0; }
.names summary:hover { color: var(--text); }
.people { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.people.cols { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.people li { font-size: 14.5px; padding: 3px 0; }
.cs { font: 700 12.5px var(--mono); color: var(--red-2); margin-right: 8px; }

/* Platoons */
.platoon { position: relative; overflow: hidden; }
.platoon::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(239, 43, 45, .18), transparent 70%); }
.platoon-med::after { background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 70%); }
.platoon-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.platoon-top p { margin: 2px 0 0; font-size: 13px; }
.platoon > p { color: #c4c4cc; }
.platoon-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--red-2); background: rgba(239, 43, 45, .12); border: 1px solid rgba(239, 43, 45, .28); flex-shrink: 0; }
.platoon-med .platoon-ic, .org-med .platoon-ic { color: #93c5fd; background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .3); }
.platoon-ic.sm { width: 30px; height: 30px; border-radius: 8px; }
.platoon-ic.sm svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span { font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: #d4d4d8; }

/* CTA */
.cta { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 24px; position: relative; overflow: hidden; background: radial-gradient(80% 140% at 0% 0%, #f43f3f, #b4141a 55%, #6b0a0e); box-shadow: 0 40px 80px -40px rgba(239, 43, 45, .8); }
.cta::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta img { width: 84px; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
.cta h2 { color: #fff; }
.cta p { margin: 8px 0 0; color: #ffe1de; max-width: 60ch; }

/* About */
.value { display: flex; flex-direction: column; gap: 8px; }
.value-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--red-2); background: rgba(239, 43, 45, .12); border: 1px solid rgba(239, 43, 45, .28); margin-bottom: 6px; }
.value p { margin: 0; }
.chief { padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.chief::before { content: "\201C"; position: absolute; right: 24px; top: -30px; font: 800 220px/1 Georgia, serif; color: rgba(239, 43, 45, .1); }
.chief h2 { margin-bottom: 18px; }
.chief-body { font-size: 18px; color: #d4d4d8; max-width: 70ch; }
.chief-sign { font-weight: 700; color: var(--muted); }
.editor { margin-top: 18px; }
.editor > summary { font-weight: 700; color: var(--red-2); padding: 4px 0; }
.editor[open] > summary { margin-bottom: 14px; }
.org-col { display: flex; flex-direction: column; gap: 10px; }
.org-title { display: flex; align-items: center; gap: 10px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.org-node { position: relative; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); }
.org-med .org-node { border-left-color: #3b82f6; }
.org-node + .org-node::before { content: ""; position: absolute; left: 22px; top: -11px; width: 2px; height: 10px; background: var(--line-2); }
.org-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.org-node p { margin: 4px 0 0; }
.org-node .people { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* Join */
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step { font: 800 14px var(--mono); color: var(--red-2); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(239, 43, 45, .12); border: 1px solid rgba(239, 43, 45, .28); }
.steps p, .rules p { margin: 0; font-size: 15px; }
.rules li { display: flex; gap: 16px; align-items: flex-start; }
.rules h3 { margin-bottom: 4px; font-size: 17px; }
.list { padding-left: 18px; color: #d4d4d8; }
.list li { margin-bottom: 6px; }

/* Station */
.station { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.idcard { position: sticky; top: 86px; border-radius: 20px; padding: 24px; overflow: hidden; background: radial-gradient(120% 80% at 100% 0%, rgba(239, 43, 45, .35), transparent 60%), linear-gradient(180deg, #1c1c22, #111114); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.id-top { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; line-height: 1.15; }
.id-top img { height: 40px; width: auto; }
.id-top small { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.id-cs { font: 700 60px/1 var(--mono); margin: 26px 0 6px; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #ffb4ad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.id-name { font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.quick { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.quick a { display: flex; justify-content: space-between; align-items: center; color: var(--text); font-weight: 600; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; }
.quick a:hover { background: rgba(255, 255, 255, .05); color: #fff; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; color: #d4d4d8; align-content: start; }
.hint { font-size: 12px; color: var(--dim); font-weight: 500; }
input, textarea, select { width: 100%; font: 500 15px/1.4 var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
textarea.mono { font: 13px/1.55 var(--mono); }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(239, 43, 45, .7); box-shadow: 0 0 0 4px rgba(239, 43, 45, .15); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0; display: grid; gap: 12px; }
legend { display: flex; align-items: center; gap: 8px; font-weight: 800; padding: 0 6px; }
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3); color: #bbf7d0; font-weight: 600; }
.flash.err { background: rgba(239, 43, 45, .12); border-color: rgba(239, 43, 45, .4); color: #fecaca; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.check input { width: 16px; height: 16px; accent-color: var(--red); }

/* Roster */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; align-items: center; }
.toolbar input[type="search"] { width: min(300px, 100%); border-radius: 999px; padding-left: 16px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--muted); font: 700 14px var(--sans); padding: 9px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.seg button span { font: 700 11.5px var(--mono); padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.seg button[aria-selected="true"] { background: var(--text); color: #111; }
.seg button[aria-selected="true"] span { background: var(--red); color: #fff; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: auto; background: var(--surface); }
.roster { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.roster th, .roster td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.roster thead th { font: 700 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: var(--bg-2); position: sticky; top: 0; }
.roster .grp th { background: rgba(239, 43, 45, .06); color: var(--text); font-weight: 800; font-size: 13.5px; padding: 10px 16px; border-bottom: 1px solid rgba(239, 43, 45, .2); }
.roster .grp th span { font: 700 11.5px var(--mono); color: var(--dim); margin-left: 10px; }
.roster tr:not(.grp):hover td { background: rgba(255, 255, 255, .025); }
.roster td.cs { font-size: 13.5px; }
.roster tr.vacant td { color: var(--dim); }
.roster tr.me td { background: rgba(239, 43, 45, .1); }
.roster.compact th, .roster.compact td { padding: 9px 14px; }
.st { display: inline-flex; font: 700 11px/1 var(--mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 6px; white-space: nowrap; background: rgba(255, 255, 255, .06); color: #d4d4d8; }
.st-active { background: rgba(74, 222, 128, .12); color: var(--green); }
.st-absent, .st-reserve, .st-waiting-for-training { background: rgba(251, 191, 36, .12); color: var(--amber); }
.st-suspended { background: rgba(239, 43, 45, .15); color: #fca5a5; }
.st-vacant, .st-retired, .st-not-contracted { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line-2); }
.role-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* Resources */
.res ul { list-style: none; padding: 0; margin: 0; }
.res li a, .res .nolink { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 10px; margin: 0 -10px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.res li a svg { color: var(--dim); flex-shrink: 0; }
.res li a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.res li a:hover svg { color: var(--red-2); }
.res .nolink { color: var(--dim); font-weight: 500; }

/* Admin */
.admin { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.side a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.side a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.admin .card { scroll-margin-top: 86px; }
.admin .card > .h3 { margin-bottom: 14px; }
.kv { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.kv th, .kv td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kv th { font-weight: 700; font-size: 14px; white-space: nowrap; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.mini-stats div { padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.mini-stats b { display: block; font-size: 26px; font-weight: 800; }
.mini-stats span { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #060607); padding: 40px 0 32px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.foot nav a:hover { color: var(--text); }
.foot-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .top-right { margin-left: auto; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .hero-grid, .station { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .idcard { position: relative; top: 0; }
  .division { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .division-art { width: 160px; }
  .division-art .patch { width: 120px; height: 120px; }
  .cta { grid-template-columns: 1fr; text-align: left; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .div-card { padding: 20px 12px; }
  .div-card .patch { width: 84px; height: 84px; }
  .div-card h3 { font-size: 14.5px; }
  .div-meta { flex-direction: column; gap: 6px; }
  .stat { padding: 16px; column-gap: 12px; }
  .stat-ic { width: 38px; height: 38px; }
  .brand small { display: none; }
  .acct summary span { display: none; }
  .acct summary { padding: 3px; }
  .top-right .btn-sm span { display: none; }
  .hide-sm { display: none; }
  .roster th, .roster td { padding: 10px 12px; }
  .kv td.small { display: none; }
  .card { padding: 20px; }
  .rules li { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Admin config (grouped tabs, one panel at a time) */
.cfg-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 22px; padding: 18px 20px; margin-bottom: 16px; }
.cfg-nav p { margin: 0 0 6px; font: 700 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cfg-nav .row { gap: 4px; }
.cfg-nav a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 11px; border-radius: 8px; }
.cfg-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.cfg-nav a[aria-current] { color: #fff; background: rgba(239, 43, 45, .16); box-shadow: inset 0 0 0 1px rgba(239, 43, 45, .4); }
.panels { display: grid; gap: 16px; }
.panels > .card { scroll-margin-top: 86px; }
.panels > .card > .h3 { margin-bottom: 4px; }
.savebar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; pointer-events: none; }
.savebar .btn { pointer-events: auto; }
.ranks select { min-width: 190px; padding: 8px 32px 8px 10px; font-size: 13.5px; }
.ranks td { vertical-align: middle; }
[hidden] { display: none !important; }

/* ---- v20 additions ---- */
.roster .grp th > span:last-child { font: 700 11.5px var(--mono); color: var(--dim); margin-left: 10px; }
.roster .grp th span.grp-rank { font: inherit; color: inherit; margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.ins { flex-shrink: 0; display: inline-block; vertical-align: middle; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.chips span { display: inline-flex; align-items: center; gap: 7px; }
.rank-cell { display: inline-flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.h2s { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 8px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; aspect-ratio: 2.3 / 1; }
.shot { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot-big { grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: 10px; padding: 32px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-size: 13px; }
.shot figcaption span { color: #d4d4d8; font-size: 12px; }
.gallery-note { margin-top: 10px; }

/* Platoon photos */
.platoon { padding-top: 0; }
.platoon-photo { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px 18px; height: 170px; object-fit: cover; border-bottom: 1px solid var(--line); mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); opacity: .85; }
.platoon-top { margin-top: -54px; position: relative; }
.platoon-ic { background-color: #18181c; }

/* Division cards & pages */
.division-card { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.division-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(239, 43, 45, .4); box-shadow: 0 24px 50px -28px rgba(239, 43, 45, .6); }
.division-card .division-art { aspect-ratio: 1; }
.division-card .more { margin-top: 4px; color: var(--red-2); }
.division-sum p { margin: 0 0 8px; }
.div-hero-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.div-hero-art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 28px; background: radial-gradient(circle at 50% 40%, rgba(239, 43, 45, .28), transparent 70%), rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.div-hero h1 { margin: 12px 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.back svg { transform: rotate(180deg); }
.div-body { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.prose p { color: #d4d4d8; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: #d4d4d8; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; background: rgba(74, 222, 128, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.facts dd .ins { margin-right: 6px; }
.mini-divs { display: grid; gap: 4px; }
.mini-divs a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.mini-divs a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.link-card { display: flex; align-items: center; gap: 18px; color: var(--text); transition: border-color .2s; }
.link-card:hover { color: var(--text); border-color: rgba(239, 43, 45, .4); }
.link-card h3 { margin-bottom: 4px; }
.link-card p { margin: 0; }
.link-card .more { margin-left: auto; }

/* Org chart */
.org-tree { display: grid; gap: 0; }
.org-top { display: flex; justify-content: center; position: relative; padding-bottom: 34px; }
.org-top .tier { width: min(420px, 100%); border-color: rgba(245, 179, 1, .35); box-shadow: 0 20px 60px -30px rgba(245, 179, 1, .45); }
.org-top::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 2px; height: 34px; background: var(--line-2); }
.org-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; position: relative; padding-top: 28px; border-top: 2px solid var(--line-2); }
.branch { display: flex; flex-direction: column; align-items: stretch; position: relative; }
.branch::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: var(--line-2); }
.branch-title { display: flex; align-items: center; gap: 10px; justify-content: center; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.tier { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.branch-fire .tier { border-top: 3px solid var(--red); }
.branch-med .tier { border-top: 3px solid #3b82f6; }
.tier-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tier-head b { display: block; font-size: 16px; }
.tier-head span { color: var(--dim); font-size: 12.5px; font-weight: 600; }
.tier-link { display: block; width: 2px; height: 18px; background: var(--line-2); margin: 0 auto; }
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.seat { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seat b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat small { color: var(--dim); font-size: 11.5px; line-height: 1.3; }
.seat .cs { margin: 0; font-size: 11.5px; }
.seat.vacant { border-style: dashed; background: transparent; }
.seat.vacant b { color: var(--dim); font-weight: 600; }
.more-seats { justify-content: center; align-items: center; color: var(--dim); font-weight: 700; font-size: 13px; border-style: dashed; background: transparent; }
.line-ranks { margin-top: 22px; display: grid; gap: 6px; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.line-rank { display: flex; align-items: center; gap: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.line-rank:last-child { border-bottom: 0; }
.line-rank b { display: block; font-size: 14.5px; }
.line-rank span { color: var(--dim); font-size: 12.5px; font-family: var(--mono); }

/* ID card */
.id-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.id-row .id-cs { margin: 0; }

/* Footer */
.foot { padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 14px 0 16px; max-width: 34ch; }
.foot-brand .brand img { height: 50px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col p { margin: 6px 0 6px; font: 700 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.foot-col a { color: var(--muted); font-weight: 600; font-size: 14px; width: fit-content; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }

/* Admin */
.admin-head { border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 90% 0%, rgba(239, 43, 45, .16), transparent 70%); }
.admin-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 34px 0 24px; }
.admin-head h1 { font-size: clamp(30px, 4vw, 42px); }
.admin-head .eyebrow { margin-bottom: 8px; }
.admin-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chip img { border-radius: 50%; }
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; }
.cfg-side { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.cfg-side p { margin: 12px 10px 4px; font: 700 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cfg-side p:first-child { margin-top: 2px; }
.cfg-side a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.cfg-side a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.cfg-side a[aria-current] { color: #fff; background: rgba(239, 43, 45, .14); box-shadow: inset 2px 0 0 var(--red); }
.cfg-side .cfg-site { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; display: flex; align-items: center; gap: 6px; }
.cfg-side .cfg-site svg { transform: rotate(180deg); }
.panels > .card { padding: 26px 28px; }
.panels > .card > .h3 { font-size: 22px; }
.savebar { position: static; display: flex; justify-content: flex-end; margin: 6px -28px -26px; padding: 14px 28px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); border-radius: 0 0 var(--r) var(--r); pointer-events: auto; }
.cfg-nav { display: none; }

@media (max-width: 1080px) {
  .admin { grid-template-columns: 1fr; }
  .cfg-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cfg-side p { width: 100%; margin: 8px 6px 2px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .org-branches { grid-template-columns: 1fr; border-top: 0; padding-top: 0; gap: 36px; }
  .branch::before { display: none; }
  .div-hero-grid, .div-body { grid-template-columns: 1fr; }
  .div-hero-art { width: 180px; }
  .div-hero-art .patch { width: 150px; height: 150px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .shot { aspect-ratio: 16 / 10; }
  .shot-big { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  .division-card { grid-template-columns: 1fr; }
  .division-card .division-art { width: 120px; }
  .division-card .division-art .patch { width: 96px; height: 96px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .panels > .card { padding: 20px; }
  .savebar { margin: 6px -20px -20px; padding: 12px 20px; }
}
.shot-wide { grid-column: span 2; }
.page-hero + .section, .page-hero + .wrap.section { padding-top: clamp(36px, 5vw, 56px); }
@media (max-width: 860px) { .shot-wide { grid-column: 1 / -1; } }

/* Public organization (positions only) */
.narrow-wide { max-width: 980px; }
.pos-chain { display: flex; flex-direction: column; align-items: stretch; }
.pos-top { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); }
.pos-top b { display: block; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.pos-top span { color: var(--muted); font-size: 13.5px; }
.pos-head { border-color: rgba(245, 179, 1, .4); box-shadow: 0 20px 50px -30px rgba(245, 179, 1, .5); }
.pos-link { display: block; width: 2px; height: 22px; background: var(--line-2); margin: 0 auto; }
.pos-split { display: flex; align-items: center; gap: 14px; margin: 40px 0 18px; }
.pos-split::before, .pos-split::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.pos-split span { font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(239, 43, 45, .35); background: rgba(239, 43, 45, .08); }
.pos-group + .pos-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pos-label { font: 700 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px; }
.pos-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.pos-row:last-child { border-bottom: 0; }
.pos-row b { display: block; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; }
.pos-row span { color: var(--muted); font-size: 13px; }
.pos-row em { font-style: normal; color: var(--dim); font-size: 12.5px; font-family: var(--mono); white-space: nowrap; }
.pos-divs { gap: 12px; }
.pos-div { display: flex; gap: 14px; align-items: flex-start; color: var(--text); padding: 18px; }
.pos-div:hover { color: var(--text); border-color: rgba(239, 43, 45, .4); }
.pos-div b { display: block; font-size: 15.5px; }
.pos-div ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pos-div li { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: #d4d4d8; }
.pos-foot { margin-top: 28px; color: var(--muted); }
.pos-foot a { font-weight: 700; }

/* Private org chart */
.org2-title { margin: 8px 0 18px; }
.org2-title:not(:first-child) { margin-top: 48px; }
.org2-group { margin-bottom: 26px; }
.org2-rank { margin-bottom: 18px; }
.org2-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.org2-head b { text-transform: uppercase; letter-spacing: .03em; font-size: 14.5px; }
.org2-head span { font: 700 12px var(--mono); color: var(--dim); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); min-width: 0; }
.person > div { min-width: 0; }
.person .cs { display: block; margin: 0 0 2px; font-size: 11.5px; }
.person b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { display: block; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small i { color: var(--amber); font-style: normal; font-weight: 700; }
.person.loa { border-color: rgba(251, 191, 36, .3); }
.person.vacant { border-style: dashed; background: transparent; opacity: .7; }
.person.vacant b { color: var(--dim); }
.hide-vacant .person.vacant { display: none; }
