:root {
  --bg: #10100f;
  --surface: #191815;
  --surface-2: #242116;
  --text: #fff8df;
  --muted: #c9bfa0;
  --accent: #ffd447;
  --accent-2: #ff8a00;
  --line: rgba(255, 212, 71, 0.22);
  --radius: 22px;
  --shadow: 0 22px 60px rgba(0,0,0,.35);
  --font-main: 'Montserrat Alternates', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top left, rgba(255,212,71,.16), transparent 34%), var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; }
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.page-shell { background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); }
.kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
h1 { font-size: clamp(2.1rem, 6vw, 4.7rem); line-height: 1.02; margin: 10px 0 18px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-top: 36px; }
p { color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1d1300; }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); }
.notice { border-left: 4px solid var(--accent); padding: 16px 18px; background: rgba(255,212,71,.08); border-radius: 14px; color: var(--muted); }
@media (max-width: 720px) { main { width: min(100% - 24px, 1120px); padding-top: 28px; } .btn { width: 100%; } }


/* Home page layout */
.home-article { display: grid; gap: 30px; }
.hero-grid, .content-section, .quick-card, .outline-card, .conclusion-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 28px; align-items: center; padding: clamp(22px, 4vw, 42px); overflow: hidden; }
.hero-copy p { font-size: 1.04rem; }
.hero-media, .side-image, .wide-image { margin: 0; }
.hero-media img, .side-image img, .wide-image img { width: 100%; height: auto; display: block; border-radius: 20px; border: 1px solid rgba(255,255,255,.11); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.quick-card, .outline-card { padding: clamp(20px, 3vw, 34px); }
.quick-card h2, .outline-card h2 { margin-top: 0; }
.table-wrap { width: 100%; overflow-x: auto; border-radius: 18px; border: 1px solid rgba(255,255,255,.10); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: rgba(0,0,0,.18); }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.09); color: var(--muted); }
th { color: #211300; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 900; }
tr:last-child td { border-bottom: 0; }
.toc-list { columns: 2; gap: 34px; padding-left: 20px; }
.toc-list li { break-inside: avoid; margin: 7px 0; color: var(--muted); }
.toc-list a, .notice-section a { color: var(--accent); font-weight: 800; text-decoration: none; }
.content-section { padding: clamp(22px, 4vw, 42px); }
.content-section.alt-section { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: center; }
.content-section:not(.alt-section) > .side-image { margin: 22px 0; }
.content-section h2:first-child, .content-section > div h2:first-child { margin-top: 0; }
.content-section h3 { color: var(--accent); margin-top: 28px; font-size: clamp(1.15rem, 2vw, 1.45rem); }
ul, ol { color: var(--muted); padding-left: 22px; }
li { margin: 7px 0; }
.notice-section { border-left: 5px solid var(--accent); background: linear-gradient(145deg, rgba(255,212,71,.13), rgba(255,255,255,.02)); }
.faq-section details { border: 1px solid rgba(255,255,255,.10); border-radius: 16px; background: rgba(0,0,0,.18); padding: 15px 18px; margin: 12px 0; }
.faq-section summary { cursor: pointer; font-weight: 900; color: var(--text); }
.faq-section details[open] { border-color: rgba(255,212,71,.38); }
.conclusion-card { padding: clamp(22px, 4vw, 42px); }
.conclusion-card .wide-image { margin-bottom: 26px; }
.conclusion-card .wide-image img { max-height: 420px; object-fit: cover; }
@media (max-width: 880px) {
  .hero-grid, .content-section.alt-section { grid-template-columns: 1fr; }
  .toc-list { columns: 1; }
  table { min-width: 520px; }
}
@media (max-width: 520px) {
  .hero-grid, .content-section, .quick-card, .outline-card, .conclusion-card { border-radius: 18px; }
  th, td { padding: 12px; }
}

/* Horizontal scroll fix */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  position: relative;
  min-width: 0;
}

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

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

main,
section,
article,
header,
footer,
nav,
div {
  max-width: 100%;
}

p,
li,
a,
span,
strong,
small,
td,
th,
summary {
  overflow-wrap: anywhere;
}

.table-wrap,
.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hero-grid,
.content-section,
.quick-card,
.outline-card,
.conclusion-card,
.page-shell {
  overflow: hidden;
}

@media (max-width: 520px) {
  main {
    width: calc(100% - 20px);
  }

  table {
    min-width: 480px;
  }
}
