/* Outdoors and Training: one long sheet of the same paper */
.leaf-page { min-height: 100vh; padding: 24px 12px 40px; }
.leaf {
  position: relative; display: block;
  width: min(1040px, 100%); margin: 0 auto;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(35,37,34,.06), 0 22px 28px -22px rgba(35,37,34,.45);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px);
}
.leaf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(20px, 4vh, 40px); }
a.back { text-decoration: none; }
.leaf-pdf { font-weight: 500; font-size: 14px; }
.leaf-head { max-width: 680px; }
.leaf-head .lede { max-width: 60ch; }
.leaf .rule-top { margin-top: 44px; margin-bottom: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); }
.chip { font: 500 14px/1 var(--sans); color: var(--ink-3); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 0; cursor: pointer; }
.chip span { font-size: 12px; margin-left: 3px; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--blue); }

.trail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.hike[hidden] { display: none; }
.hike img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; cursor: zoom-in; background: var(--paper-2); }
.hike-body { padding-top: 10px; }
.hike h4 { margin: 0; font: 600 17px/1.25 var(--serif); }
.hike-place { font: 500 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 4px; }
.hike-note { font-size: 14px; color: var(--ink-2); }
.more {
  display: block; margin: 30px auto 0; min-height: 40px; padding: 0 16px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 6px; font: 500 14px/1 var(--sans);
}
.more:hover { border-color: var(--blue); color: var(--blue); }
.more[hidden] { display: none; }

.statement { font: 500 clamp(22px, 2.6vw, 28px)/1.35 var(--serif); max-width: 34ch; }
.body-text { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; margin-top: 14px; }
.label.sub { margin: 32px 0 6px; }
.progress-log details { border-top: 1px solid var(--rule); }
.progress-log details:last-child { border-bottom: 1px solid var(--rule); }
.progress-log summary { display: grid; grid-template-columns: 12rem 1fr auto; align-items: baseline; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 17px/1.3 var(--serif); }
.progress-log summary::-webkit-details-marker { display: none; }
.progress-log summary::after { content: "+"; font: 400 20px/1 var(--sans); color: var(--ink-3); }
.progress-log details[open] summary::after { content: "–"; }
.progress-log summary:hover { color: var(--blue); }
.hint-t { font: 400 14.5px/1.4 var(--sans); color: var(--ink-3); }
.yr-body { display: grid; grid-template-columns: 14rem 1fr; gap: 28px; align-items: center; padding: 4px 0 24px; }
.yr-body img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 10%; border-radius: 3px; cursor: zoom-in; }
.yr-body p { font-size: 16px; color: var(--ink-2); max-width: 26rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 21, 20, .9); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 3px; }
.lightbox button { display: block; margin: 12px auto 0; min-height: 40px; padding: 0 18px; font: 500 14px/1 var(--sans); color: #fff; background: none; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; cursor: pointer; }

@media (max-width: 980px) { .trail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .leaf-page { padding: 18px 10px 28px; }
  .trail { gap: 22px 12px; }
  .hike h4 { font-size: 15.5px; }
  .hike-note { font-size: 13.5px; }
  .progress-log summary { grid-template-columns: 1fr auto; }
  .hint-t { display: none; }
  .yr-body { grid-template-columns: 1fr; gap: 12px; }
  .yr-body img { max-width: 16rem; }
  .tape { width: 84px; height: 26px; }
}
