:root {
  --ink: #11261d;
  --muted: #5e7068;
  --line: #cfe0d7;
  --paper: #ffffff;
  --wash: #f2f8f4;
  --green: #116c49;
  --green-dark: #084c34;
  --green-soft: #dff2e8;
  --yellow: #f4d83b;
  --yellow-soft: #fff7bf;
  --danger: #a53b3b;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(8, 76, 52, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.65; background: var(--paper); }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
img { max-width: 100%; }
button, input, table { font: inherit; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: var(--yellow); color: var(--ink); padding: .7rem 1rem; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 32px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-dark); font-weight: 900; text-decoration: none; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--green); color: var(--yellow); font-size: 14px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.site-nav a { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }

main { display: block; }
.hero { padding: 64px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--wash) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); align-items: end; gap: 48px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: .82rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--green-dark); line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 920px; margin: 0; font-size: clamp(2.35rem, 6vw, 5.2rem); }
h2 { margin: 0 0 20px; font-size: clamp(1.75rem, 3.5vw, 3rem); }
h3 { margin: 0 0 10px; font-size: 1.28rem; }
.lead { max-width: 820px; margin: 22px 0 0; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #2e453b; }
.hero-answer { border-left: 5px solid var(--yellow); padding: 4px 0 4px 20px; font-size: .98rem; }
.hero-answer strong { color: var(--green-dark); }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.meta-line span { display: inline-flex; align-items: center; gap: 7px; }
.meta-line span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }

.author-note { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.author-note p { margin: 0; }
.author-note .author-name { margin-bottom: 6px; color: var(--green-dark); font-weight: 900; }
.author-note .author-role { color: var(--muted); font-size: .92rem; }
.author-note a { display: inline-block; margin-top: 10px; font-weight: 800; }

.section { padding: 64px 0; }
.section.compact { padding: 42px 0; }
.section.wash { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head p { max-width: 620px; margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.stat { padding: 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--green-dark); font-size: 2rem; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .88rem; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rank-card, .profile-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.rank-card:first-child { border-color: #c3b125; background: linear-gradient(150deg, #fff 0%, var(--yellow-soft) 100%); }
.rank-number { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; background: var(--green-dark); color: white; font-weight: 900; }
.rank-card:first-child .rank-number { background: var(--yellow); color: var(--ink); }
.rank-card h3 { margin-top: 22px; font-size: 1.55rem; }
.rank-card p { color: var(--muted); }
.card-link { font-weight: 900; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: .78rem; font-weight: 800; }
.chip.yellow { background: var(--yellow); color: var(--ink); }

.ranking-list { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ranking-item { display: grid; grid-template-columns: 64px minmax(220px, .8fr) minmax(260px, 1.2fr) minmax(190px, .7fr); align-items: center; gap: 22px; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.ranking-item .place { color: var(--green); font-size: 1.35rem; font-weight: 900; }
.ranking-item h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.015em; }
.ranking-item p { margin: 0; color: var(--muted); font-size: .94rem; }
.ranking-item .source-link { justify-self: end; font-size: .86rem; font-weight: 800; }

.answer-box { padding: 24px 28px; border-radius: var(--radius); background: var(--green-dark); color: white; }
.answer-box h2, .answer-box h3 { color: var(--yellow); }
.answer-box p:last-child { margin-bottom: 0; }
.notice { padding: 18px 20px; border-left: 5px solid var(--yellow); background: var(--yellow-soft); color: #493f07; }
.notice strong { color: var(--ink); }

.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.source-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.source-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.source-card .source-type { color: var(--green); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; color: var(--green-dark); font-weight: 850; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

.page-head { padding: 52px 0 28px; background: var(--wash); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: var(--muted); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 42px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 14px; }
.fact-list { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(130px, .85fr); gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: white; }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { color: var(--muted); font-size: .88rem; }
.fact-row dd { margin: 0; text-align: right; color: var(--green-dark); font-weight: 850; }
.fact-source { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.fact-source { font-size: .875rem; line-height: 1.55; margin-top: 10px; overflow-wrap: anywhere; }
.fact-note, .source-note { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.6; margin-top: 10px; }
.profile-layout > *, .bullet-grid > * { min-width: 0; }
.profile-layout h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.sidebar .fact-row { grid-template-columns: 1fr; gap: 4px; }
.sidebar .fact-row dd { text-align: left; }
.sidebar { position: static; }
.sources-list { padding-left: 20px; }
.sources-list li + li { margin-top: 20px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.article-toc { margin: 32px 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.article-toc h2 { margin-top: 0; font-size: 1.4rem; }
.article-toc ol { margin-bottom: 0; padding-left: 20px; }
.prose .answer-box h2 { margin-top: 0; }
.prose section { scroll-margin-top: 100px; }
.checklist { padding-left: 22px; }
.page-meta { padding: 0 0 32px; color: var(--muted); font-size: .875rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.answer-box a { color: var(--yellow); }
@media (max-width: 680px) { .guide-grid { grid-template-columns: 1fr; } .chip, .site-nav a { font-size: .875rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.bullet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.permalink { color: var(--green); font-size: .85em; text-decoration: none; }
.evidence-records { display: grid; gap: 18px; }
.evidence-record { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.evidence-record h3 { margin-top: 8px; }
.evidence-record p:last-child { margin-bottom: 0; }
.evidence-limit { border-left: 3px solid var(--yellow); padding-left: 14px; font-size: .92rem; }
.evidence-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; }
.evidence-record:target, .fact-row:target, .bullet-box li:target { background: var(--yellow-soft); outline: 2px solid var(--yellow); outline-offset: 4px; }
.bullet-box { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.bullet-box.limit { background: #fffafa; border-color: #efd3d3; }
.bullet-box ul { margin: 0; padding-left: 20px; }
.bullet-box li + li { margin-top: 9px; }
.case-box { padding: 24px; border-radius: var(--radius); background: var(--green-soft); }
.case-box p { margin-bottom: 10px; }
.profile-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-nav a { padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 800; }
.profile-nav a:last-child { text-align: right; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.data-table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: .86rem; }
.data-table th { position: sticky; top: 72px; z-index: 2; padding: 14px 12px; background: var(--green-dark); color: white; text-align: left; vertical-align: bottom; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:nth-child(even) td { background: var(--wash); }
.data-table tbody tr:first-child td { background: var(--yellow-soft); font-weight: 700; }
.data-table .yes { color: var(--green-dark); font-weight: 850; }
.data-table .no { color: var(--danger); font-weight: 700; }

.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: method; }
.method-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; counter-increment: method; }
.method-card::before { content: counter(method, decimal-leading-zero); display: block; color: var(--yellow); text-shadow: 1px 1px 0 var(--green-dark); font-size: 1.5rem; font-weight: 950; }
.method-card h3 { margin-top: 8px; }
.method-card strong { color: var(--green); }

.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { max-width: 78ch; }
.prose li + li { margin-top: 8px; }
.date-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--yellow-soft); color: #5c4f00; font-size: .78rem; font-weight: 800; }

.site-footer { padding: 36px 0; background: var(--green-dark); color: #dcebe4; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; }
.site-footer strong { color: white; }
.site-footer a { color: var(--yellow); }
.site-footer p { margin: 6px 0; font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: 14px 20px; }

@media (max-width: 900px) {
  .hero-grid, .profile-layout { grid-template-columns: 1fr; }
  .podium, .source-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ranking-item { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .ranking-item p, .ranking-item .source-link { grid-column: 2; justify-self: start; }
  .sidebar { position: static; }
}

@media (max-width: 680px) {
  .container, .narrow { width: min(100% - 24px, 1180px); }
  .site-header { position: static; }
  .header-row { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 10px; }
  .site-nav { justify-content: flex-start; gap: 8px 14px; }
  .site-nav a { font-size: .875rem; }
  .hero { padding-top: 42px; }
  h1 { font-size: 2.45rem; }
  .section { padding: 48px 0; }
  .stats, .bullet-grid, .method-grid, .footer-grid, .profile-nav { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .fact-row { grid-template-columns: 1fr; gap: 3px; }
  .fact-row dd { text-align: left; }
  .profile-nav a:last-child { text-align: left; }
  .footer-nav { justify-content: flex-start; }
  .data-table th { position: static; }
}

@media print {
  .site-header, .site-footer, .profile-nav { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: none; }
  .section, .page-head { padding: 24px 0; }
  .rank-card, .source-card, .bullet-box { break-inside: avoid; box-shadow: none; }
}
