:root {
  --brand: #2b6cb0;
  --brand-dark: #1e4e8c;
  --brand-light: #4a8fd4;
  --accent: #f6ad55;
  --accent-dark: #dd8a30;
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1a2433;
  --text-soft: #4a5768;
  --text-muted: #6b7a8d;
  --border: rgba(43, 108, 176, 0.14);
  --border-strong: rgba(43, 108, 176, 0.28);
  --shadow-sm: 0 2px 8px rgba(26, 36, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 36, 51, 0.09);
  --shadow-lg: 0 18px 48px rgba(26, 36, 51, 0.13);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 68px;
  --gradient-hero: linear-gradient(135deg, #2b6cb0 0%, #4a8fd4 45%, #7cb2e6 100%);
  --gradient-accent: linear-gradient(135deg, #f6ad55 0%, #fbd38d 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

html[data-theme="dark"] {
  --brand: #5b9bd5;
  --brand-dark: #3d7ab8;
  --brand-light: #7cb2e6;
  --accent: #f6ad55;
  --accent-dark: #dd8a30;
  --bg: #0e1520;
  --bg-alt: #131c29;
  --bg-card: rgba(24, 34, 48, 0.78);
  --bg-glass: rgba(20, 30, 44, 0.6);
  --text: #e6edf6;
  --text-soft: #b3c1d2;
  --text-muted: #8595a9;
  --border: rgba(91, 155, 213, 0.18);
  --border-strong: rgba(91, 155, 213, 0.34);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --gradient-hero: linear-gradient(135deg, #16304f 0%, #1e4e8c 50%, #2b6cb0 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(43, 108, 176, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(246, 173, 85, 0.10), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.4em;
}

strong {
  color: var(--text);
}

time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

blockquote {
  margin: 0 0 1em;
  padding: 1em 1.4em;
  background: var(--bg-glass);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

blockquote p {
  margin: 0 0 0.5em;
  color: var(--text-soft);
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--brand);
}

.brand svg {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

.brand-name {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  background: rgba(43, 108, 176, 0.12);
  color: var(--brand);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-tools form {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 2px 2px 14px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header-tools form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.14);
}

.header-tools input[type="search"] {
  width: 150px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  padding: 8px 0;
  outline: none;
}

.header-tools input[type="search"]::placeholder {
  color: var(--text-muted);
}

.header-tools button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header-tools form button {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.header-tools form button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

#theme-toggle {
  background: rgba(43, 108, 176, 0.1);
  color: var(--brand);
  border: 1px solid var(--border-strong);
}

#theme-toggle:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
  background: var(--gradient-accent);
  color: #4a2c00;
  box-shadow: var(--shadow-sm);
}

#menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  max-width: var(--container);
  margin: 28px auto 0;
  padding: 0 20px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-lg);
  min-height: 340px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(246, 173, 85, 0.35), transparent 70%),
    radial-gradient(500px 400px at 5% 90%, rgba(255, 255, 255, 0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.7), transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.7), transparent 85%);
}

.hero-slider .slide {
  display: none;
  animation: slideFade 0.6s var(--ease);
}

.hero-slider .slide:first-of-type,
.hero-slider .slide.is-active {
  display: block;
}

@keyframes slideFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slider h1,
.hero-slider h2 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  max-width: 780px;
}

.hero-slider p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.hero-slider .cta {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.hero-slider .cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  background: var(--gradient-accent);
  color: #4a2c00;
}

.slider-controls {
  position: absolute;
  right: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 3vw, 28px);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider-controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.slider-controls button:hover,
.slider-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.stat .num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat .label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== Breadcrumb ===== */
#breadcrumb {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 20px;
}

#breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

#breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

#breadcrumb a {
  color: var(--text-soft);
}

#breadcrumb a:hover {
  color: var(--brand);
}

/* ===== Main Sections ===== */
main {
  display: block;
}

main > section:not(.hero):not(#breadcrumb) {
  max-width: var(--container);
  margin: 28px auto 0;
  padding: clamp(22px, 3.5vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

main > section:not(.hero):not(#breadcrumb):hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

main > section > h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 1.2em;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-accent);
}

main > section > h3 {
  margin-top: 1.6em;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}

main > section > h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
  flex-shrink: 0;
}

/* Section anchors spacing */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ===== News & Articles cards ===== */
#news,
#articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

#news > h2,
#articles > h2 {
  grid-column: 1 / -1;
}

#news article,
#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: 1.08rem;
}

#news article p,
#articles article p {
  margin-bottom: 0.5em;
  font-size: 0.94rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 0;
  position: relative;
}

#articles article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#articles article a:hover::after {
  transform: translateX(4px);
}

/* ===== Article detail sections ===== */
main > section[id^="article-"] {
  border-left: 4px solid var(--accent);
}

main > section[id^="article-"] h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

main > section[id^="article-"] p:first-of-type {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-strong);
}

/* ===== FAQ ===== */
#faq details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: rgba(43, 108, 176, 0.12);
  color: var(--brand);
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--gradient-hero);
  color: #fff;
}

#faq summary:hover {
  color: var(--brand);
  background: rgba(43, 108, 176, 0.05);
}

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.94rem;
  animation: slideFade 0.4s var(--ease);
}

/* ===== HowTo ===== */
#howto ol,
#howto ul {
  padding-left: 1.2em;
}

#howto ol li::marker {
  color: var(--brand);
  font-weight: 700;
}

#howto ul li::marker {
  color: var(--accent-dark);
}

/* ===== Contact ===== */
#contact address {
  font-style: normal;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#contact address p {
  margin: 0 0 0.5em;
}

#contact address p:last-child {
  margin-bottom: 0;
}

/* ===== Sitemap & Links ===== */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  background: var(--gradient-hero);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ===== Footer ===== */
#site-footer {
  margin-top: 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

#site-footer nav li {
  margin: 0;
}

#site-footer nav a {
  font-size: 0.85rem;
  color: var(--text-soft);
  position: relative;
}

#site-footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

#site-footer nav a:hover::after {
  width: 100%;
}

/* ===== Back to top ===== */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-hero);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.35s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  #main-nav ul {
    gap: 0;
  }

  #main-nav a {
    padding: 7px 9px;
    font-size: 0.84rem;
  }

  .header-tools input[type="search"] {
    width: 110px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    gap: 12px;
    padding: 10px 16px;
  }

  #menu-toggle {
    display: inline-block;
  }

  #main-nav {
    order: 10;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
    opacity: 0;
  }

  #main-nav.is-open {
    max-height: 640px;
    opacity: 1;
    padding-bottom: 12px;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  #main-nav a {
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .header-tools {
    margin-left: auto;
  }

  .header-tools form {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slider {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 8px 14px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero {
    margin-top: 18px;
    padding: 0 14px;
  }

  .hero-slider {
    border-radius: var(--radius);
    padding: 26px 22px 74px;
    min-height: 320px;
  }

  .hero-slider .cta {
    padding: 11px 24px;
    font-size: 0.92rem;
  }

  .slider-controls {
    right: 18px;
    bottom: 20px;
  }

  .hero-stats {
    gap: 10px;
    margin-top: 14px;
  }

  .stat {
    padding: 14px 10px;
    border-radius: var(--radius-sm);
  }

  .stat .label {
    font-size: 0.74rem;
  }

  #breadcrumb {
    padding: 0 14px;
    margin-top: 16px;
  }

  main > section:not(.hero):not(#breadcrumb) {
    margin: 16px 14px 0;
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  main > section > h2::after {
    width: 48px;
    height: 3px;
  }

  #news article,
  #articles article {
    padding: 16px;
  }

  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.94rem;
  }

  #faq summary::after {
    right: 14px;
  }

  #faq details p {
    padding: 0 16px 16px;
  }

  #contact address {
    padding: 16px;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  #site-footer {
    padding: 26px 14px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Print ===== */
@media print {
  #site-header,
  #back-to-top,
  .slider-controls,
  .header-tools,
  #menu-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}