/* Scarborough Playgrounds, 2026 rebuild: the spotter's guide.
   Cobalt cover, badge yellow, tick red, white pages, black ink. */

@font-face {
  font-family: "Archivo";
  src: url(/files/fonts/archivo-var.woff2) format("woff2");
  font-weight: 500 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url(/files/fonts/atkinson-next-var.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url(/files/fonts/atkinson-next-italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --cover: #1537b8;
  --cover-deep: #0b1d63;
  --cover-soft: #c9d3fb;
  --badge: #ffd23f;
  --badge-deep: #e8b400;
  --tick: #d9261a;
  --page: #ffffff;
  --ink: #12151c;
  --ink-2: #474d59;
  --ink-3: #6b7280;
  --rule: #dde1ea;
  --rule-strong: #b6bdcc;
  --wash: #f0f3fc;
  --off: #c3c9d6;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1240px;
  --narrow: 720px;
  --radius: 12px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  font-variant-numeric: lining-nums;
  caret-color: var(--cover);
  accent-color: var(--cover);
  scrollbar-color: var(--rule-strong) transparent;
}
::selection { background: var(--badge); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
svg { flex: none; }
a { color: var(--cover); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { color: var(--cover-deep); text-decoration-color: var(--badge-deep); }
:focus-visible { outline: 3px solid var(--badge); outline-offset: 2px; box-shadow: 0 0 0 5px var(--cover-deep); border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 78%; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h2 { font-size: 1.6rem; font-weight: 820; }
p { margin: 0 0 .8em; }
button { font: inherit; color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--badge); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- masthead + cover: one continuous cobalt band ---------- */
.masthead { background: var(--cover); color: #fff; }
.masthead__in {
  max-width: var(--wide); margin: 0 auto; padding: 12px var(--gutter) 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__mark { width: 42px; height: 42px; }
.brand__words { display: flex; flex-direction: column; font-family: var(--display); font-stretch: 72%; text-transform: uppercase; line-height: .9; }
.brand__place { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--cover-soft); }
.brand__name { font-size: 1.55rem; font-weight: 900; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; border-radius: 10px;
}
.nav a svg { width: 18px; height: 18px; color: var(--badge); }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.is-current { box-shadow: inset 0 -3px 0 var(--badge); border-radius: 10px 10px 0 0; }

.cover { background: var(--cover); color: #fff; position: relative; overflow: hidden; }
.cover::after {
  /* the booklet's printed frame rule along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--badge) 0 28px, var(--cover) 28px 36px);
}
.cover__in { max-width: var(--wide); margin: 0 auto; padding: clamp(20px, 5vw, 56px) var(--gutter) clamp(34px, 6vw, 64px); position: relative; }
.cover__title {
  font-size: clamp(2.5rem, 8.6vw, 5.6rem); font-weight: 900; font-stretch: 66%; text-transform: uppercase;
  line-height: .9; letter-spacing: -.01em; max-width: 12ch; color: #fff;
}
.cover--slim .cover__title { font-size: clamp(2.2rem, 7vw, 4.2rem); max-width: 16ch; }
.cover__count { color: var(--badge); }
.cover__sub { max-width: 44ch; margin: 16px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e6ebff; }
.cover__sub a { color: #fff; text-decoration-color: var(--badge); }
.cover__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cover__tally { display: flex; align-items: center; gap: 14px; margin: 24px 0 0 5px; font-weight: 700; color: #fff; }
.tally__ring {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--badge); color: var(--cover-deep); font-family: var(--display); font-stretch: 70%; font-size: 1.5rem;
  box-shadow: 0 0 0 3px var(--cover), 0 0 0 5px var(--badge);
}
.back { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; margin-bottom: 18px; min-height: 44px; }
.back svg { width: 20px; height: 20px; color: var(--badge); }
.back:hover { color: var(--badge); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 20px; border-radius: var(--radius); border: 2px solid transparent; background: transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: transform .15s var(--ease-out), background-color .15s, box-shadow .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--big { min-height: 58px; padding: 0 26px; font-size: 1.1rem; }
.btn--badge { background: var(--badge); color: var(--ink); box-shadow: 0 2px 0 var(--badge-deep), 0 6px 14px rgba(11,29,99,.25); }
.btn--badge:hover { background: #ffdb62; color: var(--ink); }
.btn--line { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--line:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--cover { background: var(--cover); color: #fff; }
.btn--cover:hover { background: var(--cover-deep); color: #fff; }
.btn--line-dark { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--line-dark:hover { background: var(--wash); color: var(--ink); }
.btn--quiet { background: none; color: var(--ink-2); text-decoration: underline; min-height: 44px; padding: 0 8px; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.linkish { background: none; border: 0; padding: 0; color: var(--cover); text-decoration: underline; cursor: pointer; font-weight: 700; }

/* ---------- finder ---------- */
.finder { max-width: var(--wide); margin: 0 auto; padding: 24px var(--gutter) 56px; }
.filters { display: grid; gap: 14px 28px; grid-template-columns: 1fr; margin-bottom: 20px; }
.filters__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters__group legend, .field__label {
  display: block; font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 8px; padding: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px;
  border: 2px solid var(--rule-strong); border-radius: 999px; background: #fff; font-weight: 700; font-size: .95rem;
  transition: background-color .12s, border-color .12s, color .12s;
}
.chip span svg { width: 20px; height: 20px; color: var(--cover); }
.chip:hover span { border-color: var(--cover); }
.chip input:checked + span { background: var(--cover); border-color: var(--cover); color: #fff; }
.chip input:checked + span svg { color: var(--badge); }
.chip input:focus-visible + span { outline: 3px solid var(--badge); outline-offset: 2px; box-shadow: 0 0 0 5px var(--cover-deep); }
.filters__search { position: relative; max-width: 420px; }
.filters__search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.filters__search input[type="search"] { padding-left: 46px; }

.finder__body { display: grid; gap: 18px; }
.finder__map { position: relative; }
.map {
  height: 44vh; min-height: 260px; max-height: 520px; border-radius: var(--radius);
  border: 2px solid var(--ink); background: var(--wash); z-index: 0;
}
.finder__status { font-weight: 700; color: var(--ink-2); margin: 0 0 6px; font-size: .95rem; }

.entries { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.entry { position: relative; border-bottom: 1px solid var(--rule); padding: 14px 0 14px; }
.entry.is-hit { background: var(--wash); }
.entry__link { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); text-decoration: none; padding-right: 56px; }
.entry__link:hover .entry__name { color: var(--cover); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.entry__no {
  flex: none; width: 48px; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.55rem; line-height: 1;
  color: var(--cover); padding-top: 2px; text-align: left;
}
.entry__no small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1px; }
.entry__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.entry__name { font-family: var(--display); font-stretch: 78%; font-weight: 820; font-size: 1.35rem; line-height: 1.08; }
.entry__area { color: var(--ink-2); font-size: .95rem; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; font-weight: 700; color: var(--ink); margin-top: 2px; }
.entry__stars { display: inline-flex; align-items: center; gap: 3px; }
.entry__stars svg { width: 16px; height: 16px; color: var(--badge-deep); fill: var(--badge); }
.entry__dist:empty { display: none; }
.entry__dist { color: var(--cover); }
.entry__flag { color: var(--tick); }
.entry__photo { flex: none; width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.entry--unpinned .entry__no { color: var(--ink-3); }

.kit { list-style: none; margin: 10px 0 0 62px; padding: 0; display: flex; gap: 3px; }
.kit li {
  flex: 0 1 26px; aspect-ratio: 1; min-width: 0; max-width: 28px; border-radius: 50%;
  display: grid; place-items: center;
}
.kit li svg { width: 64%; height: 64%; }
.kit li.on { background: var(--cover); color: #fff; }
.kit li.off { border: 1.5px dashed var(--off); color: var(--off); }

/* the visited tick: an empty ring you can mark; the red tick draws on */
.visit {
  position: absolute; right: 0; top: 12px; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--rule-strong); background: #fff; cursor: pointer; padding: 0;
}
.visit:hover { border-color: var(--cover); }
.visit::after, .visit-mark::after {
  content: ""; position: absolute; inset: -6px -4px 2px 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M8 26c4 3 7 7 10 12C24 24 31 14 43 5' fill='none' stroke='%23d9261a' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .38s var(--ease-out);
}
.visit[aria-pressed="true"] { border-color: var(--tick); }
.visit[aria-pressed="true"]::after, .btn--visit[aria-pressed="true"] .visit-mark::after { clip-path: inset(0 0 0 0); }
.btn--visit { position: relative; }
.visit-mark { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); }
.visit-mark::after { inset: -8px -6px 0 4px; }

.empty { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.empty__title { font-family: var(--display); font-stretch: 78%; font-weight: 820; font-size: 1.4rem; margin-bottom: 4px; }

.helpout {
  margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--badge); color: var(--ink);
}
.helpout h2 { font-size: 1.7rem; font-stretch: 70%; font-weight: 900; text-transform: uppercase; margin-bottom: 8px; }
.helpout p { max-width: 46ch; }

/* map markers */
.pin {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cover); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
  font: 900 13px/1 var(--display); font-stretch: 70%;
}
.pin.is-visited { background: var(--tick); }
.pin.is-hot { background: var(--badge); color: var(--ink); transform: scale(1.18); }
.pin--you { width: 18px; height: 18px; background: var(--tick); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(217,38,26,.25); }
.pin--drop { width: 36px; height: 36px; background: var(--badge); color: var(--ink); border: 3px solid var(--ink); }
.pin--drop svg { width: 18px; height: 18px; }
.leaflet-container { font: 400 .9rem/1.4 var(--body); }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content a.pop { font-family: var(--display); font-stretch: 78%; font-weight: 820; font-size: 1.1rem; color: var(--cover); }
.leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--ink); }
.leaflet-control-attribution { font-size: .7rem; }

/* ---------- park page ---------- */
.park-head { display: flex; gap: 16px; align-items: flex-start; }
.park-head__no {
  flex: none; display: grid; place-items: center; align-content: center; width: 78px; height: 78px; margin: 0; border-radius: 50%;
  background: var(--badge); color: var(--cover-deep); font-family: var(--display); font-stretch: 66%; font-weight: 900; font-size: 2rem; line-height: .9;
  box-shadow: 0 0 0 3px var(--cover), 0 0 0 6px var(--badge);
}
.park-head__no small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.park-head__name { font-size: clamp(2.2rem, 7.5vw, 4.6rem); font-stretch: 66%; font-weight: 900; text-transform: uppercase; line-height: .92; color: #fff; }
.park-head__area { margin: 10px 0 0; color: #e6ebff; font-size: 1.05rem; }
.park-head__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; font-weight: 700; }
.park-head__meta span { display: inline-flex; align-items: center; gap: 5px; }
.park-head__meta svg { width: 18px; height: 18px; color: var(--badge); fill: var(--badge); }

.park { max-width: var(--wide); margin: 0 auto; padding: 28px var(--gutter) 60px; }
.notice {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 22px;
  border-radius: var(--radius); background: var(--wash); border: 2px solid var(--cover); font-weight: 700;
}
.notice svg { width: 22px; height: 22px; color: var(--tick); }
.photos { margin-bottom: 30px; }
.photos__strip { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.photos__strip li { flex: 0 0 min(82%, 460px); scroll-snap-align: start; }
.photos__strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--ink); }
.photos__add { margin: 10px 0 0; }
.photos__add a, .photo-wanted a { font-weight: 700; }
.photos__add a { display: inline-flex; align-items: center; gap: 8px; }
.photos__add svg { width: 20px; height: 20px; }

.park__grid { display: grid; gap: 32px; }
.spotted h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); font-size: 2rem; font-stretch: 70%; font-weight: 900; text-transform: uppercase; }
.spotted__score { font-family: var(--body); font-size: .95rem; font-weight: 700; text-transform: none; color: var(--ink-2); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.checklist li { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--rule); font-weight: 700; }
.checklist__mark { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); }
.checklist__mark svg { position: absolute; inset: -5px -3px 3px 3px; width: 34px; height: 34px; color: var(--tick); }
.checklist__icon { width: 24px; height: 24px; color: var(--cover); }
.is-off .checklist__mark { border: 2px dashed var(--off); }
.is-off .checklist__mark svg { display: none; }
.is-off .checklist__icon { color: var(--off); }
.is-off .checklist__label { color: var(--ink-3); font-weight: 400; }
.spotted__note { margin: 12px 0 0; color: var(--ink-2); font-size: .95rem; }

.about { margin-top: 28px; max-width: 68ch; }
.about h2 { margin-bottom: 10px; }

.map--park { height: 340px; max-height: none; }
.pin-wanted { padding: 26px; border: 2px dashed var(--rule-strong); border-radius: var(--radius); text-align: left; }
.pin-wanted > svg { width: 34px; height: 34px; color: var(--tick); margin-bottom: 8px; }
.pin-wanted__title { font-family: var(--display); font-stretch: 78%; font-weight: 820; font-size: 1.35rem; margin-bottom: 4px; }
.photo-wanted { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 14px 16px; background: var(--wash); border-radius: var(--radius); }
.photo-wanted svg { width: 22px; height: 22px; color: var(--cover); margin-top: 2px; }

.rate, .tips { margin-top: 44px; max-width: 760px; }
.rate h2, .tips h2 { margin-bottom: 12px; }
.stars { display: flex; gap: 6px; }
.stars button {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--rule-strong); background: #fff; cursor: pointer; padding: 0;
}
.stars button svg { width: 28px; height: 28px; color: var(--badge-deep); fill: transparent; transition: fill .12s; }
.stars:hover button svg, .stars button:focus-visible svg { fill: var(--badge); }
.stars button:hover ~ button svg { fill: transparent; }
.stars button:hover { border-color: var(--badge-deep); }
.tips__none { color: var(--ink-2); }
.tips__list { list-style: none; margin: 0 0 16px; padding: 0; }
.tips__list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.tips__list blockquote { margin: 0; font-size: 1.1rem; }
.tips__list blockquote p:last-child { margin: 0; }
.tips__by { margin: 6px 0 0; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.tipform summary, .more summary {
  display: inline-flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 700; color: var(--cover);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em;
}
.tipform[open] summary { margin-bottom: 8px; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 52px; padding-top: 18px; border-top: 3px solid var(--ink); }
.prevnext a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); max-width: 48%; min-height: 48px; }
.prevnext a svg { width: 22px; height: 22px; color: var(--cover); }
.prevnext span { display: flex; flex-direction: column; font-family: var(--display); font-stretch: 78%; font-weight: 820; font-size: 1.15rem; line-height: 1.1; }
.prevnext small { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prevnext__next { margin-left: auto; text-align: right; }
.prevnext a:hover span { color: var(--cover); }

/* ---------- forms ---------- */
.page { max-width: var(--wide); margin: 0 auto; padding: 28px var(--gutter) 64px; }
.page--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.steps { display: grid; gap: 30px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.step legend {
  display: flex; align-items: center; gap: 12px; padding: 0 0 10px; margin-bottom: 4px; width: 100%;
  border-bottom: 3px solid var(--ink); font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.9rem; text-transform: uppercase; line-height: 1;
}
.step__n {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--badge); color: var(--cover-deep); font-size: 1.4rem; box-shadow: 0 0 0 2px var(--ink);
}
.step__hint { margin: 0; color: var(--ink-2); max-width: 60ch; }
.field { display: block; min-width: 0; }
.field__label em { font-family: var(--body); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: .9rem; margin-left: 4px; }
.field__hint { margin: -6px 0 0; font-size: .92rem; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--rule-strong); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1.05rem;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2312151c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/20px no-repeat; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cover); box-shadow: 0 0 0 4px rgba(21,55,184,.18); }
::placeholder { color: #767c88; opacity: 1; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field--short { max-width: 220px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.check input { width: 22px; height: 22px; }

.form-errors { padding: 16px 18px; border-radius: var(--radius); background: #fff4f2; border: 2px solid var(--tick); }
.form-errors p { margin: 0 0 6px; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors li { margin: 3px 0; }
.field-error { color: var(--tick); font-weight: 700; }
.lead-in { font-size: 1.1rem; margin: 0; }
.callout { padding: 14px 16px; border-radius: var(--radius); background: var(--badge); color: var(--ink); margin: 0; }
.callout a { color: var(--ink); }

/* the tick-what-you-spotted board */
.spotboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.spot { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border: 2px solid var(--rule-strong); border-radius: var(--radius); cursor: pointer; background: #fff; font-weight: 700; line-height: 1.15; }
.spot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.spot__mark { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--off); }
.spot__mark svg { position: absolute; inset: -6px -4px 2px 2px; width: 34px; height: 34px; color: var(--tick); clip-path: inset(0 100% 0 0); transition: clip-path .32s var(--ease-out); }
.spot__icon { width: 24px; height: 24px; color: var(--ink-3); }
.spot:hover { border-color: var(--cover); }
.spot:has(input:checked) { border-color: var(--cover); background: var(--wash); }
.spot input:checked ~ .spot__mark { border: 2px solid var(--ink); }
.spot input:checked ~ .spot__mark svg { clip-path: inset(0 0 0 0); }
.spot input:checked ~ .spot__icon { color: var(--cover); }
.spot:has(input:focus-visible) { outline: 3px solid var(--badge); outline-offset: 2px; box-shadow: 0 0 0 5px var(--cover-deep); }

.options { display: grid; gap: 8px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option__box { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 10px 14px; border: 2px solid var(--rule-strong); border-radius: var(--radius); background: #fff; }
.option__box > svg { width: 26px; height: 26px; color: var(--cover); }
.option__box b { display: block; font-size: 1.05rem; }
.option__box small { display: block; color: var(--ink-2); font-size: .92rem; }
.option:hover .option__box { border-color: var(--cover); }
.option input:checked + .option__box { border-color: var(--cover); background: var(--wash); }
.option input:checked + .option__box > svg { color: var(--tick); }
.option input:focus-visible + .option__box { outline: 3px solid var(--badge); outline-offset: 2px; box-shadow: 0 0 0 5px var(--cover-deep); }

.photo-field__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-field { position: relative; }
.photo-field__box { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 2px dashed var(--rule-strong); border-radius: var(--radius); cursor: pointer; font-weight: 700; color: var(--cover); }
.photo-field__box svg { width: 26px; height: 26px; }
.photo-field:hover .photo-field__box, .photo-field:focus-within .photo-field__box { border-color: var(--cover); background: var(--wash); }
.photo-field.has-file .photo-field__box { border-style: solid; border-color: var(--cover); color: var(--ink); }

.locator { display: grid; gap: 10px; }
.locator__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.locator__search { display: flex; flex: 1 1 260px; gap: 6px; }
.locator__search .btn { padding: 0 14px; min-height: 52px; }
.map--pick { height: 52vh; min-height: 300px; max-height: 480px; cursor: crosshair; }
.locator__status { margin: 0; font-weight: 700; color: var(--ink-2); }
.locator.has-pin .locator__status { color: var(--ink); }

.submit-bar { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.done { text-align: left; padding: 12px 0 20px; }
.done__tick { width: 84px; height: 84px; margin-bottom: 12px; }
.done__tick path { fill: none; stroke: var(--tick); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .1s var(--ease-out) forwards; }
.done h2 { font-size: clamp(2rem, 6vw, 3rem); font-stretch: 70%; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
.done p { font-size: 1.1rem; max-width: 52ch; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.done .callout { margin: 16px 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- admin ---------- */
.queue { margin-bottom: 40px; }
.queue h2 { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); margin-bottom: 14px; font-size: 1.8rem; font-stretch: 70%; font-weight: 900; text-transform: uppercase; }
.queue__n { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--badge); font-size: 1.1rem; }
.queue__none { color: var(--ink-2); }
.item { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.item__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.item__title { font-family: var(--display); font-stretch: 78%; font-weight: 820; font-size: 1.3rem; margin: 0; }
.item__title small { font-family: var(--body); font-weight: 400; font-size: .95rem; color: var(--ink-2); }
.item__when { color: var(--ink-2); margin: 0; font-size: .92rem; }
.item__body { margin-top: 8px; max-width: 70ch; }
.item__body blockquote { margin: 0; padding-left: 14px; border-left: 1px solid var(--rule-strong); }
.item__meta { color: var(--ink-3); font-size: .9rem; }
.item__photo { max-width: 320px; border-radius: 10px; border: 2px solid var(--ink); }
.item__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.item__actions .btn { min-height: 44px; padding: 0 16px; }
.admin-photos { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-photo { display: grid; gap: 6px; width: 160px; font-weight: 700; }
.admin-photo img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; }
.admin-photo span { display: flex; align-items: center; gap: 6px; }

/* ---------- footer ---------- */
.colophon { background: var(--cover-deep); color: #dfe5ff; margin-top: 20px; }
.colophon__in { max-width: var(--wide); margin: 0 auto; padding: 40px var(--gutter) 34px; display: grid; gap: 22px; }
.colophon__title { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; color: #fff; margin-bottom: 6px; line-height: 1; }
.colophon__about p { max-width: 52ch; }
.colophon a { color: #fff; text-decoration-color: var(--badge); }
.colophon__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 700; }
.colophon__links a { display: inline-flex; min-height: 44px; align-items: center; }
.colophon__small { font-size: .88rem; color: #b9c4f3; margin: 0; }

.cover__link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--badge); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.cover__link svg { width: 20px; height: 20px; color: var(--badge); }
.cover__link:hover { color: var(--badge); }
.pin--cluster { width: 38px; height: 38px; background: var(--badge); color: var(--ink); border: 3px solid var(--cover); font-size: 15px; }
.marker-cluster-anim .leaflet-marker-icon, .marker-cluster-anim .leaflet-marker-shadow { transition: transform .3s var(--ease-out), opacity .3s; }
.map-grow { display: none; }
.entry__score { color: var(--ink-2); font-weight: 400; }
.more summary { display: block; padding: 12px 0; text-decoration: none; }
.more summary .summary__text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
summary em.opt { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 4px; font-size: .9rem; }

/* the symbol key: a plate on the desktop cover, a fold-out above the list on phones */
.key__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.key__list li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; line-height: 1.15; }
.key__dot { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cover); color: #fff; }
.key__dot svg { width: 19px; height: 19px; }
.key__note { margin: 14px 0 0; font-size: .92rem; }
.key--cover { display: none; }
.key--list { margin: 0 0 14px; border: 2px solid var(--rule); border-radius: var(--radius); padding: 0 14px; }
.key--list summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--cover); }
.key--list[open] { padding-bottom: 14px; }
.key--list .key__note { color: var(--ink-2); }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  .filters { grid-template-columns: auto auto; justify-content: start; align-items: start; }
  .filters__search { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .spotboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .options { grid-template-columns: 1fr 1fr; }
  .colophon__in { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .colophon__small { grid-column: 1 / -1; }
  .entry__no { width: 58px; font-size: 1.8rem; }
  .kit { margin-left: 72px; }
}
@media (min-width: 1000px) {
  .page-home .cover__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); column-gap: 56px; align-items: start; padding-top: 26px; padding-bottom: 40px; }
  .page-home .cover__title { font-size: 4.4rem; max-width: 14ch; }
  .page-home .cover__sub { margin-top: 12px; }
  .page-home .cover__actions { margin-top: 18px; align-items: center; gap: 18px; }
  .page-home .cover__tally { margin-top: 14px; }
  .page-home .tally__ring { width: 46px; height: 46px; font-size: 1.25rem; }
  .page-home .finder { padding-top: 18px; }
  .page-home .filters { grid-template-columns: auto minmax(0, 1fr); align-items: start; margin-bottom: 14px; row-gap: 12px; }
  .page-home .filters__group:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .page-home .filters__search { grid-column: 1; grid-row: 2; max-width: none; }
  .key--cover .key__list { gap: 6px 14px; }
  .key--cover .key__dot { width: 26px; height: 26px; }
  .key--cover .key__dot svg { width: 17px; height: 17px; }
  .page-home .cover__in > :not(.key) { grid-column: 1; }
  .key--cover {
    display: block; grid-column: 2; grid-row: 1 / span 5; align-self: center;
    background: #fff; color: var(--ink); border-radius: 18px; padding: 24px 26px 22px;
    box-shadow: 0 0 0 6px var(--badge), 0 22px 40px rgba(5, 15, 60, .35); transform: rotate(1.4deg);
  }
  .key--cover h2 { font-size: 2rem; font-stretch: 66%; font-weight: 900; text-transform: uppercase; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 3px solid var(--ink); }
  .key--cover .key__note { color: var(--ink-2); }
  .key--list { display: none; }
  .finder__body { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: start; gap: 32px; }
  .finder__map { order: 2; position: sticky; top: 16px; }
  .finder__map .map { height: calc(100vh - 32px); max-height: 820px; }
  .park__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .where { position: sticky; top: 16px; }
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos__strip li { flex-basis: min(46%, 520px); }
}
@media (max-width: 719px) {
  /* phones: the three sections become a tab row under the wordmark */
  .masthead__in { padding-bottom: 0; }
  .nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); border-top: 1px solid rgba(255,255,255,.18); }
  .nav a { flex-direction: column; gap: 3px; justify-content: center; min-height: 58px; padding: 6px 4px; font-size: .82rem; text-align: center; border-radius: 0; line-height: 1.1; }
  .nav a.is-current { border-radius: 0; box-shadow: inset 0 -4px 0 var(--badge); background: rgba(255,255,255,.08); }
  .nav a svg { width: 20px; height: 20px; }
  .entry__photo { display: none; }
  .checklist { grid-template-columns: 1fr; }
  .spot { font-size: .95rem; padding: 10px; gap: 8px; }
  .cover__actions { margin-top: 18px; }
  .cover__actions .btn { flex: 1 1 100%; }
  /* first viewport on a phone: cover, filters and the map strip, with the first entry close behind */
  .page-home .cover__in { padding-top: 18px; padding-bottom: 30px; }
  .page-home .cover__title { font-size: clamp(2.3rem, 11vw, 3rem); max-width: none; }
  .page-home .cover__sub { margin-top: 10px; font-size: 1rem; }
  .cover__sub-more { display: none; }
  .page-home .cover__actions { margin-top: 14px; gap: 4px; }
  .page-home .cover__tally { margin-top: 8px; font-size: .95rem; }
  .page-home .tally__ring { width: 36px; height: 36px; font-size: 1.05rem; box-shadow: 0 0 0 2px var(--cover), 0 0 0 4px var(--badge); }
  .page-home .filters__search input { min-height: 46px; }
  .filters .chip span { min-height: 44px; padding: 0 13px; }
  .finder { padding-top: 16px; }
  .filters { gap: 10px; margin-bottom: 14px; }
  .filters__group legend { margin-bottom: 6px; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .filters .chips::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
  .filters .chip span { min-height: 44px; }
  .finder__body { gap: 12px; }
  .finder .map { height: 210px; min-height: 0; }
  .finder .map.is-big { height: 64vh; }
  .map-grow {
    display: inline-flex; align-items: center; gap: 6px; position: absolute; right: 8px; bottom: 8px; z-index: 500;
    min-height: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem; cursor: pointer;
  }
  .map-grow svg { width: 18px; height: 18px; color: var(--cover); }
  .finder .leaflet-control-attribution { margin-right: 120px !important; }
}
@media (max-width: 380px) {
  .kit { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .done__tick path { stroke-dashoffset: 0; }
}
@media print {
  .masthead nav, .cover__actions, .map, .visit, .rate, .tipform, .helpout, .colophon { display: none !important; }
  .cover { background: none; color: #000; } .cover__title, .park-head__name { color: #000; }
}
