/* /summits: the summit lists as pages (18 Nov 2026). The hub is a find box and the lists as cards in groups; a list's page is its summits highest first in a table, a map
   (a dot drawing until the visitor asks for the real one), where its numbers come from and the app that ticks it off. Uses the site's own colours (--paper, --ink, --pine,
   --line) and the walks' page head, as /ski does; everything that points one way uses logical properties so Hebrew and Arabic mirror by themselves (the wrapper carries dir="rtl"). */

/* Korean words are kept whole (a Korean name on an English page too); Japanese has no spaces and must break anywhere; a long word may still break if it has to. */
.sm-page:not(:lang(ja)) { word-break: keep-all; overflow-wrap: anywhere; }
.sm-head .sm-line { margin: 0; font-size: 1rem; color: var(--muted); }
.sm-sec { margin-top: 36px; }
.sm-sec h2 { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }
.sm-small { margin: 10px 0 0; font-size: .86rem; line-height: 1.45; color: var(--muted); }

/* ---- the find box and the sort */
.sm-find { margin: 18px 0 8px; display: grid; gap: 10px; }
.sm-find label { font-weight: 600; font-size: .95rem; }
.sm-find input { width: 100%; max-width: 30rem; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.sm-find input:focus-visible { outline: 2px solid var(--pine); outline-offset: 1px; border-color: var(--pine); }
.sm-sort { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-sortb { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: .93rem; cursor: pointer; }
.sm-sortb[aria-pressed=true] { background: var(--pine); border-color: var(--pine); color: #fff; }
.sm-sortb:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.sm-status { margin: 0; min-height: 1.3em; font-size: .9rem; color: var(--muted); }

/* ---- the hub: groups of cards */
.sm-group { margin-top: 30px; }
.sm-group[hidden] { display: none; }
.sm-group h2 { font-size: 1.25rem; margin: 0 0 12px; padding-block-end: 6px; border-block-end: 1px solid var(--line); }
.sm-group h2 span { font-size: .8em; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-inline-start: .4em; }
.sm-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sm-card[hidden] { display: none; }
.sm-card a { display: grid; gap: 3px; height: 100%; box-sizing: border-box; padding: 14px 16px 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.sm-card a:hover, .sm-card a:focus-visible { border-color: var(--pine); }
.sm-card a:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.sm-cname { font-weight: 700; font-size: 1.05rem; line-height: 1.25; text-wrap: balance; }
.sm-cmeta { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sm-ctop { font-size: .88rem; color: var(--ink-soft); margin-top: 3px; }
.sm-ctop b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- a list's table */
.sm-tablewrap { margin-top: 8px; overflow-x: auto; }
.sm-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.sm-table th, .sm-table td { padding: 10px 10px; text-align: start; vertical-align: baseline; border-block-end: 1px solid var(--line-soft); }
.sm-table thead th { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; border-block-end: 1px solid var(--line); white-space: nowrap; }
.sm-table tbody th { font-weight: 600; color: var(--ink); }
.sm-rank { width: 3.2em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sm-h { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.sm-area { color: var(--ink-soft); font-size: .92rem; }
.sm-county { color: var(--muted); }
@media (max-width: 640px) {
  .sm-table .sm-area { display: none; }
  .sm-table th, .sm-table td { padding: 9px 6px; }
}
.sm-more { margin: 16px 0 0; }
.sm-credit-text { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }

/* ---- the map: a dot drawing, with the interactive map on request */
.sm-map { position: relative; width: 100%; min-height: 220px; border: 1px solid var(--line); border-radius: 14px; background: #EEF1E9; overflow: hidden; }
.sm-map.sm-live { height: clamp(320px, 62vh, 540px); }
.sm-svg { display: block; width: 100%; height: auto; }
.sm-svg circle { fill: var(--pine); fill-opacity: .8; }
.sm-mapshow { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--pine); border-radius: 999px; background: #fff; color: var(--pine); font: inherit; font-weight: 600; cursor: pointer; }
.sm-mapshow:hover { background: #F4F7F1; }
.sm-mapshow:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.sm-mapcredit { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.sm-mapfail { padding: 20px; color: var(--muted); }
.sm-pop { font-size: .9rem; line-height: 1.35; }
.sm-pop b { display: block; }

/* ---- the app, more lists, the way back */
.sm-app p { margin: 0 0 14px; }
.sm-app-top { margin-top: 18px; }
.sm-app-top .sm-small { margin-top: 10px; max-width: 46rem; }
.sm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.sm-chips a { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 18px; border-radius: 999px; background: #E4EBDF; border: 1px solid transparent; color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; }
.sm-chips b { font-weight: 600; font-size: .84em; color: var(--muted); font-variant-numeric: tabular-nums; }
.sm-chips a:hover, .sm-chips a:focus-visible { background: #D8E3D2; border-color: var(--pine); }
.sm-chips a:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.sm-back { margin: 30px 0 28px; }
