/* Shared styles for every local page. No external fonts or resources. */
:root {
  --bg: #fbfaf7; --surface: #ffffff; --ink: #1d2433; --muted: #5b6475;
  --line: #e4e1d8; --accent: #1f6f5c; --accent-ink: #ffffff; --accent-soft: #e3f1ec;
  --warn-soft: #fff4dc; --warn-ink: #7a5300; --stop-soft: #fde8e6; --stop-ink: #8f2a1f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d; --surface: #1a2029; --ink: #e8eaee; --muted: #a3abb9;
    --line: #2c3441; --accent: #4fb596; --accent-ink: #0d1a15; --accent-soft: #1b3029;
    --warn-soft: #3a3020; --warn-ink: #f1cf86; --stop-soft: #3b2220; --stop-ink: #f3a79d;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
header.site { padding: 18px 0; border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
nav.site a { margin-left: 14px; font-size: 0.92rem; }
.banner { background: var(--warn-soft); color: var(--ink); padding: 10px 0; font-size: 0.92rem; }
.banner.draft { background: var(--stop-soft); }
section { padding: 44px 0; border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; margin: 0 0 18px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 660px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 10px; padding: 14px 24px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 18px 18px 64px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.steps p { color: var(--muted); margin: 0; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }
.price { text-align: center; }
.price .amount { font-size: 2.8rem; font-weight: 750; letter-spacing: -0.02em; margin: 4px 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }
footer.site { padding: 28px 0 44px; font-size: 0.86rem; color: var(--muted); }
footer.site nav a { margin-right: 14px; }
.notice { background: var(--warn-soft); border-radius: 10px; padding: 14px 16px; font-size: 0.92rem; }
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; max-width: 500px;
  width: calc(100% - 32px); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(10, 14, 20, 0.55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font: inherit; font-size: 0.92rem; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
input[type=email], input[type=date], input[type=number], select { flex: 1 1 200px; font: inherit; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); max-width: 100%; }
input:disabled { opacity: 0.55; }
label.field { display: block; margin: 14px 0 4px; font-weight: 600; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px 0; }
.result { border-radius: 12px; padding: 18px; margin-top: 18px; border: 1px solid var(--line); }
.result.ok { background: var(--accent-soft); }
.result.review { background: var(--warn-soft); }
.result.pro { background: var(--stop-soft); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; background: var(--surface); }
legend { font-weight: 600; float: left; width: 100%; padding: 0; margin-bottom: 4px; }
legend + * { clear: both; }
fieldset label { display: inline-flex; gap: 6px; align-items: center; margin: 6px 16px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.blank { background: var(--stop-soft); color: var(--stop-ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }
[hidden] { display: none !important; }

/* Accessibility helpers (S004 audit) */
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--ink); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
a:focus-visible, .linkbtn:focus-visible, .result:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
input[type=radio]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.error { color: var(--stop-ink); font-size: 0.92rem; margin: 4px 0 0; min-height: 0; }
.error:empty { display: none; }
.mt { margin-top: 28px; }
.tight { margin: 0 0 4px; }
.options { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.options label { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
nav.site a, footer.site nav a { display: inline-block; padding: 4px 0; }
input[type=date], input[type=number], select { display: block; width: 100%; max-width: 320px; }
