/* Trails and Tracks Near You. Prefix: ttn- */
.ttn-panel { margin-top: 8px; }
.ttn-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ttn-fieldset legend { font-weight: 800; padding: 0; margin-bottom: 8px; }
.ttn-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ttn-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 3px solid var(--ink); background: var(--white); font-weight: 800; font-size: .92rem; cursor: pointer; }
.ttn-chip input { width: 22px; height: 22px; flex: none; accent-color: var(--red); margin: 0; }
.ttn-chip:has(input:checked) { background: #fff7d6; border-color: var(--red); }
.ttn-chip:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
#ttn-filters input[type="search"], #ttn-filters select { min-height: 48px; }
.ttn-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.ttn-buttons .btn { min-height: 48px; }
.ttn-status { min-height: 1.5em; font-weight: 700; margin: 6px 0 12px; }

.ttn-cities { display: grid; gap: 30px; }
.ttn-city { background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow); margin: 0 6px 6px 0; padding: 0 22px 18px; scroll-margin-top: 90px; }
.ttn-city[hidden], .ttn-place[hidden], .ttn-none[hidden] { display: none; }
.ttn-city > h3 { margin: 0 -22px; padding: 12px 22px; background: var(--ink); color: var(--white); font-size: 1.3rem; }
.ttn-drive { margin: 14px 0 6px; }
.ttn-sports { display: inline-block; margin-left: 6px; font-weight: 800; min-height: 44px; line-height: 44px; }
.ttn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .ttn-list { grid-template-columns: repeat(2, 1fr); } }
.ttn-place { border: 3px solid var(--ink); padding: 16px 18px; background: var(--bg); border-left-width: 10px; }
.ttn-near { border-style: dashed; border-left-style: solid; }
.ttn-badges { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.ttn-badge { display: inline-block; padding: 3px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--ink); }
.ttn-b-trail { background: #276749; }
.ttn-b-track { background: #B01205; }
.ttn-b-park { background: #2B6CB0; }
.ttn-b-rec { background: #553C9A; }
.ttn-b-near { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.ttn-glyph { font-size: .8em; }
.ttn-name { display: block; font-size: 1.08rem; line-height: 1.3; }
.ttn-where { display: block; color: var(--muted); font-weight: 700; font-size: .9rem; margin: 2px 0 6px; }
.ttn-nearnote { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 6px; }
.ttn-has { margin: 0 0 10px; padding-left: 1.2em; font-size: .94rem; }
.ttn-has li { margin-bottom: 3px; }
.ttn-fine { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.ttn-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.ttn-links .btn { min-height: 44px; display: inline-flex; align-items: center; }
.ttn-ver { font-size: .8rem; color: var(--muted); }
.ttn-nearby { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; }
.ttn-go { font: inherit; font-weight: 800; font-size: .86rem; min-height: 44px; padding: 6px 14px; border: 3px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.ttn-go:hover { background: var(--yellow); }
.ttn-legend { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }

.ttn-safety { display: grid; gap: 22px; margin: 20px 0 28px; }
@media (min-width: 760px) { .ttn-safety { grid-template-columns: repeat(2, 1fr); } }
.ttn-scard { background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 22px 24px; margin: 0 6px 6px 0; border-top-width: 10px; }
.ttn-scard h3 { margin: 0 0 8px; }
.ttn-scard ul { margin: 0; padding-left: 1.2em; }
.ttn-scard li { margin-bottom: 10px; }
.ttn-scard a { font-weight: 700; font-size: .88rem; display: inline-block; min-height: 24px; }
.ttn-s-warm { border-top-color: #276749; }
.ttn-s-cool { border-top-color: #2B6CB0; }
.ttn-s-heat { border-top-color: #D91606; }
.ttn-s-cold { border-top-color: #553C9A; }
.ttn-s-storm { border-top-color: #8A5A00; }

.ttn-split { display: grid; gap: 28px; align-items: start; }
.ttn-photo { margin: 0; max-width: 260px; }
.ttn-photo img { width: 100%; height: auto; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.ttn-after { margin-top: 8px; }
@media (min-width: 800px) {
  .ttn-split { grid-template-columns: 1fr 260px; gap: 40px; }
  .ttn-split-rev, .ttn-after { grid-template-columns: 260px 1fr; }
}
.ttn-print-head, .ttn-print-foot, .ttn-printurl { display: none; }
@media (prefers-reduced-motion: reduce) { .ttn-go, .ttn-chip { transition: none; } }

@media print {
  @page { margin: 12mm; }
  .ttn-print-head, .ttn-print-foot { display: block; font-size: 10pt; }
  .ttn-print-head { border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
  .ttn-print-foot { border-top: 2px solid #000; padding-top: 6px; margin-top: 12px; }
  .ttn-printurl { display: block; font-size: 8.5pt; margin: 4px 0 0; word-break: break-all; }
  .ttn-city { box-shadow: none; border: 2px solid #000; margin: 0 0 10px; padding: 0 10px 8px; break-inside: avoid; }
  .ttn-city > h3 { background: #fff; color: #000; margin: 0 -10px; border-bottom: 2px solid #000; }
  .ttn-list { display: block; }
  .ttn-place { border: 1px solid #000; background: #fff; margin: 8px 0; break-inside: avoid; }
  .ttn-badge, .ttn-b-trail, .ttn-b-track, .ttn-b-park, .ttn-b-rec { background: #fff; color: #000; border: 1px solid #000; }
}
