/* Long-trail pages: /routes/<slug> (public/route.php). The redesign of 12 Nov 2026: a picture-led hero with the figures in tiles, a menu that follows you down,
   photographs in a strip, the days as cards, the summits as tiles, the places to stay as cards, the questions folded away.
   Loaded after walks.css and changes only what carries .tr-* or sits inside .tr-page, so no other page moves. Colours and type are site.css's. */

/* ---------- hero ---------- */
.tr-hero { position: relative; isolation: isolate; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.tr-hero-body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: clamp(22px, 3.4vw, 36px); padding-bottom: clamp(26px, 4vw, 44px); }
.tr-hero .crumbs { font-size: 14px; color: var(--muted); margin: 0; }
.tr-hero .crumbs a { color: inherit; text-decoration: underline; text-decoration-color: rgba(110, 111, 99, .4); text-underline-offset: 3px; }
.tr-hero .kicker { margin: 0; }
.tr-hero h1 { font-size: clamp(38px, 6.6vw, 74px); line-height: 1.02; letter-spacing: -.02em; max-width: 16ch; text-wrap: balance; margin: 0; }
.tr-hero .walk-lede { font-size: clamp(17px, 2vw, 20px); max-width: 60ch; margin: 0; }
.tr-hero-units { position: absolute; top: clamp(18px, 3vw, 30px); right: var(--pad, 24px); }
.tr-hero-units .units-switch, .tr-hero-units > * { margin: 0; }

.tr-stats { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; max-width: 820px; }
.tr-stats > div { display: grid; gap: 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); }
.tr-stats dt { font: 700 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tr-stats dd { margin: 0; font: 700 clamp(19px, 2.4vw, 26px)/1.15 var(--sans); font-variant-numeric: tabular-nums; color: var(--pine-deep); }

.tr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.tr-actions .walk-plan { margin-top: 0; }
.tr-actions .walk-share { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* with a photograph: the picture fills the hero, a deep-green wash keeps the words readable */
.tr-hero.has-photo { min-height: clamp(460px, 68vh, 680px); display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; background: var(--pine-dark); color: #fff; border-bottom: 0; }
/* (a column, so that on a phone, where the photo credit is in the flow, it sits under the text and does not squeeze it into half the width: 15 Nov 2026) */
.tr-hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.tr-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.tr-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 42, 30, .46) 0%, rgba(15, 42, 30, .46) 30%, rgba(15, 42, 30, .80) 66%, rgba(15, 42, 30, .94) 100%); }
.tr-hero.has-photo .tr-hero-body { width: 100%; padding-bottom: clamp(34px, 5vw, 60px); }
.tr-hero.has-photo .crumbs, .tr-hero.has-photo .crumbs a { color: rgba(255, 255, 255, .82); text-decoration-color: rgba(255, 255, 255, .4); }
.tr-hero.has-photo .kicker { color: #E7C98A; }
.tr-hero.has-photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.tr-hero.has-photo .walk-lede { color: rgba(255, 255, 255, .94); text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.tr-hero.has-photo .tr-stats > div { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .26); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tr-hero.has-photo .tr-stats dt { color: rgba(255, 255, 255, .78); }
.tr-hero.has-photo .tr-stats dd { color: #fff; }
.tr-hero.has-photo .btn-ghost, .tr-hero.has-photo .share-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tr-hero.has-photo .btn-ghost:hover, .tr-hero.has-photo .share-btn:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.tr-hero.has-photo .tr-hero-units { color: #fff; }
.tr-hero-credit { position: absolute; z-index: 2; right: var(--pad, 24px); bottom: 10px; margin: 0; max-width: 60ch; font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, .82); text-align: right; }
.tr-hero-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- the menu that follows you ---------- */
.tr-menu { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 242, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tr-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.tr-menu ul::-webkit-scrollbar { display: none; }
.tr-menu li { flex: 0 0 auto; scroll-snap-align: start; }
.tr-menu a { display: block; padding: 14px 14px 12px; font: 600 14.5px/1.2 var(--sans); color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tr-menu a:hover { color: var(--pine); }
.tr-menu a[aria-current="true"] { color: var(--pine-deep); border-bottom-color: var(--ochre); }
.tr-menu a:focus-visible { outline: 2px solid var(--pine); outline-offset: -2px; border-radius: 6px; }

/* ---------- the page ---------- */
.tr-page { padding-top: 6px; }
.tr-page .walk-main { min-width: 0; }
.tr-page .walk-grid { padding-top: 10px; gap: clamp(28px, 4vw, 56px); }
.tr-page .walk-main h2 { font-size: clamp(25px, 3.2vw, 34px); letter-spacing: -.01em; margin: 56px 0 16px; scroll-margin-top: 76px; }
.tr-page .walk-main > :first-child, .tr-page .walk-main > h2:first-child { margin-top: 0; }
.tr-page .walk-main section > h2:first-child { margin-top: 0; }
.tr-page .trail-note { color: var(--ink-soft); font-size: 15.5px; max-width: 66ch; }
.tr-page .walk-aside { top: 76px; }
.tr-page .walk-map { height: clamp(380px, 58vh, 580px); border-radius: 18px; box-shadow: var(--shadow-1); scroll-margin-top: 76px; }
.tr-page .walk-profile-wrap { margin-top: 16px; padding: 14px 16px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.tr-page .walk-photo img { border-radius: 16px; }
.tr-page .prose { font-size: 17px; max-width: 66ch; }

/* ---------- photographs ---------- */
.tr-strip { list-style: none; margin: 18px 0 0; padding: 0 0 12px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tr-strip li { flex: 0 0 min(380px, 78%); scroll-snap-align: start; }
.tr-strip figure { margin: 0; display: grid; gap: 8px; }
.tr-strip a { display: block; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.tr-strip img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .35s ease; }
.tr-strip a:hover img { transform: scale(1.03); }
.tr-strip a:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; }
.tr-strip figcaption { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; }
.tr-cap { font: 600 15px/1.3 var(--sans); color: var(--ink); }
.tr-km { font: 700 12px/1 var(--sans); color: var(--pine); background: #E6EEE8; border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.tr-strip small { grid-column: 1 / -1; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.tr-strip small a { display: inline; background: none; border-radius: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.tr-lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: 1fr auto; background: rgba(10, 24, 17, .94); color: #fff; padding: 18px; }
.tr-lb[hidden] { display: none; }
.tr-lb-stage { display: grid; place-items: center; min-height: 0; }
.tr-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.tr-lb-text { text-align: center; padding: 12px 56px 4px; }
.tr-lb-cap { font: 600 17px/1.35 var(--sans); margin: 0; }
.tr-lb-credit { font-size: 12.5px; opacity: .8; margin: 4px 0 0; }
.tr-lb button { position: absolute; width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.tr-lb button:hover { background: rgba(255, 255, 255, .22); }
.tr-lb button:focus-visible { outline: 3px solid #E7C98A; outline-offset: 2px; }
.tr-lb-close { top: 14px; right: 14px; }
.tr-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.tr-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- the days ---------- */
.tr-page .tr-days { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: 12px; }
.tr-page .tr-days > .tr-day { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px 16px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(28, 32, 29, .04); }
.tr-page .tr-days > .tr-day:first-child { border-top: 1px solid var(--line); }
.tr-day-n { display: grid; place-items: center; text-align: center; min-height: 64px; padding: 8px 6px; border-radius: 12px; background: var(--pine); color: #fff; font: 700 14px/1.15 var(--sans); }
.tr-day-main { display: grid; gap: 7px; min-width: 0; }
.tr-day-way { font: 600 clamp(16.5px, 2vw, 19px)/1.3 var(--sans); color: var(--ink); }
.tr-day-km { font-size: 14px; color: var(--muted); }
.tr-day-bar { display: block; height: 7px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.tr-day-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pine), #3D7A5C); }
.tr-day-food { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tr-chip { font-size: 12.5px; line-height: 1.2; padding: 6px 11px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.tr-chip b { font-weight: 700; margin-right: 3px; }
.tr-chip.is-yes { background: #E3F1E6; color: #1F5A2C; }

/* ---------- summits ---------- */
.tr-page .walk-summits { max-width: none; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.tr-page .walk-summits li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 13px 15px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tr-page .walk-summits li:first-child { border-top: 1px solid var(--line); }
.tr-page .walk-summit-name { flex: 1 0 100%; font: 600 16px/1.3 var(--sans); }
.tr-page .walk-summits .num:not(.muted) { font: 700 22px/1.1 var(--sans); color: var(--pine-deep); }
.tr-page .walk-summits .muted { font-size: 13px; }

/* ---------- start and finish ---------- */
.tr-page .walk-getting { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 10px; max-width: none; }

/* ---------- places to stay ---------- */
.tr-page .trail-stays { max-width: none; display: grid; gap: 10px; }
.tr-page .trail-stays li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tr-page .trail-stays li:first-child { border-top: 1px solid var(--line); }
.tr-page .trail-stay-place { font-size: 16px; }
.tr-page .trail-stay-links { gap: 8px; flex-wrap: wrap; }
.tr-page .trail-stay-links a { display: inline-block; padding: 7px 13px; border: 1px solid var(--pine); border-radius: 999px; font-size: 13.5px; text-decoration: none; color: var(--pine); transition: background .15s, color .15s; }
.tr-page .trail-stay-links a:hover { background: var(--pine); color: #fff; }

/* ---------- food and water, questions ---------- */
.tr-page .trail-food { margin-top: 56px; padding: 24px 26px; background: var(--paper-2); border-radius: 18px; border: 1px solid var(--line); }
.tr-page .trail-food h2 { margin-top: 0; }
.tr-page .trail-food .small { margin-top: 12px; }
.tr-faq-list { border-top: 1px solid var(--line); }
.tr-faq { border-bottom: 1px solid var(--line); }
.tr-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font: 600 clamp(16.5px, 2vw, 18.5px)/1.35 var(--sans); }
.tr-faq summary::-webkit-details-marker { display: none; }
.tr-faq summary::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 99px; background: var(--paper-2); color: var(--pine); font-size: 20px; line-height: 1; }
.tr-faq[open] summary::after { content: "\2212"; background: var(--pine); color: #fff; }
.tr-faq summary:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; border-radius: 6px; }
.tr-faq p { margin: 0 0 18px; max-width: 64ch; color: var(--ink-soft); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .tr-page .walk-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-page .walk-aside { position: static; }
}
@media (max-width: 640px) {
  .tr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-hero.has-photo { min-height: 560px; }
  .tr-hero-units { position: static; justify-self: end; }
  .tr-hero-credit { position: static; text-align: left; padding: 0 var(--pad, 20px) 14px; background: transparent; }
  .tr-page .tr-days > .tr-day { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .tr-day-n { min-height: 54px; font-size: 13px; }
  .tr-page .trail-food { padding: 20px 18px; }
  .tr-lb { padding: 10px; }
  .tr-lb-text { padding: 10px 12px 2px; }
  .tr-lb-prev { left: 4px; } .tr-lb-next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .tr-strip img { transition: none; } .tr-strip a:hover img { transform: none; } }

/* ---------- walk, ride and paddle pages (public/day-walk.php) ---------- */
.dw-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); max-width: 880px; }
.dw-stats .grade { font-size: 13px; padding: 6px 11px; }
/* The notices sit under the hero, not over its photograph. */
.dw-notices { display: grid; gap: 10px; padding-top: 20px; }
.dw-notices .walk-notice { max-width: 70ch; margin: 0; }
.dw-hero .walk-tides { margin: 6px 0 0; }
.dw-hero.has-photo .walk-tides .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); color: #fff; }
.tr-page .walk-list { max-width: none; padding: 0; list-style: none; display: grid; gap: 10px; }
.tr-page .walk-list li { position: relative; padding: 13px 16px 13px 44px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; line-height: 1.5; }
.tr-page .walk-list li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 50%; background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.tr-page .walk-stays { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; max-width: none; }
.tr-page .walk-stays a { display: inline-block; margin: 0; padding: 7px 13px; border: 1px solid var(--pine); border-radius: 999px; font-size: 13.5px; text-decoration: none; color: var(--pine); transition: background .15s, color .15s; }
.tr-page .walk-stays a:hover { background: var(--pine); color: #fff; }
.tr-page .walk-related { padding-top: 8px; }
.tr-page .walk-related h2 { margin-top: 56px; }
