/* Desktop-only enhancement. Mobile keeps its original navigation and controls. */
.desktop-shell[hidden] { display: none !important; }
.desktop-shell [hidden] { display: none !important; }
.desktop-nav-icon, .desktop-shell { display: none; }
[data-desktop-only] { display: none !important; }
.desktop-nav-label { display: contents; }
@media (min-width: 1180px) {
  body.has-desktop-shell { --desktop-side-width: 224px; padding-left: var(--desktop-side-width); }
  .has-desktop-shell .desktop-shell { display: flex; position: fixed; inset: 0 auto 0 0; width: var(--desktop-side-width); padding: 20px 12px 14px; border-right: 1px solid var(--line); background: color-mix(in srgb,var(--paper) 65%,var(--bg)); z-index: 40; flex-direction: column; gap: 18px; }
  .desktop-shell-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 0 4px; }
  .desktop-shell .brand { min-width: 0; gap: 9px; }
  .desktop-shell .brand-icon { width: 32px; height: 32px; border-radius: 10px; }
  .desktop-shell .brand strong { font-size: 17px; }
  .desktop-shell .brand small { font-size: 8px; letter-spacing: .14em; }
  .desktop-shell-button { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px; color: var(--muted); background: transparent; }
  .desktop-shell-button:hover { background: var(--soft); color: var(--green); }
  .desktop-shell .desktop-nav-icon { display: inline-block; width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .desktop-shell .primary-nav { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; padding: 0; margin: 0; background: none; border: 0; }
  .desktop-shell .primary-nav a { display: flex; align-items: center; justify-content: flex-start; gap: 11px; padding: 11px 12px; border: 0; border-radius: 9px; font-size: 13px; line-height: 1.5; color: var(--muted); background: none; white-space: normal; }
  .desktop-shell .primary-nav a.active { color: var(--green); background: var(--soft); font-weight: 650; }
  .desktop-shell .primary-nav a::after { display: none; }
  .desktop-shell .primary-nav a:hover { background: var(--soft); }
  .desktop-shell .desktop-nav-label { display: block; min-width: 0; flex: 1; }
  .desktop-shell :is(#saved-count,#network-saved-count) { float: right; }
  .desktop-shell :is(#svip-entry,#desktop-member-entry) { display: flex; margin-top: 7px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 17px; color: var(--green); }
  .has-desktop-shell [data-desktop-only] { display: flex !important; }
  .desktop-shell-context { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); padding: 18px 4px 0; scrollbar-width: thin; }
  .desktop-shell-context[hidden] { display: none; }
  .desktop-shell .filter-panel { border: 0; padding: 0; background: transparent; border-radius: 0; }
  .desktop-shell .filter-section + .filter-section { margin-top: 18px; }
  .desktop-shell .filter-section > label, .desktop-shell .filter-section > h3 { font-size: 12px; }
  .desktop-shell .filter-section select { font-size: 12px; height: 38px; }
  .desktop-shell .category-filters { display: flex; flex-direction: column; gap: 4px; padding: 0; }
  .desktop-shell .category-filters button { width: 100%; font-size: 12px; padding: 8px 10px; }
  .desktop-shell .preference-note { padding: 14px 0 0; margin-top: 16px; border: 0; border-top: 1px solid var(--line); }
  .desktop-shell .detail-toc { position: static; display: block; }
  .desktop-shell .detail-toc > p { margin-bottom: 9px; font-size: 11px; }
  .desktop-shell .detail-toc button { padding: 9px 6px; font-size: 12px; }
  .desktop-shell .detail-toc-note { margin-top: 12px; padding-top: 12px; font-size: 10px; }
  .desktop-shell .network-filter-bar { display: grid; grid-template-columns: minmax(0,1fr); gap: 15px; padding: 0; margin: 0; border: 0; }
  .desktop-shell .network-filter-bar label { padding: 0; border: 0; min-width: 0; font-size: 12px; }
  .desktop-shell .network-filter-bar :is(select,input) { width: 100%; min-width: 0; max-width: 100%; font-size: 12px; }
  .desktop-shell .network-filter-bar .network-search { grid-column: auto; margin: 0; }
  .desktop-shell .network-reset { grid-column: auto; margin: 0; min-height: 36px; font-size: 12px; }
  .desktop-shell-footer { display: flex; flex: 0 0 auto; margin-top: auto; padding: 15px 6px 0; border-top: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 11px; }
  .desktop-shell-filter-toggle, .desktop-shell-settings-toggle { display: none; }
  .has-desktop-shell .site-header { position: sticky; top: 0; z-index: 30; max-width: none; width: 100%; min-height: 64px; margin: 0; padding: 14px 30px; gap: 16px; background: var(--bg); }
  .has-desktop-shell:not([data-desktop-view="detail"]) .site-header { display: none; }
  .has-desktop-shell main.page-width { position: relative; display: flow-root; }
  .desktop-content-tools { position: absolute; inset-block-start: 8px; inset-inline-end: 30px; z-index: 10; }
  .has-desktop-shell .catalog-freshness { padding-inline-end: 44px; }
  .has-desktop-shell .site-header .detail-breadcrumb { order: -1; flex: 1; margin: 0; gap: 14px; }
  .has-desktop-shell .site-header .detail-public { margin-left: auto; }
  .has-desktop-shell .page-width { max-width: 1280px; padding-left: 30px; padding-right: 30px; }
  .has-desktop-shell .discovery-layout { grid-template-columns: minmax(0,1fr); }
  .has-desktop-shell .filter-sidebar { display: none; }
  .has-desktop-shell :is(.campaign-grid,.network-grid) { grid-template-columns: repeat(auto-fill,minmax(min(100%,300px),1fr)); }
  .has-desktop-shell .detail-page { padding-top: 18px; }
  .has-desktop-shell .detail-intro { padding: 24px 26px; }
  .has-desktop-shell #detail-title { font-size: clamp(26px,2.5vw,28px); line-height: 1.45; }
  .has-desktop-shell .detail-subtitle { font-size: 15px; line-height: 1.8; }
  .has-desktop-shell .campaign-card .card-title, .has-desktop-shell .network-card h3 { font-size: 17px; }
  .has-desktop-shell #network-detail-title { font-size: 28px; }
  .has-desktop-shell .detail-reading-layout { grid-template-columns: minmax(0,1fr); gap: 0; max-width: 940px; margin: 24px 0 0; }
  /* The sidebar already owns the chapter column. Use the remaining viewport
     for the detail canvas instead of nesting three centered width limits. */
  .has-desktop-shell[data-desktop-view="detail"] .page-width {
    width: 100%; max-width: 1560px; margin-inline: auto;
    padding-inline: clamp(24px,2vw,40px);
  }
  .has-desktop-shell[data-desktop-view="detail"] .detail-page {
    width: 100%; max-width: none; margin-inline: 0;
  }
  .has-desktop-shell[data-desktop-view="detail"] .detail-reading-layout {
    width: 100%; max-width: none;
  }
  .has-desktop-shell[data-desktop-view="detail"] .detail-reading-main { width: 100%; }
  /* Tables, diagrams and paired facts use the canvas; long standalone prose
     keeps a readable measure without narrowing the whole guide again. */
  .has-desktop-shell[data-desktop-view="detail"] .rule-section > :is(p,ul,ol) {
    max-inline-size: 100ch;
  }
  .has-desktop-shell[data-desktop-view="detail"] .member-guide :is(.mg-choice-panel-body > p,.mg-hero-caption,.mg-scenario-body > p,.mg-note p) {
    max-inline-size: 100ch;
  }
  .has-desktop-shell #detail-toc { display: none; }
  .has-desktop-shell .detail-tabs { top: 64px; }
  body.has-desktop-shell.desktop-sidebar-collapsed { --desktop-side-width: 64px; }
  .desktop-sidebar-collapsed .desktop-shell { padding-left: 8px; padding-right: 8px; }
  .desktop-sidebar-collapsed .desktop-shell-top { justify-content: center; }
  .desktop-sidebar-collapsed .desktop-shell :is(.desktop-shell-brand,.desktop-nav-label,.desktop-shell-context,.desktop-shell-footer) { display: none; }
  .desktop-sidebar-collapsed .desktop-shell .primary-nav a { justify-content: center; padding-left: 0; padding-right: 0; }
  .desktop-sidebar-collapsed .desktop-shell-filter-toggle:not([hidden]), .desktop-sidebar-collapsed .desktop-shell-settings-toggle { display: grid; align-self: center; }
  .desktop-sidebar-collapsed .desktop-shell-settings-toggle { margin-top: auto; }
  .desktop-sidebar-collapsed #open-filters { display: inline-flex; }
}

/* The approved light editorial edition. The opt-in lives on public pages;
   private workspaces, reading permissions and guide skins keep their own rules. */
:root:not([data-theme="night"]) [data-public-style="editorial"] {
  --bg: #f7f4ec;
  --paper: #fffefb;
  --ink: #213b32;
  --muted: #647166;
  --line: #dcded0;
  --green: #153f35;
  --soft: #e8eddf;
  --mint: #e2e9d9;
  --reading-muted: #526258;
}
/* Neutral reading surfaces; the real radar keeps its deep green identity. */
:root:not([data-theme="night"]) .home-page[data-public-style="editorial"] {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --ink: #29312f;
  --muted: #69716d;
  --line: #dfe2db;
  --green: #315a4d;
  --soft: #edf1eb;
  --mint: #e7eee7;
  --reading-muted: #555e59;
}
:root[data-theme="night"] .home-page[data-public-style="editorial"] {
  --bg: #181c1d;
  --paper: #222829;
  --ink: #e7ebe7;
  --muted: #a8b3ad;
  --line: #3b4641;
  --green: #b0cebe;
  --soft: #2d3833;
  --mint: #33433a;
  --reading-muted: #c0c9c2;
}
[data-public-style="editorial"] .ambient { display: none; }
.home-page[data-public-style="editorial"] .catalog-freshness {
  margin: 14px 0 12px;
  font-size: 11px;
}
.home-page[data-public-style="editorial"] .hero {
  --hero-gold: #e5cf98;
  --hero-ink: #f7f5e9;
  --hero-muted: #c7d6c7;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  grid-template-areas: "copy radar" "stats radar";
  gap: 0 36px;
  align-items: start;
  padding: 0;
  margin: 0 0 22px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.home-page[data-public-style="editorial"] .hero-copy {
  grid-area: copy;
  min-width: 0;
  padding: 9px 0 0;
}
.home-page[data-public-style="editorial"] .hero-copy > .eyebrow {
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gold);
  font-size: 10px;
  line-height: 1.7;
}
.home-page[data-public-style="editorial"] .hero .status-dot {
  background: var(--gold);
  box-shadow: none;
}
.home-page[data-public-style="editorial"] .hero .eyebrow-line { background: #c7d6c747; }
.home-page[data-public-style="editorial"] .hero-kicker {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .06em;
}
.home-page[data-public-style="editorial"] .hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px,2.5vw,38px);
  line-height: 1.3;
  letter-spacing: -.025em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.home-page[data-public-style="editorial"] .hero h1 br { display: initial; }
.home-page[data-public-style="editorial"] .hero h1 span { color: var(--green); }
.home-page[data-public-style="editorial"] .hero-description {
  margin: 0;
  max-width: 40em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.home-page[data-public-style="editorial"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 15px;
}
.home-page[data-public-style="editorial"] .hero-actions .button-primary {
  min-height: 38px;
  padding: 10px 16px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}
.home-page[data-public-style="editorial"] .hero-actions .button-primary:hover { background: #25483e; color: #ffffff; }
.home-page[data-public-style="editorial"] .hero-actions .text-link {
  min-height: 38px;
  padding: 9px 0;
  color: var(--ink);
  font-size: 12px;
}
.home-page[data-public-style="editorial"] .hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.home-page[data-public-style="editorial"] .hero-assurances > :last-child { display: inline; }
.home-page[data-public-style="editorial"] .hero-assurances i { color: var(--gold); }
.home-page[data-public-style="editorial"] .hero :is(a,button):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.home-page[data-public-style="editorial"] .hero-stats {
  grid-area: stats;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.home-page[data-public-style="editorial"] .hero-stats > * {
  flex-direction: row;
  align-items: baseline;
  gap: 9px;
}
.home-page[data-public-style="editorial"] .hero-stats strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.home-page[data-public-style="editorial"] .hero-stats span { color: var(--muted); font-size: 11px; }

/* Preserve the real signals and popup on a compact, independent radar. */
.home-page[data-public-style="editorial"] .radar-panel {
  grid-area: radar;
  margin: 0;
  padding: 14px 16px 8px;
  border: 1px solid #365b4d;
  border-radius: 15px;
  background: radial-gradient(ellipse at 100% 10%,#47604d22,transparent 65%),#193e35;
  color: var(--hero-ink);
  box-shadow: 0 5px 18px #163f3508;
}
.home-page[data-public-style="editorial"] .radar-panel::before { display: none; }
.home-page[data-public-style="editorial"] .radar-topline { gap: 10px; flex-wrap: wrap; }
.home-page[data-public-style="editorial"] .radar-topline .eyebrow { color: var(--hero-muted); font-size: 10px; }
.home-page[data-public-style="editorial"] .radar-live { display: flex; color: var(--hero-gold); font-size: 11px; }
.home-page[data-public-style="editorial"] .radar {
  width: min(calc(100% - 28px),240px);
  margin-inline: auto;
  background: radial-gradient(circle at 48% 42%,#315f50,#214c40 72%);
  box-shadow: inset 0 0 0 1px #b8cfb947;
}
.home-page[data-public-style="editorial"] .radar-stage { margin: 8px 0 6px; overflow: clip; }
.home-page[data-public-style="editorial"] .radar-grid {
  background: linear-gradient(#b9d0bc42 1px,transparent 1px),linear-gradient(90deg,#b9d0bc42 1px,transparent 1px),radial-gradient(circle,#d2b77c1c,transparent 68%);
  background-size: 18px 18px,18px 18px,100% 100%;
}
.home-page[data-public-style="editorial"] .radar-ring { border-color: #bed6c9aa; }
.home-page[data-public-style="editorial"] .radar-orbit { border-color: #bed6c980; }
.home-page[data-public-style="editorial"] .radar-axis { background: #c7d6c788; }
.home-page[data-public-style="editorial"] .radar-orbit { background: none; }
.home-page[data-public-style="editorial"] .radar-sweep {
  background: conic-gradient(transparent 0deg 282deg,#d2b77c0a 292deg,#d2b77c33 321deg,#e5cf9866 357deg,#f1d69dcc 359.7deg,transparent 360deg);
}
.home-page[data-public-style="editorial"] .radar-sweep::after {
  background: linear-gradient(#f1d69d,#e5cf98b3,transparent);
  box-shadow: 0 0 8px #e5cf9866;
}
.home-page[data-public-style="editorial"] .radar-center {
  border: 1px solid #f1e2b58c;
  background: var(--hero-gold);
  color: #153f35;
  box-shadow: 0 0 0 7px #d2b77c12,0 0 0 14px #d2b77c07;
}
.home-page[data-public-style="editorial"] .compass { color: var(--hero-muted); opacity: .8; }
.home-page[data-public-style="editorial"] .radar-signal {
  background: #f5f2e0;
  border-color: #d4d8bf;
  border-radius: 6px;
  color: #304b3d;
  box-shadow: 0 2px 6px #00190e14;
}
.home-page[data-public-style="editorial"] .radar-signal i { background: #8e743e; box-shadow: none; }
.home-page[data-public-style="editorial"] .radar-signal span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.home-page[data-public-style="editorial"] .radar-dense .radar-signal {
  width: 25%;
  min-height: 26px;
  padding: 5px 3px;
  gap: 4px;
  font-size: clamp(9px,2.5vw,10px);
}
.home-page[data-public-style="editorial"] .radar-dense .radar-signal i { width: 5px; height: 5px; }
.home-page[data-public-style="editorial"] .radar-signal:is(:hover,.is-active) {
  background: var(--hero-gold);
  border-color: #f6e5b6;
  color: #153f35;
  box-shadow: 0 0 0 3px #e5cf981c;
}
.home-page[data-public-style="editorial"] .radar-signal.is-active i::after { border-color: var(--hero-gold); }
.home-page[data-public-style="editorial"] .radar-connector { color: var(--hero-gold); }
.home-page[data-public-style="editorial"] .radar-callout {
  --popup-opacity: 78%;
  --popup-ink: #f0f4e9;
  --popup-gold: #f2dfaf;
  --bank-text: var(--popup-gold);
  background: rgb(16 48 40 / var(--popup-opacity));
  color: var(--popup-ink);
  border-color: #d8e1c94d;
  -webkit-backdrop-filter: blur(4px) saturate(1.05);
  backdrop-filter: blur(4px) saturate(1.05);
  text-shadow: none;
  box-shadow: 0 8px 28px #00190e33,inset 0 1px 0 #f3e4b51f;
}
.home-page[data-public-style="editorial"] .radar-callout .radar-bank-mark,
.home-page[data-public-style="editorial"] .radar-callout-heading small { background: #e5cf9817; }
.home-page[data-public-style="editorial"] .radar-callout-heading { border-bottom-color: #d8e1c933; }
.home-page[data-public-style="editorial"] .radar-callout #radar-dismiss { color: var(--popup-ink); }
.home-page[data-public-style="editorial"] .radar-callout #radar-dismiss:hover { background: #f0f4e91a; }
.home-page[data-public-style="editorial"] .radar-callout .radar-activities { scrollbar-color: #c7d6c780 transparent; }
.home-page[data-public-style="editorial"] .radar-callout .radar-activities li + li { border-top-color: #d8e1c926; }
.home-page[data-public-style="editorial"] .radar-callout .radar-activities li:hover { background: #f0f4e90d; }
.home-page[data-public-style="editorial"] .radar-callout .radar-activities button { color: var(--popup-ink); }
.home-page[data-public-style="editorial"] .radar-callout .radar-link-arrow { color: var(--popup-gold); }
.home-page[data-public-style="editorial"] .radar-callout .radar-activities button:is(:hover,:focus-visible) { color: #fffaf0; }
.home-page[data-public-style="editorial"] .radar-callout .radar-activities button:is(:hover,:focus-visible) .radar-link-arrow { background: #f0f4e91a; }
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .home-page[data-public-style="editorial"] .radar-callout { --popup-opacity: 100%; }
}
@media (prefers-reduced-transparency: reduce) {
  .home-page[data-public-style="editorial"] .radar-callout {
    --popup-opacity: 100%;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.home-page[data-public-style="editorial"] .radar-callout-heading {
  display: grid;
  grid-template-columns: 25px minmax(0,1fr) 26px;
  gap: 4px 8px;
  white-space: normal;
}
.home-page[data-public-style="editorial"] .radar-bank-mark { grid-row: 1 / span 2; }
.home-page[data-public-style="editorial"] .radar-callout-heading strong { min-width: 0; overflow-wrap: anywhere; }
.home-page[data-public-style="editorial"] .radar-callout-heading small { grid-column: 2; justify-self: start; }
.home-page[data-public-style="editorial"] #radar-dismiss { grid-column: 3; grid-row: 1 / span 2; }
.home-page[data-public-style="editorial"] .radar-footer {
  border-top: 1px solid #c7d6c729;
  color: var(--hero-muted);
  padding-top: 10px;
}
.home-page[data-public-style="editorial"] .radar-footer strong { color: var(--hero-gold); }
.home-page[data-public-style="editorial"] .scan-button { color: var(--hero-ink); min-height: 28px; }

.home-page[data-public-style="editorial"] .bank-directory { padding-top: 0; border-top: 0; }
.home-page[data-public-style="editorial"] .bank-tile { border-radius: 9px; }
.home-page[data-public-style="editorial"] .bank-tile.active { background: var(--soft); }
.home-page[data-public-style="editorial"] .section-heading .eyebrow { letter-spacing: .16em; }
.home-page[data-public-style="editorial"] .section-heading h2 { font-size: 29px; }
.home-page[data-public-style="editorial"] .campaign-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px #153f3504;
  padding: 19px 16px 14px;
}
.home-page[data-public-style="editorial"] .campaign-card::before {
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 4px;
  border-radius: 11px 11px 0 0;
}
.home-page[data-public-style="editorial"] .campaign-card .bank-name { font-size: 13px; font-weight: 650; }
.home-page[data-public-style="editorial"] .campaign-card .card-title { font-size: 17px; line-height: 1.6; }
.home-page[data-public-style="editorial"] .campaign-card .reward {
  height: auto;
  min-height: 0;
  padding: 10px 11px;
  border-left: 2px solid var(--bank-color);
  border-radius: 0;
  background: color-mix(in srgb,var(--bank-color) 8%,var(--paper));
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}
.home-page[data-public-style="editorial"] .campaign-card .reward > span {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.home-page[data-public-style="editorial"] .campaign-card .reward .offer-number { font-size: inherit; line-height: inherit; }
.home-page[data-public-style="editorial"] .campaign-card .card-bottom {
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}
.home-page[data-public-style="editorial"] .card-footer-meta { flex: 1 0 100%; }
.home-page[data-public-style="editorial"] .campaign-card .detail-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 8px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}
.home-page[data-public-style="editorial"] .site-footer { margin-top: 28px; }
:root[data-theme="night"] .home-page[data-public-style="editorial"] .hero {
  background: transparent;
  border: 0;
  box-shadow: none;
}
@media (min-width: 1180px) {
  :root:not([data-theme="night"]) [data-public-style="editorial"] .desktop-shell { background: #eeede4; }
  :root:not([data-theme="night"]) [data-public-style="editorial"] .site-header { background: var(--paper); }
  [data-public-style="editorial"] .desktop-shell .primary-nav a { color: var(--ink); font-size: 13px; }
  :root:not([data-theme="night"]) [data-public-style="editorial"] .desktop-shell .primary-nav a.active {
    background: #153f35;
    color: #fffbed;
  }
  :root:not([data-theme="night"]) [data-public-style="editorial"] .desktop-shell .primary-nav a.active > .desktop-nav-icon { color: #e5cf98; }
}
@media (min-width: 821px) and (max-width: 1179px) {
  .home-page[data-public-style="editorial"] .hero { gap: 0 22px; padding: 0; }
  .home-page[data-public-style="editorial"] .hero h1 { font-size: 32px; }
}
@media (max-width: 820px) {
  .home-page[data-public-style="editorial"] .hero {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "copy" "radar" "stats";
    gap: 24px;
    order: 0;
    padding: 0;
    margin-bottom: 22px;
  }
  .home-page[data-public-style="editorial"] .hero h1 { font-size: clamp(29px,6.3vw,36px); }
  .home-page[data-public-style="editorial"] .hero-description { font-size: 13px; }
  .home-page[data-public-style="editorial"] .hero-stats { flex-wrap: nowrap; gap: 16px; justify-content: space-between; }
  .home-page[data-public-style="editorial"] .hero-stats > * { min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
  .home-page[data-public-style="editorial"] .hero-stats strong { font-size: 25px; }
  .home-page[data-public-style="editorial"] .hero-stats span { font-size: 11px; line-height: 1.6; }
  .home-page[data-public-style="editorial"] .radar-panel { padding: 16px 14px 8px; }
  .home-page[data-public-style="editorial"] .radar { width: min(calc(100% - 28px),286px); }
  .home-page[data-public-style="editorial"] .section-heading h2 { font-size: 25px; }
}
@media (max-width: 360px) {
  .home-page[data-public-style="editorial"] .hero { padding-inline: 0; }
  .home-page[data-public-style="editorial"] .hero h1 { font-size: 29px; }
  .home-page[data-public-style="editorial"] .hero-stats { gap: 9px; }
}

/* Bring the catalog into the desktop's first viewport. */
@media (min-width: 821px) {
  .home-page[data-public-style="editorial"] .hero-kicker { display: none; }
  .home-page[data-public-style="editorial"] .hero-stats { align-self: end; }
  .home-page[data-public-style="editorial"] .radar-footer { justify-content: flex-end; padding-top: 5px; }
  .home-page[data-public-style="editorial"] .radar-footer > span { display: none; }
  .home-page[data-public-style="editorial"] .bank-directory { padding-bottom: 16px; }
  .home-page[data-public-style="editorial"] .directory-heading { margin-bottom: 9px; }
  .home-page[data-public-style="editorial"] .directory-heading h2 { font-size: 13px; }
  .home-page[data-public-style="editorial"] .bank-directory-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .home-page[data-public-style="editorial"] .bank-tile { min-height: 34px; padding: 7px 6px; gap: 5px; border-radius: 7px; }
  .home-page[data-public-style="editorial"] .bank-tile > span:last-child { display: flex; align-items: baseline; gap: 4px; }
  .home-page[data-public-style="editorial"] .bank-tile strong { font-size: 11px; }
  .home-page[data-public-style="editorial"] .bank-tile small { margin: 0; font-size: 10px; }
  .home-page[data-public-style="editorial"] .bank-count-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .home-page[data-public-style="editorial"] .bank-tile .bank-mark { min-width: 16px; width: 16px; height: 16px; font-size: 7px; border-radius: 4px; }
  .home-page[data-public-style="editorial"] .section-heading { margin-bottom: 14px; }
  .home-page[data-public-style="editorial"] .section-heading .eyebrow { display: none; }
  .home-page[data-public-style="editorial"] .section-heading h2 { font-size: 23px; }
  .home-page[data-public-style="editorial"] .card-footer-meta { flex: 1 1 140px; }
  .home-page[data-public-style="editorial"] .campaign-card .detail-link { width: auto; min-width: 100px; margin-left: auto; gap: 14px; }
}
@media (min-width: 1180px) {
  .home-page[data-public-style="editorial"] .radar-panel { position: relative; padding-bottom: 14px; }
  .home-page[data-public-style="editorial"] .radar-footer { position: absolute; right: 14px; bottom: 8px; border: 0; padding: 0; }
  .home-page[data-public-style="editorial"] .explore-section { padding-top: 18px; }
  .home-page[data-public-style="editorial"] .catalog { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "tools tools" "sort pager" "note note" "cards cards"; align-items: center; gap: 10px 16px; }
  .home-page[data-public-style="editorial"] .catalog-tools { grid-area: tools; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 20px; margin-bottom: 0; }
  .home-page[data-public-style="editorial"] .catalog-tabs { margin-bottom: 0; align-self: center; }
  .home-page[data-public-style="editorial"] #catalog-search-host { min-width: 0; }
  .home-page[data-public-style="editorial"] .catalog-tools .result-line { grid-column: 1 / -1; margin-top: 0; }
  .home-page[data-public-style="editorial"] #sort-hint { grid-area: sort; margin: 0; font-size: 11px; line-height: 1.6; }
  .home-page[data-public-style="editorial"] #catalog-pager { grid-area: pager; padding: 0; gap: 8px; flex-wrap: nowrap; }
  .home-page[data-public-style="editorial"] #catalog-pager span { font-size: 11px; white-space: nowrap; }
  .home-page[data-public-style="editorial"] #catalog-pager .button { min-height: 30px; padding: 6px 8px; font-size: 11px; }
  .home-page[data-public-style="editorial"] .catalog > .version-note { grid-area: note; margin: 0 0 4px; line-height: 1.7; }
  .home-page[data-public-style="editorial"] #campaign-grid { grid-area: cards; }
}
:root:not([data-theme="night"]) .home-page[data-public-style="editorial"] .desktop-shell { background: #efefea; }
.home-page[data-public-style="editorial"] .campaign-card .reward { background: color-mix(in srgb,var(--bank-color) 5%,var(--paper)); }
.home-page[data-public-style="editorial"] .radar-panel :is(a,button):focus-visible { outline: 2px solid var(--hero-gold); outline-offset: 3px; }
:root[data-theme="night"] .home-page[data-public-style="editorial"] .hero-actions .button-primary { color: #192a22; }
:root[data-theme="night"] .home-page[data-public-style="editorial"] .hero-actions .button-primary:hover { color: #ffffff; }

/* Membership status has its own palette, independent of the current page. */
:is(#svip-entry,#desktop-member-entry):is([data-member-state="active"],[data-member-state="inactive"]) {
  --member-entry-ink: #71501e;
  --member-entry-edge: #c9a35f;
  --member-entry-surface: linear-gradient(115deg,#fbf3df,#f3e4bc);
  color: var(--member-entry-ink);
  background: var(--member-entry-surface);
  border: 1px solid var(--member-entry-edge);
  border-radius: 10px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #ffffffb3,0 2px 7px #71501e0d;
}
:is(#svip-entry,#desktop-member-entry)[data-member-state="inactive"] {
  --member-entry-ink: #fffaff;
  --member-entry-focus: #5d3d90;
  --member-entry-edge: #7755af;
  --member-entry-surface: linear-gradient(115deg,#6f4aa8,#4d3b83);
  box-shadow: inset 0 1px 0 #ffffff26,0 3px 10px #62449826;
}
:is(#svip-entry,#desktop-member-entry):is([data-member-state="active"],[data-member-state="inactive"]) .desktop-nav-icon {
  color: inherit;
  stroke-width: 1.9;
  fill: color-mix(in srgb,currentColor 12%,transparent);
}
:is(#svip-entry,#desktop-member-entry):is([data-member-state="active"],[data-member-state="inactive"]):focus-visible {
  outline: 2px solid var(--member-entry-focus,var(--member-entry-ink));
  outline-offset: 3px;
}
html[data-theme="night"] :is(#svip-entry,#desktop-member-entry)[data-member-state="active"] {
  --member-entry-ink: #f2d595;
  --member-entry-edge: #92733b;
  --member-entry-surface: linear-gradient(115deg,#3d3221,#2d2a20);
  box-shadow: inset 0 1px 0 #f2d59512,0 2px 7px #0000001a;
}
html[data-theme="night"] :is(#svip-entry,#desktop-member-entry)[data-member-state="inactive"] {
  --member-entry-ink: #f4ebff;
  --member-entry-focus: #d9c5ff;
  --member-entry-edge: #9c83cf;
  --member-entry-surface: linear-gradient(115deg,#62459a,#403366);
  box-shadow: inset 0 1px 0 #ffffff1a,0 3px 10px #00000026;
}
/* An action label and arrow make workspace navigation distinct from a badge. */
:is(#svip-entry,#desktop-member-entry)[data-member-state="active"]::after {
  content: '→';
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 8px;
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 1179px) {
  .network-page #desktop-member-entry {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
}
@media (max-width: 680px) {
  .network-page .primary-nav a {
    flex: 1;
    min-width: 0;
    padding-inline: 5px;
    white-space: normal;
    text-align: center;
  }
}
@media (min-width: 1180px) {
  .desktop-shell :is(#svip-entry,#desktop-member-entry):is([data-member-state="active"],[data-member-state="inactive"]) {
    min-height: 44px;
    padding: 11px 12px;
  }
  .desktop-sidebar-collapsed .desktop-shell :is(#svip-entry,#desktop-member-entry):is([data-member-state="active"],[data-member-state="inactive"]) {
    padding-inline: 0;
  }
  .desktop-sidebar-collapsed :is(#svip-entry,#desktop-member-entry)[data-member-state="active"]::after {
    display: none;
  }
}
