:root {
  --ink: #16202a;
  --muted: #5b6673;
  --line: #d8dee6;
  --paper: #ffffff;
  --soft: #f6f8fa;
  --blue: #1261a6;
  --green: #257a55;
  --gold: #9a6a00;
  --red: #b73a35;
  --shadow: 0 12px 30px rgba(23, 37, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--blue);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
}

.skip-link:focus {
  left: 8px;
}

.site-header,
.site-footer,
main > section {
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
}

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: white;
}

.site-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
}

.hero {
  padding-top: 46px;
  padding-bottom: 34px;
  background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
}

.hero > div {
  max-width: 760px;
}

.home-hero {
  border-bottom: 1px solid var(--line);
}

.slim-hero {
  background: var(--soft);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.lede {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.last-updated {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
  color: #574117;
}

.home-group,
.home-start,
.home-popular,
.hub-primary,
.hub-section,
.tool-block,
.content-section,
.fact-section,
.timeline-section,
.card-group,
.faq,
.sources,
.related,
.countdown,
.ad-slot {
  padding-top: 30px;
  padding-bottom: 30px;
}

.home-start,
.hub-primary,
.timeline-section,
.card-group {
  background: var(--soft);
}

.tool-grid,
.related-grid,
.start-grid,
.hub-action-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-grid a,
.related-card,
.start-card,
.hub-action,
.info-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: white;
  box-shadow: var(--shadow);
}

.tool-grid a span,
.related-card span,
.start-card span,
.hub-action span,
.info-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.start-card p,
.hub-action p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.start-card:first-child,
.hub-action:first-child {
  border-color: #aacbe5;
  background: #f1f7fc;
}

.hub-action strong {
  font-size: 1.05rem;
}

.popular-list {
  display: grid;
  gap: 10px;
}

.popular-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(180px, 0.6fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.popular-row span,
.popular-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

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

.fact-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.fact-grid dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-grid dd {
  margin: 6px 0 0;
  font-weight: 750;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #eef6fd;
  border-bottom: 1px solid #c8dcec;
}

.countdown strong {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
}

.countdown time {
  color: var(--blue);
  font-weight: 800;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: min(680px, calc(100vw - 40px));
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--soft);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

.content-section {
  max-width: 800px;
}

.content-section p {
  margin: 0;
  color: var(--muted);
}

.section-intro {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.timeline span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline strong {
  display: block;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist label {
  min-height: 54px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.checklist input {
  margin-top: 5px;
}

.quiz {
  background: var(--soft);
}

.quiz-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: white;
}

.quiz-summary strong {
  display: block;
  font-size: 1.08rem;
}

.quiz-summary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.quiz-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8ef;
}

.quiz-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.question {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.question-meta {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

button {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

button:hover,
button:focus {
  border-color: var(--blue);
}

button.is-correct {
  border-color: var(--green);
  background: #eaf7f0;
}

button.is-wrong {
  border-color: var(--red);
  background: #fff0ef;
}

button:disabled {
  cursor: default;
  opacity: 1;
}

.feedback,
.quiz-score {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.ad-slot {
  margin: 18px max(20px, calc((100vw - 1120px) / 2));
  padding: 22px;
  border: 1px dashed #b6c0cb;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: #fbfcfd;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  color: var(--muted);
}

.sources ul {
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  margin-top: 28px;
  padding-top: 28px;
  padding-bottom: 34px;
  background: var(--ink);
  color: #dce3ea;
}

.site-footer a {
  color: white;
  margin-right: 14px;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .tool-grid,
  .related-grid,
  .start-grid,
  .hub-action-grid,
  .card-grid,
  .fact-grid,
  .timeline,
  .checklist,
  .choices {
    grid-template-columns: 1fr;
  }

  .popular-row {
    grid-template-columns: 1fr;
  }

  .countdown {
    display: block;
  }

  .quiz-summary {
    grid-template-columns: 1fr;
  }
}
