/* WSPA site. Colors from the original Carrd site and the logo: cream, navy, teal, sunset orange. Phone first. */
:root {
  --cream: #fff8ef;
  --card: #ffffff;
  --navy: #123a5a;
  --slate: #36566f;
  --teal: #19b7c6;
  --teal-deep: #0e8592;
  --orange: #eb910c;
  --sunset: linear-gradient(100deg, #f0603a 0%, #f2852c 45%, #f6b73c 100%);
  --line: #ecdcc6;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-deep); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.top { border-bottom: 1px solid var(--line); background: rgba(255,248,239,.94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding-top: env(safe-area-inset-top, 0px); }
.brand { display: flex; align-items: center; gap: 10px; max-width: 680px; margin: 0 auto; padding: 8px 18px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.brand img { width: 44px; height: 44px; flex: none; }

.wrap { max-width: 680px; margin: 0 auto; padding: 18px 18px 40px; }
.back { display: inline-block; font-size: 14.5px; font-weight: 600; text-decoration: none; margin: 0 0 12px; }

h1, h2, h3 { color: var(--navy); line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(26px, 7vw, 34px); font-weight: 800; margin: 6px 0 12px; }
h2 { font-size: 21px; font-weight: 700; margin: 30px 0 10px; }
h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 17.5px; font-weight: 600; }
.muted { color: var(--slate); }
.fine { font-size: 13.5px; color: var(--slate); }
ul, ol { padding-left: 1.25em; margin: 0 0 14px; }
li { margin-bottom: 8px; }
li::marker { color: var(--orange); }
strong { color: var(--navy); }
hr { border: 0; border-top: 3px solid var(--teal); width: 64px; margin: 28px 0; }

.banner { display: block; width: 100%; border-radius: 10px; margin: 0 0 18px; }
.hero-logo { display: block; width: 190px; height: 190px; margin: 4px auto 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 6px; margin: 0 0 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.note { border-left: 4px solid var(--orange); background: #fff1dd; padding: 12px 14px; border-radius: 0 10px 10px 0; margin: 0 0 16px; font-size: 15px; }
.note p:last-child { margin: 0; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 18px; border-radius: 12px; background: var(--sunset); color: #fff; font-weight: 700; font-size: 17.5px; text-decoration: none; text-align: center; line-height: 1.2; border: 0; font-family: inherit; cursor: pointer; box-shadow: 0 3px 12px rgba(240,96,58,.22); -webkit-tap-highlight-color: transparent; }
.btn:active { filter: brightness(.95); }
.btn-quiet { background: var(--card); color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn svg { flex: none; }
.stack { display: grid; gap: 10px; margin: 0 0 18px; }

/* Lists of links (ordinances, home menu) */
.menu { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.menu li { margin: 0; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); font-weight: 700; line-height: 1.3; }
.menu a small { display: block; font-weight: 500; color: var(--slate); font-size: 13.5px; margin-top: 2px; }
.menu a::after { content: "›"; margin-left: auto; color: var(--orange); font-size: 24px; font-weight: 600; line-height: 1; }
.menu .code { flex: none; min-width: 64px; font-size: 12.5px; font-weight: 800; color: var(--teal-deep); letter-spacing: .02em; }

.official { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 10px 14px; border: 1.5px solid var(--teal); border-radius: 10px; text-decoration: none; margin: 4px 0 18px; }

/* Quick reference: large, high-contrast, made to be read on the sidewalk */
body.street { background: #fff; }
.qr-always { background: var(--navy); color: #fff; border-radius: 14px; padding: 16px 18px 4px; margin: 0 0 18px; }
.qr-always h2 { color: #fff; margin: 0 0 8px; font-size: 19px; }
.qr-always li { font-size: 17px; }
.qr-always li::marker { color: var(--teal); }
.qr-always strong { color: #fff; }
details.qr { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; margin: 0 0 10px; }
details.qr[open] { border-color: var(--teal); }
details.qr summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; line-height: 1.25; }
details.qr summary::-webkit-details-marker { display: none; }
details.qr summary .code { flex: none; font-size: 13px; color: var(--teal-deep); min-width: 70px; }
details.qr summary::after { content: "+"; margin-left: auto; color: var(--orange); font-size: 26px; font-weight: 600; }
details.qr[open] summary::after { content: "–"; }
.qr-body { padding: 0 16px 6px; font-size: 17px; }
.say { background: #e8f8fa; border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0; padding: 10px 12px; margin: 0 0 14px; font-weight: 600; }

/* Incident form */
.field { margin: 0 0 18px; }
.field > label, .field > .label { display: block; font-weight: 700; margin: 0 0 6px; }
.field .hint { display: block; font-weight: 500; font-size: 13.5px; color: var(--slate); margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=datetime-local], select, textarea { width: 100%; font: inherit; font-size: 16.5px; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25,183,198,.18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; margin: 12px 0 0; }
.form-status.err { color: #b42318; }

.foot { border-top: 1px solid var(--line); padding: 22px 18px calc(30px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 14px; color: var(--slate); }
.foot p { max-width: 560px; margin: 0 auto 12px; }
.foot nav a { color: var(--navy); font-weight: 600; }
