@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --font-sans: "Inter", ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", serif;

  --background: #f6f5f4;
  --bg-rgb: 246, 245, 244;
  --foreground: #1f1f1f;
  --card: #fdfdfc;
  --card-rgb: 253, 253, 252;
  --muted: #e9e7e3;
  --muted-foreground: #5c5c5c;
  --border: #c4c2c0;
  --accent: #e3e9e3;
  --accent-foreground: #2d4f34;

  --nav-theme: #a91e1e;
  --nav-theme-rgb: 169, 30, 30;
  --nav-theme-light: #f6a3a3;
  --on-primary: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 45px rgba(20, 20, 20, 0.08);
  --radius: 0.25rem;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --background: #121212;
  --bg-rgb: 18, 18, 18;
  --foreground: #f1efeb;
  --card: #1c1c1c;
  --card-rgb: 28, 28, 28;
  --muted: #2b2b2b;
  --muted-foreground: #b9b4ac;
  --border: #4a4a4a;
  --accent: #293129;
  --accent-foreground: #e7ece7;

  --nav-theme: #f77a7a;
  --nav-theme-rgb: 247, 122, 122;
  --nav-theme-light: #8f1717;
  --on-primary: #151515;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.15;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

svg {
  display: block;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--nav-theme);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);

  background: rgba(var(--bg-rgb), 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: var(--muted);
  color: var(--foreground);
}

.nav-link.active {
  color: var(--foreground);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.nav-group {
  position: relative;
}

.nav-group:hover .nav-link svg,
.nav-group:focus-within .nav-link svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  width: 320px;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-card {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--card-rgb), 0.97);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.dropdown-label {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--muted);
}

.dropdown-item .dd-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--muted);
  color: var(--nav-theme);
}

.dropdown-item .dd-icon svg {
  width: 14px;
  height: 14px;
}

.dropdown-item span {
  line-height: 1.35;
  font-weight: 500;
}

.dropdown-item.view-all {
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  margin-top: 4px;
  padding-top: 10px;
  color: var(--nav-theme);
  font-weight: 600;
}

.dropdown-item.view-all svg {
  width: 16px;
  height: 16px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: end;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(var(--bg-rgb), 0.6);
  box-shadow: var(--shadow-sm);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--muted-foreground);
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-button:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.menu-toggle {
  display: none;
}

/* ============ Layout ============ */

.page-main {
  width: 100%;
  max-width: 1472px;
  margin: 0 auto;
  padding: 40px 32px;
}

.article-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px;
}

.section-stack > * + * {
  margin-top: 48px;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--nav-theme);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--nav-theme) 88%, black);
}

.btn-secondary {
  border: 1px solid rgba(var(--nav-theme-rgb), 0.35);
  background: rgba(var(--nav-theme-rgb), 0.08);
  color: var(--nav-theme);
}

.btn-secondary:hover {
  border-color: var(--nav-theme-light);
  background: rgba(var(--nav-theme-rgb), 0.14);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* ============ Home hero ============ */

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 44px 48px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nav-theme);
}

.hero-copy h1 {
  margin-top: 10px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.2px;
}

.hero-lede {
  max-width: 580px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .btn {
  min-height: 48px;
}

.hero-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.45);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.hero-tertiary:hover {
  border-color: var(--nav-theme-light);
  color: var(--foreground);
}

.hero-tertiary .dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--nav-theme);
}

.hero-tertiary svg {
  width: 16px;
  height: 16px;
}

.hero-media {
  min-width: 0;
}

.hero-image {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--muted);
  box-shadow: var(--shadow-sm);
}

.hero-image img {
  width: 100%;
  height: auto;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.7);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.pill-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-foreground);
}

/* ============ Quick answer module ============ */

.quick-module {
  position: relative;
  overflow: hidden;
  padding: 32px 36px;
  border: 1px solid rgba(var(--nav-theme-rgb), 0.35);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(var(--nav-theme-rgb), 0.13), var(--card) 55%, rgba(var(--card-rgb), 0.55));
  box-shadow: var(--shadow-sm);
}

.quick-module::after {
  content: "";
  position: absolute;
  top: -96px;
  right: -80px;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  background: rgba(var(--nav-theme-rgb), 0.1);
  filter: blur(48px);
  pointer-events: none;
}

.module-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(var(--nav-theme-rgb), 0.2);
  border-radius: 12px;
  background: rgba(var(--bg-rgb), 0.7);
  color: var(--nav-theme);
  box-shadow: var(--shadow-sm);
}

.module-icon svg {
  width: 24px;
  height: 24px;
}

.quick-module h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.9px;
}

.quick-module h2 a {
  text-decoration: underline;
  text-decoration-color: rgba(var(--nav-theme-rgb), 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.quick-module h2 a:hover {
  color: var(--nav-theme);
}

.module-desc {
  position: relative;
  max-width: 760px;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.quick-answer {
  position: relative;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(var(--nav-theme-rgb), 0.5);
  border-radius: 12px;
  background: rgba(var(--nav-theme-rgb), 0.1);
}

.qa-answer {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.qa-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.qa-list li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.qa-list li + li {
  margin-top: 8px;
}

.qa-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--nav-theme);
}

/* ============ Video ============ */

.video-section {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ Explore grid ============ */

.section-title-lg {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.2px;
}

.section-sub {
  max-width: 680px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 1152px;
  margin: 28px auto 0;
}

.explore-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--card-rgb), 0.55);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.explore-card:hover {
  transform: translateY(-2px);
  border-color: var(--nav-theme-light);
  background: rgba(var(--card-rgb), 0.8);
}

.explore-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.explore-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.explore-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(var(--nav-theme-rgb), 0.1);
  color: var(--nav-theme);
}

.explore-icon svg {
  width: 16px;
  height: 16px;
}

.explore-card h3 {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.explore-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted-foreground);
}

/* ============ About card ============ */

.about-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.about-card > h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.about-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--muted);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-copy p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.about-copy .btn {
  margin-top: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.stat {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.stat-value {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

/* ============ Latest guides ============ */

.latest-guides {
  text-align: center;
}

.latest-guides > h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.9px;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 28px auto 0;
  text-align: left;
}

.latest-col {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--card-rgb), 0.55);
  overflow: hidden;
}

.latest-item + .latest-item {
  border-top: 1px solid var(--border);
}

.latest-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.latest-item summary::-webkit-details-marker {
  display: none;
}

.latest-item summary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
}

.latest-item[open] summary svg {
  transform: rotate(180deg);
}

.latest-body {
  padding: 0 20px 18px;
}

.latest-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.latest-body a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nav-theme);
}

.latest-body a svg {
  width: 14px;
  height: 14px;
}

.center-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ============ Module heading with icon ============ */

.module-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-title .module-icon {
  width: 44px;
  height: 44px;
}

.module-title h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.module-sub {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ============ Data table ============ */

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table thead {
  background: rgba(233, 231, 227, 0.6);
}

.data-table th {
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.data-table td {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.data-table .caption-cell {
  width: 27%;
  font-weight: 600;
  line-height: 1.6;
}

.report-figure {
  margin: 0;
}

.report-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.report-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
}

/* ============ Codes module ============ */

.codes-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.codes-module-head h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.codes-module-head p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-theme);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.empty-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.empty-card p {
  font-size: 14px;
  color: var(--muted-foreground);
}

.empty-card .btn {
  margin-top: 14px;
}

/* ============ FAQ ============ */

.faq-section {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.faq-section > h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.9px;
}

.faq-section > p {
  max-width: 620px;
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.faq-list {
  margin-top: 28px;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-foreground);
  text-align: left;
}

.faq-answer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-weight: 600;
  color: var(--nav-theme);
}

/* ============ Final CTA ============ */

.final-cta {
  padding: 44px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--muted) 55%, var(--background));
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.final-cta h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.final-cta p {
  max-width: 640px;
  margin: 8px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.final-cta .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.final-cta .btn {
  border-radius: 4px;
  min-height: 40px;
  padding: 8px 20px;
  font-size: 14px;
}

/* ============ Footer ============ */

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: rgba(var(--card-rgb), 0.3);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px;
}

.footer-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.footer-card strong {
  font-size: 16px;
  font-weight: 700;
}

.footer-card p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.footer-notice {
  margin: 32px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

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

.footer-about {
  grid-column: span 2;
}

.footer-grid h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
}

.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.footer-about p {
  max-width: 560px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.footer-links {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted-foreground);
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ============ Article pages ============ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 4px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  height: 100%;
  background: var(--nav-theme);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
  min-height: calc(100vh - 12rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.breadcrumbs .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a:hover {
  color: var(--foreground);
}

.breadcrumbs svg {
  width: 16px;
  height: 16px;
}

.breadcrumbs [aria-current="page"] {
  color: var(--foreground);
}

.article-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.2px;
}

.article-lede {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.article-content {
  margin-top: 40px;
  min-width: 0;
}

.prose p {
  margin: 20px 0;
  font-size: 16px;
  line-height: 2;
}

.prose h2 {
  margin: 40px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  scroll-margin-top: 96px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 32px 0 0;
  font-size: 20px;
  font-weight: 700;
  scroll-margin-top: 96px;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 16px;
}

.prose strong {
  font-weight: 600;
  color: var(--nav-theme);
}

.prose a {
  font-weight: 500;
  color: var(--nav-theme);
  text-underline-offset: 4px;
}

.prose a:hover {
  text-decoration: underline;
}

.prose ul,
.prose ol {
  margin: 20px 0;
  padding-left: 24px;
}

.prose li {
  padding-left: 4px;
  line-height: 1.75;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--nav-theme);
}

.prose figure {
  margin: 32px 0;
  display: flex;
  justify-content: center;
}

.prose figure img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.answer-box {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid rgba(var(--nav-theme-rgb), 0.4);
  border-radius: 12px;
  background: rgba(var(--nav-theme-rgb), 0.08);
}

.answer-box .answer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nav-theme);
}

.answer-box p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.answer-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.answer-box li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.prose .table-wrap {
  margin: 24px 0;
}

.prose .data-table td {
  line-height: 1.6;
}

.prose .data-table th {
  letter-spacing: 0.12em;
}

.related-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related-section h2 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.related-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(var(--card-rgb), 0.7);
  transition: border-color 0.15s ease;
}

.related-card:hover {
  border-color: var(--nav-theme-light);
}

.related-card .related-icon {
  margin-bottom: 12px;
  color: var(--nav-theme);
}

.related-card .related-icon svg {
  width: 20px;
  height: 20px;
}

.related-card h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.related-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* TOC */

.toc-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  scrollbar-width: none;
}

.toc-sidebar::-webkit-scrollbar {
  display: none;
}

.toc-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(var(--card-rgb), 0.7);
}

.toc-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.toc-heading svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.toc-heading[aria-expanded="false"] svg {
  transform: rotate(180deg);
}

.toc-links {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.toc-links a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.toc-links a:hover,
.toc-links a.active {
  color: var(--foreground);
}

.toc-links a.active {
  font-weight: 600;
}

.toc-mobile {
  display: none;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(var(--card-rgb), 0.7);
}

/* Codes */

.code-status-card {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.code-status-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
}

.code-status-card p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted-foreground);
}

.status-glance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.status-chip {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-size: 14px;
}

.status-chip strong {
  color: var(--foreground);
}

.status-chip span {
  color: var(--muted-foreground);
}

/* Timeline */

.timeline {
  position: relative;
  margin-top: 24px;
  padding-left: 24px;
  border-left: 2px solid rgba(var(--nav-theme-rgb), 0.3);
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 8px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--background);
  border-radius: 50%;
  background: var(--nav-theme);
  box-shadow: 0 0 0 1px var(--nav-theme);
}

.timeline-item time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.timeline-card {
  margin-top: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.timeline-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
}

.timeline-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* News cards */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.news-card:hover {
  border-color: var(--nav-theme-light);
  transform: translateY(-2px);
}

.news-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.news-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.news-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-theme);
}

.news-card .read-more svg {
  width: 16px;
  height: 16px;
}

/* Legal pages */

.legal-page {
  max-width: 768px;
  margin: 0 auto;
  padding: 56px 0;
}

.legal-page h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
}

.legal-page p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted-foreground);
}

/* ============ Search dialog ============ */

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 20px 32px;
  background: rgba(10, 10, 10, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.search-dialog.open {
  display: flex;
}

.search-panel {
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.search-bar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.search-bar input::placeholder {
  color: var(--muted-foreground);
}

.search-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--muted-foreground);
}

.search-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.search-close svg {
  width: 16px;
  height: 16px;
}

.search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
}

.search-result {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
}

.search-result:hover,
.search-result:focus {
  background: var(--muted);
  outline: none;
}

.search-result strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.search-result span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.search-empty {
  padding: 24px 16px;
  font-size: 14px;
  color: var(--muted-foreground);
  text-align: center;
}

/* ============ Mobile menu ============ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  background: var(--background);
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  padding: 20px 24px 48px;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu nav a {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-weight: 600;
}

.mobile-menu nav a small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* ============ Responsive ============ */

@media (max-width: 1200px) {
  .hero-copy h1 {
    font-size: 42px;
  }

  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding: 8px;
    font-size: 13px;
  }
}

@media (max-width: 1023px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc-sidebar {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 36px;
  }

  .hero-copy h1 {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .article-title {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .page-main,
  .article-main {
    padding: 32px 24px;
  }

  .container,
  .footer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

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

  .explore-card,
  .explore-card:nth-child(4),
  .explore-card:nth-child(5) {
    grid-column: auto;
  }

  .explore-card:last-child {
    grid-column: 1 / -1;
    min-height: 140px;
  }

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

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }

  .latest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table .caption-cell {
    width: 40%;
  }
}

@media (max-width: 640px) {
  .hero-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .hero-copy h1 {
    font-size: 34px;
    letter-spacing: -0.8px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quick-module {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .quick-module h2 {
    font-size: 27px;
  }

  .module-desc {
    font-size: 16px;
  }

  .module-title h2 {
    font-size: 23px;
  }

  .section-title-lg {
    font-size: 36px;
  }

  .about-card {
    padding: 20px;
  }

  .about-card > h2 {
    font-size: 26px;
  }

  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-section > h2 {
    font-size: 30px;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .final-cta {
    padding: 32px 20px;
  }

  .final-cta h2 {
    font-size: 27px;
  }

  .article-title {
    font-size: 32px;
    letter-spacing: -0.7px;
  }

  .article-lede {
    font-size: 16px;
  }

  .prose p {
    font-size: 15px;
    line-height: 1.9;
  }

  .related-grid,
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-main,
  .article-main {
    padding: 24px 16px;
  }

  .container,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .data-table th {
    padding: 10px 12px;
    letter-spacing: 0.1em;
  }

  .data-table td {
    padding: 14px 12px;
  }

  .data-table .caption-cell {
    width: 45%;
    font-size: 13px;
  }

  .report-label {
    font-size: 13px;
  }

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

  .codes-module-head {
    flex-direction: column;
    gap: 10px;
  }

  .legal-page {
    padding: 32px 0;
  }

  .legal-page h1 {
    font-size: 34px;
  }
}

/* theme icon visibility */
:root:not([data-theme="dark"]) .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }

/* hide native search clear button; the dialog provides its own close control */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.news-hero {
  max-width: 896px;
  padding: 24px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(var(--card-rgb), 0.55);
  box-shadow: var(--shadow-sm);
}

.news-hero .article-lede {
  margin-top: 20px;
}

.news-subhead {
  margin-top: 40px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.news-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--muted);
  color: var(--nav-theme);
}

.news-icon svg {
  width: 20px;
  height: 20px;
}

.news-card:hover h3 {
  color: var(--nav-theme);
}

@media (min-width: 641px) and (max-width: 1023px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.notfound-page {
  max-width: 768px;
  margin: 0 auto;
  padding: 96px 0;
  text-align: center;
}

.notfound-page h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
}

.notfound-page p {
  margin: 16px 0 28px;
  font-size: 16px;
  color: var(--muted-foreground);
}

/* News index rewrite */
.news-kicker {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nav-theme);
}

.news-hero .article-lede + .article-lede {
  margin-top: 16px;
}

.news-companion {
  max-width: 896px;
}

.news-companion .prose {
  margin-top: -4px;
}

@media (max-width: 640px) {
  .news-kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

/* News guide screenshot roundup */
.headline-roundup {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.headline-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.prose .headline-shot {
  margin: 0;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--muted);
}

.prose .headline-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.headline-copy {
  flex: 1;
  padding: 14px 16px 16px;
}

.prose .headline-copy h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--nav-theme);
}

.prose .headline-copy p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.prose .scene-figure {
  display: block;
  max-width: 780px;
  margin: 28px auto;
}

.prose .scene-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--muted);
}

@media (max-width: 720px) {
  .headline-roundup {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
