/* Treasured Places — site styles
   Palette and type are set once here; every page uses this file. */

:root {
  --pine:        #17342b;
  --pine-deep:   #0d201a;
  --bark:        #46341f;
  --bark-light:  #5c462c;
  --paper:       #f9faf6;
  --paper-warm:  #fcfbf7;
  --ink:         #1e2622;
  --ink-soft:    #4a544d;
  --gold:        #c9a227;
  --rule:        #dde1d6;

  --display: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 49rem;
  --wide: 66rem;
}

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

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--bark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Page-wide bounding column ---------- */

.page {
  max-width: var(--wide);
  margin: 0 auto;
}

/* ---------- Header: routed park sign ---------- */

.masthead {
  padding: 2rem 1rem 0.5rem;
}

.sign-inner {
  padding: 0.5rem 1rem;
  text-align: center;
}

.sign a { color: inherit; text-decoration: none; display: inline-block; }

.sign-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 6.5vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--pine);
}

.sign-tagline {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Navigation ---------- */

.nav-bar {
  padding: 0.5rem 1rem 1.25rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav-list a {
  display: inline-block;
  padding: 0.45rem 1rem;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.nav-list a[aria-current="page"] {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
  font-weight: 600;
}

/* ---------- Page body ---------- */

main { display: block; }

.hero-figure { margin: 0 0 1.75rem; }
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.hero-figure figcaption {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.15rem 3.5rem;
}


h1, h2, h3 {
  font-family: var(--display);
  color: var(--pine);
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.6rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  margin: 2.6rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.9rem 0 0.5rem;
}

p { margin: 0 0 1.15rem; }

.lede { font-size: 1.15rem; color: var(--ink); }

.tally-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.75rem 0 0.75rem;
}

@media (min-width: 30rem) {
  .tally-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tally-card {
  background: var(--paper-warm);
  border: 2px solid var(--pine);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  text-align: center;
}

.tally-card .count {
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--pine);
  line-height: 1.1;
}

.tally-card .label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--pine);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.tally-total {
  background: var(--pine);
  border: 2px solid var(--pine);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  min-height: 6.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tally-total-inner { display: inline-block; text-align: right; }

.tally-total .line {
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.05;
  white-space: nowrap;
}

@media (min-width: 30rem) {
  .tally-total .line { font-size: 2.1rem; }
}

.tally-total .caption {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: #a9c0b4;
  margin-top: 0.15rem;
  letter-spacing: 0.05em;
}

blockquote {
  margin: 1.75rem 0;
  padding-left: 1.15rem;
  border-left: 3px solid var(--rule);
  font-style: italic;
  color: var(--ink-soft);
}

.btn-row { text-align: center; margin: 2rem 0; }

.btn {
  display: inline-block;
  background: var(--bark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--bark);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover,
.btn:focus-visible { background: #fff; color: var(--bark); }
.btn .arrow { margin-right: 0.4rem; }

.toc { padding-left: 1.15rem; }
.toc li { margin-bottom: 0.35rem; }

.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.note--after-table { margin-top: 1.5rem; }

.info-box,
.alert-box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid;
  border-radius: 2px;
}
.info-box > :last-child,
.alert-box > :last-child { margin-bottom: 0; }

.info-box {
  background: #eaf4fb;
  border-left-color: #4a90c4;
}

.info-box--green {
  background: #e9f4ee;
  border-left-color: var(--pine);
}

.alert-box {
  background: #fdf6da;
  border-left-color: #cc9a1e;
}

/* ---------- The list ---------- */

.filters {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 0.85rem;
  padding: 1.1rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

@media (min-width: 40rem) {
  .filters { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; }
}

.filters label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.filters input,
.filters select {
  width: 100%;
  height: 2.85rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}

.result-count {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-variant-numeric: tabular-nums;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.list-table th {
  text-align: left;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--pine);
  padding: 0.5rem 0.6rem;
}

.list-table td {
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.list-table tr:hover td { background: var(--paper-warm); }

/* Column widths: place name takes the remaining space; the three
   code columns stay tight so the table doesn't drift around. */
.list-table th:nth-child(2),
.list-table td:nth-child(2) { width: 5rem; }
.list-table th:nth-child(3),
.list-table td:nth-child(3) { width: 7rem; }
.list-table th:nth-child(4),
.list-table td:nth-child(4) { width: 9.5rem; }

.type-code,
.states,
.managers {
  display: inline;
  vertical-align: baseline;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--bark);
}

.type-code,
.managers { white-space: nowrap; }

.rownote {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 0.4rem;
}

/* Table collapses to stacked rows on small screens */
@media (max-width: 39.99rem) {
  .list-table thead { position: absolute; left: -9999px; }
  .list-table tr {
    display: block;
    border-bottom: 1px solid var(--rule);
    padding: 0.7rem 0;
  }
  /* Must come after the display:block above, or filtered-out rows
     stay visible on mobile. */
  .list-table tr[hidden] { display: none; }
  .list-table td { display: inline; border: 0; padding: 0; vertical-align: baseline; }
  /* The fixed column widths above don't apply once rows stack. */
  .list-table td:nth-child(2),
  .list-table td:nth-child(3),
  .list-table td:nth-child(4) { width: auto; }
  .list-table td[data-col="name"] { display: block; font-size: 1.02rem; }
  .list-table td[data-col="type"]::after,
  .list-table td[data-col="managers"]::after {
    content: "∙";
    color: var(--ink-soft);
    margin: 0 0.4em;
  }
}

.abbrev {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.45rem 1.25rem;
}
@media (min-width: 34rem) { .abbrev { grid-template-columns: 1fr 1fr; } }
.abbrev li { font-size: 0.92rem; }
.abbrev b { font-family: var(--display); color: var(--bark); }

/* ---------- Updates ---------- */

.post { padding-bottom: 2.25rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.25rem; }
.post:last-of-type { border-bottom: 0; }
.post h2 { margin-top: 0; }

/* ---------- Quest roster ---------- */

.roster { padding-left: 1.15rem; margin: 1rem 0; }
.roster li { padding: 0.9rem 0; }
.roster li::marker { color: var(--pine); }
.roster .finisher { font-weight: 700; }

.form-embed {
  margin: 1.5rem 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.form-embed iframe { display: block; width: 100%; border: 0; min-height: 720px; }

/* ---------- Footer ---------- */

.site-footer {
  color: var(--ink-soft);
  padding: 2.25rem 1.15rem 2.75rem;
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1.5rem;
}
.footer-nav a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.colophon { margin: 0; }
.colophon a { color: var(--pine); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
/* Tuned for the list page: someone printing a 495-row checklist for a
   road-trip binder. Strips navigation and controls, forces the mobile
   stacking off so the table prints as a real table, and lets rows break
   across pages cleanly. */

@media print {
  /* Hide anything that isn't the content itself */
  .nav-bar,
  .site-footer,
  .hero-figure,
  .filters,
  .result-count,
  .skip,
  .btn-row,
  .form-embed {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10pt;
  }

  .page,
  .wrap {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* Keep the site title as a header on the printed page */
  .masthead { padding: 0 0 0.5rem; }
  .sign-title { font-size: 18pt; color: #000; }
  .sign-tagline { font-size: 8pt; color: #333; }

  h1 { font-size: 16pt; color: #000; }
  h2 { font-size: 13pt; color: #000; page-break-after: avoid; }
  h3 { font-size: 11pt; color: #000; page-break-after: avoid; }

  a { color: #000; text-decoration: none; }

  /* Undo the small-screen stacked layout so the table prints as a table */
  .list-table { width: 100%; font-size: 9pt; }
  .list-table thead { position: static; left: auto; display: table-header-group; }
  .list-table tr { display: table-row; page-break-inside: avoid; }
  .list-table td { display: table-cell; border-bottom: 1px solid #ccc; padding: 3pt 4pt; }
  .list-table td::after { content: none !important; }
  .list-table tr:hover td { background: none; }
  .list-table th {
    border-bottom: 1pt solid #000;
    color: #000;
    padding: 3pt 4pt;
  }

  /* Filtered-out rows stay hidden when printing a filtered view */
  .list-table tr[hidden] { display: none !important; }

  .type-code,
  .states,
  .managers { color: #000; font-size: 9pt; }

  /* Give the checkbox column something to write in */
  .list-table tbody tr td:first-child::before {
    content: "☐  ";
    color: #000;
  }

  .tally-grid { display: block; }
  .tally-card,
  .tally-total {
    background: none;
    border: 1pt solid #000;
    color: #000;
    padding: 6pt;
    margin-bottom: 4pt;
    min-height: 0;
  }
  .tally-card .count,
  .tally-card .label,
  .tally-total .line,
  .tally-total .caption { color: #000; }

  .info-box,
  .alert-box { border: 1pt solid #666; background: none; }

  .abbrev { page-break-inside: avoid; }
}
