:root {
  color-scheme: light;
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-tint: #f2efe8;
  --ink: #16201d;
  --ink-muted: #424f4a;
  --border: #cfc8ba;
  --accent: #145a49;
  --accent-hover: #0e4336;
  --accent-soft: #e6f2ee;
  --accent-ink: #0f4437;
  --warn-bg: #fef3c7;
  --warn-ink: #78350f;
  --focus: #0b5fff;
  --radius: 14px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; font-weight: 600; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; outline: 3px solid var(--focus); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.15rem; }
.narrow { max-width: 760px; }
header.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.125rem; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
nav.top-nav { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
nav.top-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: .6rem .8rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
nav.top-nav a:hover { background: var(--surface-tint); }
nav.top-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
nav.top-nav a.nav-cta { background: var(--accent-soft); color: var(--accent-ink); }
nav.top-nav a.nav-cta:hover { background: #d5ebe4; }
.crumbs { font-size: .875rem; color: var(--ink-muted); margin: 1.25rem 0 0; }
.crumbs a { color: var(--accent-ink); text-underline-offset: 3px; }
.page-head { padding: 1.25rem 0 1.5rem; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); font-size: .875rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; margin: 0 0 1rem; }
h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 1rem; font-weight: 700; }
h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 1.8rem); line-height: 1.25; margin: 2.25rem 0 .6rem; }
h3 { font-size: 1.0625rem; margin: 1.5rem 0 .4rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.125rem; color: var(--ink-muted); max-width: 62ch; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
.meta { font-size: .875rem; color: var(--ink-muted); }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }
li { margin-bottom: .45rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border-radius: 11px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-sans); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-tint); }
.btn-small { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.note { background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 1.25rem; font-size: .975rem; }
.note.warn { background: var(--warn-bg); color: var(--warn-ink); }
.note p:last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.cta-box { background: var(--surface); border: 2px solid var(--accent); border-radius: 16px; padding: 1.5rem; margin: 2.5rem 0 1rem; }
.cta-box h2 { margin-top: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
caption { text-align: left; padding: .8rem 1rem; font-weight: 600; }
th, td { text-align: left; vertical-align: top; padding: .7rem 1rem; border-top: 1px solid #e7e2d8; }
thead th { background: var(--surface-tint); border-top: 0; font-size: .9rem; }
tbody th { font-weight: 600; width: 22%; }
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .25rem 1rem; margin-bottom: .75rem; }
details.faq summary { cursor: pointer; font-weight: 600; padding: .85rem 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.25rem; font-weight: 700; color: var(--accent-ink); margin-left: 1rem; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin: 0 0 1rem; color: var(--ink-muted); font-size: .95rem; }
.sources { font-size: .9rem; color: var(--ink-muted); }
.sources li { margin-bottom: .3rem; }
.related { display: grid; gap: .75rem; margin: 0 0 1rem; }
@media (min-width: 720px) { .related { grid-template-columns: 1fr 1fr; } }
.related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 48px; }
.related a span { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-muted); margin-top: .2rem; }
.related a:hover { background: var(--surface-tint); }
/* template generator */
.gen { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; margin: 1rem 0 1.5rem; }
.gen-fields { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 720px) { .gen-fields { grid-template-columns: 1fr 1fr; } }
.gen label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.gen input[type="text"] { width: 100%; min-height: 48px; padding: .7rem .85rem; font-size: 1rem; font-family: var(--font-sans); border: 1.5px solid #9e9687; border-radius: 10px; background: #fff; color: var(--ink); }
.gen .full { grid-column: 1 / -1; }
.gen-hint { font-size: .875rem; color: var(--ink-muted); margin: .9rem 0 0; }
.email { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; }
.email-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.email-top h3 { margin: 0; }
.email-when { font-size: .875rem; color: var(--ink-muted); margin: 0 0 .75rem; }
.email pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; font-family: var(--font-sans); font-size: .975rem; line-height: 1.6; background: var(--bg); border: 1px solid #e7e2d8; border-radius: 10px; padding: .9rem 1rem; }
.copy-status { font-size: .875rem; color: var(--accent-ink); font-weight: 600; min-height: 1.2em; }
footer.site-footer { margin-top: 3rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--border); color: var(--ink-muted); font-size: .9rem; }
footer.site-footer a { color: var(--accent-ink); }
footer.site-footer p { margin: 0 0 .6rem; }
