:root {
  --paper: #ffffff;
  --ink: #000000;
  --muted: #555555;
  --rule: #d9d9d9;
  --leaf: #1f4d3a;
  --leaf-tint: #e8f0ec;
  --amber: #8a5a00;
  --amber-tint: #fbf1dc;
  --rust: #8c2f1b;
  --rust-tint: #f8e7e2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}
a { color: var(--leaf); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-head { border-bottom: 3px solid var(--ink); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em; }
.brand svg { width: 2.4rem; height: 2.4rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-family: var(--sans); font-size: 0.95rem; margin-right: auto; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--leaf); }
.langs { display: flex; gap: 0.25rem; font-family: var(--sans); font-size: 0.9rem; }
.langs a { color: var(--ink); text-decoration: none; padding: 0.3rem 0.6rem; border: 1px solid var(--rule); border-radius: 2px; }
.langs a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.langs a:hover { border-color: var(--ink); }

/* Article */
main { padding: 2.5rem 0 4rem; }
.article { max-width: var(--measure); }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.checked { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin: 0 0 2rem; }
.article h2 { font-size: 1.5rem; line-height: 1.25; margin: 2.75rem 0 0.75rem; letter-spacing: -0.01em; }
.article p, .article ul, .article ol { margin: 0 0 1.1rem; }
.article li { margin-bottom: 0.4rem; }
.article .answer {
  font-size: 1.3rem;
  line-height: 1.5;
  padding: 1.25rem 0;
  margin: 0 0 1.5rem;
  border-top: 3px solid var(--leaf);
  border-bottom: 1px solid var(--rule);
}
.article .sources li { font-size: 0.95rem; overflow-wrap: anywhere; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; max-width: 100%; }
.article .table-wrap { width: min(calc(100vw - 2.5rem), 60rem); }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.92rem; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.9rem 0.65rem 0; border-bottom: 1px solid var(--rule); }
thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }
tbody tr > :first-child { font-weight: 600; }

/* Related */
.related { max-width: var(--measure); margin-top: 3.5rem; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.related h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }

/* Home */
.home h1 { font-size: clamp(2.2rem, 6.5vw, 4.25rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 1rem; max-width: 16ch; }
.home .lede { max-width: 38rem; font-size: 1.25rem; margin: 0 0 2rem; }
.sheet { border: 2px solid var(--ink); }
.sheet table { font-size: 0.95rem; }
.sheet th, .sheet td { padding: 0.8rem 1rem; }
.sheet tbody tr:last-child > * { border-bottom: 0; }
.sheet caption { caption-side: bottom; text-align: left; padding: 0.7rem 1rem; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--rule); }
.status { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 2px; font-weight: 600; }
.status small { display: block; font-weight: 400; font-size: 0.85rem; padding-top: 0.15rem; }
.s-ok { background: var(--leaf-tint); color: var(--leaf); }
.s-cond { background: var(--amber-tint); color: var(--amber); }
.s-risk, .s-ban { background: var(--rust-tint); color: var(--rust); }
.note { display: block; font-size: 0.85rem; color: var(--muted); padding-top: 0.2rem; }

.guides { margin-top: 4rem; display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1rem 3rem; }
.guides h2 { font-size: 1.5rem; margin: 0; line-height: 1.2; }
.guides ul { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.guides li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.guides li a { font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.guides li a:hover { color: var(--leaf); text-decoration: underline; }
.guides li p { margin: 0.25rem 0 0; color: var(--muted); font-size: 1rem; max-width: 40rem; }

/* Chooser */
.chooser { padding: 4rem 0; }
.chooser ul { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 3px solid var(--ink); max-width: 30rem; }
.chooser li { border-bottom: 1px solid var(--rule); }
.chooser li a { display: block; padding: 1rem 0; font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.chooser li a:hover { color: var(--leaf); }

/* Footer */
.site-foot { border-top: 3px solid var(--ink); font-family: var(--sans); font-size: 0.9rem; padding: 2rem 0 3rem; }
.site-foot .adult { font-family: var(--serif); font-size: 1.05rem; max-width: 44rem; margin: 0 0 1.25rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.site-foot a { color: var(--ink); }

@media (max-width: 44rem) {
  body { font-size: 1.0625rem; }
  .guides { grid-template-columns: 1fr; }
  .sheet { border-left: 0; border-right: 0; margin: 0 -1.25rem; }
  .sheet table { min-width: 34rem; }
}
@media print {
  .site-head, .site-foot, .related { display: none; }
}
