/* v212 candidate. Load after app-core, ridge-design and mobile-usability.
   Keep the mountain headings and existing colour tokens; refine result cards. */

/* Facility names use the reading face; mountain headings retain --f-display. */
.oc,
.oc .och,
.oc .ochn,
.oc .cat-name { font-family:var(--f-body); }
.oc { overflow:visible; }
.oc .och { border-radius:11px 11px 0 0; }
.oc .ochn,
.oc .cat-name {
  display:block; min-width:0; padding-right:0;
  font-size:1.04rem; font-weight:700; line-height:1.45; letter-spacing:0;
  white-space:normal; overflow-wrap:anywhere;
}
.oc.oc-compact .och { min-height:56px; padding:11px 12px 9px; }
.oc.oc-compact .och:not(.cat-och):not(.is-lodging) { gap:5px 8px; }
.oc.oc-compact .ochm { min-width:0; gap:3px; }
.oc.oc-compact .no { width:24px; height:24px; border-radius:5px; font-size:.9rem; }
.oc .card-subline {
  display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 7px;
  min-width:0; font-size:.79rem; line-height:1.5; color:var(--ink-2);
}
.oc .card-subline .oc-place {
  min-width:0; padding:0; font:inherit; white-space:normal; overflow-wrap:anywhere;
}
.oc .card-subline .bath-kind-group {
  display:inline-flex; align-items:baseline; flex-wrap:wrap; gap:2px 6px; margin:0;
}
.oc .card-subline .bath-kind {
  margin:0; padding:0; border:0; border-radius:0; background:none;
  font:inherit; color:inherit; width:auto;
}
.oc .card-subline .bath-kind [aria-hidden] { font-size:1em; }
.oc.oc-compact .ochs,
.oc.oc-compact .cat-status { gap:3px 8px; margin-top:2px; padding-top:0; }
.oc.oc-compact .ochs .st,
.oc.oc-compact .cat-status .st { font-size:.79rem; line-height:1.5; }

/* Catalogue headers now have the same number/name/meta rhythm and action row. */
.oc.oc-compact .cat-och {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto;
  gap:4px 8px; align-items:start; padding:11px 12px 9px;
}
.oc.oc-compact .cat-och > .no { grid-column:1; grid-row:1 / span 3; }
.oc.oc-compact .cat-och > .cat-name { grid-column:2; grid-row:1; }
.oc.oc-compact .cat-och > .card-subline { grid-column:2; grid-row:2; }
.oc.oc-compact .cat-och > .cat-status { grid-column:2; grid-row:3; }
.oc.oc-compact .cat-och > .ochm { grid-column:2; grid-row:1 / span 3; }
.oc.oc-compact .cat-och > .compact-toggle {
  grid-column:3; grid-row:1 / span 2; align-self:start;
  min-height:0; margin:0; white-space:normal;
}
.oc.oc-compact .cat-och > .bath-facts,
.oc.oc-compact .cat-och > .card-features { grid-column:1 / -1; }
.oc.oc-compact .cat-och .card-features {
  min-height:0; padding-right:0; margin:1px 0 0; align-content:start;
}
.oc.oc-compact .compact-toggle { font-size:.79rem; line-height:1.5; gap:5px; }

/* Four facts remain 2 x 2. Long warnings and unknown values grow naturally. */
.oc .bath-facts,
.oc.oc-compact .bath-facts {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 14px; margin-top:4px; padding:9px 0 1px;
  border-top:1px solid var(--line-2); min-width:0;
}
.oc .bath-facts > span,
.oc.oc-compact .bath-facts > span {
  display:grid; align-content:start; gap:2px; min-width:0; max-width:100%;
  white-space:normal; overflow-wrap:anywhere;
}
.oc .bath-facts > span > small,
.oc.oc-compact .bath-facts > span > small {
  font-family:var(--f-body); font-size:.79rem; font-weight:400;
  line-height:1.45; color:var(--ink-2); white-space:normal;
}
.oc .bath-facts b,
.oc .bath-facts .fact-value,
.oc.oc-compact .bath-facts b,
.oc.oc-compact .bath-facts .fact-value {
  min-width:0; max-width:100%; font-family:var(--f-body);
  font-size:.98rem; font-weight:650; line-height:1.45;
  font-variant-numeric:tabular-nums; white-space:normal; overflow-wrap:anywhere;
}
.oc .bath-facts .numf { font-family:inherit; }
.oc .bath-facts .fact-value small { font-family:var(--f-body); font-size:.79rem; }
.oc .bath-facts .fact-text,
.oc.oc-compact .bath-facts .fact-text { font-size:.88rem; line-height:1.5; }

/* Map/save/compare are siblings. An open chooser uses normal full-width flow. */
.oc .card-quick-actions {
  display:grid; grid-template-columns:1.25fr 1fr 1fr;
  align-items:start; gap:7px; padding:1px 12px 11px;
}
.oc .card-quick-actions > * { min-width:0; max-width:100%; margin:0; }
.oc .card-quick-actions > .quick-facility-map { width:100%; }
.oc .card-quick-actions > .saved-pick,
.oc .card-quick-actions > .compare-pick,
.oc .card-quick-actions > .quick-facility-map > summary {
  box-sizing:border-box; position:static; display:flex;
  align-items:center; justify-content:center; gap:5px; width:100%; min-width:0;
  min-height:44px; padding:8px 5px; border:1px solid var(--line);
  border-radius:6px; font-family:var(--f-body); font-size:.84rem;
  font-weight:600; line-height:1.5; white-space:normal; overflow-wrap:anywhere;
  box-shadow:none; text-align:center; cursor:pointer;
}
.oc .card-quick-actions > .saved-pick,
.oc .card-quick-actions > .compare-pick { background:var(--surface); color:var(--ink); }
.oc .card-quick-actions > .saved-pick[aria-pressed="true"],
.oc .card-quick-actions > .compare-pick[aria-pressed="true"] {
  background:var(--moss-l); border-color:var(--moss); color:var(--moss);
}
.oc .card-quick-actions > .quick-facility-map > summary {
  background:var(--moss); border-color:var(--moss); color:var(--moss-ink);
}
.oc .card-quick-actions > .quick-facility-map[open] { grid-column:1 / -1; }
.oc .card-quick-actions:has(> .quick-facility-map[open]) {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.oc .quick-facility-map > .place-options {
  position:static; box-sizing:border-box; width:100%; min-width:0; max-width:100%;
  margin:8px 0 0; padding:12px; border-radius:6px; box-shadow:none;
}
.oc .quick-facility-map .place-query { font-family:var(--f-body); font-size:.9rem; }
.oc .quick-facility-map .place-providers { min-width:0; }
.oc .quick-facility-map :is(.place-provider,.place-copy,.place-routes a) {
  box-sizing:border-box; min-width:0; max-width:100%; min-height:44px;
  white-space:normal; overflow-wrap:anywhere;
}
.oc .quick-facility-map[open] > summary > span:not([aria-hidden="true"]) {
  transform:none;
}

/* Timing/filter/map: three concise disclosures, one full-width open panel. */
.mountain-results-tools.bath-controls {
  display:grid; grid-template-columns:minmax(0,1.25fr) repeat(2,minmax(0,1fr));
  align-items:start; gap:8px; margin:8px 0; min-width:0;
}
.mountain-results-tools.bath-controls > * { min-width:0; max-width:100%; }
.mountain-results-tools.bath-controls > :is(.bath-control-timing,.bath-control-filter,.bath-control-map) {
  grid-column:auto;
}
.mountain-results-tools.bath-controls > :has(> details[open]) { grid-column:1 / -1; }
.bath-controls > :is(.bath-control-timing,.bath-control-filter,.bath-control-map) > details {
  min-width:0; margin:0; border:1px solid var(--line); border-radius:6px;
  background:var(--surface); overflow:visible;
}
.bath-controls > :is(.bath-control-timing,.bath-control-filter,.bath-control-map) > details > summary {
  box-sizing:border-box; display:flex; flex-direction:column;
  align-items:flex-start; justify-content:center; gap:2px;
  min-width:0; min-height:64px; padding:9px 10px;
  font-family:var(--f-body); font-size:.84rem; line-height:1.5;
  white-space:normal; overflow-wrap:anywhere; list-style:none; cursor:pointer;
}
.bath-controls .bath-control-timing .bath-plan-bar {
  display:block; min-width:0; margin:0;
}
.bath-controls .bath-plan-context,
.bath-controls .cond .cv,
.bath-controls .nearby-map > summary small {
  min-width:0; font-size:.78rem; font-weight:400; line-height:1.5;
  color:var(--ink-2); white-space:normal; overflow-wrap:anywhere;
}
.bath-controls .cond .cl { font-size:.84rem; letter-spacing:0; color:var(--ink); }
.bath-controls .bath-control-timing .mode {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px; padding:3px; margin:10px; background:var(--surface-2); border-radius:5px;
}
.bath-controls .bath-control-timing .mode button {
  min-width:0; min-height:44px; padding:7px 5px; font-size:.84rem;
  white-space:normal; overflow-wrap:anywhere;
}
.bath-controls .bath-control-timing .timebar {
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
  min-width:0; margin:0 10px 10px; padding:10px 0 0;
  border:0; border-top:1px solid var(--line-2); border-radius:0; background:none;
}
.bath-controls .timebar .tv { min-width:0; }
.bath-controls .timebar .tv b { font-size:1.15rem; line-height:1.5; }
.bath-controls .timebar input {
  box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:44px;
  height:auto; padding:7px; border-radius:5px; font:inherit;
}
.bath-controls .timebar :is(.tstep,.note,.sunv) { grid-column:1 / -1; }
.bath-controls .timebar .sunv { border-left:0; padding-left:0; }
.bath-controls .timebar .tstep { display:flex; flex-wrap:wrap; gap:5px; }
.bath-controls .timebar .tstep .chip { flex:1; min-width:0; min-height:44px; }
.bath-controls .cond .tools { min-width:0; margin:0 10px 12px; }
.bath-controls .bath-choice { min-width:0; margin:10px; }
.bath-controls .quick-bath-filters { flex-wrap:wrap; gap:6px; margin:8px 10px; }
.bath-controls :is(button,select,input,a) { min-height:44px; max-width:100%; }
.bath-controls .bath-control-map > .nearby-map > summary {
  display:grid; grid-template-columns:16px minmax(0,1fr) 7px;
  align-items:center; gap:2px 5px;
}
.bath-controls .bath-control-map > .nearby-map > summary .nearby-map-summary-icon {
  grid-column:1; grid-row:1 / span 2; width:16px; height:16px;
}
.bath-controls .bath-control-map > .nearby-map > summary > span { grid-column:2; grid-row:1; }
.bath-controls .bath-control-map > .nearby-map > summary > small { grid-column:2; grid-row:2; }
.bath-controls .bath-control-map > .nearby-map > summary::after {
  grid-column:3; grid-row:1 / span 2; align-self:center; margin:0;
}

/* Sort stays beside the count when it fits; it may wrap instead of clipping. */
.mountain-result-count { display:flex; align-items:center; flex-wrap:wrap; gap:7px 12px; }
.mountain-result-count > span { min-width:0; overflow-wrap:anywhere; }
.bath-result-sort {
  display:inline-flex; align-items:center; flex-wrap:wrap; gap:5px 7px;
  min-width:0; max-width:100%; margin-left:auto; font-size:.8rem; line-height:1.5;
}
.bath-result-sort select {
  box-sizing:border-box; width:11.5em; min-width:0; max-width:100%; min-height:44px;
  padding:7px 9px; border:1px solid var(--line); border-radius:6px;
  background:var(--surface); color:var(--ink); font-family:var(--f-body); font-size:.9rem;
}
.bath-active-filters { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 10px; min-width:0; }
.bath-active-filters :is(button,a) {
  box-sizing:border-box; min-width:0; max-width:100%; min-height:44px; padding:7px 10px;
  border:1px solid var(--line); border-radius:6px; background:var(--moss-l);
  color:var(--moss); font:inherit; font-size:.8rem; line-height:1.5;
  white-space:normal; overflow-wrap:anywhere; cursor:pointer;
}

.oc .och:focus-visible,
.oc .card-quick-actions :is(summary,button,a):focus-visible,
.bath-controls :is(summary,button,a,input,select):focus-visible,
.bath-result-sort select:focus-visible,
.bath-active-filters :is(button,a):focus-visible {
  outline:3px solid var(--lake); outline-offset:2px;
}
@media(max-width:919px) { .tl-axis { display:none; } }
@media(max-width:359px) {
  .oc .card-quick-actions { gap:5px; padding-inline:10px; }
  .oc .card-quick-actions > :is(.saved-pick,.compare-pick),
  .oc .card-quick-actions > .quick-facility-map > summary { padding-inline:4px; }
  .oc .bath-facts,.oc.oc-compact .bath-facts { column-gap:10px; }
  .mountain-results-tools.bath-controls { gap:6px; }
  .bath-controls > :is(.bath-control-timing,.bath-control-filter,.bath-control-map) > details > summary { padding-inline:8px; }
}
html.fs-xlarge .bath-result-sort { flex-basis:100%; margin-left:0; }
@media(max-width:480px) {
  html.fs-large .bath-controls .bath-control-timing .timebar,
  html.fs-xlarge .bath-controls .bath-control-timing .timebar { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:359px) {
  .bath-controls .bath-control-timing .timebar { grid-template-columns:minmax(0,1fr); }
}

/* Final integrated bodies: no narrow orphan note when a map cannot be shown. */
.mountain-results-tools.bath-controls > .bath-control-map:not(:has(> details)),
.mountain-results-tools.bath-controls > .mountain-around { grid-column:1 / -1; }
.bath-control-map:not(:has(> details)) > .note {
  margin:0; padding:9px 10px; border:1px solid var(--line); border-radius:6px;
  background:var(--surface-2); font-size:.82rem; line-height:1.6; overflow-wrap:anywhere;
}
.bath-filter-body { min-width:0; padding:10px; border-top:1px solid var(--line-2); }
.bath-controls .bath-filter-body > .bath-choice { margin:0; }
.bath-controls .bath-filter-body > .tools { margin:10px 0 0; }
.bath-controls .bath-filter-body .row { flex-wrap:wrap; gap:6px; padding:0; }
.bath-controls .bath-filter-body .chip,
.bath-controls .timebar .tstep .chip {
  min-width:0; min-height:44px; max-width:100%;
  white-space:normal; overflow-wrap:anywhere; line-height:1.5;
}
.bath-controls .timebar .tstep .chip { flex:1 1 5em; text-align:center; }
.bath-time-body { min-width:0; border-top:1px solid var(--line-2); }

/* Expanded facility information has two clear, unboxed section headings. */
.oc .card-equipment {
  min-width:0; margin-top:14px; padding-top:12px; border-top:1px solid var(--line);
}
.oc .card-equipment > h4,
.oc .facility-audit-records > section > h4 {
  margin:0 0 9px; font-family:var(--f-body); font-size:.9rem;
  font-weight:700; line-height:1.6; overflow-wrap:anywhere;
}
.oc .card-equipment > .bath-intro { margin:0 0 10px; padding:0; font-size:.84rem; }
.oc .card-equipment > .bath-marks { margin:0 0 12px; }
.oc .card-equipment .bath-marks-caption { font-size:.76rem; line-height:1.6; }
.oc .card-equipment .bath-marks-hint { font-size:.72rem; line-height:1.5; }
.oc .card-equipment .bath-mark > summary {
  min-width:0; min-height:56px; height:auto; grid-template-columns:18px minmax(0,1fr);
  gap:2px 6px; padding:9px 8px;
}
.oc .card-equipment .bath-mark-icon svg { width:18px; height:18px; }
.oc .card-equipment .bath-mark-label { font-size:.78rem; line-height:1.45; white-space:normal; overflow-wrap:anywhere; }
.oc .card-equipment .bath-mark-state { flex-wrap:wrap; font-size:.72rem; line-height:1.45; }
.oc .card-equipment .bath-visit { margin:12px 0; }
.oc .card-evidence {
  min-width:0; margin-top:14px; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.oc .card-evidence > summary {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  min-width:0; min-height:44px; padding:10px 0; list-style:none;
  font-family:var(--f-body); font-size:.86rem; font-weight:600; line-height:1.5;
  white-space:normal; overflow-wrap:anywhere; cursor:pointer;
}
.oc .card-evidence > summary::-webkit-details-marker { display:none; }
.oc .card-evidence > summary::after { content:"⌄"; flex:none; color:var(--ink-2); }
.oc .card-evidence[open] > summary::after { content:"⌃"; }
.oc .facility-evidence-body { min-width:0; padding:0 0 12px; font-size:.82rem; line-height:1.7; overflow-wrap:anywhere; }
.oc .facility-evidence-body > p { margin:0 0 9px; }
.oc .facility-evidence-body a {
  display:inline-flex; align-items:center; min-width:0; max-width:100%; min-height:44px;
  padding-block:6px; white-space:normal; overflow-wrap:anywhere;
}
.oc .facility-audit-records > section { min-width:0; margin-top:12px; padding-top:10px; border-top:1px solid var(--line-2); }
.oc .facility-evidence-body .bath-visit-facts dt,
.oc .facility-evidence-body .bath-visit-facts dd { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.oc .facility-evidence-body .bath-visit-facts dd { font-size:.84rem; line-height:1.7; }
.oc .card-evidence :is(summary,button,a):focus-visible {
  outline:3px solid var(--lake); outline-offset:2px;
}
@media(max-width:480px) {
  .oc .card-equipment .bath-marks-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .oc .facility-evidence-body .bath-visit-facts > div { grid-template-columns:minmax(0,1fr); gap:3px; }
}

/* The site uses a white paper surface regardless of OS night mode. */
:root[data-theme="light"]{color-scheme:light;}
