/* A quiet winter journal: warm paper, evergreen ink, and terracotta stamps. */
:root {
  --paper: #f7f5ed;
  --paper-deep: #edece2;
  --card: #fffef9;
  --ink: #27392f;
  --forest: #244c3e;
  --forest-deep: #193d31;
  --sage: #768c76;
  --sage-light: #e8ede2;
  --rust: #b96645;
  --rust-light: #f3e7db;
  --muted: #737b70;
  --line: #dfe2d6;
  --sidebar-width: 205px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --number: "Avenir Next", "Trebuchet MS", var(--sans);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.print-only { display: none; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .2; z-index: -1; background-image: radial-gradient(#a4ac92 .6px, transparent .6px); background-size: 5px 5px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { border-radius: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b87950; outline-offset: 4px; }
::selection { color: var(--forest-deep); background: #d6dfc8; }
img, svg { max-width: 100%; }
img { display: block; }
button { border: 0; background: transparent; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-defs { width: 0; height: 0; position: absolute; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-150%); z-index: 100; padding: 10px 18px; color: white; background: var(--forest); border-radius: 6px; }
.skip-link:focus { transform: none; }
.warm-text { color: var(--rust); }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #698267; }
.status-dot.warning { background: var(--rust); box-shadow: 0 0 0 3px #b9664518; }

/* Navigation */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); padding: 32px 20px 24px; background: #efeee4; border-right: 1px solid #dedfd2; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 4px; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 1px; white-space: nowrap; }
.brand-seal { display: inline-grid; place-items: center; width: 39px; height: 43px; flex: 0 0 39px; background: var(--forest); border-radius: 5px 4px 7px 3px; color: var(--paper); font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1; transform: rotate(-4deg); }
.brand small { display: block; margin-top: 4px; font-family: var(--number); font-size: 7px; font-weight: 500; letter-spacing: 1.7px; color: var(--muted); }
.sidebar-label { margin: 52px 12px 14px; color: #818778; font-size: 10px; letter-spacing: 1.5px; }
.side-nav { display: grid; gap: 5px; }
.side-nav .nav-link { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 10px 12px; border-radius: 7px; color: #6b7567; font-size: 12px; transition: background .2s, color .2s; }
.side-nav .nav-link:hover { background: #e4e8da; color: var(--forest); }
.side-nav .nav-link.active { background: var(--forest); color: #fffdf3; }
.side-nav .nav-link .icon { width: 18px; height: 18px; flex-basis: 18px; }
.side-nav .nav-link > span { margin-left: auto; font: 9px var(--number); opacity: .55; }
.side-nav .nav-link > b { display: grid; place-items: center; margin-left: auto; min-width: 20px; height: 19px; border-radius: 5px; background: #dddcc9; color: var(--forest); font: 10px var(--number); }
.side-nav .nav-link.active > b { background: #69846b; color: white; }
.sidebar-note { position: absolute; left: 30px; right: 30px; bottom: 140px; padding-top: 24px; border-top: 1px solid #d9dccb; }
.tiny-star { display: inline-block; color: var(--rust); font-size: 29px; line-height: 1; }
.sidebar-note p { margin-top: 15px; font-family: var(--serif); font-size: 17px; line-height: 1.9; letter-spacing: 1px; }
.sidebar-note small { display: block; margin-top: 9px; font-size: 10px; color: var(--muted); }
.sidebar-bottom { position: absolute; bottom: 27px; left: 30px; right: 20px; color: var(--muted); font-size: 9px; }
.sidebar-bottom > .status-dot { margin-right: 5px; width: 5px; height: 5px; }
.sidebar-bottom small { display: block; margin-top: 7px; font: 8px var(--number); letter-spacing: 1.3px; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 75px; margin-left: var(--sidebar-width); padding: 0 clamp(28px, 4vw, 64px); background: rgba(247,245,237,.94); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(223,226,214,.65); }
.breadcrumb { font-size: 11px; color: #727a6d; }
.breadcrumb span { margin: 0 12px; color: #b2b8a9; }
.top-actions { display: flex; align-items: center; gap: 23px; }
.top-date { font: 10px var(--number); letter-spacing: 1px; color: #7c8476; }
.print-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 5px 12px; border: 1px solid #d6ddce; border-radius: 6px; font-size: 11px; background: #fcfbf5; transition: border-color .2s; }
.print-button:hover { border-color: var(--forest); }
.print-button .icon { width: 15px; height: 15px; flex-basis: 15px; }
.mobile-brand, .mobile-nav { display: none; }

/* Paper and typography */
main { margin-left: var(--sidebar-width); padding: 40px clamp(28px, 4vw, 64px) 24px; }
.page-section, .sources-section, .page-footer { width: 100%; max-width: 1260px; margin-left: auto; margin-right: auto; }
.page-section { scroll-margin-top: 101px; margin-bottom: 72px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-kicker { display: block; margin-bottom: 10px; font: 10px var(--number); letter-spacing: 2px; color: var(--sage); }
.section-kicker.light { color: #b4c4aa; }
.section-heading h2 { font-size: clamp(25px, 2.5vw, 35px); line-height: 1.45; letter-spacing: .3px; }
.section-heading p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.small-label { flex-shrink: 0; margin-bottom: 5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 45px; padding: 10px 17px; border-radius: 6px; font-size: 12px; font-weight: 500; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--forest); color: #fffef2; }
.button.primary:hover { background: var(--forest-deep); }
.button .icon { width: 17px; height: 17px; flex-basis: 17px; }
.text-button { padding-left: 4px; padding-right: 4px; color: var(--forest); }
.inline-link, .source-link, .location-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--forest); }
.inline-link:hover, .source-link:hover, .location-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.inline-link .icon, .location-link .icon { width: 13px; height: 13px; flex-basis: 13px; }

/* Cover */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 38px; }
.hero-copy { padding: 17px 0 13px; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: #74806c; font: 9px var(--number); letter-spacing: 1.6px; }
.eyebrow > span { width: 22px; height: 1px; background: var(--rust); }
h1 { font-size: clamp(45px, 4.55vw, 69px); line-height: 1.22; letter-spacing: -1.5px; }
.hero-intro { margin-top: 22px; color: #7b8071; font-size: 13px; line-height: 2; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.hero-tags > span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; color: #6b7964; background: #e9eddf; font-size: 9px; }
.hero-tags > span:last-child { color: #9a7659; background: #f0e9dc; }
.hero-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin-top: 25px; }
.hero-stats { display: flex; gap: 34px; margin-top: 31px; }
.hero-stats > div { min-width: 71px; }
.hero-stats strong { display: block; font: 29px/1.2 var(--number); color: var(--forest); letter-spacing: -1px; }
.hero-stats span { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .4px; color: #7c8476; }
.hero-photo { position: relative; min-width: 0; height: 448px; margin: 0; overflow: hidden; border: 7px solid #fdfcf7; border-radius: 14px 14px 68px 14px; background: #aaba9c; box-shadow: 0 7px 28px #28412c0d; isolation: isolate; }
.hero-photo .hero-fallback, .hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-fallback { z-index: 0; }
.hero-photo > img { z-index: 1; opacity: 0; transition: opacity .5s ease; }
.hero-photo.photo-loaded > img, .hero-photo.is-loaded > img, .hero-photo.has-image > img, .hero-photo.image-loaded > img, .hero-photo > img.loaded { opacity: 1; }
.hero-photo.photo-failed > img, .hero-photo.image-failed > img, .hero-photo > img[hidden] { display: none; }
.photo-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, #12372c12 25%, transparent 43%, #16362b9c 100%); pointer-events: none; }
.photo-top { position: absolute; z-index: 3; inset: 24px 24px auto; display: flex; align-items: flex-start; justify-content: space-between; color: white; }
.photo-kicker { padding: 4px 9px; border: 1px solid #ffffff57; border-radius: 3px; font-size: 9px; letter-spacing: 2px; background: #25463620; backdrop-filter: blur(4px); }
.photo-stamp { display: grid; place-items: center; width: 34px; height: 55px; border: 1px solid #ffead2b8; border-radius: 3px; color: #ffead2; font-family: var(--serif); font-size: 18px; line-height: 1.2; transform: rotate(6deg); background: #a66b4840; }
.hero-photo figcaption { position: absolute; z-index: 3; left: 28px; right: 20px; bottom: 31px; display: grid; gap: 8px; color: #fff9ea; }
.photo-caption-label { font-size: 9px; letter-spacing: 1.7px; color: #eef1d7; }
.hero-photo figcaption strong { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2vw, 29px); line-height: 1.6; }
.photo-coordinate { font: 8px var(--number); letter-spacing: 1.4px; opacity: .7; }
.route-ribbon { display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr 20px 1fr; align-items: center; gap: 16px; margin: 31px 0 23px; padding: 23px 28px; border: 1px solid #dce2d3; background: #edf0e5; border-radius: 8px; }
.route-ribbon > div { display: grid; gap: 3px; min-width: 0; }
.route-ribbon small { font: 9px var(--number); letter-spacing: .6px; color: #7f8877; }
.route-ribbon strong { font: 600 21px var(--serif); color: var(--forest); }
.route-ribbon span { font-size: 9px; color: #7b8474; white-space: nowrap; }
.route-ribbon > .icon { width: 18px; color: #9caa91; }
.flights { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.flight-card { padding: 19px 23px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; }
.flight-direction { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #737e6c; }
.flight-direction > .icon { width: 15px; height: 15px; flex-basis: 15px; color: var(--rust); }
.flight-direction > strong, .flight-direction > b { font-weight: 500; color: var(--forest); }
.flight-badge { margin-left: auto; padding: 2px 6px; border-radius: 3px; background: #eaf0e2; color: #718661; font-size: 9px; }
.flight-badge .icon { width: 11px; height: 11px; margin-right: 3px; }
.flight-route { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 15px 0 14px; }
.flight-end { display: grid; gap: 2px; }
.flight-end:last-child { text-align: right; }
.flight-time { display: block; color: var(--forest); font: 29px/1.2 var(--number); letter-spacing: -.7px; }
.flight-airport { display: block; color: #76806e; font-size: 10px; }
.flight-line { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-width: 34px; color: #a5b199; font-size: 9px; }
.flight-line::before, .flight-line::after { content: ""; flex: 1; height: 1px; margin: 0 7px; background: #d9dfd0; }
.flight-line .icon { width: 17px; height: 17px; flex-basis: 17px; }
.flight-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding-top: 11px; border-top: 1px dashed var(--line); color: #89917f; font-size: 9px; }

/* Seven days */
.mode-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; margin-bottom: 23px; border: 1px solid #e5dfce; border-radius: 8px; background: #f0ede2; }
.mode-panel strong { font-size: 12px; font-weight: 500; }
.mode-panel p { margin-top: 3px; color: #8a8b7d; font-size: 10px; }
.segmented { display: inline-flex; flex: 0 0 auto; padding: 3px; background: #e4e5d9; border-radius: 6px; }
.segmented button { min-height: 33px; padding: 6px 11px; font-size: 10px; border-radius: 4px; color: #75816e; }
.segmented button.selected { background: #fffdf6; color: var(--forest); box-shadow: 0 1px 4px #233b2810; }
.day-tabs { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; margin-bottom: 15px; }
.day-tab { text-align: left; display: grid; align-content: start; gap: 5px; min-width: 0; min-height: 89px; padding: 13px 13px 11px; border: 1px solid #e1e3d7; border-radius: 7px; background: #eeefe5; transition: background .2s, border-color .2s; }
.day-tab:hover { border-color: #84977c; background: #e8eddf; }
.day-tab.active { color: #fffcf0; border-color: var(--forest); background: var(--forest); }
.day-tab-top { display: flex; align-items: center; justify-content: space-between; color: #829077; font: 8px var(--number); letter-spacing: 1px; }
.day-tab.active .day-tab-top { color: #b5c5ac; }
.day-tab-date { font: 20px/1.25 var(--number); letter-spacing: -.4px; }
.day-tab-date small { margin-left: 6px; font-family: var(--sans); font-size: 9px; opacity: .75; letter-spacing: 0; }
.day-tab-name { font-size: 9px; line-height: 1.5; opacity: .72; }
.day-tab-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rust); }
.day-tab.active .day-tab-dot { background: #edbb81; }
.day-detail { padding: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--card); }
.day-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 0; }
.day-main { padding: 27px 29px 14px; min-width: 0; }
.day-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; margin-bottom: 1px; }
.day-heading > div { flex: 1; min-width: 0; }
.day-heading > div > p { margin-top: 5px; color: #87907f; font-size: 10px; line-height: 1.8; }
.day-number { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 6px; background: #eff1e6; color: #788f6b; font: 23px var(--number); }
.day-title { min-width: 0; }
.day-title h3, h3.day-title { font-size: 22px; font-weight: 600; line-height: 1.5; }
.day-title p, .day-title small { display: block; color: #87907f; font-size: 10px; margin-top: 2px; }
.day-tag { margin-left: auto; padding: 3px 7px; background: var(--rust-light); color: #a37659; border-radius: 3px; font-size: 9px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 13px; }
.timeline-time { padding-top: 2px; text-align: right; color: #8a907d; font: 11px/1.7 var(--number); }
.timeline-content { position: relative; min-width: 0; border-left: 1px solid #dce2d1; padding: 0 0 25px 22px; }
.timeline-content::before { position: absolute; content: ""; top: 5px; left: -4px; width: 7px; height: 7px; background: #a8b895; border: 2px solid var(--card); border-radius: 50%; box-shadow: 0 0 0 1px #a8b895; }
.timeline-item:first-child .timeline-content::before { background: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.timeline-item:last-child .timeline-content { border-left-color: transparent; padding-bottom: 8px; }
.timeline-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; line-height: 1.8; }
.timeline-title .icon { width: 15px; height: 15px; flex-basis: 15px; color: var(--sage); }
.timeline-detail { margin-top: 5px; font-size: 11px; line-height: 1.9; color: #7e8575; overflow-wrap: anywhere; }
.timeline-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; }
.timeline-links .location-link { color: #6b8261; font-size: 10px; }
.day-source { display: inline-flex; align-items: center; color: #96a08a; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.day-source:hover { color: var(--forest); }
.day-aside { display: flex; flex-direction: column; gap: 15px; padding: 28px 22px; border-left: 1px solid #e5e7dc; background: #f5f5ec; }
.stay-card { padding: 17px; background: #e8eddf; border-radius: 6px; }
.stay-card > .icon { color: #7b8d70; margin-bottom: 6px; }
.stay-card h4, .stay-card strong { display: block; margin-bottom: 6px; color: var(--forest); font-size: 13px; font-weight: 500; }
.stay-card p { color: #75846d; font-size: 10px; line-height: 1.9; }
.stay-card small { display: block; color: #7c8a70; font-size: 9px; }
.stay-card .mini-kicker { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-family: var(--sans); font-size: 9px; letter-spacing: .5px; }
.stay-card .mini-kicker .icon { width: 14px; height: 14px; flex-basis: 14px; }
.day-note { padding: 16px; border: 1px solid #e6e0ce; background: #f3eee1; border-radius: 6px; color: #8d8066; font-size: 11px; line-height: 1.9; }
.day-note h4, .day-note strong { display: block; margin-bottom: 7px; color: #8b7353; font-size: 11px; font-weight: 500; }
.day-note .icon { width: 15px; height: 15px; margin-right: 4px; }
.day-note a { text-decoration: underline; text-underline-offset: 3px; }
.timing-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 13px; color: #8d9382; font-size: 9px; line-height: 1.8; }
.timing-note .icon { width: 14px; height: 14px; flex-basis: 14px; margin-top: 1px; }
#print-days, .print-days { display: none; }

/* The hill walk */
.hike-section { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px,.88fr); gap: clamp(24px,4vw,58px); padding: clamp(30px,4vw,48px); border-radius: 13px; background: var(--forest); color: #f3f1df; overflow: hidden; }
.hike-copy { min-width: 0; }
.hike-copy h2 { margin-top: 17px; font-size: clamp(29px,3vw,43px); font-weight: 500; line-height: 1.5; letter-spacing: .6px; }
.hike-intro { margin-top: 19px; font-size: 12px; line-height: 2; color: #c2cfb9; }
.hike-metrics { display: flex; gap: 35px; margin: 25px 0 19px; }
.hike-metrics strong { display: block; font: 35px/1.3 var(--number); letter-spacing: -.7px; }
.hike-metrics strong small { margin-left: 5px; font: 11px var(--sans); letter-spacing: 0; }
.hike-metrics > div > span { display: block; margin-top: 4px; font-size: 9px; color: #b7c6ad; }
.hike-fact { max-width: 430px; color: #abc0a6; font-size: 10px; line-height: 1.9; }
.source-ref { color: #e1d5b4; font-size: 9px; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.hike-tip { display: flex; align-items: flex-start; gap: 9px; margin: 23px 0; padding: 13px 14px; border: 1px solid #68836a73; border-radius: 6px; font-size: 10px; line-height: 1.9; background: #46654b38; color: #c2d0b9; }
.hike-tip .icon { width: 16px; height: 16px; flex-basis: 16px; margin-top: 2px; color: #c9d7b9; }
.hike-tip b { font-weight: 500; color: #f6edcf; }
.light-button { background: #ecebd8; color: var(--forest); min-height: 40px; font-size: 11px; padding: 9px 13px; }
.light-button:hover { background: #fff7dd; }
.hike-route-card { align-self: center; padding: 24px 25px 21px; border-radius: 9px; background: #f3f0e4; color: var(--forest); box-shadow: 0 10px 25px #15291d24; }
.hike-route-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; color: #7e8c71; font-size: 10px; letter-spacing: 1px; }
.hike-route-top .icon { width: 23px; height: 23px; color: #718361; }
.hike-route { margin: 0; padding: 0; list-style: none; }
.hike-route li { position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 14px; padding-bottom: 24px; }
.hike-route li::after { content: ""; position: absolute; top: 29px; left: 13px; bottom: 2px; border-left: 1px dashed #cbd1be; }
.hike-route li:last-child::after { display: none; }
.hike-route li > span { display: grid; place-items: center; width: 28px; height: 28px; color: #7b8c6c; border: 1px solid #cdd5bd; border-radius: 50%; font: 9px var(--number); background: #e7ebd9; }
.hike-route li.route-highlight > span { color: #a06b49; border-color: #ddcbb1; background: #f0e2ca; }
.hike-route strong { font-size: 13px; font-weight: 500; }
.hike-route p { margin-top: 4px; font-size: 9px; color: #8c907d; line-height: 1.7; }
.hike-route-bottom { border-top: 1px solid #dce0cd; padding-top: 15px; font-size: 10px; }
.hike-route-bottom small { display: block; margin-top: 6px; font-size: 9px; color: #969980; }

/* A useful, persistent packing list */
.progress-summary { display: grid; gap: 2px; text-align: right; flex-shrink: 0; }
.progress-summary > span:first-child { font: 30px/1.25 var(--number); color: var(--forest); }
.progress-summary small { color: #a3ac97; font-size: 15px; }
.progress-summary > span:last-child { color: #89917f; font-size: 9px; }
.progress-track { height: 5px; margin: -7px 0 25px; overflow: hidden; border-radius: 8px; background: #e2e6d8; }
.progress-track > span { display: block; width: 16.6667%; height: 100%; border-radius: inherit; background: #82966f; transition: width .3s ease; }
.todo-layout { display: grid; grid-template-columns: minmax(0,1fr) 272px; align-items: start; gap: 25px; }
.todo-main { min-width: 0; }
.todo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.todo-filters { display: flex; align-items: center; gap: 3px; }
.todo-filters button { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 10px; border-radius: 5px; font-size: 10px; color: #7b8771; }
.todo-filters button.selected { color: var(--forest); background: #e4eadb; }
.todo-filters button:hover { background: #e9ecdf; }
.todo-filters button > span { font: 9px var(--number); opacity: .6; }
#todo-category { max-width: 115px; height: 32px; padding: 4px 22px 4px 9px; border: 1px solid #dbe0d1; border-radius: 5px; font-size: 10px; background-color: #fafaf3; color: #718166; }
.todo-list { max-height: 745px; overflow-y: auto; border: 1px solid #dee3d4; border-radius: 8px; background: var(--card); scrollbar-width: thin; scrollbar-color: #c3ceba #f3f4eb; }
.todo-item { display: grid; grid-template-columns: 19px minmax(0,1fr) 25px; align-items: start; gap: 12px; padding: 17px 17px 15px; border-bottom: 1px solid #e9ecdf; transition: background .18s; }
.todo-item:last-child { border-bottom: 0; }
.todo-item:hover { background: #f7f9f0; }
.todo-check { position: relative; display: grid; place-items: center; appearance: none; -webkit-appearance: none; width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 3px 0 0; border: 1px solid #b8c4aa; border-radius: 5px; background: #fdfdf7; cursor: pointer; }
input.todo-check:checked, .todo-item.done .todo-check { border-color: #819773; background: #819773; color: white; }
input.todo-check:checked::after { content: ""; width: 7px; height: 4px; border: solid white; border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.todo-check .icon { display: none; width: 12px; height: 12px; stroke-width: 2; }
.todo-item.done .todo-check .icon { display: block; }
.todo-content { min-width: 0; }
.todo-title { display: block; color: #344a37; font-size: 12px; font-weight: 500; line-height: 1.8; cursor: pointer; overflow-wrap: anywhere; }
.todo-detail { margin-top: 3px; color: #8b927e; font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
.todo-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 8px; color: #9a9d87; font-size: 9px; }
.todo-category { padding: 1px 6px; border: 1px solid #e5e8d8; border-radius: 3px; color: #8b9879; font-size: 8px; line-height: 1.7; background: #f3f5e9; }
.todo-due { display: inline-flex; align-items: center; gap: 4px; color: #aa865e; font-size: 9px; }
.todo-due .icon { width: 11px; height: 11px; flex-basis: 11px; }
.priority-dot { display: inline-flex; align-items: center; gap: 4px; color: #b68459; font-size: 8px; }
.priority-dot::before { content: ""; width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #bd845a; }
.todo-day-link { padding: 0; color: #91a27d; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.todo-day-link:hover { color: var(--forest); }
.todo-delete { width: 25px; height: 28px; padding: 4px; color: #9caa92; opacity: .45; border-radius: 4px; }
.todo-delete .icon { width: 15px; height: 15px; }
.todo-item:hover .todo-delete, .todo-item:focus-within .todo-delete { opacity: 1; }
.todo-delete:hover { color: #a95139; background: #f4e8df; }
.todo-item.done { background: #f4f6ed; }
.todo-item.done .todo-title { color: #97a28b; text-decoration: line-through; text-decoration-color: #b7c0aa; }
.todo-item.done .todo-detail { color: #a1aa93; }
.todo-item.done .todo-due { color: #a5ad97; }
.todo-empty { padding: 42px 20px; text-align: center; color: #849278; font-size: 12px; }
.empty-icon { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 13px; border-radius: 50%; background: #e9efdf; color: #6d885d; }
.todo-empty h3 { margin-bottom: 7px; color: #658253; font-size: 19px; font-weight: 500; }
.todo-empty p { font-size: 11px; }
.add-todo-form { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 12px; border: 1px dashed #cbd6bd; border-radius: 6px; background: #f6f8ed; }
.add-todo-form > .icon { color: #81946e; width: 17px; height: 17px; flex-basis: 17px; }
.add-todo-form input { width: 100%; min-width: 0; padding: 5px 0; border: 0; background: transparent; font-size: 11px; color: var(--forest); }
.add-todo-form input::placeholder { color: #a3ad96; }
.add-todo-form input:focus { outline-offset: 2px; }
.add-todo-form button { flex: 0 0 auto; padding: 6px 11px; border-radius: 4px; background: #e2e9d7; color: var(--forest); font-size: 10px; }
.add-todo-form button:hover { background: #d4dfc7; }
.todo-storage { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; color: #919b84; font-size: 9px; }
#storage-status { display: inline-flex; align-items: center; gap: 5px; }
.todo-storage > div { display: flex; gap: 10px; }
.todo-storage button { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 1px 0; font-size: 9px; color: #849574; }
.todo-storage button:hover { color: var(--forest); }
.todo-storage .icon { width: 12px; height: 12px; flex-basis: 12px; }
.storage-explain { margin-top: 4px; color: #9bA28c; font-size: 9px; line-height: 1.9; }
.todo-aside { display: grid; gap: 16px; padding-top: 47px; }
.up-next { padding: 23px 21px 18px; border-radius: 8px; background: #e9eddf; border: 1px solid #dce3d0; }
.mini-kicker { display: block; font: 8px/1.6 var(--number); letter-spacing: 1.5px; color: #8a987d; }
.up-next .mini-kicker { font-family: var(--sans); letter-spacing: .5px; font-size: 9px; }
.up-next h3 { margin: 13px 0 22px; font-size: 27px; line-height: 1.5; color: var(--forest); }
.next-item { display: grid; grid-template-columns: 17px minmax(0,1fr) 13px; align-items: start; width: 100%; padding: 0; gap: 9px; margin-bottom: 17px; text-align: left; border-radius: 4px; }
.next-item > .icon { width: 13px; height: 13px; margin-top: 5px; color: #9baa87; }
.next-item:hover .next-title { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.next-index { padding-top: 3px; color: #94a47f; font: 9px var(--number); }
.next-title { display: block; color: #546c49; font-size: 11px; line-height: 1.8; font-weight: 500; }
.next-detail { display: block; margin-top: 3px; color: #95a084; font-size: 9px; line-height: 1.8; }
.ticket-date { display: flex; align-items: center; gap: 11px; border-top: 1px solid #d3ddc5; padding-top: 14px; margin-top: 14px; }
.ticket-date > span { flex: 0 0 auto; color: var(--forest); font: 25px var(--number); letter-spacing: -.8px; }
.date-dot { color: var(--rust); }
.ticket-date b { display: block; font-size: 9px; font-weight: 500; }
.ticket-date small { display: block; margin-top: 4px; font-size: 8px; color: #8f9d7f; }
.notes-box { padding: 17px 17px 13px; background: #f0ead9; border: 1px solid #e5ddc7; border-radius: 6px; }
.notes-box label { display: flex; align-items: center; justify-content: space-between; color: #897955; font-size: 11px; }
.notes-box label > span { font-size: 18px; color: #b09a70; }
.notes-box textarea { display: block; width: 100%; min-height: 138px; resize: vertical; margin: 10px 0 7px; padding: 0 0 1px; border: 0; background: repeating-linear-gradient(transparent,transparent 27px,#ddd2b9 27px,#ddd2b9 28px); color: #807451; font-size: 11px; line-height: 28px; }
.notes-box textarea::placeholder { color: #b0a486; }
.notes-box small { font-size: 8px; color: #a79b7f; }

/* Small things worth remembering */
.essentials-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.essential-card { position: relative; padding: 24px 23px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.essential-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 17px; border-radius: 7px; background: #e9efdf; color: #718763; }
.essential-icon.rust { color: #b17a54; background: #f4e8da; }
.essential-card .mini-kicker { font-size: 8px; letter-spacing: 1.3px; }
.essential-card h3 { margin: 8px 0 20px; font-size: 22px; line-height: 1.5; }
.essential-card > p { color: #89927b; font-size: 10px; line-height: 1.95; }
.stay-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; margin: 15px 0 7px; }
.stay-row strong { color: #5b7451; font-size: 11px; font-weight: 500; }
.stay-row > span { color: #9ba48c; font-size: 9px; }
.outline-tag { display: inline-flex; margin-top: 17px; padding: 4px 8px; border: 1px dashed #d7dfcb; border-radius: 4px; color: #94a381; font-size: 8px; }
.food-focus { margin: 0 0 18px; padding: 11px 12px; border-left: 2px solid #c58c63; background: #f5ede0; }
.food-focus strong { display: block; color: #8f6949; font-size: 11px; font-weight: 500; }
.food-focus > span { display: block; margin-top: 4px; color: #aa9274; font-size: 8px; }
.food-focus .inline-link { color: #9c8059; margin-top: 7px; font-size: 9px; }
.food-pills { display: flex; flex-wrap: wrap; gap: 5px; margin: 17px 0 13px; }
.food-pills span { padding: 3px 7px; border-radius: 3px; color: #9c8060; background: #f5eee2; font-size: 9px; }
.source-link { font-size: 9px; color: #95a180; }
.flower-card { background: #eff2e6; border-color: #dce3ce; }
.flower-time { color: #68815c; font: 29px var(--number); margin-bottom: 13px; letter-spacing: -.5px; }
.flower-time > span { font-size: 18px; color: #8d9e7e; }
.flower-detail { display: flex; gap: 6px; align-items: center; margin: 16px 0 10px; color: #819871; font-size: 10px; }
.flower-detail .icon { width: 14px; height: 14px; flex-basis: 14px; }
.flower-card p.small-copy { font-size: 9px; color: #99a58c; }
.flower-card .inline-link { margin-top: 13px; font-size: 10px; }
.return-note { display: flex; align-items: center; gap: 13px; padding: 17px 20px; margin-top: 20px; border: 1px solid #e5dbc6; border-radius: 7px; background: #f3ecdd; }
.return-note > .icon { color: #b38b5d; }
.return-note strong { color: #89744d; font-size: 12px; font-weight: 500; }
.return-note p { margin-top: 4px; font-size: 10px; color: #a19070; }

/* Sources, feedback, and the quiet foot of the page */
.sources-section { scroll-margin-top: 100px; margin-top: -16px; border-top: 1px solid #dce2d1; border-bottom: 1px solid #dce2d1; }
.sources-section summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 11px; color: #788c6c; }
.sources-section summary::-webkit-details-marker { display: none; }
.sources-section summary > span:last-child { display: flex; align-items: center; gap: 12px; color: #9ba68b; font-size: 9px; }
.sources-section summary .icon { width: 14px; height: 14px; flex-basis: 14px; transition: transform .2s; }
.sources-section details[open] summary .icon { transform: rotate(90deg); }
.sources-content { padding: 0 0 22px; color: #89947a; font-size: 10px; line-height: 1.9; }
.sources-content > p { margin-bottom: 15px; }
#source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.source-item { display: grid; grid-template-columns: 17px minmax(0,1fr); gap: 9px; min-width: 0; padding: 10px 13px; border: 1px solid #e0e5d5; border-radius: 5px; background: #f5f7ed; }
.source-item > span { font-family: var(--number); padding-top: 1px; }
.source-item a { color: #6a835d; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.source-item strong, .source-item b { display: block; font-weight: 500; font-size: 10px; color: #5d7950; }
.source-item p, .source-item small, .source-item span { font-size: 9px; color: #93a086; }
.source-item .icon { width: 12px; height: 12px; }
.photo-credits { margin-top: 19px; padding-top: 14px; border-top: 1px solid #e0e4d5; }
.photo-credits h4 { font-size: 10px; font-weight: 500; margin-bottom: 5px; }
.photo-credits p { font-size: 9px; }
.photo-credits a { text-decoration: underline; text-underline-offset: 3px; }
.page-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 25px; color: #9fa990; font-size: 9px; }
.page-footer i { font-style: normal; margin: 0 5px; color: #b7bda8; }
.page-footer > span:last-child { font-family: var(--serif); letter-spacing: 1px; }
.toast { position: fixed; z-index: 100; bottom: 25px; left: calc(50% + 102.5px); transform: translate(-50%,20px); max-width: calc(100vw - 40px); padding: 12px 20px; border-radius: 7px; background: #244c3ef5; color: #fff8e6; font-size: 12px; box-shadow: 0 6px 25px #1f3d2b21; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; text-align: center; }
.toast.show, .toast.visible, .toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.noscript-notice { position: fixed; z-index: 80; bottom: 10px; left: calc(var(--sidebar-width) + 20px); right: 20px; border: 1px solid #d9bca0; border-radius: 7px; background: #fff4dc; color: #7b5b39; font-size: 12px; padding: 15px; }

/* Smaller desktops and comfortable tablets */
@media (min-width: 1600px) {
  .hero { gap: 70px; }
  .hero-photo { height: 485px; }
  main { padding-top: 48px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .sidebar-note { bottom: 112px; }
  .sidebar-note p { font-size: 15px; margin-top: 10px; }
  .sidebar-label { margin-top: 39px; }
}
@media (max-height: 620px) and (min-width: 901px) {
  .sidebar-note { display: none; }
}
@media (max-width: 1180px) {
  main { padding-left: 29px; padding-right: 29px; }
  .topbar { padding-left: 29px; padding-right: 29px; }
  .hero { gap: 25px; }
  .hero-photo { height: 417px; }
  .hero-intro { font-size: 12px; }
  .hero-buttons { gap: 13px; }
  .hero-buttons .button { font-size: 11px; padding-left: 12px; padding-right: 12px; }
  .hero-stats { gap: 25px; }
  .route-ribbon { padding: 20px; gap: 10px; }
  .route-ribbon span { font-size: 8px; }
  .flight-card { padding-left: 18px; padding-right: 18px; }
  .day-tab { padding: 11px 10px; }
  .day-tab-date { font-size: 18px; }
  .day-layout { grid-template-columns: minmax(0,1fr) 220px; }
  .day-main { padding-left: 21px; padding-right: 21px; }
  .day-aside { padding-left: 16px; padding-right: 16px; }
  .day-heading { gap: 9px; }
  .day-title h3, h3.day-title { font-size: 19px; }
  .day-tag { margin-left: 0; }
  .timeline-item { grid-template-columns: 53px minmax(0,1fr); gap: 10px; }
  .hike-section { gap: 29px; padding: 32px; }
  .hike-metrics { gap: 24px; }
  .hike-route-card { padding: 21px 20px; }
  .todo-layout { grid-template-columns: minmax(0,1fr) 235px; gap: 18px; }
  .todo-item { padding: 15px 13px; gap: 10px; }
  .todo-filters button { padding: 6px 7px; }
  #todo-category { max-width: 95px; padding-right: 16px; }
  .up-next { padding: 20px 17px; }
  .essential-card { padding: 21px 18px; }
  .essential-card h3 { font-size: 19px; }
  .essentials-grid { gap: 13px; }
}
@media (max-width: 1000px) and (min-width: 901px) {
  .hero-photo { height: 391px; }
  h1 { font-size: 44px; }
  .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .hero-tags { gap: 5px; }
  .hero-tags > span { font-size: 8px; padding: 3px 6px; }
  .hero-buttons { gap: 5px; }
  .hero-buttons .text-button { padding-left: 0; padding-right: 0; }
  .route-ribbon { gap: 7px; padding: 17px; }
  .route-ribbon small { font-size: 8px; letter-spacing: 0; }
  .mode-panel { align-items: flex-start; flex-direction: column; }
  .day-tabs { gap: 5px; }
  .day-tab { padding: 11px 8px; }
  .hike-section { grid-template-columns: minmax(0,1fr) 250px; gap: 23px; padding: 27px; }
  .hike-copy h2 { font-size: 29px; }
  .hike-metrics strong { font-size: 29px; }
  .hike-metrics { gap: 19px; }
  .todo-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 14px; }
  .todo-toolbar { flex-wrap: wrap; }
  .todo-filters { gap: 0; }
  .todo-filters button { padding: 6px; gap: 4px; }
  .essential-card h3 { font-size: 18px; }
}

/* Mobile: four quiet tabs at the bottom, no crowded left rail. */
@media (max-width: 900px) {
  :root { --sidebar-width: 0px; }
  html { scroll-padding-top: 85px; }
  .sidebar { display: none; }
  .topbar { margin-left: 0; min-height: 65px; padding: 0 28px; }
  .breadcrumb { display: none; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px var(--serif); letter-spacing: 1px; }
  .mobile-brand .brand-seal { width: 28px; height: 32px; flex-basis: 28px; font-size: 23px; }
  .top-date { font-size: 9px; }
  .top-actions { gap: 13px; }
  main { margin-left: 0; padding: 30px 28px calc(96px + env(safe-area-inset-bottom)); }
  .page-section { scroll-margin-top: 84px; margin-bottom: 56px; }
  .hero { gap: 30px; }
  .hero-photo { height: 420px; }
  h1 { font-size: clamp(44px,6vw,58px); }
  .hero-copy { padding-top: 10px; }
  .hero-intro { margin-top: 19px; }
  .hero-stats { gap: 28px; margin-top: 26px; }
  .hero-stats strong { font-size: 27px; }
  .hero-tags { margin-top: 18px; }
  .hero-buttons { gap: 12px; margin-top: 23px; }
  .hero-buttons .button { font-size: 11px; padding: 9px 12px; }
  .hero-buttons .text-button { padding-left: 0; padding-right: 0; }
  .hero-photo figcaption { left: 22px; }
  .photo-caption-label { font-size: 8px; }
  .mobile-nav { position: fixed; z-index: 60; inset: auto 0 0; display: grid; grid-template-columns: repeat(4,1fr); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #dbe1d0; background: rgba(248,247,238,.97); backdrop-filter: blur(16px); }
  .mobile-nav .nav-link { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 43px; padding: 3px; border-radius: 6px; color: #8e9b80; font-size: 9px; }
  .mobile-nav .nav-link.active { color: var(--forest); background: #e6ecdc; }
  .mobile-nav .icon { width: 19px; height: 19px; }
  .mobile-nav b { display: inline-block; font: 8px var(--number); color: var(--rust); }
  .toast { bottom: calc(81px + env(safe-area-inset-bottom)); left: 50%; }
  .noscript-notice { left: 14px; right: 14px; bottom: 74px; }
}
@media (max-width: 700px) {
  .topbar { padding: 0 22px; }
  .top-date { display: none; }
  main { padding-top: 25px; padding-left: 22px; padding-right: 22px; }
  .hero { grid-template-columns: 1fr; gap: 25px; }
  .hero-copy { padding-top: 5px; }
  .eyebrow { margin-bottom: 17px; font-size: 8px; letter-spacing: 1.7px; }
  h1 { font-size: clamp(45px,9.5vw,62px); line-height: 1.18; }
  .hero-intro { font-size: 12px; line-height: 1.95; margin-top: 19px; }
  .hero-tags > span { font-size: 9px; }
  .hero-buttons { gap: 23px; margin-top: 23px; }
  .hero-buttons .button { font-size: 12px; padding: 10px 14px; }
  .hero-buttons .text-button { padding-left: 0; padding-right: 0; }
  .hero-stats { gap: 48px; margin-top: 25px; }
  .hero-stats strong { font-size: 27px; }
  .hero-photo { height: 330px; border-width: 5px; border-radius: 10px 10px 48px 10px; }
  .hero-photo figcaption { left: 24px; bottom: 25px; }
  .hero-photo figcaption strong { font-size: 26px; }
  .photo-top { inset: 19px 20px auto; }
  .route-ribbon { grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); gap: 19px 13px; margin-top: 23px; padding: 19px 21px; }
  .route-ribbon > .icon:nth-child(4) { display: none; }
  .route-ribbon strong { font-size: 20px; }
  .route-ribbon small { font-size: 9px; }
  .route-ribbon span { font-size: 9px; }
  .flights { gap: 12px; }
  .flight-card { padding: 14px 13px 12px; }
  .flight-direction { gap: 5px; font-size: 9px; flex-wrap: wrap; }
  .flight-badge { font-size: 8px; }
  .flight-route { gap: 4px; margin-top: 15px; margin-bottom: 12px; }
  .flight-time { font-size: 22px; }
  .flight-airport { font-size: 8px; }
  .flight-line::before, .flight-line::after { margin-left: 3px; margin-right: 3px; }
  .flight-line .icon { width: 13px; height: 13px; flex-basis: 13px; }
  .flight-meta { font-size: 8px; }
  .section-heading { gap: 12px; margin-bottom: 20px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading p { font-size: 11px; }
  .section-kicker { font-size: 9px; letter-spacing: 1.7px; }
  .small-label { display: none; }
  .mode-panel { flex-direction: column; align-items: stretch; gap: 13px; padding: 16px; margin-bottom: 18px; }
  .mode-control { align-self: flex-start; }
  .mode-control button { padding-left: 14px; padding-right: 14px; }
  .day-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 9px; margin: 0 -1px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #c7d1ba transparent; }
  .day-tab { flex: 0 0 91px; padding: 12px; min-height: 86px; scroll-snap-align: start; }
  .day-tab-date { font-size: 20px; }
  .day-layout { grid-template-columns: 1fr; }
  .day-main { padding: 22px 19px 18px; }
  .day-heading { gap: 11px; padding-bottom: 23px; }
  .day-title h3, h3.day-title { font-size: 21px; }
  .day-tag { margin-left: auto; }
  .timeline-item { grid-template-columns: 54px minmax(0,1fr); gap: 11px; }
  .timeline-content { padding-left: 18px; }
  .timeline-title { font-size: 12px; }
  .timeline-detail { font-size: 11px; }
  .day-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 18px; border-left: 0; border-top: 1px solid #e5e7dc; }
  .stay-card, .day-note { padding: 14px; }
  .hike-section { grid-template-columns: 1fr; gap: 29px; padding: 30px 26px; border-radius: 11px; }
  .hike-copy h2 { font-size: 35px; }
  .hike-metrics { gap: 42px; }
  .hike-metrics strong { font-size: 35px; }
  .hike-fact { max-width: none; }
  .hike-route-card { padding: 22px 23px; }
  .hike-route li { padding-bottom: 21px; }
  .hike-route-top { margin-bottom: 22px; }
  .hike-route p { font-size: 10px; }
  .todo-layout { grid-template-columns: 1fr; gap: 20px; }
  .todo-aside { grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 0; align-items: start; }
  .todo-list { max-height: 680px; }
  .todo-toolbar { gap: 8px; }
  .todo-filters button { font-size: 10px; padding: 6px 9px; }
  #todo-category { max-width: 109px; }
  .todo-item { padding: 16px 15px; gap: 11px; }
  .todo-delete { opacity: .7; }
  .progress-summary > span:first-child { font-size: 27px; }
  .progress-summary small { font-size: 13px; }
  .progress-summary > span:last-child { font-size: 8px; }
  .todo-section .section-heading h2 { max-width: 290px; }
  .up-next { padding: 20px 17px; }
  .up-next h3 { font-size: 25px; }
  .ticket-date { flex-wrap: wrap; gap: 6px; }
  .notes-box { padding: 16px; }
  .notes-box textarea { min-height: 220px; }
  .essentials-grid { grid-template-columns: 1fr; gap: 15px; }
  .essential-card { padding: 24px; }
  .essential-card h3 { font-size: 23px; margin-bottom: 17px; }
  .essential-card > p { font-size: 12px; }
  .stay-row strong { font-size: 12px; }
  .stay-row > span { font-size: 10px; }
  .food-focus strong { font-size: 12px; }
  .food-focus > span { font-size: 10px; }
  .flower-detail { font-size: 11px; }
  .flower-card p.small-copy { font-size: 10px; }
  .return-note { align-items: flex-start; padding: 16px 17px; }
  .return-note > .icon { margin-top: 3px; }
  .return-note p { font-size: 10px; line-height: 1.9; }
  #source-list { grid-template-columns: 1fr; }
  .sources-section summary { font-size: 10px; }
  .sources-section summary > span:last-child { font-size: 8px; gap: 6px; }
  .page-footer { padding-top: 22px; font-size: 8px; }
}
@media (max-width: 400px) {
  main { padding-left: 17px; padding-right: 17px; }
  .topbar { padding-left: 17px; padding-right: 17px; }
  .hero-stats { gap: 36px; }
  .hero-buttons { gap: 14px; }
  .hero-buttons .button { gap: 8px; font-size: 11px; }
  .hero-photo { height: 300px; }
  .hero-photo figcaption strong { font-size: 23px; }
  .flights { grid-template-columns: 1fr; }
  .flight-card { padding: 17px 21px 14px; }
  .flight-direction { font-size: 10px; }
  .flight-time { font-size: 28px; }
  .flight-airport { font-size: 10px; }
  .flight-meta { font-size: 9px; }
  .flight-line { max-width: 120px; }
  .section-heading h2 { font-size: 25px; }
  .day-main { padding-left: 15px; padding-right: 15px; }
  .day-number { width: 39px; height: 42px; font-size: 21px; }
  .day-title h3, h3.day-title { font-size: 19px; }
  .day-heading { gap: 9px; }
  .day-tag { font-size: 8px; padding: 2px 5px; }
  .day-aside { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 47px minmax(0,1fr); gap: 9px; }
  .timeline-time { font-size: 10px; }
  .hike-section { padding: 27px 22px; }
  .hike-copy h2 { font-size: 31px; }
  .hike-metrics { gap: 28px; }
  .hike-metrics strong { font-size: 31px; }
  .hike-route-card { padding-left: 19px; padding-right: 19px; }
  .todo-filters button { padding: 6px; gap: 4px; }
  #todo-category { max-width: 94px; padding-left: 6px; padding-right: 13px; }
  .todo-aside { grid-template-columns: 1fr; }
  .up-next h3 br { display: none; }
  .ticket-date { flex-wrap: nowrap; }
  .notes-box textarea { min-height: 140px; }
  .todo-section .section-heading h2 { max-width: 230px; font-size: 24px; }
  .progress-summary > span:first-child { font-size: 24px; }
  .sources-section summary { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Keep the journal's working text comfortably readable on every screen. */
@media screen {
  .timeline-title, .todo-title { font-size: 14px; }
  .timeline-detail, .todo-detail, .essential-card > p, .flower-card p.small-copy,
  .day-heading > div > p, .stay-card p, .mode-panel p { color: #63705f; font-size: 13px; }
  .day-note { color: #796b51; font-size: 12px; }
  .timeline-time { color: #77836d; font-size: 11px; }
  .day-tag { margin-left: 0; font-size: 10px; }
  .stay-card strong, .stay-row strong, .food-focus strong { font-size: 13px; }
  .stay-row > span, .food-focus > span { font-size: 11px; color: #7e866f; }
  .return-note p { font-size: 13px; color: #82704e; }
  .hike-intro, .hike-route p { font-size: 13px; }
  .hike-route strong { font-size: 14px; }
  .hike-tip, .hike-fact, .hike-route-bottom { font-size: 11px; }
  .notes-box textarea { font-size: 13px; color: #776545; }
  .notes-box label, .next-title { font-size: 13px; }
  .next-detail, .todo-meta, .todo-due, .todo-day-link, .flower-detail { font-size: 11px; }
  .todo-category, .priority-dot { font-size: 10px; }
  .todo-item.done .todo-detail { color: #828d77; }
  .todo-filters button, #todo-category { font-size: 11px; }
  .add-todo-form input { font-size: 13px; }
  .add-todo-form button { font-size: 11px; }
  .source-item a, .source-item strong { font-size: 11px; }
  .source-item p, .sources-content > p { font-size: 11px; color: #76846b; }
}

/* Print the whole trip, not just the selected date. */
@page { size: A4; margin: 14mm; }
@media print {
  :root { --paper: #fff; --card: #fff; --ink: #1c2a20; --forest: #213f31; --muted: #5f695c; }
  html, body { width: auto; min-width: 0; margin: 0; background: #fff !important; font-size: 9pt; line-height: 1.55; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::before { display: none; }
  .sidebar, .topbar, .mobile-nav, .skip-link, .hero-buttons, .print-button, .toast, .noscript-notice, #day-tabs, #day-detail, .mode-control, .todo-toolbar, .add-todo-form, .todo-storage, .storage-explain, .todo-delete, .todo-day-link, .notes-box textarea { display: none !important; }
  .print-only { display: block; }
  .printed-notes { display: block; margin-top: 9pt; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 8pt; line-height: 1.8; }
  main { margin: 0; padding: 0; width: auto; }
  .page-section, .sources-section, .page-footer { max-width: none; margin-left: 0; margin-right: 0; }
  .page-section { margin-bottom: 20pt; scroll-margin-top: 0; }
  .section-heading { margin-bottom: 12pt; }
  .section-heading h2 { font-size: 21pt; }
  .section-heading p { font-size: 9pt; }
  .section-kicker { font-size: 7pt; margin-bottom: 5pt; }
  .hero { display: block; }
  .hero-copy { padding: 0; }
  .hero-photo { display: none; }
  .eyebrow { margin-bottom: 8pt; font-size: 7pt; }
  h1 { font-size: 34pt; line-height: 1.15; }
  h1 br { display: none; }
  .hero-intro { margin-top: 10pt; font-size: 9pt; }
  .hero-tags { margin-top: 8pt; }
  .hero-stats { gap: 35pt; margin-top: 12pt; }
  .hero-stats > div { display: flex; align-items: baseline; gap: 7pt; }
  .hero-stats strong { font-size: 19pt; }
  .hero-stats span { font-size: 8pt; }
  .route-ribbon { grid-template-columns: 1fr 15pt 1fr 15pt 1fr 15pt 1fr; gap: 10pt; padding: 12pt; margin: 14pt 0 11pt; break-inside: avoid; }
  .route-ribbon > .icon:nth-child(4) { display: block; }
  .route-ribbon strong { font-size: 16pt; }
  .route-ribbon small, .route-ribbon span { font-size: 7pt; }
  .flights { display: grid; grid-template-columns: 1fr 1fr; gap: 12pt; break-inside: avoid; }
  .flight-card { padding: 12pt 14pt 10pt; }
  .flight-direction { font-size: 8pt; }
  .flight-time { font-size: 23pt; }
  .flight-airport, .flight-meta { font-size: 7pt; }
  .mode-panel { display: block; padding: 9pt 12pt; margin-bottom: 12pt; break-inside: avoid; }
  .mode-panel p { font-size: 8pt; }
  #print-days, .print-days { display: block !important; }
  .print-day { padding: 14pt 0; margin: 0; border-bottom: 1px solid #d7dfce; break-inside: avoid; page-break-inside: avoid; }
  .print-day h3 { font-size: 17pt; line-height: 1.5; margin-bottom: 8pt; }
  .print-day h4 { font-size: 10pt; margin-bottom: 4pt; }
  .print-day p { font-size: 9pt; }
  .print-day .day-layout { display: block; }
  .print-day .day-main { padding: 0; }
  .print-day .day-heading { padding-bottom: 10pt; }
  .print-day .day-title h3 { margin: 0; }
  .print-day .day-tag { margin-left: auto; }
  .print-day .timeline { padding: 0; }
  .print-day .timeline-item { grid-template-columns: 57pt minmax(0,1fr); gap: 9pt; break-inside: avoid; }
  .print-day .timeline-content { padding-left: 13pt; padding-bottom: 10pt; }
  .print-day .timeline-title { font-size: 9pt; }
  .print-day .timeline-time, .print-day .timeline-detail { font-size: 8pt; }
  .print-day .timeline-links { margin-top: 3pt; }
  .print-day .day-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 10pt; padding: 10pt 0 0; border: 0; background: transparent; }
  .print-day .day-aside p, .print-day .day-note { font-size: 8pt; }
  .timing-note { margin: 8pt 0; font-size: 7pt; }
  .hike-section { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20pt; padding: 20pt; border: 1px solid #cbd8c4; background: #edf1e7; color: #263d2d; break-inside: avoid; }
  .hike-copy h2 { margin-top: 9pt; font-size: 23pt; }
  .hike-intro { font-size: 8pt; margin-top: 10pt; color: #596f50; }
  .section-kicker.light, .hike-fact, .hike-metrics > div > span { color: #75856b; }
  .hike-metrics { gap: 25pt; margin: 13pt 0; }
  .hike-metrics strong { font-size: 25pt; }
  .hike-metrics strong small { font-size: 8pt; }
  .hike-fact { font-size: 7pt; }
  .hike-tip { margin: 12pt 0; padding: 8pt; color: #5d7051; background: #e3ead8; border-color: #c7d3bd; font-size: 7pt; }
  .hike-tip b, .source-ref { color: #4f6544; }
  .hike-route-card { box-shadow: none; padding: 14pt; background: #fff; border: 1px solid #d7dfce; }
  .hike-route-top { margin-bottom: 15pt; font-size: 7pt; }
  .hike-route li { padding-bottom: 13pt; gap: 9pt; }
  .hike-route strong { font-size: 9pt; }
  .hike-route p { font-size: 7pt; }
  .hike-route-bottom { font-size: 7pt; }
  .hike-route-bottom small { font-size: 6.5pt; }
  .light-button { min-height: 25pt; font-size: 7pt; padding: 5pt 7pt; }
  .todo-layout { display: block; }
  .todo-list { display: block; columns: 2; column-gap: 18pt; max-height: none; overflow: visible; border: 0; border-radius: 0; }
  .todo-item { grid-template-columns: 14pt minmax(0,1fr); gap: 7pt; padding: 10pt 0; break-inside: avoid; border-bottom: 1px solid #e2e6da; background: transparent !important; }
  .todo-title { font-size: 9pt; }
  .todo-detail { font-size: 7pt; }
  .todo-meta { font-size: 7pt; margin-top: 4pt; }
  .todo-check { width: 13pt; height: 13pt; min-height: 13pt; margin-top: 3pt; }
  .todo-aside { display: block; padding-top: 15pt; break-inside: auto; page-break-inside: auto; }
  .up-next { padding: 15pt; margin-bottom: 15pt; break-inside: avoid; }
  .up-next h3 { font-size: 20pt; margin: 8pt 0 13pt; }
  .up-next h3 br { display: none; }
  .next-title { font-size: 8pt; }
  .next-detail { font-size: 7pt; }
  .notes-box { padding: 13pt; break-inside: auto; page-break-inside: auto; }
  .printed-notes { break-inside: auto; page-break-inside: auto; orphans: 2; widows: 2; }
  .notes-box textarea { resize: none; min-height: 160pt; height: auto; overflow: visible; font-size: 8pt; line-height: 20pt; background-size: auto 20pt; }
  .progress-track { height: 4pt; margin-bottom: 10pt; }
  .essentials-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10pt; break-inside: avoid; }
  .essential-card { padding: 14pt 12pt; }
  .essential-card h3 { font-size: 14pt; margin-bottom: 12pt; }
  .essential-card > p { font-size: 7pt; }
  .essential-icon { width: 25pt; height: 25pt; margin-bottom: 10pt; }
  .stay-row { margin-top: 10pt; }
  .stay-row strong, .food-focus strong { font-size: 8pt; }
  .stay-row > span, .food-focus > span { font-size: 6pt; }
  .food-focus { padding: 7pt; margin-bottom: 10pt; }
  .food-pills span { font-size: 6pt; }
  .flower-time { font-size: 22pt; }
  .flower-time > span { font-size: 13pt; }
  .flower-detail { font-size: 7pt; }
  .flower-card p.small-copy { font-size: 6.5pt; }
  .return-note { padding: 12pt; margin-top: 12pt; break-inside: avoid; }
  .return-note strong { font-size: 9pt; }
  .return-note p { font-size: 7pt; }
  .sources-section { margin-top: 0; break-inside: avoid; }
  .sources-section summary { padding: 12pt 0; font-size: 8pt; }
  .sources-section details > .sources-content { display: block !important; }
  .sources-content { font-size: 7pt; }
  #source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5pt 10pt; }
  .source-item { padding: 6pt 8pt; font-size: 7pt; }
  .source-item strong, .source-item b { font-size: 7pt; }
  .source-item p, .source-item small, .source-item span, .photo-credits p { font-size: 6pt; }
  .page-footer { font-size: 6.5pt; padding-top: 14pt; }
}
