:root {
  --bg: #F7F5EF;
  --ink: #233138;
  --primary: #164E4B;
  --cta: #C96B50;
  --cta-strong: #8E4333;
  --sage: #E5EFE9;
  --card: #fff;
  --line: #d5ddd8;
  --max: 1200px;
  --read: 740px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI", "Avenir Next", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9; }
.utility { margin: 0; background: var(--sage); color: var(--primary); text-align: center; font-size: 14px; padding: 8px 16px; }
.site-header, .site-footer, main { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; color: var(--ink); }
.desk-nav { display: none; gap: 14px; }
.desk-nav a { text-decoration: none; color: var(--ink); }
.header-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.search-form input, .stack input, .stack textarea, .finder select { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 10px; font: inherit; }
.wa-link, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; }
.wa-link, .btn-wa { background: #128C7E; color: #fff; }
.btn-cta { background: var(--cta-strong); color: #fff; border: 0; }
.mobile-nav { display: block; }
.mobile-nav summary { cursor: pointer; min-height: 44px; }
.mobile-nav a { display: block; padding: 8px 0; }
.hero { display: grid; gap: 24px; padding: 24px 0; }
.hero h1, .sheet h1, .reading h1 { font-family: var(--display); font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
.finder, .comment, .callout, .info-card, .cta-band { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.finder { background: var(--sage); }
.card-row, .compare { display: grid; gap: 12px; }
.info-card { text-decoration: none; color: inherit; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; margin: 12px 0; }
.step-no { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.reading { max-width: var(--read); }
.prose h2 { font-size: 26px; line-height: 1.3; }
.prose h3 { font-size: 20px; }
.toc { background: var(--sage); padding: 12px 16px; border-radius: 12px; }
.text-list { padding-left: 18px; }
.site-footer { padding: 32px 0 96px; }
.footer-grid { display: grid; gap: 16px; }
.footer-grid a { display: block; }
.credit { font-size: 14px; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; text-decoration: none; color: var(--primary); font-size: 12px; }
.mobile-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-bar .wa { color: #128C7E; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 72px; background: #fff; border: 1px solid var(--line); padding: 16px; border-radius: 16px; z-index: 6; }
.cookie button { min-height: 44px; margin: 4px; }
.hp { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.table-wrap { overflow-x: auto; }
@media (min-width: 1040px) {
  .desk-nav { display: flex; }
  .mobile-nav, .mobile-bar { display: none; }
  .cookie { bottom: 16px; }
  .site-footer { padding-bottom: 32px; }
  .hero { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .hero h1 { font-size: 44px; }
  .card-row, .compare, .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 28px; }
}
