/* outdoor-hub (캠프앤숲) only. Tokens from ds.css only (design-check blocks raw colours, shadows, gradients). Signature element: the next-opening status card (big D-day).
   Copied to public/outdoor.css at build time (scripts/gen-extra.mjs) so the Worker-rendered pages (/camp/*, /forest/*, /region/*, /theme/*, /calendar/*) use the same styles. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.label { font-weight: 700; color: var(--text-2); margin: var(--s4) 0 var(--s2); font-size: var(--t-sm); }
.field > label.label, .tool > .field:first-of-type > .label { margin-top: 0; }
.sub { color: var(--text-2); font-size: var(--t-cap); font-weight: 400; }
.ok { margin: var(--s3) 0 0; padding: var(--s3) var(--s4); border-radius: var(--r1); background: var(--accent-weak); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); font-size: var(--t-sm); font-weight: 600; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap input { padding-right: 3rem; }
.search-clear { position: absolute; right: var(--s1); display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0; border: 0; border-radius: var(--r1); background: transparent; color: var(--text-2); font-size: var(--t-h2); line-height: 1; }
.search-clear:hover { color: var(--ink); }
.search-row { display: flex; gap: var(--s2); align-items: stretch; }
.search-row input { flex: 1 1 auto; min-width: 0; }
.search-row .btn { flex: none; }
.empty .row-actions { margin-top: var(--s3); }
.chips.regions { margin-bottom: var(--s3); }
.chips.regions a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }
.chips.regions a:hover { border-color: var(--accent); color: var(--accent); }
.plain.links { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tbody th[scope='row'] { white-space: normal; min-width: 6rem; }
.fields.two { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: start; }
.check { display: flex; gap: var(--s3); align-items: center; min-height: 2.75rem; margin: 0 0 var(--s2); }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
fieldset.field > legend { padding: 0; }

/* home: status card = the one prominent element of the first screen */
.home-tool > * + * { margin-top: var(--s4); }
.next-open { display: grid; gap: var(--s1); padding: var(--s5); border-radius: var(--r2); background: var(--accent-weak); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
a.next-open:hover { border-color: var(--accent); }
.next-wait { min-height: 9rem; }
.next-k { font-size: var(--t-sm); font-weight: 700; color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.next-d { font-size: clamp(2.5rem, 2rem + 4vw, 3.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.next-t { font-weight: 700; font-size: var(--t-body); }
.next-w { color: var(--text-2); font-size: var(--t-sm); }
.next-go { margin-top: var(--s2); font-size: var(--t-sm); font-weight: 700; color: var(--accent); }
.next-wish { margin: 0; }
.home-search .label { margin-top: 0; }
.shortcuts > li a { font-size: var(--t-body); text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; min-height: 2.75rem; }
.shortcuts .v { font-weight: 400; color: var(--text-2); font-size: var(--t-sm); }
.quick-chips { list-style: none; padding: 0; }
.quick-chip { text-decoration: none; min-height: 2.75rem; font-size: var(--t-sm); }
.home-guide-btn { margin-top: var(--s4); }
.home-regions .chips { margin-top: var(--s3); }

/* finder */
.finder-fields { display: grid; gap: var(--s2); grid-template-columns: minmax(0, 1fr); margin-top: var(--s2); }
@media (min-width: 48rem) { .finder-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); } }
.finder-count { color: var(--ink); }
.finder .results { margin-top: var(--s2); }
.finder .results > li { flex-wrap: wrap; }
.finder-k { flex: 1 1 12rem; min-width: 0; max-width: none; }
.finder-k a { font-weight: 700; display: inline-flex; align-items: center; min-height: 2.75rem; }
.finder-v { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); justify-content: flex-end; align-items: center; font-weight: 400; color: var(--text-2); font-size: var(--t-sm); }
.finder-links { margin-top: var(--s5); }
.bs-opts .bs-opt { min-height: 3rem; }

/* my log */
.app-tablist { display: flex; gap: var(--s2); overflow-x: auto; margin: 0 0 var(--s4); padding: 0 0 var(--s1); scrollbar-width: none; }
.app-tablist::-webkit-scrollbar { display: none; }
.app-tablist [role='tab'] { flex: none; min-height: 2.75rem; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--text-2); font-weight: 600; font-size: var(--t-sm); white-space: nowrap; }
.app-tablist [role='tab'][aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.app-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0 0 var(--s4); }
.app-note.err { background: var(--err-weak); padding: var(--s3) var(--s4); border-radius: var(--r1); }
[role='tabpanel'] > .panel + .panel, [role='tabpanel'] > .panel + section { margin-top: var(--s4); }
.picked { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r1); }
.site-hits .link { text-align: left; }
.list.visits .k, .list.wish .k { flex: 1 1 auto; min-width: 0; max-width: none; color: var(--ink); }
.list.visits .v, .list.wish .v { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end; align-items: center; font-weight: 400; }
.add-row { display: flex; gap: var(--s2); align-items: flex-end; margin-top: var(--s3); }
.add-row input { flex: 1 1 auto; min-width: 0; }
.add-row .field { flex: 1 1 auto; margin: 0; min-width: 0; }
.add-row .btn { flex: none; }
.gear-card h3 { margin-top: 0; }
.gear-items { list-style: none; margin: var(--s3) 0; padding: 0; }
.gear-items li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 2.75rem; border-top: 1px solid var(--rule); }
.gear-items li > label { flex: 1 1 auto; min-width: 0; }
.push-box, .ics-box { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.push-box h3, .ics-box h3 { margin-top: 0; }
.app-gate .benefit-list { margin-top: var(--s4); }

/* mobile bottom tab bar (BottomTabs.tsx, public/outdoor.js on Worker pages): hidden on desktop and in the store app (native tabs) */
.btabs { display: none; }
@media (max-width: 47.99rem) {
  .btabs { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--rule); border-top-left-radius: var(--r2); border-top-right-radius: var(--r2); padding-bottom: env(safe-area-inset-bottom); }
  .btabs ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
  .btabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 3.5rem; color: var(--text-2); font-size: var(--t-cap); font-weight: 600; text-decoration: none; }
  .btabs a[aria-current='page'] { color: var(--accent); }
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); } /* the fixed bar never covers the last content or the footer */
}
[data-app] .btabs { display: none; }
@media (max-width: 47.99rem) { [data-app] body { padding-bottom: env(safe-area-inset-bottom); } }

/* Worker-rendered data pages */
.ad[hidden] { display: none; }
.nf-links p { margin: 0 0 var(--s2); }
.src-line { color: var(--text-2); font-size: var(--t-cap); }
.open-card { border: 1px solid var(--rule); border-radius: var(--r2); padding: var(--s4) var(--s5); background: var(--surface); }
.open-card .dday { font-size: var(--t-h2); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.cal-table td, .cal-table th { white-space: nowrap; }
.cal-table td:last-child { white-space: normal; }

/* visit rating (optional 1-5) */
.rating-row { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.rating-opt { min-height: 2.75rem; }
.cal-table tr.is-week > * { background: var(--accent-weak); }
