:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4ff;
  --text: #182235;
  --muted: #667085;
  --line: #d9e0ec;
  --brand: #3157d5;
  --brand-dark: #203da2;
  --good: #16794a;
  --good-bg: #eaf8f0;
  --warn: #9a5b00;
  --warn-bg: #fff5df;
  --danger: #b42318;
  --danger-bg: #fff0ee;
  --shadow: 0 18px 45px rgba(25, 42, 70, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

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

img, table { max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

.nav-link {
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  padding: 76px 0 58px;
  background:
    radial-gradient(circle at top right, rgba(49,87,213,.16), transparent 38%),
    linear-gradient(180deg, #fff 0%, #f6f7fb 100%);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 820px;
  margin: 10px 0 18px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

main.container {
  padding-top: 42px;
  padding-bottom: 72px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 310px;
  gap: 30px;
  align-items: start;
}

.article, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.article {
  padding: clamp(25px,4vw,50px);
}

.article h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem,4vw,3.5rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.article h2 {
  margin: 48px 0 14px;
  font-size: clamp(1.4rem,2.4vw,2rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.article p, .article li { max-width: 78ch; }

.article ul, .article ol { padding-left: 1.35rem; }

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

.home-card {
  padding: clamp(26px,5vw,52px);
}

.home-card h2 {
  margin: 14px 0 16px;
  font-size: clamp(1.65rem,3vw,2.45rem);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: .88rem;
}

.meta span {
  padding: 7px 10px;
  background: #f3f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: var(--surface-soft);
  border: 1px solid #c9d5ff;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  margin-top: 10px;
  padding: 13px 19px;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(49,87,213,.22);
}

.button:hover {
  color: #fff;
  background: var(--brand-dark);
}

.notice {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 5px solid;
  border-radius: 12px;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
}

.notice.good {
  color: #105a38;
  background: var(--good-bg);
  border-color: var(--good);
}

.notice.warn {
  color: #744400;
  background: var(--warn-bg);
  border-color: var(--warn);
}

.notice.danger {
  color: #7d1c13;
  background: var(--danger-bg);
  border-color: var(--danger);
}

.decision-table {
  width: 100%;
  margin: 20px 0 30px;
  border-collapse: collapse;
  font-size: .94rem;
}

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

.decision-table th {
  background: #eef2fb;
  font-size: .84rem;
}

.decision-table tr:nth-child(even) td { background: #fafbfe; }

.steps {
  counter-reset: response-step;
  list-style: none;
  padding-left: 0 !important;
}

.steps li {
  position: relative;
  padding: 17px 17px 17px 58px;
  background: #fafbfe;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.steps li::before {
  counter-increment: response-step;
  content: counter(response-step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 800;
}

.steps li + li { margin-top: 12px; }

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.card { padding: 22px; }

.card h2 {
  margin: 0 0 13px;
  font-size: 1.08rem;
}

.card p {
  margin: 10px 0;
  color: var(--muted);
  font-size: .92rem;
}

.toc {
  margin: 0;
  padding-left: 1.05rem;
}

.toc li {
  margin: 7px 0;
  font-size: .92rem;
}

.source-list { padding-left: 1.1rem; }

.update-log {
  border-left: 2px solid #cbd5e5;
  margin-left: 7px;
  padding-left: 24px;
}

.update {
  position: relative;
  padding-bottom: 20px;
}

.update::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--brand);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #aab7d0;
}

.update time {
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 800;
}

.update p { margin: 3px 0 0; }

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

small { color: var(--muted); }

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

@media (max-width: 650px) {
  body { font-size: 16px; }
  .container { width: min(100% - 24px,1120px); }
  .header-inner { min-height: 60px; }
  .nav-link { display: none; }
  .hero { padding: 54px 0 42px; }
  main.container {
    padding-top: 22px;
    padding-bottom: 45px;
  }
  .article, .home-card { border-radius: 14px; }
  .article { padding: 22px 18px; }
  .article h2 { margin-top: 36px; }
  .sidebar { grid-template-columns: 1fr; }

  .decision-table,
  .decision-table thead,
  .decision-table tbody,
  .decision-table th,
  .decision-table td,
  .decision-table tr {
    display: block;
  }

  .decision-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .decision-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
  }

  .decision-table td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .decision-table td:last-child { border-bottom: 0; }
}
