/* Scotland Bridge Oaks: static civic-notice style. No external requests. */

:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --text: #1a1d1a;
  --muted: #464e48;
  --border: #cfd5cd;
  --accent: #1d5e34;        /* the one green; 7.6:1 on white */
  --accent-strong: #154627;
  --on-accent: #ffffff;
  --accent-soft: #e6f0e8;
  --focus: #1d5e34;
  --radius: 10px;
  --gutter: 16px;
  --measure: 40rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121512;
    --surface: #1a1e1a;
    --text: #ecefea;
    --muted: #b8c0b6;
    --border: #3a423a;
    --accent: #7fd19b;      /* 10:1 on --bg */
    --accent-strong: #a3e0b7;
    --on-accent: #0b1a10;
    --accent-soft: #1f2d22;
    --focus: #a3e0b7;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.4em; }
strong { font-weight: 700; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text); padding: 12px 16px;
}
.skip:focus { left: 8px; top: 8px; z-index: 10; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 28px;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--muted); margin-bottom: 14px;
}
.motif { width: 60px; height: 20px; flex: none; }
.motif circle, .motif rect { fill: var(--accent); }
.motif .line { stroke: var(--muted); stroke-width: 2; fill: none; }
.motif .water { stroke: var(--accent); stroke-width: 1.5; fill: none; opacity: 0.7; }

.lede { font-size: 1.15rem; }

.deadline {
  border-left: 6px solid var(--accent);
  background: var(--accent-soft);
  padding: 12px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 20px;
}
.deadline p { margin: 0; }
.deadline p + p { margin-top: 4px; }
.deadline-date { font-size: 1.35rem; line-height: 1.3; }

.button {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 16px 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.button:hover { background: var(--accent-strong); color: var(--on-accent); }
.button-small { display: inline-block; width: auto; min-height: 48px; font-size: 1.05rem; padding: 12px 18px; margin-bottom: 1em; }
@media (min-width: 560px) { .button { display: inline-block; width: auto; min-width: 20rem; } }

.button-note { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

.points {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 4px;
  background: var(--bg);
}
.points-title { font-size: 1.15rem; }
.ask { border-top: 1px solid var(--border); padding-top: 10px; }

/* ---------- Contents ---------- */
.toc { padding: 14px 0 4px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc li + li { margin-top: 0; }
.toc a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); text-decoration: none; font-weight: 600;
}

/* ---------- Sections ---------- */
main section { padding: 28px 0 12px; }
main section + section { border-top: 1px solid var(--border); }
.intro { font-size: 1.1rem; }

.facts li { padding-left: 0.1em; }

.argument {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 4px;
  margin: 0 0 16px;
}
.argument h3 { display: flex; gap: 10px; align-items: baseline; }
.num {
  flex: none;
  display: inline-grid; place-items: center;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-size: 0.85em;
}
.label {
  display: block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.their { color: var(--muted); border-left: 3px solid var(--border); padding-left: 10px; }

.quote { margin: 0 0 1em; }
.quote blockquote {
  margin: 0; padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
}
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }

.ask-box { border: 2px solid var(--accent); }

/* ---------- Status ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.deadlines { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.97rem; }
.deadlines th, .deadlines td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.deadlines th { font-size: 0.85rem; color: var(--muted); }
.deadlines td:nth-child(2) { white-space: nowrap; }

/* Stack the table on very narrow screens so nothing scrolls sideways. */
@media (max-width: 479px) {
  .deadlines thead { position: absolute; left: -9999px; }
  .deadlines, .deadlines tbody, .deadlines tr, .deadlines td { display: block; width: 100%; }
  .deadlines tr { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
  .deadlines td { border: 0; padding: 2px 0; white-space: normal !important; }
  .deadlines td:first-child { font-weight: 700; }
}

.status {
  display: inline-block; white-space: nowrap;
  font-size: 0.85rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
  border: 2px solid currentColor;
}
.status-awaited    { color: var(--text); }
.status-programmed { color: var(--muted); border-style: dashed; }
.status-done       { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.status-overdue    { color: var(--text); border-width: 3px; text-decoration: underline; }

.timeline { list-style: none; padding: 0; border-left: 3px solid var(--accent); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 14px 18px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 0.45em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline time { display: block; font-weight: 700; }

/* ---------- What you can do ---------- */
.steps { padding-left: 1.4em; }
.steps > li { margin-bottom: 18px; }
.steps > li::marker { font-weight: 700; color: var(--accent); }
.steps h3 { margin-bottom: 0.3em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0 32px;
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 0.4em; }

/* ---------- Print ---------- */
@media print {
  :root {
    --bg: #fff; --surface: #fff; --text: #000; --muted: #333;
    --border: #999; --accent: #000; --accent-strong: #000; --on-accent: #fff; --accent-soft: #fff;
  }
  body { font-size: 11pt; }
  .skip, .toc, .motif { display: none !important; }
  .hero, main section, .site-footer { padding: 8pt 0; border: 0; }
  .button { display: inline; background: none; color: #000; padding: 0; min-height: 0; font-size: 12pt; text-decoration: underline; box-shadow: none; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .argument, .points, .deadline, .quote blockquote { border: 1px solid #999; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  h2, h3 { break-after: avoid; }
}
