/* home-layout-shell.css — ticket 284 C: public shell and the Quota Resets station only.
   Loaded last by home_stations.client_html (after home-stations.css and every module sheet),
   versioned by its own bytes. Layout only: no content, numbers, data, hooks or motion.
   Scope: :root[data-station-active] (the homepage) — announcements, the related-sites row at
   the end of Community, and #quota-reset. News, IQ, Speed and Effort modules are not touched.
   Tokens come from radar-ui.css, so dark/light, forced colours and print follow it. */

/* ── 2 · Related sites row at the end of Community ───────────────────────
   Four links used to run together as one line of text ("速蹬雷达 ↗鹈鹕杯CC花园…"). */
:root[data-station-active] .station-external-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  margin: var(--s-6) 0 0; padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
}
:root[data-station-active] .station-external-links > a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  color: var(--text-2); font: var(--w-medium) var(--fs-sm)/1.2 var(--font-sans);
  white-space: nowrap; text-decoration: none;
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
:root[data-station-active] .station-external-links > a:hover { border-color: var(--accent-line); color: var(--accent); text-decoration: none; }
:root[data-station-active] .station-external-links > a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) {
  :root[data-station-active] .station-external-links > a { flex: 1 1 calc(50% - var(--s-2)); justify-content: center; min-height: 40px; }
}

/* ── 3 · Quota Resets station ─────────────────────────────────────────── */
/* 3a · One section-head scale. Reset Radar, the 28-day challenge and Tibo Updates used 28px
   titles under a 24px station title; all section titles now sit one step below the station. */
:root[data-station-active] #quota-reset :is(.qr-head h3, .tr-heading .desktop-tibo-radar-kicker, .t28 h2#t28-title) {
  font-size: var(--fs-xl); font-weight: var(--w-bold); line-height: 1.3;
}
:root[data-station-active] #quota-reset .qr-head { align-items: baseline; row-gap: 6px; }
:root[data-station-active] #quota-reset .qr-kicker { flex-basis: 100%; }
:root[data-station-active] #quota-reset .tr-count strong { font-size: 24px; }

/* 3b · Status: the two tracks are the cards; the outer panel no longer frames them a second time. */
:root[data-station-active] #quota-reset .qr-status {
  margin-block: var(--s-2) var(--s-6); padding: 0; border: 0; border-radius: 0; background: none;
}

/* 3c · Reset Radar: the title and its fold control share one row. The control keeps its full
   accessible name ("收起/展开 重置雷达 …"); only the repeated title text is hidden visually. */
:root[data-station-active] #quota-reset #reset-radar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s-4);
}
:root[data-station-active] #quota-reset #reset-radar > * { grid-column: 1 / -1; }
:root[data-station-active] #quota-reset #reset-radar > .tr-head { grid-column: 1; grid-row: 1; }
:root[data-station-active] #quota-reset #reset-radar > .tr-toggle {
  position: relative; grid-column: 2; grid-row: 1; align-self: end;
  width: auto; min-height: 40px; margin: 0; padding: 0 var(--s-3); gap: var(--s-2);
  border-color: var(--line); background: var(--surface);
}
:root[data-station-active] #quota-reset #reset-radar > .tr-toggle:hover { border-color: var(--accent-line); background: var(--surface-2); }
:root[data-station-active] #quota-reset #reset-radar > .tr-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:root[data-station-active] #quota-reset #reset-radar > .tr-toggle .tr-toggle-label strong {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
:root[data-station-active] #quota-reset #reset-radar > .tr-toggle .tr-toggle-label small { color: var(--text-2); font-size: var(--fs-xs); white-space: nowrap; }
:root[data-station-active] #quota-reset #reset-radar > .tr-toggle .tr-chevron { margin-left: 0; }
:root[data-station-active] #quota-reset #reset-radar > .tr-body { margin-top: var(--s-4); }

@media (max-width: 640px) {
  /* Section jumps wrap instead of hiding the last ones in a scroller. */
  :root[data-station-active] #quota-reset .station-page-jumps { flex-wrap: wrap; overflow: visible; }
  :root[data-station-active] #quota-reset .station-page-jumps a { flex: 1 0 auto; padding: 0 10px; }
  :root[data-station-active] #quota-reset .qr-status { margin-bottom: var(--s-5); }
  /* Phones: the fold control becomes a 44px icon button; its accessible name is unchanged. */
  :root[data-station-active] #quota-reset #reset-radar > .tr-toggle { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  :root[data-station-active] #quota-reset #reset-radar > .tr-toggle .tr-toggle-label small {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
}

@media (forced-colors: active) {
  :root[data-station-active] .station-external-links > a,
  :root[data-station-active] #quota-reset #reset-radar > .tr-toggle { border: 1px solid ButtonText; }
}
@media print {
  :root[data-station-active] .station-external-links { display: none; }
}

@media(max-width:640px){:root[data-station-active] aside.promo-notice{gap:4px 10px;padding:6px 10px}}
