/*
 * Raglan iHUB – main stylesheet
 *
 * Source of truth: docs/design-system.md (sections 2–7).
 * Written phone first: base rules are for phones; wider screens add to them.
 *   Phone   up to 720px
 *   Tablet  721–1024px   @media (min-width: 721px)
 *   Desktop above 1024px @media (min-width: 1025px)
 * (CSS custom properties can't be used inside media queries, so the
 * breakpoints are written out; they're also listed as tokens below for reference.)
 *
 * Contents
 *   1. Fonts
 *   2. Tokens
 *   3. Base
 *   4. Layout helpers
 *   5. Type
 *   6. Buttons, links, chips, pills, tags
 *   7. Section label, wave edge, blocks
 *   8. Header
 *   9. Footer and phone bar
 *  10. "Ask us" card and Visit block
 *  11. Component preview (admin only)
 */

/* 1. Fonts ------------------------------------------------------------- */
/* Self-hosted, variable. Latin + Latin Extended (macrons ā ē ī ō ū). SIL OFL – licences in assets/fonts/. */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 600 800;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 600 800;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens ------------------------------------------------------------ */

:root {
	/* Colour (design system 2) */
	--c-cream: #F6EEE1;        /* page background */
	--c-card: #FBF6EE;         /* panels and cards on cream */
	--c-ironsand: #1E2321;     /* body text, headings, footer, number badges */
	--c-navy: #14334A;         /* night harbour – one deep block per page */
	--c-flax: #D9C06A;         /* warm blocks, highlights on navy, panel stripe */
	--c-flax-light: #EEE3BF;   /* soft block; "Now" column */
	--c-blue: #226083;         /* harbour blue – links, buttons, labels, icons */
	--c-muted: #5A5456;        /* secondary text on light */
	--c-on-dark: #E9E3D8;      /* body text on navy and Ironsand */
	--c-placeholder: #E3E6DE;  /* image placeholders */
	--c-tide-wash: #E3EBE8;    /* tint band (Getting here – parking), one per page */
	--c-white: #FFFFFF;
	--c-logo: #376E89;         /* the logo mark's blue (owner's graphic) */
	--c-rule: rgba(30, 35, 33, .18);
	--c-rule-dark: rgba(255, 249, 238, .28);
	--c-map-water: rgba(34, 96, 131, .24);
	/* Never put blue text on flax (3.8:1 – fails). On flax, text and links are Ironsand. */

	/* Type (design system 3) */
	--font-heading: "Bricolage Grotesque", system-ui, sans-serif;
	--font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Phone sizes; desktop sizes are set further down */
	--fs-hero: 46px;       /* homepage H1, 800, uppercase */
	--fs-h1: 36px;         /* inner page H1, 700 */
	--fs-h2: 30px;         /* section heading, 700 */
	--fs-h3: 24px;         /* sub-section, 700 (24–28 phone / 28–36 desktop) */
	--fs-card-lg: 20px;    /* card title, large, 600 */
	--fs-card-sm: 17px;    /* card title, small, 600 */
	--fs-body: 17px;
	--fs-small: 15px;      /* secondary text */
	--fs-label: 13px;      /* section label, 600 */
	--fs-nav: 16px;        /* navigation and buttons, 600 */

	--lh-hero: .96;
	--lh-h1: 1;
	--lh-h2: 1.05;
	--lh-h3: 1.1;
	--lh-body: 1.55;
	--lh-small: 1.5;
	--measure: 640px;      /* running text, 60–75 characters */

	/* Layout and spacing (design system 4) */
	--content-max: 1240px;
	--gutter: 20px;           /* side padding: 20px phone, 40px from tablet up */
	--space-section: 56px;    /* between sections: 56px phone, 96px desktop */
	--space-heading: 24px;    /* heading to its content: 24px phone, 40px desktop */
	--gap-cards: 24px;        /* between cards: 24px phone, 32px desktop */

	--radius-block: 16px;     /* panels and blocks */
	--radius-card: 12px;      /* cards and photos */
	--radius-tile: 10px;      /* small phone tiles */
	--radius-pill: 999px;     /* pills and buttons */

	--touch: 44px;            /* minimum touch target */
	--touch-primary: 48px;    /* primary buttons on phones */

	--wave-height: 40px;      /* wave edge: 40px phone, 56px desktop */
	--stripe: 5px;            /* flax top stripe on panels */

	--focus-ring: 3px solid var(--c-blue);
	--focus-offset: 2px;

	/* Breakpoints, for reference: phone ≤720px · tablet 721–1024px · desktop ≥1025px */
	--bp-tablet: 721px;
	--bp-desktop: 1025px;

	--header-height: 65px;    /* phone/tablet sticky header – used to place the menu panel */
}

@media (min-width: 721px) {
	:root {
		--fs-hero: 88px;
		--fs-h1: 56px;
		--fs-h2: 44px;
		--fs-h3: 30px;
		--fs-card-lg: 24px;
		--fs-card-sm: 19px;
		--fs-body: 18px;
		--fs-small: 16px;
		--fs-label: 14px;
		--fs-nav: 17px;
		--lh-body: 1.6;

		--gutter: 40px;
		--space-section: 96px;
		--space-heading: 40px;
		--gap-cards: 32px;
		--wave-height: 56px;
	}
}

/* 3. Base -------------------------------------------------------------- */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-height) + 12px);
}

@media (min-width: 1025px) {
	html { scroll-padding-top: 16px; }
}

body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-ironsand);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }

img, svg, video { max-width: 100%; height: auto; }
img { border-style: none; }
svg { flex-shrink: 0; }

/* Links in text are underlined, so they don't rely on colour alone (WCAG 1.4.1).
   Components that are clearly links (buttons, pills, nav, cards) turn it off. */
a { color: var(--c-blue); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--c-ironsand); }

button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
/* :where() keeps this reset weak, so a list's own class can set its spacing. */
:where(ul[class], ol[class]) { margin: 0; padding: 0; }
b, strong { font-weight: 700; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
details { display: block; }
/* Closed <details> content takes no space (newer Chrome lays it out otherwise,
   which let the closed header panels widen the page on phones). */
details:not([open]) > :not(summary) { display: none; }
[hidden] { display: none !important; }

/* Focus ring: 3px blue, 2px offset; flax on dark blocks (design system 6) */
:focus { outline: none; }
:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
	border-radius: 4px;
}
.on-dark :focus-visible,
.block--navy :focus-visible { outline-color: var(--c-flax); }
.block--flax :focus-visible { outline-color: var(--c-ironsand); }

::selection { background: var(--c-flax-light); color: var(--c-ironsand); }

hr { border: 0; border-top: 1px solid var(--c-rule); margin: 32px 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* 4. Layout helpers ---------------------------------------------------- */

.wrap {
	max-width: calc(var(--content-max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.measure { max-width: var(--measure); }

.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Show/hide by screen size (display:none also hides from screen readers, so only one version is read) */
/* (They only ever hide, never set a display, so each element keeps its own – e.g. a centred icon disc.) */
@media (max-width: 720px) {
	.desktop-only { display: none !important; }
}
@media (min-width: 721px) {
	.phone-only { display: none !important; }
}

/* Same idea at the desktop breakpoint (where sidebars sit beside the content) */
@media (max-width: 1024px) {
	.wide-only { display: none !important; }
}
@media (min-width: 1025px) {
	.narrow-only { display: none !important; }
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--c-ironsand);
	color: var(--c-cream);
	font-weight: 600;
	border-radius: var(--radius-pill);
	text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--c-cream); }

/* 5. Type -------------------------------------------------------------- */

h1, h2, h3, h4, .h1, .h2, .h3, .hero-title {
	font-family: var(--font-heading);
	font-weight: 700;
	color: inherit;
	margin: 0;
	text-wrap: balance;
}

.hero-title {
	font-size: var(--fs-hero);
	font-weight: 800;
	line-height: var(--lh-hero);
	letter-spacing: -0.01em;
	text-transform: uppercase;
}
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -0.5px; }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.5px; }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4, .card-title { font-family: var(--font-heading); font-size: var(--fs-card-lg); font-weight: 600; line-height: 1.15; }
.card-title--small { font-size: var(--fs-card-sm); line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--c-muted); }
.text-small { font-size: var(--fs-small); line-height: var(--lh-small); }

/* 6. Buttons, links, chips, pills, tags -------------------------------- */

/* Primary button: blue pill, white 600 text */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--touch-primary);
	padding: 12px 22px;
	border: 1.5px solid transparent;
	border-radius: var(--radius-pill);
	font: inherit;
	font-size: var(--fs-nav);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
@media (min-width: 721px) {
	.btn { min-height: var(--touch); padding: 13px 24px; }
}

.btn--primary { background: var(--c-blue); color: var(--c-white); }
.btn--primary:hover { background: var(--c-navy); color: var(--c-white); }

/* Outlined: Ironsand outline on light (Search pill, phone "Call") */
.btn--outline { background: transparent; color: var(--c-ironsand); border-color: var(--c-ironsand); }
.btn--outline:hover { background: var(--c-ironsand); color: var(--c-cream); }
.on-dark .btn--outline, .block--navy .btn--outline { color: var(--c-cream); border-color: var(--c-cream); }

.btn--small { min-height: var(--touch); padding: 9px 16px; }
.btn--block { display: flex; width: 100%; }

/* Text link / secondary action: blue 600 ending in " →" (or " ↓" for a jump) */
.link-arrow {
	display: inline-flex;
	align-items: center;
	min-height: var(--touch);
	font-weight: 600;
	color: var(--c-blue);
	text-decoration: none;
}
.link-arrow::after { content: "\00a0→"; }
.link-arrow--down::after { content: "\00a0↓"; }
.link-arrow:hover { text-decoration: underline; }
.block--flax .link-arrow { color: var(--c-ironsand); }
.block--navy .link-arrow { color: var(--c-flax); }

/* Filter chip: Ironsand outline pill; selected = blue fill, white text, aria-pressed */
.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--touch);
	padding: 0 18px;
	border: 1.5px solid var(--c-ironsand);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--c-ironsand);
	font: inherit;
	font-size: var(--fs-small);
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}
.chip__count { color: var(--c-muted); font-weight: 400; }
.chip .icon { color: var(--c-blue); }
.chip:hover { background: var(--c-card); color: var(--c-ironsand); }
.chip[aria-pressed="true"],
.chip[aria-current] { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-white); }
.chip[aria-pressed="true"] .chip__count,
.chip[aria-current] .chip__count,
.chip[aria-pressed="true"] .icon,
.chip[aria-current] .icon { color: var(--c-white); }

/* A row of chips or pills: wraps on desktop, scrolls sideways on phones */
.scroll-row {
	position: relative; /* keeps visually hidden text inside the scroller */
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0 0 6px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { flex-shrink: 0; scroll-snap-align: start; }
@media (min-width: 721px) {
	.scroll-row { flex-wrap: wrap; overflow: visible; }
}

/* Quick-link pill: cream fill, 1.5px Ironsand outline, line icon + label, 52px (48px phone) */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 20px 0 16px;
	border: 1.5px solid var(--c-ironsand);
	border-radius: var(--radius-pill);
	background: var(--c-cream);
	color: var(--c-ironsand);
	font-size: var(--fs-nav);
	font-weight: 600;
	text-decoration: none;
}
.pill .icon { color: var(--c-blue); }
.pill:hover { background: var(--c-card); color: var(--c-ironsand); }
.pill[aria-current] { background: var(--c-ironsand); color: var(--c-cream); }
.pill[aria-current] .icon { color: var(--c-flax); }
.block--navy .pill { border-color: var(--c-cream); }
@media (min-width: 721px) {
	.pill { min-height: 52px; }
}

/* Tag ("best time" / conditions): blue outline pill, wave mark, Ironsand text */
.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 12px 3px 10px;
	border: 1.5px solid var(--c-blue);
	border-radius: var(--radius-pill);
	color: var(--c-ironsand);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
.tag .wave-mark { color: var(--c-blue); }
.tag--small { font-size: 13px; }

/* Icon colours (icons draw in currentColor) */
.icon--blue { color: var(--c-blue); }
.icon--ironsand { color: var(--c-ironsand); }
.icon--flax { color: var(--c-flax); }
.icon--muted { color: var(--c-muted); }

/* Panel: card-cream with a 5px flax top stripe (facts panel, Ask us, conditions link card…) */
.panel {
	background: var(--c-card);
	border: 1px solid var(--c-rule);
	border-top: var(--stripe) solid var(--c-flax);
	border-radius: var(--radius-block);
	padding: 16px;
}
@media (min-width: 721px) {
	.panel { padding: 20px 24px; }
}

/* 7. Section label, wave edge, blocks ---------------------------------- */

/* Section label: wave mark + 14px/600 text, 10px above the heading */
.section-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: var(--c-blue);
	font-size: var(--fs-label);
	font-weight: 600;
	line-height: 1.3;
}
.block--navy .section-label { color: var(--c-flax); }
.block--flax .section-label { color: var(--c-ironsand); }

/* Wave edge between a cream page and a flax or navy block */
.wave-edge { line-height: 0; }
.wave-edge svg { display: block; width: 100%; height: var(--wave-height); }
.wave-edge--flip svg { transform: scaleY(-1); }

/* Full-width colour blocks */
.block { padding-block: 20px var(--space-section); }
@media (min-width: 721px) {
	.block { padding-block: 24px 72px; }
}
.block--flax { background: var(--c-flax); color: var(--c-ironsand); }
.block--flax a:not(.btn):not(.chip) { color: var(--c-ironsand); }
.block--navy { background: var(--c-navy); color: var(--c-on-dark); }
.block--navy h2, .block--navy h3 { color: var(--c-white); }
.block--navy a:not(.btn):not(.pill) { color: var(--c-flax); }
.block--navy a:not(.btn):not(.pill):hover { color: var(--c-white); }

/* 8. Header ------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-cream);
	border-bottom: 1px solid var(--c-rule);
}
.admin-bar .site-header { top: 46px; }
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; } /* the admin bar scrolls away on small screens */
}
@media (min-width: 783px) {
	.admin-bar .site-header { top: 32px; }
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--header-height);
	padding-block: 8px;
	padding-right: 10px;
}

/* Logo: the iHUB's mark (owner's graphic, 22 Nov) + "Raglan iHUB" (+ tagline on desktop) */
.site-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: var(--touch);
	color: var(--c-ironsand);
	text-decoration: none;
}
.site-logo:hover { color: var(--c-ironsand); }
.site-logo__mark { flex-shrink: 0; width: 36px; height: auto; color: var(--c-logo); } /* the mark's own blue, #376E89 */
.site-logo__name {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.3px;
	white-space: nowrap;
}
.site-logo__tagline { display: none; font-size: 16px; color: var(--c-muted); }

/* Desktop nav hidden until there's room for it */
.site-nav { display: none; }
.site-header__phone { display: flex; align-items: center; }

/* Icon buttons (phone search and menu) – 48px targets */
.icon-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-pill);
	color: var(--c-ironsand);
	cursor: pointer;
	list-style: none;
}
.icon-button::-webkit-details-marker,
details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }

/* Header search: panel under the header */
.header-search__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	padding: 16px var(--gutter) 20px;
	background: var(--c-cream);
	border-bottom: 1px solid var(--c-rule);
	box-shadow: 0 12px 24px -16px rgba(30, 35, 33, .35);
}
.search-form label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--fs-small);
	font-weight: 600;
}
.search-form__row { display: flex; gap: 8px; max-width: 640px; }
.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 16px;
	border: 1.5px solid var(--c-ironsand);
	border-radius: 10px;
	background: var(--c-card);
	color: var(--c-ironsand);
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming into the field */
}

/* Phone menu: panel fills the screen under the sticky header */
.phone-menu__open { display: flex; }
.phone-menu__close { display: none; }
.phone-menu[open] .phone-menu__open { display: none; }
.phone-menu[open] .phone-menu__close { display: flex; }
.phone-menu[open] > .icon-button,
.header-search--phone[open] > .icon-button { background: var(--c-card); }

.phone-menu__panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--phone-menu-top, var(--header-height));
	bottom: 0;
	z-index: 40;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px var(--gutter) 32px;
	background: var(--c-cream);
	border-top: 1px solid var(--c-rule);
}
.has-open-menu body { overflow: hidden; } /* page doesn't scroll behind the open phone menu */
.phone-nav__list { list-style: none; margin: 0 0 24px; padding: 0; }
.phone-nav__group { padding: 14px 0; border-bottom: 1px solid var(--c-rule); }
.phone-nav__group ul { list-style: none; margin: 0; padding: 0; }
.phone-nav__heading {
	margin: 0 0 4px;
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
}
.phone-nav__heading.is-current { color: var(--c-blue); }
.phone-nav__link {
	display: flex;
	align-items: center;
	min-height: var(--touch);
	color: var(--c-ironsand);
	font-weight: 600;
	text-decoration: none;
}
.phone-nav__link:hover, .phone-nav__link[aria-current] { color: var(--c-blue); }
.phone-nav__link[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.phone-nav__link--top { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }

/* Desktop header (above 1024px): not sticky, no hairline, nav shown */
@media (min-width: 1025px) {
	.site-header { position: static; border-bottom: 0; }
	.site-header__inner {
		flex-wrap: wrap;
		padding-block: 24px;
		padding-right: var(--gutter);
	}
	.site-logo { gap: 12px; }
	.site-logo__mark { width: 48px; }
	.site-logo__name { font-size: 28px; letter-spacing: -0.5px; }
	.site-logo__tagline { display: inline; }

	.site-header__phone { display: none; }
	.site-nav {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px 20px;
		font-size: var(--fs-nav);
		font-weight: 600;
	}
	.site-nav__list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px 24px;
		margin: 0 8px 0 0;
		padding: 0;
		list-style: none;
	}
	.site-nav__item { position: relative; }
	.site-nav__link,
	.nav-group__label {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		min-height: var(--touch);
		color: var(--c-ironsand);
		text-decoration: none;
		cursor: pointer;
	}
	.site-nav__link:hover, .nav-group__label:hover { color: var(--c-blue); }
	/* Current section in blue (aria-current) */
	.site-nav__link[aria-current],
	.nav-group__label[aria-current] { color: var(--c-blue); }
	.nav-group__chevron { transition: transform .15s; }
	.nav-group[open] .nav-group__chevron { transform: rotate(180deg); }

	.nav-group__menu {
		position: absolute;
		left: -16px;
		top: calc(100% + 4px);
		z-index: 60;
		min-width: 260px;
		margin: 0;
		padding: 8px 0;
		list-style: none;
		background: var(--c-card);
		border: 1px solid var(--c-rule);
		border-top: var(--stripe) solid var(--c-flax);
		border-radius: var(--radius-card);
		box-shadow: 0 12px 28px -12px rgba(30, 35, 33, .35);
	}
	.nav-group__menu a {
		display: flex;
		align-items: center;
		min-height: var(--touch);
		padding: 0 18px;
		color: var(--c-ironsand);
		text-decoration: none;
		white-space: nowrap;
	}
	.nav-group__menu a:hover { background: var(--c-cream); color: var(--c-blue); }
	.nav-group__menu a[aria-current] { color: var(--c-blue); text-decoration: underline; text-decoration-thickness: 2px; }

	.header-search { position: relative; }
	.header-search__panel {
		left: auto;
		right: 0;
		top: calc(100% + 8px);
		z-index: 60;
		width: 420px;
		padding: 16px;
		border: 1px solid var(--c-rule);
		border-radius: var(--radius-card);
		background: var(--c-card);
	}
	.header-search[open] > summary { background: var(--c-ironsand); color: var(--c-cream); }
	.site-nav__visit { padding: 11px 20px; }
}

/* 9. Footer and phone bar ---------------------------------------------- */

.site-footer {
	background: var(--c-ironsand);
	color: var(--c-on-dark);
	padding: 28px 0 116px; /* room for the phone bar */
	font-size: 15px;
	line-height: 1.8;
}
.site-footer a { color: var(--c-on-dark); }
.site-footer a:hover { color: var(--c-flax); }
.site-footer p { margin: 0; }
.site-footer__sep { display: none; }
.site-footer__links { display: flex; flex-wrap: wrap; column-gap: 20px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: var(--touch); }
.site-footer__credits {
	margin-top: 12px !important;
	font-size: 12px;
	line-height: 1.5;
	opacity: .8;
}
@media (min-width: 721px) {
	.site-footer { padding: 28px 0; font-size: 16px; line-height: 1.6; }
	.site-footer__inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}
	.site-footer__sep { display: inline; }
}

/* Phone bottom bar: What's On · Find the iHUB · Call the iHUB */
.phone-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 45;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
	background: var(--c-cream);
	border-top: 1px solid var(--c-rule);
}
.phone-bar__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 52px;
	color: var(--c-ironsand);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	line-height: 1.2;
}
.phone-bar__link:hover { color: var(--c-blue); }
@media (min-width: 721px) {
	.phone-bar { display: none; }
}

/* 10. "Ask us" card and Visit block ------------------------------------ */

.ask-card {
	margin-top: 24px;
	padding: 16px;
	background: var(--c-card);
	border: 1px solid var(--c-rule);
	border-top: var(--stripe) solid var(--c-flax);
	border-radius: 14px;
}
.ask-card__text { margin: 0; font-size: 16px; line-height: 1.45; }
.ask-card__question {
	display: block;
	margin-bottom: 6px;
	font-family: var(--font-heading);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.2;
}
.ask-card__actions,
.visit-block__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 12px 0 0;
}
/* Phone: "Call" is an outlined 48px button */
.ask-card__call,
.visit-block__call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: var(--touch-primary);
	border: 1.5px solid var(--c-ironsand);
	border-radius: var(--radius-pill);
	color: var(--c-ironsand);
	font-weight: 600;
	text-decoration: none;
}
.ask-card__call:hover,
.visit-block__call:hover { background: var(--c-ironsand); color: var(--c-cream); }

@media (min-width: 721px) {
	.ask-card {
		margin-top: 32px;
		padding: 20px 24px;
		border-radius: var(--radius-block);
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px 24px;
	}
	.ask-card__text { font-size: 17px; line-height: 1.5; }
	.ask-card__question { margin-bottom: 0; font-size: 20px; }
	.ask-card .btn { font-size: 16px; padding: 12px 20px; }
	/* Desktop: "Call 07 825 0556" is a text link */
	.ask-card__actions,
	.visit-block__actions {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px 20px;
		margin: 0;
	}
	.ask-card__call,
	.visit-block__call {
		min-height: var(--touch);
		border: 0;
		border-radius: 0;
		text-decoration: underline;
	}
	.ask-card__call:hover,
	.visit-block__call:hover { background: none; color: var(--c-blue); }
	.visit-block__call:hover { color: var(--c-ironsand); text-decoration-thickness: 2px; }
}

.visit-block p { margin: 10px 0 0; max-width: 560px; }
.visit-block .section-label { margin-top: 0; }
.visit-block__actions { margin-top: 16px; }
@media (min-width: 721px) {
	.visit-block__inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 24px 48px;
	}
	.visit-block p { margin-top: 14px; }
	.visit-block__actions { margin-top: 0; }
}

/* 11. Page furniture shared by templates ------------------------------- */

/* Breadcrumb: 15px muted (14px phone), links underlined, "›" separators.
   Phones show only the parent and the page. */
.breadcrumb { font-size: 14px; color: var(--c-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin: 0 .4em; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--c-blue); }
.breadcrumb .breadcrumb__far { display: none; }
.breadcrumb .breadcrumb__far + li:not(.breadcrumb__far)::before { content: none; }
@media (min-width: 721px) {
	.breadcrumb { font-size: 15px; }
	.breadcrumb .breadcrumb__far { display: list-item; }
	.breadcrumb .breadcrumb__far + li:not(.breadcrumb__far)::before { content: "›"; }
}

/* Photo placeholder: grey with a fine hatch, until a real photo arrives */
.ph {
	display: block;
	width: 100%;
	background-color: var(--c-placeholder);
	background-image: repeating-linear-gradient(135deg, rgba(30, 35, 33, .06) 0 2px, transparent 2px 14px);
	border-radius: var(--radius-card);
}

/* Icon + text fact (address, phone, time…) */
.icon-fact { display: flex; align-items: flex-start; gap: 8px; }
.icon-fact .icon { margin-top: .15em; }

/* Empty state when a filter matches nothing */
.empty-state {
	margin-top: 20px;
	padding: 20px;
	border: 1.5px dashed var(--c-ironsand);
	border-radius: var(--radius-card);
}
.empty-state__title { margin: 0 0 10px; font-family: var(--font-heading); font-size: 20px; font-weight: 600; }

/* Top of inner pages: breadcrumb, label, H1, lead */
.page-top { padding-top: 14px; }
.page-intro { margin-top: 24px; }
.page-intro__lead { margin: 12px 0 0; font-size: 18px; line-height: 1.5; max-width: 700px; }
@media (min-width: 721px) {
	.page-intro { margin-top: 28px; }
	.page-intro__lead { margin-top: 16px; font-size: 20px; }
}

/* "All walks  28 walks" – a list heading with its count */
.list-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 28px; }
.filter-bar + .list-heading { margin-top: 32px; } /* same gap as the directory's list heading */
.list-heading__count { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--c-muted); }
@media (min-width: 721px) {
	.list-heading { font-size: 36px; }
	.filter-bar + .list-heading { margin-top: 40px; }
	.list-heading__count { font-size: 17px; }
}

/* Ironsand number badge (walks, spots, stops – matches printed maps) */
.num-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 28px;
	height: 28px;
	padding: 0 4px;
	border-radius: var(--radius-pill);
	background: var(--c-ironsand);
	color: var(--c-cream);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

/* Title-on-photo tile (collections, itineraries…): white title over a bottom gradient */
.photo-tile { display: flex; flex-direction: column; gap: 8px; color: var(--c-ironsand); text-decoration: none; }
.photo-tile__frame {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--c-placeholder);
	outline: 3px solid transparent;
	outline-offset: 3px;
}
.photo-tile__frame .ph,
.photo-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.photo-tile__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 48px 12px 12px;
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .62));
	color: var(--c-white);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.05;
}
/* Sub label: a fact about the tile – blue icon, ironsand semi-bold text (as on itinerary cards) */
.photo-tile__count { display: flex; align-items: flex-start; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--c-ironsand); }
.photo-tile__count .icon { flex-shrink: 0; margin-top: 1px; color: var(--c-blue); }
.photo-tile:hover .photo-tile__frame { outline-color: var(--c-rule); }
.photo-tile[aria-current] .photo-tile__frame { outline-color: var(--c-blue); }
@media (min-width: 721px) {
	.photo-tile__label { padding: 56px 14px 14px; font-size: 22px; }
}

/* Filter bar (chips row with an Ironsand rule above) – directory, walks, beaches… */
.filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-top: 1.5px solid var(--c-ironsand);
	border-bottom: 1px solid var(--c-rule);
}
.filter-bar .scroll-row { flex: 1 1 100%; gap: 8px; padding: 0; }
.filter-bar__clear {
	display: inline-flex;
	align-items: center;
	min-height: var(--touch);
	margin-left: auto;
	font-size: 15px;
	font-weight: 600;
	color: var(--c-blue);
}
@media (min-width: 721px) {
	.filter-bar .scroll-row { flex: 1 1 auto; }
}

/* Navy safety block: tiles with flax icons */
.safety-block { color: var(--c-on-dark); }
.safety-block__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 24px;
}
.safety-block__links { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; }
.safety-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
}
.safety-tiles li {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border: 1px solid var(--c-rule-dark);
	border-radius: var(--radius-card);
}
.safety-tiles strong { color: var(--c-white); font-size: 16px; font-weight: 600; }
.safety-tiles span { font-size: 15px; line-height: 1.4; }
@media (min-width: 721px) {
	.safety-block__head { margin-bottom: 28px; }
	.safety-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.safety-tiles li { padding: 16px; }
	.safety-tiles strong { font-size: 17px; }
}

/* 12. Detail pages (walk, itinerary, heritage trail) ------------------- */

.detail-head { margin-top: 20px; display: grid; gap: 16px; }
.detail-head__intro { margin: 12px 0 0; font-size: 18px; line-height: 1.55; max-width: var(--measure); }
.detail-head__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0; }
@media (min-width: 1025px) {
	.detail-head {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		gap: 48px;
		align-items: end;
		margin-top: 24px;
	}
	.detail-head__intro { margin-top: 20px; font-size: 20px; }
	.detail-head__actions { justify-content: flex-end; }
}

.detail-hero { margin: 24px calc(-1 * var(--gutter)) 0; }
.detail-hero__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; }
@media (min-width: 721px) {
	.detail-hero { margin: 32px 0 0; }
	.detail-hero__img { aspect-ratio: 21 / 9; border-radius: var(--radius-block); }
}

/* Facts panel: card-cream, flax stripe, a <dl> of fact tiles, then alert lines */
.facts-panel {
	position: relative;
	margin-top: 24px;
	padding: 18px 16px;
	background: var(--c-card);
	border: 1px solid var(--c-rule);
	border-top: var(--stripe) solid var(--c-flax);
	border-radius: var(--radius-block);
}
.facts-panel--overlap { margin: -32px 8px 0; }
.facts-panel__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin: 0; }
.facts-panel__fact { min-width: 0; }
@media (max-width: 720px) {
	.facts-panel__fact:nth-child(5):last-child { grid-column: 1 / -1; } /* phones: 2×2 tiles, the fifth as a line below */
}
.facts-panel dt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--c-muted); }
.facts-panel dd { margin: 0; }
.facts-panel__value { margin-top: 6px !important; font-size: 17px; font-weight: 600; line-height: 1.25; }
.facts-panel__note { margin-top: 4px !important; font-size: 14px; line-height: 1.4; color: var(--c-muted); }
.facts-panel__alerts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--c-rule);
}
.alert-line { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; line-height: 1.45; }
.alert-line strong { font-weight: 600; }
.alert-line .link-arrow { min-height: 0; } /* sits in the sentence; the invisible 44px tap area still applies */
@media (min-width: 721px) {
	.facts-panel { padding: 24px 28px; }
	.facts-panel--overlap { margin: -56px 32px 0; }
	.facts-panel__list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
	.facts-panel__fact { padding: 4px 16px 4px 0; border-right: 1px solid var(--c-rule); }
	.facts-panel__fact:last-child { border-right: 0; }
	.facts-panel__value { margin-top: 8px !important; font-size: 18px; }
	.facts-panel__alerts { flex-direction: row; flex-wrap: wrap; gap: 12px 40px; margin-top: 20px; padding-top: 16px; }
	.alert-line { font-size: 16px; }
}

/* Body: text column + sticky aside */
.detail-body { display: grid; gap: 40px; padding-top: 48px; }
.detail-body__aside { display: flex; flex-direction: column; gap: 16px; }
.detail-body__aside p { margin: 0; }
.detail-map { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
@media (min-width: 1025px) {
	.detail-body {
		grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
		gap: 64px;
		align-items: start;
		padding-top: 72px;
	}
	.detail-body__aside { position: sticky; top: 24px; }
}

/* Running text */
.prose section + section { margin-top: 40px; }
.prose h2 { margin: 0 0 14px; }
.prose p, .prose ul, .prose ol { max-width: var(--measure); margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li strong { font-weight: 600; }
@media (min-width: 721px) {
	.prose section + section { margin-top: 56px; }
	.prose h2 { margin-bottom: 16px; font-size: 36px; }
}

/* FAQ: native <details>, 52px summary */
.faq { border-bottom: 1px solid var(--c-rule); }
.faq details { border-top: 1px solid var(--c-rule); }
.faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 8px 0;
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
}
.faq__chev { color: var(--c-blue); transition: transform .15s; }
.faq details[open] .faq__chev { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; }
@media (min-width: 721px) {
	.faq summary { font-size: 19px; }
}

.sources { margin-top: 32px !important; font-size: 15px; color: var(--c-muted); }
.sources .link-arrow { min-height: 0; font-size: 15px; }

/* "Make a day of it" */
.nearby { padding-block: var(--space-section); }
.nearby__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px 16px;
	margin-bottom: 24px;
}
.walk-cards { display: grid; gap: 12px; list-style: none; }
.walk-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 16px;
	border: 1.5px solid var(--c-ironsand);
	border-radius: var(--radius-card);
	color: var(--c-ironsand);
	text-decoration: none;
}
.walk-card:hover { background: var(--c-card); color: var(--c-ironsand); }
.walk-card__kind { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-blue); }
.walk-card__name { font-family: var(--font-heading); font-size: 19px; font-weight: 600; line-height: 1.2; }
.walk-card__facts { font-size: 15px; }
.walk-card__start { font-size: 14px; color: var(--c-muted); }
.nearby__businesses { margin-top: 32px; }
@media (min-width: 721px) {
	.nearby__head { margin-bottom: 32px; }
	.walk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.walk-card__name { font-size: 20px; }
}

/* 13. Component preview (admin only, ?ihub-components) ----------------- */

.dev-preview h2.dev-heading {
	margin: 56px 0 16px;
	padding-top: 16px;
	border-top: 2px solid var(--c-ironsand);
	font-size: 24px;
}
.dev-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	padding: 0;
	list-style: none;
}
.dev-swatches li { border: 1px solid var(--c-rule); border-radius: var(--radius-card); overflow: hidden; background: var(--c-card); font-size: 14px; line-height: 1.4; }
.dev-swatches span { display: block; height: 64px; }
.dev-swatches code { display: block; padding: 8px 10px; }
.dev-icons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 8px;
	padding: 0;
	list-style: none;
}
.dev-icons li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 4px;
	background: var(--c-card);
	border-radius: var(--radius-tile);
	font-size: 13px;
	color: var(--c-muted);
}
.dev-icons .icon { color: var(--c-blue); }
.dev-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Conditions link card: the one place pages hand off to Weather, tides & swell */
.conditions-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	align-items: center;
	margin-top: 24px;
	padding: 16px;
	background: var(--c-card);
	border: 1px solid var(--c-rule);
	border-top: var(--stripe) solid var(--c-flax);
	border-radius: var(--radius-block);
	color: var(--c-ironsand);
	text-decoration: none;
}
.conditions-card__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; }
.conditions-card__text strong { font-size: 17px; font-weight: 600; }
.conditions-card__link { grid-column: 1 / -1; font-weight: 600; color: var(--c-blue); }
.conditions-card:hover { color: var(--c-ironsand); }
.conditions-card:hover .conditions-card__link { text-decoration: underline; }
@media (min-width: 721px) {
	.conditions-card { grid-template-columns: auto 1fr auto; padding: 18px 24px; }
	.conditions-card__link { grid-column: auto; }
}

.section--tight { padding-block: 40px var(--space-section); }

/* Search results and 404 (not on the boards – built from existing components) */
.search-page__form { max-width: 640px; margin-top: 24px; }
.search-results__excerpt { overflow-wrap: anywhere; } /* long web addresses in excerpts */
.search-results { margin-top: 8px; }
.search-results__excerpt { display: block; margin-top: 2px; font-size: 15px; color: var(--c-muted); }
.search-page__more { margin-top: 24px; }
.not-found__pills { margin-top: 24px; }
.link-rows { list-style: none; border-bottom: 1px solid var(--c-rule); }
.business-rows + .link-rows { margin-top: 0; }
.business-rows + .link-rows > .link-row:first-child { border-top: 0; } /* one continuous list, one line */
.link-row { padding: 10px 0; border-top: 1px solid var(--c-rule); }
.link-row__link { display: flex; flex-direction: column; min-height: var(--touch); justify-content: center; text-decoration: none; }
.link-row__kind { font-size: 13px; color: var(--c-muted); }
.link-row__name { font-weight: 600; color: var(--c-blue); }
.link-row__link:hover .link-row__name { text-decoration: underline; }
.nav-links { display: flex; gap: 20px; margin-top: 20px; font-weight: 600; }

/* Touch targets (44px, CLAUDE.md). Small standalone links get an invisible
   hit area at least 44px tall and wide, centred on the link, so they're easy
   to tap without changing the layout. Links inside running text are exempt. */
.tap,
.breadcrumb a,
.listing-card__name a,
.link-arrow,
.itin-pin,
.facts-panel__value a,
.emergency-line a,
.ceremony__links a,
.volunteer-block__actions a,
.signup-block__email,
.advertise__email,
.nav-links a,
.safety-tiles a,
dd a { position: relative; }
.tap::before,
.breadcrumb a::before,
.listing-card__name a::before,
.link-arrow::before,
.itin-pin::before,
.facts-panel__value a::before,
.emergency-line a::before,
.ceremony__links a::before,
.volunteer-block__actions a::before,
.signup-block__email::before,
.advertise__email::before,
.nav-links a::before,
.safety-tiles a::before,
dd a::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: max(100%, 44px);
	height: max(100%, 44px);
	transform: translate(-50%, -50%);
}
