:root {
    --firn: #E7F2F8;
    --alpine: #0A7DAD;
    --alpine-dark: #065F87;
    --alpenrose: #CC3A84;
    --ink: #0F2633;
    --stone: #5B6B75;
    --body: #3E5260;
    --hairline: #D5E1E8;
    --haze: #E7F2F8;
    --night: #123F55;
  }
  
  * { box-sizing: border-box; }
  
  body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--firn);
    color: var(--ink);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  }
  
  a { color: var(--alpine); }
  a:hover { color: var(--alpine-dark); }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    width: 100%;
    padding-inline: clamp(20px, 5.5vw, 80px);
  }
  
  .hero {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--haze);
  }
  
  .scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  
  .hero-top,
  .hero-bottom {
    position: relative;
    z-index: 1;
  }
  
  .hero-top { padding-top: 16px; }
  .hero-bottom { padding-bottom: 16px; }
  
  .brand {
    grid-column: 1 / span 4;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
  }
  
  nav { grid-column: 7 / span 6; justify-self: end; align-self: center; }
  
  nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  nav a {
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }
  
  nav a:hover,
  nav a[aria-current="page"] { color: var(--alpine); }
  
  .copy {
    grid-column: 1 / span 6;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 560px;
    margin-top: 48px;
  }

  .title {
    grid-column: 1 / span 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 26rem;
    margin-top: 28px;
  }
  
  .title h1,
  .title p {
    margin: 0;
  }
  
  .title h1 {
    font-size: clamp(30px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }
  
  .title p {
    color: var(--body);
    font-size: 18px;
    line-height: 1.45;
  }
  
  .kicker {
    margin: 0;
    color: var(--alpenrose);
    font-size: 15px;
    font-weight: 700;
  }
  
  .copy h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
  }
  
  .copy p {
    margin: 0;
    color: var(--body);
    font-size: 18px;
    line-height: 1.5;
  }
  
  .actions { display: flex; flex-wrap: wrap; gap: 12px; }
  
  .btn {
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
  }
  
  .btn-solid { color: #fff; background: var(--alpine); }
  .btn-solid:hover { color: #fff; background: var(--alpine-dark); }
  
  .btn-ghost { color: var(--alpine); background: rgba(231, 242, 248, 0.8); }
  .btn-ghost:hover { color: var(--alpine-dark); }
  
  .stats {
    grid-column: 7 / span 6;
    justify-self: end;
    display: flex;
    margin: 0;
    padding: 16px 8px;
    background: rgba(231, 242, 248, 0.94);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(15, 38, 51, 0.25);
  }
  
  .stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 18px;
  }
  
  .stats div + div { border-left: 1px solid var(--hairline); }
  
  .stats dt {
    color: var(--stone);
    font-size: 12px;
    font-weight: 600;
  }
  
  .stats dd {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
  }

  .site-header {
    border-bottom: 1px solid var(--hairline);
    background: var(--firn);
  }

  .site-header .grid {
    align-items: center;
    min-height: 64px;
  }

  .page {
    flex: 1;
    align-content: start;
    padding-block: 48px 64px;
  }

  .page h1 {
    grid-column: 1 / span 8;
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .page p {
    grid-column: 1 / span 7;
    margin: 0;
    max-width: 40rem;
    color: var(--body);
    font-size: 18px;
    line-height: 1.5;
  }

  .site-footer {
    border-top: 1px solid var(--hairline);
    background: var(--firn);
  }

  body:has(> .hero) { background: var(--night); }

  .hero + .site-footer {
    border-top: 1px solid var(--night);
    background: var(--night);
  }

  .site-footer .grid {
    align-items: center;
    min-height: 44px;
  }

  .site-footer p {
    grid-column: 1 / span 6;
    margin: 0;
    color: var(--stone);
    font-size: 13px;
  }

  .legal {
    grid-column: 7 / span 6;
    justify-self: end;
  }

  .legal ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .legal a {
    color: var(--stone);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
  }

  .legal a:hover { color: var(--alpine); }

  .table-wrap {
    grid-column: 1 / -1;
    margin-top: 32px;
    overflow-x: auto;
  }

  .table-card {
    padding: 18px 22px 8px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: white;
  }

  .table-card tr:last-child td { border-bottom: 0; }

  .hike-list {
    width: 100%;
    border-collapse: collapse;
  }

  .hike-list th {
    padding: 0 16px 12px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--stone);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
  }

  .hike-list td {
    padding: 18px 16px 18px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
  }

  .hike-list th:last-child,
  .hike-list td:last-child { padding-right: 0; }

  .hike-list tbody tr:hover td { background: #d5e8f2; }

  .hike-list a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
  }

  .hike-list a:hover { color: var(--alpine); }

  .hike-list a.gpx,
  .hike-list a.start {
    color: var(--alpine);
    font-weight: 600;
  }

  .hike-list a.gpx:hover,
  .hike-list a.start:hover { color: var(--alpine-dark); }

  .photo-cards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
  }

  .photo-cards a {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
  }

  .photo-cards img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
    background: var(--haze);
  }

  .photo-cards h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  .photo-cards a:hover h2 { color: var(--alpine); }

  .page.hike { padding-top: 48px; }

  .fold {
    --gap: 16px;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 14px;
    align-items: start;
  }

  .fold-top {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    column-gap: var(--gap);
    align-items: center;
  }

  .hike .fold > h1 {
    grid-column: 1 / -1;
    margin: 0;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.12;
  }

  .fold .hike-block { margin-top: 0; }

  .fold .route { grid-column: 1 / span 2; width: auto; }
  .fold .facts-block { grid-column: 3 / span 2; }

  .fold .facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 16px;
    background: white;
  }

  .fold .facts div {
    grid-column: auto;
    min-width: 0;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--haze);
  }

  .fold .facts dd { min-height: 0; font-size: 18px; }

  .fold .facts .fact-start dd { line-height: 1.3; }

  .fold .gallery { grid-column: 1 / -1; width: 100%; }

  .fold .hike-block h2 { margin-bottom: 8px; }

  .fold .photo-row { position: relative; width: 100%; gap: 0; }
  .fold .photos-window { flex: 1; width: 100%; container-type: inline-size; }
  .fold .photos { width: max-content; gap: var(--gap); }
  .fold .photos button {
    flex: 0 0 calc((100cqi - 3 * var(--gap)) / 4);
    width: calc((100cqi - 3 * var(--gap)) / 4);
    height: auto;
    aspect-ratio: 1;
  }
  .fold .photos img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
  .fold .photo-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
  }
  .fold .photo-arrow[data-scroll="1"] { right: 12px; }
  .fold .photo-arrow[data-scroll="-1"] { left: 12px; }
  .fold #map {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    border-radius: 16px;
  }

  .fold #map.map-expandable { cursor: zoom-in; }
  .fold #map.map-expandable .ol-control,
  .fold #map.map-expandable .ol-attribution { cursor: pointer; }

  .map-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--firn);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }

  .map-close[hidden] { display: none; }

  .fold #map:fullscreen,
  .fold #map.is-expanded {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    cursor: default;
  }

  .fold #map.is-expanded {
    position: fixed;
    inset: 0;
    z-index: 40;
  }

  body.map-open { overflow: hidden; }

  .map-page { padding-top: 28px; }
  .map-page h1 { grid-column: 1 / -1; margin-bottom: 8px; }
  .map-page > p { grid-column: 1 / -1; margin-bottom: 16px; }

  .atlas {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    height: calc(100dvh - 230px);
    min-height: 520px;
  }

  .atlas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: auto;
  }

  .atlas-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: var(--firn);
    cursor: pointer;
  }

  .atlas-card.is-selected {
    border-color: var(--ink);
    background: var(--haze);
  }

  .atlas-card .swatch {
    flex: none;
    width: 8px;
    border-radius: 999px;
  }

  .atlas-card a {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
  }

  .atlas-card a:hover { color: var(--alpine); }

  .atlas-meta {
    display: block;
    margin-top: 4px;
    color: var(--stone);
    font-size: 13px;
    font-weight: 600;
  }

  #atlas {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 16px;
  }

  .atlas-popup {
    position: absolute;
    z-index: 2;
    max-width: 240px;
    padding: 10px 12px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--firn);
    transform: translate(-50%, calc(-100% - 12px));
  }

  .atlas-popup a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
  }

  .atlas-popup a:hover { color: var(--alpine); }

  .atlas-popup p {
    margin: 4px 0 0;
    color: var(--stone);
    font-size: 13px;
  }

  .about h1,
  .about-lead,
  .about-points,
  .guide h1,
  .guide-lead { grid-column: 1 / span 8; }

  .guide-steps { grid-column: 1 / -1; }

  .about-lead,
  .guide-lead {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.4;
  }

  .about-points {
    display: grid;
    gap: 16px;
    margin-top: 28px;
  }

  .about-points section {
    padding: 22px 24px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: white;
  }

  .about-points h2 {
    margin: 0 0 8px;
    color: var(--stone);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .about-points p {
    max-width: none;
    margin: 0;
  }

  .guide-lead a { font-weight: 700; }

  .guide-steps {
    display: grid;
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
  }

  .guide-steps li {
    position: relative;
    padding: 22px 24px 22px 76px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: white;
    counter-increment: step;
  }

  .guide-steps li::before {
    content: counter(step);
    position: absolute;
    top: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: var(--haze);
    color: var(--alpine);
    font-size: 16px;
    font-weight: 700;
  }

  .guide-steps h2 {
    margin: 0 0 8px;
    color: var(--stone);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .guide-steps p {
    max-width: none;
    margin: 0;
  }

  .guide-shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(78%, 720px);
    margin-top: 16px;
  }

  .guide-shots figure { margin: 0; }

  .guide-shots img {
    display: block;
    width: 100%;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--haze);
  }

  .guide-shots figcaption {
    margin-top: 8px;
    color: var(--stone);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
  }

  .hike h1 { grid-column: 1 / -1; }

  .facts {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 16px 8px;
    background: var(--firn);
    border: 1px solid var(--hairline);
    border-radius: 22px;
  }

  .facts div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 18px;
  }

  .facts div + div { border-left: 1px solid var(--hairline); }

  .facts dt {
    margin: 0;
    color: var(--stone);
    font-size: 12px;
    font-weight: 600;
  }

  .facts dd {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .facts a {
    color: var(--alpine);
    font-weight: 700;
    text-decoration: none;
  }

  .facts a:hover { color: var(--alpine-dark); }

  .hike-block { grid-column: 1 / span 8; margin-top: 40px; }
  .route,
  .gallery,
  .story { grid-column: 1 / -1; }
  .comments { grid-column: 1 / -1; }

  .hike-block h2 {
    margin: 0 0 16px;
    color: var(--stone);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .story p { max-width: none; }
  .story p + p { margin-top: 1rem; }

  #map {
    width: 100%;
    height: 480px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 16px;
  }

  .photo-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .photos-window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .photos {
    display: flex;
    gap: 16px;
    transition: transform 0.25s ease;
  }

  .photos button {
    flex: 0 0 calc((100% - 32px) / 3);
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--haze);
    cursor: pointer;
  }

  .photo-arrow {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: var(--firn);
    color: var(--ink);
    cursor: pointer;
  }

  .photo-arrow:hover { color: var(--alpine); border-color: var(--alpine); }
  .photo-arrow[hidden] { display: none; }

  .photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .lightbox {
    width: min(920px, calc(100vw - 32px));
    padding: 16px;
    border: 0;
    background: var(--ink);
    color: white;
  }

  .lightbox::backdrop { background: rgba(15, 38, 51, 0.86); }

  .lightbox img {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: black;
  }

  .lightbox-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
  }

  .lightbox button {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--firn);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }

  .comments .table-card { margin: 0 0 28px; }

  #comments {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
  }

  #comments th {
    padding: 0 20px 10px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--stone);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
  }

  #comments td {
    padding: 14px 20px 14px 0;
    border-bottom: 1px solid var(--hairline);
    vertical-align: middle;
  }

  #comments th:first-child,
  #comments td:first-child {
    width: 18%;
    font-weight: 700;
  }

  #comments th:nth-child(2),
  #comments td:nth-child(2) {
    width: 28%;
    font-weight: 400;
  }

  #comments th:last-child,
  #comments td:last-child { padding-right: 0; }

  .ibex-rating {
    display: inline-flex;
    gap: 3px;
  }

  .ibex,
  .ibex-scale label {
    display: block;
    width: 26px;
    height: 26px;
    background-color: var(--hairline);
    -webkit-mask: url("../icons/steinbock.svg") center / contain no-repeat;
    mask: url("../icons/steinbock.svg") center / contain no-repeat;
  }

  .ibex.is-on { background-color: var(--ink); }

  .ibex-scale {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
  }

  .ibex-scale input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .ibex-scale label { cursor: pointer; }

  .ibex-scale label:hover,
  .ibex-scale label:hover ~ label,
  .ibex-scale input:checked ~ label {
    background-color: var(--ink);
  }

  .ibex-scale input:focus-visible + label {
    outline: 2px solid var(--alpine);
    outline-offset: 2px;
  }

  .hike form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 32rem;
  }

  #post-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    padding: 20px 22px 22px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: white;
  }

  #post-comment-form > p {
    grid-column: 1 / -1;
    max-width: none;
  }

  #post-comment-form .comment-fields {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) auto;
    gap: 16px 48px;
    align-items: end;
  }

  #post-comment-form .comment-body,
  #post-comment-form input[type="submit"] {
    grid-column: 1 / -1;
  }

  #post-comment-form input[type="submit"] { justify-self: end; }

  .hike label,
  .hike legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
  }

  .hike fieldset {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .hike textarea,
  .hike input[type="text"] {
    width: min(32rem, 100%);
    padding: 10px 12px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--firn);
    color: var(--ink);
    font: inherit;
    font-weight: 400;
  }

  #post-comment-form textarea,
  #post-comment-form input[type="text"] {
    width: 100%;
    background: white;
  }

  .hike input[type="submit"] {
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--alpine);
    color: white;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .hike input[type="submit"]:hover { background: var(--alpine-dark); }

  @media (min-width: 801px) and (min-aspect-ratio: 1 / 1) {
    .scene {
      top: auto;
      width: 100%;
      height: auto;
      aspect-ratio: 1440 / 900;
    }
  }

  @media (max-aspect-ratio: 1 / 1) {
    .hero {
      flex: 1;
      justify-content: flex-start;
      overflow: visible;
      background: var(--night);
    }

    .hero-top {
      order: 1;
      background: var(--haze);
    }

    .scene {
      position: relative;
      inset: auto;
      order: 2;
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 1440 / 900;
      margin-top: 0;
    }
  }
  
  @media (max-width: 800px) {
    body { overflow-x: clip; }

    .grid { padding-inline: 16px; }

    .hero {
      flex: 1;
      min-height: 0;
      justify-content: flex-start;
      background: var(--night);
    }

    .hero-top {
      background: var(--haze);
      padding-bottom: 0;
    }

    .title {
      display: flex;
      grid-column: 1 / -1;
      max-width: 36rem;
      margin-top: 22px;
      margin-bottom: 8px;
    }

    .title h1 { font-size: 28px; }
    .title p { font-size: 16px; }

    .brand, nav, .copy, .stats, .page h1, .page p { grid-column: 1 / -1; justify-self: start; }

    .site-header .grid {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      min-height: 0;
      padding-block: 14px 12px;
    }

    .site-header .brand { font-size: 19px; line-height: 1.2; }

    .site-header nav { width: 100%; }

    .site-header nav ul {
      flex-wrap: nowrap;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
    }

    .site-header nav a { font-size: 14px; }

    .copy, .title { margin-top: 16px; }
    .hero-bottom { padding-bottom: 16px; }
    .stats { flex-wrap: wrap; row-gap: 14px; }
    .stats div:nth-child(3) { border-left: 0; }

    .page { padding-block: 28px 48px; }
    .page h1 { font-size: 32px; }
    .page p { font-size: 17px; }

    .site-footer .grid { row-gap: 4px; padding-block: 12px; }
    .site-footer p, .legal { grid-column: 1 / -1; justify-self: start; }
    .legal ul { flex-wrap: wrap; gap: 8px 16px; }

    .photo-cards { grid-template-columns: 1fr; gap: 28px; }
    .photo-cards h2 { font-size: 20px; }

    .fold,
    .fold-top {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      height: auto;
      row-gap: 28px;
    }

    .fold-top { row-gap: 24px; }

    .fold > h1,
    .fold .hike-block,
    .fold .route,
    .fold .facts-block,
    .fold .gallery,
    .hike h1,
    .hike-block,
    .gallery,
    .comments { grid-column: 1 / -1; width: 100%; }

    .fold .hike-block { margin-top: 0; }
    .fold > h1 { overflow-wrap: anywhere; }

    .fold .facts {
      display: flex;
      flex-direction: column;
      gap: 0;
      width: 100%;
      height: auto;
      aspect-ratio: auto;
      margin: 0;
      padding: 2px 16px;
      border: 1px solid var(--hairline);
      border-radius: 16px;
      background: white;
    }

    .fold .facts div,
    .fold .facts div + div {
      flex-direction: row;
      justify-content: space-between;
      align-items: baseline;
      gap: 16px;
      margin: 0;
      padding: 12px 0;
      border: 0;
      border-bottom: 1px solid var(--hairline);
      border-radius: 0;
      background: transparent;
    }

    .fold .facts div:last-child { border-bottom: 0; }
    .fold .facts dt { flex: none; }
    .fold .facts dd { font-size: 16px; text-align: right; }

    .fold .photos-window,
    .fold .photos,
    .fold #map { width: 100%; height: auto; }

    .fold .photos button {
      flex: 0 0 calc((100cqi - var(--gap)) / 2);
      width: calc((100cqi - var(--gap)) / 2);
      height: auto;
    }

    .fold .photos img { aspect-ratio: 1; height: auto; }
    .fold .photo-row { gap: 0; }
    .fold #map { aspect-ratio: 4 / 3; height: auto; }

    .table-wrap { overflow: visible; margin-top: 16px; }
    .table-wrap.table-card { padding: 8px 12px 2px; }

    .hike-list thead { display: none; }

    .hike-list,
    .hike-list tbody,
    .hike-list tr,
    .hike-list td { display: block; width: auto; }

    .hike-list tr {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px 8px;
      padding: 10px 0 8px;
    }

    .hike-list tr + tr { border-top: 1px solid var(--hairline); }

    .hike-list td {
      padding: 0;
      border: 0;
      font-size: 13px;
    }

    .hike-list tbody tr:hover td { background: transparent; }

    .hike-list td:first-child { grid-column: 1 / -1; }

    .hike-list td:first-child a {
      font-size: 16px;
      line-height: 1.2;
    }

    .hike-list td[data-label]::before {
      content: attr(data-label);
      display: block;
      margin-bottom: 1px;
      color: var(--stone);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .hike-list td:nth-child(6),
    .hike-list td:nth-child(7) { grid-column: span 2; }

    .hike-list a.gpx,
    .hike-list a.start {
      display: block;
      padding: 7px 8px;
      border-radius: 999px;
      background: var(--haze);
      font-size: 13px;
      text-align: center;
    }

    #comments thead { display: none; }

    #comments,
    #comments tbody,
    #comments tr,
    #comments td {
      display: block;
      width: auto;
    }

    #comments tr {
      padding: 14px 0;
      border-bottom: 1px solid var(--hairline);
    }

    #comments tr:last-child { border-bottom: 0; }

    #comments td,
    #comments td:first-child,
    #comments td:nth-child(2),
    #comments td:last-child {
      width: auto;
      padding: 0;
      border: 0;
      overflow-wrap: anywhere;
    }

    #comments td + td { margin-top: 10px; }

    #comments td:first-child::before,
    #comments td:nth-child(2)::before {
      display: block;
      margin-bottom: 4px;
      color: var(--stone);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    #comments td:first-child::before { content: "Name"; }
    #comments td:nth-child(2)::before { content: "Rating"; }

    #post-comment-form { padding: 16px; }
    #post-comment-form .comment-fields { grid-template-columns: 1fr; }
    #post-comment-form input[type="submit"] { justify-self: stretch; width: 100%; }

    .facts div:nth-child(3) { border-left: 0; }
    #map { width: 100%; }
    .atlas { grid-template-columns: 1fr; height: auto; min-height: 0; }
    #atlas { height: 70vh; }

    .lightbox-bar { flex-wrap: wrap; }
    .lightbox button { flex: 1; }

    .about h1,
    .about-lead,
    .about-points,
    .guide h1,
    .guide-lead,
    .guide-steps { grid-column: 1 / -1; }

    .guide-shots {
      grid-template-columns: minmax(0, 1fr);
      width: min(100%, 320px);
    }
  }