/* ==========================================================================
   太阳游戏站 · 共享样式表 /assets/site.css
   深空黑底 + 太阳金锚点 + 霓虹状态色，侧轨导览式布局
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --void: #0A0C10;
  --panel: #141821;
  --panel-2: #10141C;
  --sun: #F5B301;
  --sun-hi: #FFD166;
  --cyan: #2DE2E6;
  --magenta: #FF3CAC;
  --white: #F4F7FB;
  --mist: #A8B0C2;
  --mist-2: #7E879B;
  --line: #2A3040;
  --ok: #38D39F;
  --warn: #FF5C5C;

  --shell: 1240px;
  --rail-w: 84px;
  --radius: 16px;
  --radius-sm: 10px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-head: "Inter", "HarmonyOS Sans SC", "MiSans", sans-serif;
  --font-body: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --shadow-island: 0 8px 22px rgba(0, 0, 0, .38);
  --shadow-panel: 0 18px 38px rgba(0, 0, 0, .42);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--void);
  background-image:
    radial-gradient(1100px 620px at 84% -10%, rgba(245, 179, 1, .11), transparent 62%),
    radial-gradient(900px 540px at -8% 12%, rgba(45, 226, 230, .07), transparent 60%),
    radial-gradient(760px 480px at 30% 118%, rgba(255, 60, 172, .06), transparent 64%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--sun);
  color: var(--void);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sun-hi);
  outline-offset: 3px;
}

:where(h1, h2, h3, h4, [id]) { scroll-margin-top: 104px; }

/* ---------- 4. Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  top: -72px;
  left: 16px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--sun);
  color: var(--void);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top .18s ease;
}

.skip-link:focus { top: 0; }

/* ---------- 5. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 72px; }
.section--tight { padding-block: 44px; }
.section--wide { padding-block: 96px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
.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)); }

/* ---------- 6. Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--sun), var(--cyan));
  border-radius: 2px;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  color: var(--white);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 14px;
  color: var(--white);
}

.lede {
  max-width: 62ch;
  margin-bottom: 20px;
  font-size: 1.03rem;
  color: var(--mist);
}

.note {
  font-size: .86rem;
  color: var(--mist-2);
}

.prose {
  max-width: 74ch;
  font-size: 16.5px;
  line-height: 1.88;
  color: #D6DCE7;
}

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.62rem;
  line-height: 1.34;
  color: var(--white);
  margin-top: 2em;
}

.prose h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 1.8em;
}

.prose ul, .prose ol {
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--white); }
.prose a {
  color: var(--cyan);
  text-underline-offset: 3px;
}
.prose blockquote {
  padding-left: 18px;
  border-left: 2px solid var(--sun);
  color: var(--mist);
}

/* ---------- 7. Components ---------- */
.panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 24, 33, .96), rgba(13, 16, 23, .96));
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.panel:hover {
  border-color: rgba(245, 179, 1, .45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
}

.panel--flat:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 12, 16, .6);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--mist);
  white-space: nowrap;
}

.tag--sun { color: var(--sun); border-color: rgba(245, 179, 1, .45); background: rgba(245, 179, 1, .1); }
.tag--cyan { color: var(--cyan); border-color: rgba(45, 226, 230, .4); background: rgba(45, 226, 230, .08); }
.tag--magenta { color: var(--magenta); border-color: rgba(255, 60, 172, .4); background: rgba(255, 60, 172, .08); }
.tag--ok { color: var(--ok); border-color: rgba(56, 211, 159, .4); background: rgba(56, 211, 159, .08); }
.tag--warn { color: var(--warn); border-color: rgba(255, 92, 92, .42); background: rgba(255, 92, 92, .08); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 179, 1, .5);
}

.btn--primary {
  background: linear-gradient(135deg, var(--sun-hi), var(--sun));
  color: var(--void);
  border-color: rgba(245, 179, 1, .6);
  box-shadow: 0 8px 22px rgba(245, 179, 1, .22);
}

.btn--primary:hover { border-color: var(--sun-hi); }

.btn--ghost {
  background: transparent;
  color: var(--mist);
}

.btn--ghost:hover { color: var(--white); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--sun);
}

.stat__label {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist-2);
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(42, 48, 64, .85);
  overflow: hidden;
}

.progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sun), var(--sun-hi));
}

.progress__fill--cyan { background: linear-gradient(90deg, var(--cyan), #7AF3F5); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(20, 24, 33, .72);
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table thead th {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist-2);
  background: rgba(10, 12, 16, .7);
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(245, 179, 1, .05); }

.data-table td.num,
.data-table .num {
  font-family: var(--font-mono);
  color: var(--sun);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist-2);
}

.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: #3A4152;
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--mist-2);
  transition: color .2s ease;
}
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--sun); }

/* ---------- 8. Media containers (for page-stage images) ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(140deg, #1B2130 0%, #0E121A 58%, #1C1608 100%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--21x9 { aspect-ratio: 21 / 9; }

.media--cut {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.media__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.media__glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 18%, rgba(245, 179, 1, .2), transparent 58%);
}

/* ==========================================================================
   9. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 12, 16, .88);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  min-height: 66px;
  margin-inline: auto;
  padding: 10px 24px;
}

/* --- brand island --- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 8px 18px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow-island);
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  transition: border-color .2s ease;
}

.brand:hover { border-color: rgba(245, 179, 1, .5); }

.brand-sun {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--sun-hi), var(--sun) 58%, #A97500 100%);
  box-shadow: 0 0 0 1px rgba(245, 179, 1, .35), 0 0 16px rgba(245, 179, 1, .5);
}

.brand-sun::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px dashed rgba(245, 179, 1, .42);
  border-radius: 50%;
  animation: brand-spin 16s linear infinite;
}

@keyframes brand-spin {
  to { transform: rotate(360deg); }
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .02em;
}

.brand-tagline {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .05em;
  color: var(--mist-2);
}

/* --- nav island --- */
.nav-pill {
  margin-inline: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow-island);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.nav-list a:hover {
  color: var(--white);
  background: rgba(244, 247, 251, .06);
}

.nav-list a[aria-current="page"] {
  color: var(--void);
  background: linear-gradient(135deg, var(--sun-hi), var(--sun));
  box-shadow: 0 0 0 1px rgba(245, 179, 1, .5), 0 4px 14px rgba(245, 179, 1, .26);
}

/* --- tools --- */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 17px;
  border: 1px solid rgba(245, 179, 1, .6);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sun-hi), var(--sun));
  color: var(--void);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(245, 179, 1, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tool-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 179, 1, .34);
}

.tool-top {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--mist);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.tool-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.tool-top:hover {
  color: var(--sun);
  border-color: rgba(245, 179, 1, .5);
  transform: translateY(-2px);
}

/* --- mobile toggle --- */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .2s ease;
}

.nav-toggle:hover { border-color: rgba(245, 179, 1, .5); }

.nav-toggle-bars {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: var(--white);
  transition: background .2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .25s ease;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { bottom: -5px; }

[data-nav-toggle][aria-expanded="true"] .nav-toggle-bars { background: transparent; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* --- reading progress line --- */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(42, 48, 64, .8);
}

.header-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sun), var(--sun-hi) 55%, var(--cyan));
  box-shadow: 0 0 12px rgba(245, 179, 1, .55);
  transition: width .12s linear;
}

/* ==========================================================================
   10. Brand rail (desktop only)
   ========================================================================== */
.brand-rail { display: none; }

.rail-sun {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sun-hi), var(--sun) 60%, #A97500);
  box-shadow: 0 0 14px rgba(245, 179, 1, .55);
}

.rail-mark {
  writing-mode: vertical-rl;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--mist);
}

.rail-divider {
  width: 24px;
  height: 1px;
  background: var(--line);
}

.rail-label {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: #5D6577;
}

.rail-current {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--sun);
}

.rail-meter {
  position: relative;
  flex: 1 1 auto;
  width: 3px;
  min-height: 56px;
  margin-block: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(42, 48, 64, .9);
}

.rail-meter-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(0deg, var(--sun), var(--sun-hi));
  box-shadow: 0 0 10px rgba(245, 179, 1, .6);
  transition: height .12s linear;
}

.rail-percent {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist-2);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 84px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0D1017 0%, var(--void) 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sun) 0%, var(--cyan) 38%, var(--magenta) 68%, transparent 100%);
  opacity: .85;
}

.site-footer .footer-shell {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 2.6fr);
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 44px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
}

.footer-line {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist-2);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sun);
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col-list a {
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-col-list a:hover { color: var(--white); }

.footer-col--contact p {
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 20px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mist);
}

.footer-note {
  max-width: 68ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist-2);
}

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (min-width: 1180px) {
  body { padding-left: var(--rail-w); }

  .brand-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: var(--rail-w);
    padding: 22px 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #11151E 0%, var(--panel) 42%, #0C1017 100%);
  }

  .header-shell { padding-inline: 40px; }
  .container { padding-inline: 40px; }
}

@media (max-width: 1080px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 14px; }
  .nav-list a { padding: 8px 11px; font-size: 13px; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: block; }

  .nav-pill {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    margin-inline: 0;
    padding: 10px;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }

  .nav-pill[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-list a {
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer .footer-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 48px;
  }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section { padding-block: 56px; }
  .section--wide { padding-block: 72px; }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .header-shell { padding: 10px 16px; gap: 10px; }
  .brand { padding: 7px 13px; gap: 8px; }
  .brand-sun { width: 18px; height: 18px; }
  .brand-name { font-size: 13px; }
  .tool-cta { padding: 8px 13px; font-size: 12px; }
  .tool-top { width: 34px; height: 34px; font-size: 13px; }
  .nav-toggle { width: 36px; height: 36px; }

  .container { padding-inline: 18px; }
  .site-footer .footer-shell { padding-inline: 18px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .panel { padding: 18px; }
  .display-title { font-size: clamp(1.75rem, 8vw, 2.3rem); }
}

/* ==========================================================================
   13. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .panel:hover,
  .btn:hover,
  .tool-cta:hover,
  .tool-top:hover { transform: none; }
}
