/* ==========================================================================

   WH&B November 2026

   1. Tokens  
   2. Base  
   3. Layout  
   4. Header & nav  
   5. Buttons & chips
   6. Home  
   7. Cards  
   8. Hikes index  
   9. Hike detail  
   10. Prose & legacy pages
   11. Join band, footer, mobile bar
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
	/* Brand palette */
	/* Supporting neutrals (derived from brand files, that sticker photo with the sunset) */

	/* Main */
	--sun-pale:   #FFFD90;
	--sun:        #FFA361;

	--sky:        #5B7BA4;
	--navy:       #1C3B5D;

	--sage:       #43635F;
	--forest:     #2B4A47;

	/* Secondary */
	--paper:      #FBF8EF;   /* page background */
	--sand:       #F1ECDD;   /* alternate section background */
	--line:       #D9D3C2;
	--ink:        #1F2A2E;   /* body text */
	--ink-soft:   #3D4A4C;
	--navy-deep:  #15283D;   /* footer */
	--chip:       #E8EFE9;
	--alert-bg:   #FFF6D6;
	--alert-line: #F0D98A;
	--alert-ink:  #7A3A0C;
	--hard-bg:    #FFE2CC;

	--font-display: "Merriweather", Georgia, serif;
	--font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Fluid type: smallest phone → widest desktop */
	--step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);   /* body 17–18px */
	--step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
	--step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.75rem);
	--step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
	--step-4: clamp(2rem, 1.5rem + 2.4vw, 3.375rem);

	--radius: 10px;
	--shadow: 0 1px 2px rgba(28, 59, 93, .08), 0 6px 20px rgba(28, 59, 93, .06);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(48px, 7vw, 88px);
}



/* 2. Base --------------------------------------------------------------- */


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--sun); color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }




/* 3. Layout ------------------------------------------------------------- */


.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-sand { background: var(--sand); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin: 0 0 .5rem; }
.eyebrow.is-strenuous { color: #9A4A12; }
.section-title { font-size: var(--step-3); max-width: 24ch; margin-bottom: 1.5rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 2rem; }
.section-head .section-title { margin-bottom: 0; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }





/* 4. Header & nav ------------------------------------------------------- */



.utility { background: var(--navy); color: var(--paper); font-size: .9rem; }
.utility .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.utility a { color: var(--sun-pale); font-weight: 600; }

.site-header { background: var(--forest); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { color: var(--paper); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.1rem, 1rem + .5vw, 1.375rem); line-height: 1.1; }
.wordmark span { font-weight: 400; font-style: italic; color: var(--sun-pale); }
.wordmark:hover { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--paper); text-decoration: none; font-weight: 600; padding: 10px 2px; }
.site-nav a:not(.btn):hover { color: var(--sun-pale); }
.site-nav a[aria-current="page"] { color: var(--sun-pale); box-shadow: inset 0 -2px 0 var(--sun-pale); }
.site-nav .btn { min-height: 44px; padding: 0 18px; }

.menu-button { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--paper); cursor: pointer; align-items: center; justify-content: center; margin-right: -8px; }
.menu-button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
	.js .menu-button { display: inline-flex; }
	.js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 20px; }
	.js .site-nav.is-open { display: flex; }
	.site-nav a:not(.btn) { font-family: var(--font-display); font-size: 1.3rem; min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid #3E5F5B; }
	.site-nav a[aria-current="page"] { box-shadow: none; }
	.site-nav .btn { margin-top: 20px; min-height: 52px; }
	.utility .wrap span { display: none; }
}





/* 5. Buttons & chips ---------------------------------------------------- */



.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: center; line-height: 1.2; }
.btn-sun, .btn-sun:link, .btn-sun:visited { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: #FFB57E; color: var(--navy); }
.btn-outline, .btn-outline:link, .btn-outline:visited { border: 2px solid var(--paper); color: var(--paper); }
.btn-outline:hover { background: var(--paper); color: var(--navy); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .875rem; font-weight: 600; color: var(--forest); background: var(--chip); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

.link-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chips a { font-size: .9rem; font-weight: 600; color: var(--forest); background: #fff; border: 1px solid #C9D3C4; border-radius: 999px; padding: 8px 14px; text-decoration: none; white-space: nowrap; }
.link-chips a:hover { border-color: var(--forest); }
@media (max-width: 760px) {
	.link-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
}

.more-link { font-weight: 700; margin: 2rem 0 0; }





/* 6. Home --------------------------------------------------------------- */


.hero { position: relative; min-height: 620px; display: flex; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: 56px; }
.hero-panel { background: rgba(28, 59, 93, .92); color: var(--paper); max-width: 620px; padding: clamp(24px, 4vw, 44px); border-radius: 4px; }
.hero-panel .arc { width: min(320px, 80%); margin: 0 0 12px; }
.hero-panel h1 { color: var(--paper); font-size: var(--step-4); font-weight: 900; line-height: 1.08; }
.hero-panel p { color: #E9EEF3; font-size: var(--step-1); margin-bottom: 1.5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 760px) {
	/* Photo above, text block below; no arc at phone size */
	.hero { display: block; min-height: 0; }
	.hero > img { position: static; aspect-ratio: 4 / 3; height: auto; }
	.hero .wrap { padding: 0; }
	.hero-panel { max-width: none; border-radius: 0; padding: 28px var(--gutter) 32px; }
	.hero-panel .arc { display: none; }
	.btn-row { flex-direction: column; }
}

.paths { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.path-card { flex-direction: row; flex-wrap: wrap; }
.path-card img { flex: 1 1 200px; width: 44%; min-height: 240px; aspect-ratio: auto; }
.path-card .card-body { flex: 1 1 260px; padding: 28px; }
.path-card h3 { font-size: var(--step-2); }
.path-card .go { font-weight: 700; color: var(--navy); }

.steps { list-style: none; margin: 0; padding: 48px 0 0; border-top: 1px solid var(--line); display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps .num { font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; line-height: 1; color: var(--sun); margin: 0 0 10px; }
.steps h3 { font-size: var(--step-1); margin-bottom: 6px; }
.steps p { margin: 0; }
@media (max-width: 760px) {
	.steps { gap: 22px; padding-top: 28px; }
	.steps li { display: flex; gap: 16px; }
	.steps .num { font-size: 1.9rem; width: 24px; flex: none; margin: 0; }
}

.facts-band { background: var(--sage); color: var(--paper); padding: clamp(40px, 5vw, 64px) 0; }
.facts-band .wrap { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(min(40%, 200px), 1fr)); }
.facts-band b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); line-height: 1; color: var(--sun-pale); }
.facts-band p { margin: 8px 0 0; }

.know-how { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.know-how h3 { font-size: var(--step-1); }
.know-how ul { list-style: none; margin: 0; padding: 0; }
.know-how li { border-top: 1px solid #EAE4D4; }
.know-how li a { display: flex; justify-content: space-between; min-height: 48px; align-items: center; font-weight: 600; text-decoration: none; }
.know-how li a::after { content: "›"; font-size: 1.3em; }






/* 7. Cards -------------------------------------------------------------- */


.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(28, 59, 93, .1), 0 12px 28px rgba(28, 59, 93, .1); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card h3 { font-size: var(--step-1); margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card.wide img { aspect-ratio: 16 / 7; }

@media (max-width: 760px) {
	/* Hike cards become compact rows on phones */
	.hike-list .hike-card { flex-direction: row; }
	.hike-list .hike-card img { width: 120px; aspect-ratio: auto; flex: none; }
	.hike-list .hike-card .card-body { padding: 14px 16px; }
	.hike-list .hike-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
	.hike-list { gap: 16px; }
}





/* 8. Hikes index -------------------------------------------------------- */


.page-intro { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 8px; }
.page-intro h1 { font-size: var(--step-4); font-weight: 900; margin-bottom: .3em; }
.page-intro .lede { font-size: var(--step-1); max-width: 60ch; color: var(--ink-soft); }
.region { padding-top: clamp(32px, 5vw, 56px); scroll-margin-top: 80px; }
.region h2 { font-size: var(--step-2); margin-bottom: 1.25rem; }





/* 9. Hike detail -------------------------------------------------------- */


.hike-hero { height: clamp(260px, 38vw, 520px); overflow: hidden; }
.hike-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.title-block { position: relative; background: var(--paper); margin-top: -96px; padding: 36px clamp(0px, 3vw, 40px) 8px; border-radius: 6px 6px 0 0; max-width: 820px; }
.title-block h1 { font-size: var(--step-4); font-weight: 900; line-height: 1.08; margin-bottom: 6px; }
.title-block .subtitle { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--sage); margin-bottom: 18px; }
.title-block .lede { font-size: var(--step-1); max-width: 680px; margin: 0; }
@media (max-width: 760px) {
	.hike-hero { height: auto; }
	.hike-hero img { aspect-ratio: 4 / 3; }
	.title-block { margin-top: 0; padding: 24px 0 0; }
}

.hike-summary { max-width: 820px; padding: 28px clamp(0px, 3vw, 40px) 0; }
.hike-summary .callout { margin-bottom: 0; }
.hike-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 48px; padding-bottom: var(--section); }
@media (max-width: 760px) {
	/* Phones: facts and map come right after the summary, before the trail notes */
	.hike-summary { padding-left: 0; padding-right: 0; }
	.hike-layout { gap: 32px; padding-top: 32px; }
	.hike-aside { order: -1; }
	.hike-aside .box-navy { display: none; } /* the pinned button at the bottom covers this */
}
.hike-main { flex: 999 1 560px; min-width: 0; }
.hike-aside { flex: 1 1 300px; min-width: min(100%, 280px); display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 980px) { .hike-aside { position: sticky; top: 92px; } }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(45%, 130px), 1fr)); margin: 0 0 10px; }
.stat { background: var(--sand); border-radius: 8px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.5rem); color: var(--navy); line-height: 1.15; }
.stat span { font-size: .875rem; color: var(--ink-soft); }
.stat.is-strenuous { background: var(--hard-bg); }
.stat.is-strenuous b { color: var(--alert-ink); }
.small-link { font-size: .94rem; }

.callout { background: var(--alert-bg); border: 1px solid var(--alert-line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; margin: 28px 0 8px; }
.callout svg { flex: none; margin-top: 2px; fill: none; stroke: var(--alert-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout strong { display: block; color: var(--alert-ink); margin-bottom: 4px; }
.callout p { margin: 0; }

.hike-main h2 { font-size: var(--step-2); margin: 48px 0 14px; }
.hike-main h2.first { margin-top: 0; }
.hike-main h3 { font-size: var(--step-1); margin: 28px 0 8px; }
.hike-main ul, .hike-main ol:not(.segments) { padding-left: 1.3em; margin: 0 0 1.2em; }
.hike-main li { margin-bottom: .35em; }
.segments ul { margin: 6px 0 0; }
.map-card span:only-child { min-height: 64px; }
.panel { margin: 0; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.panel figcaption { font-size: .94rem; margin-top: 8px; }

.segments { list-style: none; margin: 0 0 8px; padding: 0; counter-reset: seg; }
.segments li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid #E4DECE; counter-increment: seg; }
.segments li:last-child { border-bottom: 1px solid #E4DECE; }
.segments li::before { content: counter(seg); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--sun-pale); font-family: var(--font-display); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.segments strong { display: block; color: var(--navy); }
.notes-note { font-size: .94rem; font-style: italic; color: var(--ink-soft); margin-top: 32px; }

.box { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.box h2 { font-size: var(--step-1); margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.facts dt { font-weight: 700; color: var(--forest); padding: 11px 16px 11px 0; border-top: 1px solid #E4DECE; font-size: .94rem; }
.facts dd { margin: 0; padding: 11px 0; border-top: 1px solid #E4DECE; font-size: 1rem; }
.map-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); }
.map-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map-card span { display: flex; justify-content: space-between; min-height: 52px; align-items: center; padding: 0 18px; font-weight: 700; }
.box-navy { background: var(--navy); color: var(--paper); border-radius: var(--radius); padding: 24px; }
.box-navy h2 { color: var(--paper); font-size: var(--step-1); margin: 0 0 8px; }
.box-navy p { color: #D9E2EC; font-size: 1rem; margin-bottom: 18px; }
.box-navy .btn { width: 100%; }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery a { display: block; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.credit { font-size: .94rem; color: var(--ink-soft); margin: 14px 0 0; }
@media (max-width: 760px) {
	/* Swipeable photo strip on phones */
	.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
	.gallery a { flex: none; width: 80%; scroll-snap-align: start; }
}





/* 9b. Text pages (Resources, FAQ, policy) ------------------------------- */


.hike-hero.is-short { height: clamp(180px, 24vw, 360px); }
.title-block.no-hero { margin-top: 0; padding-top: clamp(40px, 6vw, 72px); background: none; }
.title-block .eyebrow { margin-bottom: .4rem; }
@media (max-width: 760px) {
	.hike-hero.is-short { height: auto; }
	.hike-hero.is-short img { aspect-ratio: 16 / 7; }
	.title-block.no-hero { padding-top: 32px; }
}

.article { max-width: 720px; }
.article > h2:first-child, .article > .first { margin-top: 0; }
.article blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--sand); border-radius: var(--radius); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.7; color: var(--ink); }
.article blockquote p:last-child { margin-bottom: 0; }
.article .quote-source { font-size: .94rem; color: var(--ink-soft); margin-top: -.6em; }
.article figure { margin: 1.5em 0; }
.article figure img { border-radius: 8px; }
.article figcaption { font-size: .94rem; color: var(--ink-soft); margin-top: 8px; }
.article .chart { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.article .chart img { border-radius: 0; margin: 0 auto; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* FAQ: each question is a block with a top rule */
.faq-item { border-top: 1px solid var(--line); padding: 24px 0 8px; }
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-item h2 { font-size: var(--step-1); margin: 0 0 10px; }
.faq-item h2 em { font-style: italic; color: var(--sage); }

/* Policy: numbered rules */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.rules > li { counter-increment: rule; position: relative; padding: 24px 0 8px 52px; border-top: 1px solid var(--line); }
.rules > li:first-child { border-top: 0; padding-top: 0; }
.rules > li::before { content: counter(rule); position: absolute; left: 0; top: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--sand); color: var(--navy); font-family: var(--font-display); font-weight: 900; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.rules > li:first-child::before { top: 0; }
.rules h2 { font-size: var(--step-1); margin: 4px 0 10px; }

/* Morros: peaks listed west to east */
.peak-list { list-style: none; margin: 1.5em 0; padding: 0; counter-reset: peak; }
.peak-list li { counter-increment: peak; display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.peak-list li:last-child { border-bottom: 1px solid var(--line); }
.peak-list li::before { content: counter(peak); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--sun-pale); font-family: var(--font-display); font-weight: 900; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.peak-list h3 { font-size: var(--step-1); margin: 4px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.peak-list p { margin: 0; }
.tag { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--forest); background: var(--chip); border-radius: 999px; padding: 3px 10px; text-decoration: none; letter-spacing: .02em; }
a.tag:hover { background: var(--forest); color: #fff; }

/* Levels (Find your level) */
.level { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin: 0 0 20px; }
.level h2 { font-size: var(--step-2); margin: 0 0 4px; }
.level .level-specs { font-weight: 600; color: var(--sage); margin-bottom: 12px; }
.level dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.level dt { font-weight: 700; color: var(--forest); font-size: .94rem; padding-top: 1px; }
.level dd { margin: 0; }
@media (max-width: 520px) { .level dl { grid-template-columns: 1fr; gap: 2px; } .level dd { margin-bottom: 10px; } }

/* Recorded stats tables */
.table-scroll { overflow-x: auto; margin: 0 0 8px; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.stats-table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.stats-table caption { text-align: left; }
.stats-table th, .stats-table td { padding: 9px 14px; text-align: right; border-top: 1px solid #EEE8DA; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table thead th { border-top: 0; background: var(--sand); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.stats-table tr.average td { font-weight: 700; background: var(--chip); color: var(--forest); }
.article h2 a { text-decoration: none; }
.article h2 a:hover { text-decoration: underline; }

/* Resources hub */
.link-box ul { list-style: none; margin: 0; padding: 0; }
.link-box li { border-top: 1px solid #EAE4D4; padding: 10px 0; }
.link-box li a { font-weight: 600; }
.link-box li span { display: block; font-size: .94rem; color: var(--ink-soft); }

@media (min-width: 940px) { .span-2 { grid-column: span 2; } }

/* Sidebar guide list */
.guide-list ul { list-style: none; margin: 0; padding: 0; }
.guide-list li { border-top: 1px solid #EAE4D4; }
.guide-list li a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 1rem; }
.guide-list li a::after { content: "›"; font-size: 1.3em; }
@media (max-width: 760px) {
	.article-aside { order: 0; }   /* on text pages the sidebar follows the content */
}





/* 9c. Contact form ------------------------------------------------------ */


.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #C9C2B0; border-radius: 6px; padding: 12px 14px; }
.field input { min-height: 48px; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(255, 163, 97, .55); outline-offset: 1px; }
.contact-form .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: var(--alert-bg); border: 1px solid var(--alert-line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; color: var(--alert-ink); }
.form-errors p { margin: 0 0 6px; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.form-success { background: var(--chip); border-radius: var(--radius); padding: 24px 26px; }
.form-success h2 { margin: 0 0 6px; font-size: var(--step-2); }
.form-success p { margin: 0; }
@media (max-width: 760px) { .contact-form .btn { align-self: stretch; } }





/* 9d. Photo viewer (built by site.js) ----------------------------------- */


body:has(dialog.viewer[open]) { overflow: hidden; }   /* stop the page scrolling behind it */
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 20, 32, .6); color: #fff; }
.viewer::backdrop { background: rgba(10, 20, 32, .94); }
.viewer[open] { display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 64px 1fr; animation: viewer-in .2s ease-out; }
.viewer-figure { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 64px 0 24px; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.viewer-image { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 4px; opacity: 0; transition: opacity .2s ease; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.viewer-image.is-loaded { opacity: 1; }
.viewer-caption { max-width: 70ch; text-align: center; font-size: 1rem; line-height: 1.5; color: #E6ECF2; }
.viewer-count { color: #9FB0C2; white-space: nowrap; margin-left: .5em; font-variant-numeric: tabular-nums; }
.viewer-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.viewer-btn:hover { background: rgba(255, 255, 255, .24); }
.viewer-btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.viewer-close { grid-column: 3; grid-row: 1; justify-self: center; align-self: center; }
.viewer-prev { grid-column: 1; grid-row: 2; justify-self: center; align-self: center; }
.viewer-next { grid-column: 3; grid-row: 2; justify-self: center; align-self: center; }
.viewer.is-single .viewer-prev, .viewer.is-single .viewer-next { display: none; }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) {
	/* Phones: photo full width, prev/next along the bottom (swiping works too) */
	.viewer[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 64px 1fr 76px; }
	.viewer-figure { grid-column: 1 / 3; grid-row: 2; padding: 0 8px; }
	.viewer-image { max-height: calc(100dvh - 220px); }
	.viewer-caption { padding: 0 12px; font-size: .94rem; }
	.viewer-close { grid-column: 2; grid-row: 1; justify-self: end; margin-right: 12px; }
	.viewer-prev { grid-column: 1; grid-row: 3; }
	.viewer-next { grid-column: 2; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
	.viewer[open] { animation: none; }
	.viewer-image { transition: none; }
}





/* 10. Prose & legacy pages --------------------------------------------- */


.prose { max-width: 800px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: var(--section); }
.prose h1 { font-size: var(--step-4); font-weight: 900; line-height: 1.1; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sun); color: var(--ink-soft); font-style: italic; }
.prose img { border-radius: 8px; margin: 1em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; }

/* Older hike pages: thumbnail gallery and their own join button */
.legacy #disp-canvas img { width: 100%; }
.legacy .thumbnails { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.legacy .thumbnails img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; }
.legacy .attribution { font-size: .94rem; color: var(--ink-soft); }
.legacy .button { display: none; } /* the join band below every page replaces this */
.legacy .hike-stats-list td, .legacy .hike-stats-list th { padding: 8px; border-top: 1px solid var(--line); }
.legacy .hike-stats-list tr.average td { font-weight: 700; background: var(--chip); }





/* 11. Join band, footer, mobile bar ------------------------------------- */


.join-band { background: var(--navy); color: var(--paper); padding: clamp(56px, 7vw, 80px) 0; text-align: center; }
.join-band .arc { width: min(300px, 70%); margin: 0 auto 12px; }
.join-band h2 { color: var(--paper); font-size: var(--step-3); }
.join-band p { color: #D9E2EC; max-width: 560px; margin: 0 auto 28px; }
@media (max-width: 760px) { .join-band .arc { display: none; } }

.site-footer { background: var(--navy-deep); color: #C9D4E0; font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding-top: 32px; padding-bottom: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: #C9D4E0; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }

.mobile-cta { display: none; }
@media (max-width: 760px) {
	.mobile-cta { display: block; position: sticky; bottom: 0; z-index: 15; background: rgba(251, 248, 239, .97); border-top: 1px solid var(--line); padding: 10px var(--gutter); }
	.mobile-cta .btn { width: 100%; }
	.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.site-footer nav a { min-height: 44px; display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
	.card, .gallery img { transition: none; }
	.card:hover { transform: none; }
}
