/* ==========================================================================
   Anteris Alliance — portals (member, brand, admin)
   Builds on site.css tokens.
   ========================================================================== */
body.app { background: var(--bone); font-size: 15px; }
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #c5cbd6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.side .brand b { font-size: 22px; }
.side .brand img { display: block; }
.side .tag { display: block; margin-top: 8px !important; font: 500 12px var(--text); color: var(--brass-2); margin-top: 2px; letter-spacing: .02em; }
.side nav { padding: 14px 10px; display: grid; gap: 2px; }
.side nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav a.on { background: rgba(226,194,125,.12); color: var(--brass-2); }
.side nav .pill { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 600; }
.side .me { margin-top: auto; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.07); display: flex; gap: 12px; align-items: center; }
.side .me .coin-svg { width: 40px; }
.side .me b { color: #fff; display: block; font-size: 14px; }
.side .me small { font-size: 12px; }
.side .me button { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.2); color: #c5cbd6; border-radius: 4px; padding: 6px 8px; font: 500 12px var(--text); cursor: pointer; white-space: nowrap; }
.topbar { display: none; }
.main { padding: 32px clamp(18px, 3vw, 44px) 64px; min-width: 0; }
.main h1 { font-size: clamp(44px, 5vw, 64px); margin-bottom: 6px; }
.main .sub { color: var(--muted); margin: 0 0 28px; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: var(--on-navy); padding: 12px 16px; position: sticky; top: 0; z-index: 50; }
  .topbar button { background: none; border: 1px solid rgba(255,255,255,.25); color: inherit; border-radius: 4px; padding: 6px 12px; font: 600 14px var(--text); }
}

/* panels */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.panel + .panel { margin-top: 20px; }
/* side-by-side panels in a grid line up; only stacked panels get the gap */
.grid-2 > .panel + .panel, .grid-3 > .panel + .panel { margin-top: 0; }
.panel h2 { font-size: 30px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.panel-head a { font-size: 14px; font-weight: 600; }
.empty { color: var(--muted); padding: 18px 0; }
.empty a, .empty button { font-weight: 600; }

.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--ink); font: 600 14px var(--text); text-decoration: underline; cursor: pointer; }
.btn-danger { background: var(--red); color: #fff; }

/* coin card */
.coin-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; background: var(--navy); color: var(--on-navy); border: 0; }
.coin-card h2 { color: #fff; }
.coin-card p { color: #c5cbd6; margin: 0; }
.coin-card .serial { font: 600 15px var(--mono); color: var(--brass-2); }
@media (max-width: 560px) { .coin-card { grid-template-columns: 1fr; } .coin-card .coin-svg { width: 140px; } }

/* list rows */
.rows { display: grid; }
.rowi { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.rowi:first-child { border-top: 0; }
.rowi .grow { flex: 1; min-width: 0; }
.rowi h4 { margin: 0 0 2px; font-size: 16px; }
.rowi p { margin: 0; color: var(--muted); font-size: 14px; }
.meta { font-size: 13px; color: var(--muted); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-3); color: var(--on-navy); display: grid; place-items: center; font: 600 13px var(--text); flex: none; }

/* alerts */
.lvl { display: inline-block; font: 600 12px var(--text); padding: 2px 9px; border-radius: 99px; }
.lvl-info { background: #e6edf7; color: #1f3d6b; }
.lvl-advisory { background: #fff1d6; color: #7a4b00; }
.lvl-warning { background: #ffe0cc; color: #8a3200; }
.lvl-emergency { background: var(--red); color: #fff; }
.alert-strip { border-left: 5px solid #d08a1c; background: var(--notice-bg); padding: 14px 16px; border-radius: 6px; margin-bottom: 20px; }
.alert-strip.emergency { border-color: var(--danger-text); background: var(--notice-bg); }
.map-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
#map { height: 560px; border-radius: 8px; border: 1px solid var(--line); background: #dfe3e8; }
.map-tools { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 14px; }
.map-tools label { display: flex; flex-direction: row; gap: 6px; align-items: center; font-weight: 500; }
.map-tools input { width: auto; }
.feed { max-height: 560px; overflow-y: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; padding: 10px 16px; font: 600 15px var(--text); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--brass); }
.embed-map { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 1100px) { .map-wrap { grid-template-columns: 1fr; } #map { height: 420px; } }

/* offers */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filters input { max-width: 280px; }
.chip { border: 1px solid #cfc9bc; background: var(--paper); border-radius: 99px; padding: 7px 14px; font: 500 14px var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); border-color: var(--ink); }
.offer { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.offer .disc { font: 800 38px/1 var(--display); color: var(--danger-text); }
.offer h3 { font-size: 24px; margin: 0; }
.offer .by { font-size: 13px; color: var(--muted); }
.offer p { font-size: 14px; margin: 0; flex: 1; }
.code { font: 600 16px var(--mono); background: var(--surface-muted); border: 1px dashed var(--brass); padding: 8px 12px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; }

/* posts */
.composer textarea { min-height: 84px; }
.composer .bar { display: flex; justify-content: flex-end; margin-top: 10px; }
.post { padding: 18px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post .who { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.post .who b { font-size: 15px; }
.post .body { white-space: pre-wrap; margin: 0 0 8px; max-width: 70ch; }
.comments { margin: 10px 0 0 48px; display: grid; gap: 8px; }
.comment { background: var(--surface-muted); border-radius: 6px; padding: 8px 12px; font-size: 14px; }
.comment-form { display: flex; gap: 8px; margin-left: 48px; margin-top: 8px; }
.comment-form input { padding: 8px 10px; font-size: 14px; }

/* messages */
.msgs { display: grid; grid-template-columns: 280px 1fr; min-height: 560px; padding: 0; overflow: hidden; }
.convos { border-right: 1px solid var(--line); overflow-y: auto; }
.convos a { display: flex; gap: 10px; padding: 14px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.convos a.on { background: var(--surface-muted); }
.convos .unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.thread { display: flex; flex-direction: column; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.bubbles { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 460px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 12px; background: var(--surface-muted); white-space: pre-wrap; }
.bubble.mine { align-self: flex-end; background: var(--navy); color: var(--on-navy); }
.bubble small { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.thread form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .msgs { grid-template-columns: 1fr; } .convos { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* tables (brand/admin) */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); border-top: 0; }
.table-scroll { overflow-x: auto; }
.stat { font: 800 48px/1 var(--display); color: var(--ink); }
.stat-label { color: var(--muted); font-size: 14px; }

dialog { border: 0; border-radius: 10px; padding: 0; width: min(560px, 92vw); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(13,23,41,.55); }
dialog .form { border: 0; }
dialog h2 { font-size: 36px; margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.pending-note { background: var(--notice-bg); border: 1px solid var(--notice-line); padding: 18px 20px; border-radius: 8px; margin-bottom: 20px; }

/* Portal layout shared by member, brand and admin. */
.side { background: #101d33; border-right: 1px solid #e2c27d29; }
.side-appearance { padding: 14px 20px; }
.side .me { flex-wrap: wrap; overflow-wrap: anywhere; }
.side nav a.on { box-shadow: inset 2px 0 var(--brass-2); }
.main { padding-top: clamp(30px, 5vw, 68px); }
.panel:not(.msgs) { padding: clamp(16px, 2.5vw, 26px); }
.panel-head { flex-wrap: wrap; }
.chip { border-color: var(--input-line); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--input-line); }
.tabs { overflow-x: auto; }
dialog { color: var(--ink); background: var(--paper); }
.code, .rowi, .bubble { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .side:not(.open) { visibility: hidden; }
  .side-appearance { display: none; }
  .topbar .brand img { width: min(140px, 36vw); height: auto; }
  .topbar button { min-height: 40px; }
}
@media (max-width: 480px) {
  .comment-form, .comments { margin-left: 0; }
  .thread form { flex-wrap: wrap; }
}

/* Keep the workspace chrome consistent across all account roles. */
body.app { background: var(--bone); }
.app-shell { grid-template-columns: 272px minmax(0, 1fr); }
.side .brand { padding: 26px 20px 22px; }
.side nav { padding: 18px 12px; gap: 4px; }
.side nav a { border-radius: 0; }
.side nav a.on { background: #e2c27d21; }
.side .me { background: #0c1525; }
.main h1 { font-size: clamp(54px, 7vw, 92px); letter-spacing: -.02em; }
.main .sub { margin-bottom: 34px; }
.panel, .offer { border-radius: 3px; }
.panel-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.coin-card { background: linear-gradient(116deg, #13213a, #22385a); }
@media (max-width: 900px) { .app-shell { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Community, readiness and revenue features
   ========================================================================== */
.side .nav-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  font: 700 13px/1.35 var(--text);
  color: var(--on-navy);
  cursor: pointer;
  list-style: none;
}
.side .nav-section::-webkit-details-marker { display: none; }
.side .nav-section::after {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
}
.side .portal-nav-group { border-bottom: 1px solid #e2c27d35; }
.side .portal-nav-group[open] > summary::after { transform: rotate(45deg); }
.side .nav-section:hover { background: #ffffff0d; }
.side .portal-nav-group-links { padding: 0 0 5px 8px; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.service-list .rowi { flex-wrap: wrap; }
.service-list .rowi p { white-space: pre-wrap; overflow-wrap: anywhere; }
.service-list .btn-row { gap: 10px; }
.side nav { gap: 2px; }
.side nav a { padding: 8px 12px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sticky-col { position: sticky; top: 24px; }
@media (max-width: 1100px) { .sticky-col { position: static; } }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }

/* progress bars */
.bar { position: relative; height: 8px; background: var(--surface-muted); border-radius: 99px; overflow: visible; margin: 4px 0 12px; }
.bar > span { display: block; height: 100%; background: var(--brass); border-radius: 99px; transition: width .3s; }
.bar.big { height: 12px; margin: 10px 0 14px; }
.bar i { position: absolute; top: -3px; width: 2px; height: 18px; background: var(--ink); opacity: .45; transform: translateX(-1px); }

/* readiness */
.score-panel { display: flex; gap: 22px; align-items: center; color: var(--ink); }
.score-panel h2 { margin: 0 0 4px; }
.score-ring { flex: none; color: var(--ink); }
.score-link { color: inherit; text-decoration: none; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist .check { font-weight: 400; font-size: 15px; }
.ready-cat .panel-head { border: 0; padding-bottom: 0; margin-bottom: 4px; }
.tag-fix { display: inline-block; font: 600 11px var(--text); background: var(--brass); color: #13213a; padding: 1px 7px; border-radius: 3px; }
.disc-sm { color: var(--danger-text); white-space: nowrap; }

/* digest */
.digest { list-style: none; padding: 0; margin: 0; display: grid; }
.digest li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.digest li:first-child { border-top: 0; }
.digest b { font: 800 28px/1 var(--display); color: var(--ink); }
.digest a { font-size: 14px; font-weight: 600; }

/* feed extras */
.who-name { font-weight: 600; text-decoration: none; color: var(--ink); }
.who-name:hover { text-decoration: underline; }
a.avatar { text-decoration: none; }
.post-actions { margin-left: auto; display: flex; gap: 12px; }
.post-actions .btn-link, .report-link { font-weight: 500; color: var(--muted); font-size: 13px; }
.post.is-hidden { opacity: .6; }
.partner-post { background: linear-gradient(90deg, rgba(184,137,58,.08), transparent 60%); margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.partner-av { background: var(--brass); color: #13213a; }
.partner-title { font: 700 22px/1.15 var(--display); margin: 4px 0 6px; }
.tag-partner, .tag-plus { display: inline-block; font: 600 11px var(--text); padding: 1px 7px; border-radius: 3px; border: 1px solid var(--brass); color: var(--accent-text); }
.tag-plus { background: var(--brass); color: #13213a; }
.answer { background: var(--surface-muted); border-left: 3px solid var(--brass); padding: 8px 12px; margin: 8px 0 0; border-radius: 0 4px 4px 0; }
.safety-note { background: var(--notice-bg); border: 1px solid var(--notice-line); padding: 10px 14px; border-radius: 4px; font-size: 14px; }

/* check-ins */
.checkin.closed { opacity: .7; }
.ck-counts { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 14px; font-weight: 600; font-size: 14px; }
.st-ok { color: #2f7d4f; } .st-help { color: var(--danger-text); } .st-can { color: #2f5a96; }
:root[data-theme="dark"] .st-ok { color: #7fd1a1; } :root[data-theme="dark"] .st-can { color: #8db5ff; }
.ck-form { display: grid; gap: 12px; padding: 14px; background: var(--surface-muted); border-radius: 4px; margin-bottom: 14px; }
.ck-form .row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.ck-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-opt { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 10px 14px; border: 2px solid var(--input-line); border-radius: 6px; background: var(--paper); cursor: pointer; font-weight: 600; }
.ck-opt input { width: auto; margin: 0; }
.ck-opt:has(input:checked) { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.ck-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; margin-top: 5px; }
.ck-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
@media (max-width: 640px) { .ck-form .row { grid-template-columns: 1fr; } }

/* outposts */
.outpost-card { position: relative; }
.outpost-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--brass-2); display: grid; place-items: center; font: 800 20px var(--display); border: 2px solid var(--brass); }
.outpost-mark.lg { width: 84px; height: 84px; font-size: 32px; flex: none; }
.outpost-head { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-bottom: 24px; }
.outpost-head .grow { flex: 1; min-width: 240px; }
.seal { display: inline-block; font: 700 12px var(--text); letter-spacing: .02em; color: #13213a; background: linear-gradient(135deg, #f3d77f, #b8893a); padding: 3px 9px; border-radius: 99px; margin: 4px 0; }
.stars { color: #c99a3a; letter-spacing: 1px; }
.stars .off { color: var(--line); }
.coin-no { font: 600 12px var(--mono); color: var(--accent-text); }
.rating { display: grid; gap: 4px; }

/* group buys */
.buys { align-items: stretch; }
.buy { display: flex; flex-direction: column; gap: 6px; }
.buy .panel-head h2 { font-size: 26px; }
.tiers-list { margin: 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.tiers-list li.hit { color: var(--ink); font-weight: 600; }
.tiers-list li.hit::marker { content: "✓  "; color: var(--brass); }
.committed { margin: 6px 0; font-weight: 600; color: #2f7d4f; }
:root[data-theme="dark"] .committed { color: #7fd1a1; }
.buy-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: auto; }
.buy-form label { flex: 1; min-width: 120px; }

/* missions */
.mission.done { border-left: 4px solid var(--brass); }
.pts { font: 800 22px var(--display); color: var(--accent-text); }
.points-panel { text-align: center; }
.pts-big { font: 800 72px/1 var(--display); color: var(--ink); }
.pos { color: #2f7d4f; } .neg { color: var(--danger-text); }
:root[data-theme="dark"] .pos { color: #7fd1a1; }

/* live */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; margin-top: 12px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
details summary { cursor: pointer; font-weight: 600; margin-top: 6px; }

/* plus */
.plus-panel .price { font: 800 64px/1 var(--display); color: var(--ink); }
.plus-panel .price small { font: 500 15px var(--text); color: var(--muted); margin-left: 6px; }
.plus-list { list-style: none; padding: 0; margin: 18px 0 22px; }
.plus-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.plus-list b { display: block; }
.plus-list span { color: var(--muted); font-size: 14px; }

/* people */
.badge { display: inline-block; font: 600 11px var(--text); padding: 2px 8px; border-radius: 99px; background: var(--surface-muted); color: var(--ink); border: 1px solid var(--line); margin: 0 4px 4px 0; vertical-align: middle; }
.chip-sm { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--surface-muted); border: 1px solid var(--line); margin: 2px 2px 2px 0; }
.chip-sm.gear { border-style: dashed; }
.chip-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opt { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font: 500 13px var(--text); padding: 6px 12px; border: 1px solid var(--input-line); border-radius: 99px; cursor: pointer; background: var(--paper); }
.chip-opt input { width: auto; margin: 0; }
.chip-opt:has(input:checked) { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.member-card { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; background: linear-gradient(116deg, #13213a, #22385a); color: var(--on-navy); padding: 32px; border-radius: 3px; margin-bottom: 20px; }
.member-card h1 { color: #fff; margin: 0; }
.member-card a { color: var(--brass-2); }
.mc-serial { font: 600 16px var(--mono); color: var(--brass-2); margin: 6px 0; }
.mc-line { color: #c5cbd6; }
.mc-bio { color: #e4e7ec; max-width: 60ch; }
.member-card .badge { background: rgba(255,255,255,.08); border-color: rgba(226,194,125,.4); color: #f3f1ec; }
.member-card .chip-sm { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #f3f1ec; }
.avatar.xl { width: 180px; height: 180px; font-size: 56px; }
@media (max-width: 700px) { .member-card { grid-template-columns: 1fr; } .mc-coin { max-width: 180px; } }

@media (max-width: 480px) { .partner-post { margin: 0 -16px; padding-left: 16px; padding-right: 16px; } .post-actions { gap: 8px; } }
.member-card a.btn { color: #13213a; } .member-card a.btn-ghost { color: var(--on-navy); }
.outpost-head h1, .member-card h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1; }

.steps-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

.mfg-content { display: grid; gap: 18px; }
.mfg-content > .panel { margin: 0; }
.mfg-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.mfg-content [hidden] { display: none; }

/* Keep workspace switching separate from collapsible portal sections. */
.side .portal-switcher, .portal-switch-mobile .portal-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 12px;
  background: var(--navy);
}
.side .portal-switcher { position: sticky; top: 0; z-index: 1; }
.portal-switcher a {
  display: block;
  text-align: center;
  color: var(--on-navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 5px;
}
.portal-switcher a:hover, .portal-switcher a[aria-current="page"] {
  color: var(--brass-2);
  background: #e2c27d20;
  border-color: #e2c27d55;
}
.portal-switch-mobile { display: none; }
@media (max-width: 900px) {
  .portal-switch-mobile { display: block; }
  .side .portal-switcher { display: none; }
}
