/*
Theme Name: Visit Tofino: Tidal Interval
Theme URI: https://visittofino.ca
Author: The Travel Spark Company LLC
Description: A lean, destination-specific editorial WordPress theme for an independent Tofino travel guide.
Version: 1.1.0
Requires at least: 7.1
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: visit-tofino
Tags: blog, one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

@font-face {
	font-family: "Newsreader Local";
	src: url("assets/fonts/newsreader-variable.ttf") format("truetype");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
}

@font-face {
	font-family: "Source Sans 3 Local";
	src: url("assets/fonts/source-sans-3-variable.ttf") format("truetype");
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
}

:root {
	--kelp: #102725;
	--pacific: #1f6870;
	--rain: #6f8d93;
	--fog: #f3f1ea;
	--sandbar: #d7c7a5;
	--cedar: #7b523d;
	--understory: #5f775f;
	--buoy: #d96c3f;
	--cloudbreak: #aebcc0;
	--white: #fffdf8;
	--ink-soft: #38504d;
	--line: rgba(16, 39, 37, 0.22);
	--display: "Newsreader Local", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--body: "Source Sans 3 Local", "Segoe UI", Arial, sans-serif;
	--max: 1320px;
	--reading: 720px;
	--header: 90px;
	--ease: 220ms ease;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--fog);
	color: var(--kelp);
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.58;
	text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover { color: var(--pacific); }

button,
input,
textarea,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
	outline: 3px solid var(--buoy);
	outline-offset: 4px;
}

::selection {
	background: var(--sandbar);
	color: var(--kelp);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.55em;
	font-family: var(--display);
	font-weight: 520;
	line-height: 0.99;
	letter-spacing: -0.035em;
}

h1 { font-size: clamp(3rem, 7.2vw, 7.3rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.8rem); }
h3 { font-size: clamp(1.45rem, 2.3vw, 2.25rem); }
p { margin: 0 0 1.25em; }

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

.screen-reader-text:focus,
.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 10000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1rem;
	background: var(--white);
	color: var(--kelp);
}

.section-shell {
	width: min(calc(100% - 64px), var(--max));
	margin-inline: auto;
}

.field-mark {
	margin: 0 0 1rem;
	font-size: 0.68rem;
	font-weight: 730;
	letter-spacing: 0.19em;
	line-height: 1.35;
	text-transform: uppercase;
}

.section-number {
	font-family: var(--display);
	font-size: 1.6rem;
	color: var(--rain);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.76rem;
	font-weight: 760;
	letter-spacing: 0.11em;
	text-decoration: none;
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
}

.text-link::after { content: "→"; font-size: 1rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button,
button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.8rem 1.15rem;
	border: 1px solid var(--kelp);
	border-radius: 2px;
	background: var(--kelp);
	color: var(--white);
	font-size: 0.74rem;
	font-weight: 760;
	letter-spacing: 0.11em;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background var(--ease), color var(--ease), transform var(--ease);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--pacific);
	color: var(--white);
	transform: translateY(-2px);
}

.button--ghost { background: transparent; color: var(--kelp); }
.button--light { border-color: var(--white); background: var(--white); color: var(--kelp); }

.site-header {
	position: relative;
	z-index: 100;
	height: var(--header);
	background: var(--kelp);
	color: var(--fog);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(calc(100% - 64px), var(--max));
	height: 100%;
	margin-inline: auto;
	gap: 2rem;
}

.site-brand {
	display: block;
	width: 218px;
	flex: 0 0 auto;
}

.site-brand img {
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: left center;
}

.primary-navigation .menu {
	display: flex;
	align-items: center;
	gap: clamp(0.85rem, 1.8vw, 1.8rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation a {
	position: relative;
	display: block;
	padding: 0.7rem 0;
	font-size: 0.68rem;
	font-weight: 680;
	letter-spacing: 0.095em;
	text-decoration: none;
	text-transform: uppercase;
}

.primary-navigation a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0.34rem;
	left: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--ease);
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { color: var(--white); }
.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after { transform: scaleX(1); }

.primary-navigation li:last-child > a {
	padding: 0.72rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.primary-navigation li:last-child > a::after { display: none; }
.menu-toggle { display: none; }

.home-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(350px, 1fr);
	min-height: calc(88vh - var(--header));
	background: var(--fog);
}

.home-hero__image,
.home-hero__panel { min-height: 680px; }

.home-hero__image { position: relative; overflow: hidden; background: var(--kelp); }

.home-hero__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(16, 39, 37, 0.46), transparent 46%);
	pointer-events: none;
}

.home-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

.home-hero__coordinates {
	position: absolute;
	z-index: 1;
	right: 2.2rem;
	bottom: 2rem;
	left: 2.2rem;
	display: flex;
	justify-content: space-between;
	color: var(--white);
	font-size: 0.66rem;
	font-weight: 720;
	letter-spacing: 0.14em;
}

.home-hero__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(3rem, 6vw, 7rem) clamp(2rem, 4vw, 5rem);
	border-left: 10px solid var(--fog);
}

.home-hero__panel h1 { max-width: 8ch; font-size: clamp(3.6rem, 5.8vw, 6.6rem); }
.home-hero__panel > p:not(.field-mark):not(.home-hero__place) { max-width: 31rem; color: var(--ink-soft); }
.home-hero__place { margin-bottom: 0.6rem; color: var(--pacific); font-weight: 680; }
.home-hero__panel .button-row { margin-top: 1rem; }

.tide-scale {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: min(240px, 100%);
	margin-top: 4rem;
}

.tide-scale span { flex: 1; height: 1px; background: var(--kelp); }
.tide-scale i { width: 5px; height: 5px; border: 1px solid var(--kelp); border-radius: 50%; }

.category-rail {
	display: flex;
	align-items: stretch;
	overflow-x: auto;
	background: var(--white);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.category-rail > * { display: flex; align-items: center; min-height: 74px; padding: 1rem 1.6rem; white-space: nowrap; }
.category-rail .field-mark { margin: 0; background: var(--sandbar); }
.category-rail a { flex: 1; justify-content: center; font-size: 0.8rem; font-weight: 690; text-decoration: none; border-left: 1px solid var(--line); }
.category-rail a:hover { background: var(--fog); color: var(--kelp); }

.editorial-intro {
	display: grid;
	grid-template-columns: 80px minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 5vw, 6rem);
	padding-block: clamp(6rem, 11vw, 11rem);
}

.editorial-intro__heading h2 { max-width: 9ch; }
.editorial-intro__content { padding-top: 2.2rem; border-top: 1px solid var(--line); }
.editorial-intro__content h2 { display: none; }

.paired-moment {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 10px;
	padding-bottom: clamp(6rem, 10vw, 10rem);
}

.paired-moment > div { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.paired-moment__image { margin-bottom: 2rem; overflow: hidden; }
.paired-moment__still .paired-moment__image { aspect-ratio: 7 / 5; }
.paired-moment__swell .paired-moment__image { aspect-ratio: 4 / 5; }
.paired-moment__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.paired-moment > div:hover .paired-moment__image img { transform: scale(1.018); }
.paired-moment h2 { max-width: 10ch; font-size: clamp(2.1rem, 4vw, 4.2rem); }
.paired-moment p:not(.field-mark) { max-width: 38rem; }
.paired-moment__swell { padding-top: 8rem; }

.storm-section { background: var(--kelp); color: var(--fog); }
.tours-field { padding-block: clamp(6rem, 10vw, 10rem); }

.section-heading--split {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	align-items: end;
	gap: 3rem;
	margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.section-heading--split h2 { margin-bottom: 0; }
.section-heading--split > p { max-width: 34rem; margin: 0 0 0.4rem auto; opacity: 0.78; }
.storm-section .text-link:hover { color: var(--sandbar); }

.provider-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.provider-grid > * { min-width: 0; }

.integration-card,
.experience-card,
.provider-widget {
	min-height: 360px;
	padding: clamp(1.5rem, 3vw, 2.7rem);
	background: #173633;
	color: var(--fog);
}

.integration-card h3,
.experience-card h3 { max-width: 11ch; }
.integration-card p,
.experience-card p { opacity: 0.78; }
.integration-card a,
.experience-card a { color: var(--white); }
.experience-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 430px; background-size: cover; background-position: center; }
.experience-card:nth-child(2) { background-image: linear-gradient(to top, rgba(16,39,37,.93), rgba(16,39,37,.08)), url("assets/images/tofino-surfer-dusk.webp"); }
.experience-card:nth-child(3) { background-image: linear-gradient(to top, rgba(16,39,37,.93), rgba(16,39,37,.08)), url("assets/images/tofino-harbour.webp"); }
.experience-card a { font-size: 0.72rem; font-weight: 730; letter-spacing: 0.11em; text-transform: uppercase; }

.planning-section { padding-block: clamp(6rem, 10vw, 10rem); }
.planning-section__header { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
.planning-section__header h2 { max-width: 12ch; margin: 0; }
.planning-notes { border-top: 1px solid var(--line); }
.planning-notes a { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 2rem; align-items: center; min-height: 110px; padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding var(--ease), background var(--ease); }
.planning-notes a:hover { padding-inline: 1rem; background: var(--white); color: var(--kelp); }
.planning-notes span { color: var(--rain); font-family: var(--display); font-size: 1.5rem; }
.planning-notes strong { font-family: var(--display); font-size: clamp(1.4rem, 2.3vw, 2.2rem); font-weight: 520; }
.planning-notes small { color: var(--ink-soft); }

.stays-section { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr); background: var(--sandbar); }
.stays-section__image { min-height: 720px; overflow: hidden; }
.stays-section__image img { width: 100%; height: 100%; object-fit: cover; }
.stays-section__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); }
.stays-section__content h2 { max-width: 9ch; }
.stays-section__content > p:not(.field-mark) { max-width: 34rem; }
.stays-section .integration-card { min-height: 0; margin-top: 2rem; background: var(--fog); color: var(--kelp); border-top: 1px solid var(--kelp); }
.stays-section .integration-card a { color: var(--kelp); }

.latest-guides { padding-block: clamp(6rem, 10vw, 10rem); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.story-card { min-width: 0; }
.story-card__image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cloudbreak); }
.story-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.story-card:hover .story-card__image img { transform: scale(1.025); }
.story-card__body { padding-top: 1.3rem; border-top: 1px solid var(--kelp); }
.story-card__meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; color: var(--rain); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.story-card__title { font-size: clamp(1.75rem, 2.7vw, 2.65rem); line-height: 1.04; }
.story-card__title a { text-decoration: none; }
.story-card__body > p { color: var(--ink-soft); font-size: 0.95rem; }

.storm-section .story-card__body { border-color: rgba(255,255,255,.35); }
.storm-section .story-card__body > p,
.storm-section .story-card__meta { color: var(--cloudbreak); }

.quiet-ending { position: relative; min-height: 680px; overflow: hidden; background: var(--kelp); color: var(--white); }
.quiet-ending__image { position: absolute; inset: 0; }
.quiet-ending__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,39,37,.9), rgba(16,39,37,.35) 55%, rgba(16,39,37,.18)); }
.quiet-ending__image img { width: 100%; height: 100%; object-fit: cover; }
.quiet-ending__copy { position: relative; z-index: 1; width: min(calc(100% - 64px), var(--max)); margin-inline: auto; padding-block: clamp(8rem, 13vw, 13rem); }
.quiet-ending__copy h2 { max-width: 8ch; font-size: clamp(3.6rem, 8vw, 8rem); }
.quiet-ending__copy p:not(.field-mark) { max-width: 34rem; }

.newsletter-section { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; padding-block: clamp(5rem, 8vw, 8rem); }
.newsletter-section h2 { max-width: 10ch; }
.inactive-form label { display: block; margin-bottom: 0.45rem; font-size: 0.78rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.inactive-form > div { display: flex; }
.inactive-form input,
.inactive-form textarea,
.search-form input {
	width: 100%;
	min-height: 52px;
	padding: 0.85rem 1rem;
	border: 1px solid var(--kelp);
	border-radius: 0;
	background: var(--white);
	color: var(--kelp);
}
.inactive-form button[disabled],
.inactive-form fieldset[disabled] button { opacity: 0.58; cursor: not-allowed; transform: none; }
.inactive-form p { margin-top: 0.75rem; color: var(--ink-soft); font-size: 0.82rem; }

.archive-hero,
.category-hero,
.page-hero { display: grid; grid-template-columns: 5fr 7fr; min-height: 620px; background: var(--white); }
.archive-hero__copy,
.category-hero__copy,
.page-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 7rem); }
.archive-hero__copy h1,
.category-hero__copy h1,
.page-hero__copy h1 { max-width: 8ch; }
.archive-hero__copy > p:not(.field-mark),
.category-hero__copy > p:not(.field-mark),
.page-hero__copy > p:not(.field-mark) { max-width: 32rem; color: var(--ink-soft); }
.archive-hero__image,
.category-hero__image,
.page-hero__image { overflow: hidden; }
.archive-hero__image img,
.category-hero__image img,
.page-hero__image img { width: 100%; height: 100%; object-fit: cover; }

.category-hero { grid-template-columns: 7fr 5fr; }
.category-hero__image { order: 0; }

.filter-rail { display: flex; gap: 0; overflow-x: auto; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.filter-rail a { flex: 0 0 auto; padding: .55rem 1rem; color: var(--ink-soft); font-size: .76rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; border-left: 1px solid var(--line); }
.filter-rail a:first-child { border-left: 0; padding-left: 0; }
.filter-rail a.is-active { color: var(--kelp); text-decoration: underline; text-decoration-color: var(--buoy); text-decoration-thickness: 2px; text-underline-offset: .45em; }

.archive-listing { padding-block: clamp(4rem, 8vw, 8rem); }
.story-grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 5rem; }
.story-grid--archive .story-card:nth-child(6n + 1) { grid-column: span 2; }
.story-grid--archive .story-card:nth-child(6n + 1) .story-card__image { aspect-ratio: 16 / 9; }
.category-support { max-width: var(--reading); margin: 7rem auto 0; padding-top: 3rem; border-top: 1px solid var(--line); }

.pagination { margin-top: 5rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pagination a,
.pagination span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: .4rem .7rem; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--kelp); color: var(--white); }

.empty-state { max-width: 720px; padding: clamp(3rem, 6vw, 6rem); background: var(--white); border-top: 2px solid var(--pacific); }
.simple-header,
.legal-header { padding-block: clamp(5rem, 9vw, 9rem); border-bottom: 1px solid var(--line); }
.simple-header h1,
.legal-header h1 { max-width: 12ch; }
.legal-header > p:not(.field-mark) { max-width: 42rem; }

.article-header { padding-block: clamp(4rem, 8vw, 8rem) 3rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 4rem; color: var(--ink-soft); font-size: .72rem; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumbs a { text-decoration: none; }
.article-header__grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 5rem; align-items: end; }
.article-header h1 { max-width: 11ch; font-size: clamp(3.3rem, 7vw, 7rem); }
.article-deck { max-width: 52rem; font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.3; color: var(--ink-soft); }
.article-meta { display: grid; gap: .65rem; padding-top: 1.2rem; border-top: 1px solid var(--kelp); color: var(--ink-soft); font-size: .73rem; letter-spacing: .06em; text-transform: uppercase; }
.article-opening-image { margin-bottom: 5rem; }
.article-opening-image img { width: 100%; max-height: 760px; object-fit: cover; }
.article-opening-image figcaption,
.prose figcaption { margin-top: .6rem; color: var(--rain); font-size: .76rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) minmax(280px, 350px); justify-content: center; gap: clamp(3rem, 7vw, 8rem); padding-bottom: clamp(6rem, 10vw, 10rem); }
.article-content { min-width: 0; }
.article-sidebar { display: grid; align-content: start; gap: 1.2rem; }
.article-sidebar .integration-card { min-height: 0; background: var(--white); color: var(--kelp); border-top: 1px solid var(--kelp); }
.article-sidebar .integration-card a { color: var(--kelp); }
.sidebar-note { padding: 1.8rem; background: var(--sandbar); }
.sidebar-note h2 { font-size: 2rem; }
.related-guides { padding-block: clamp(5rem, 9vw, 9rem); }

.prose { font-size: 1.08rem; }
.prose > * { max-width: 100%; }
.prose h2 { margin-top: 1.55em; font-size: clamp(2.1rem, 4vw, 3.6rem); }
.prose h3 { margin-top: 1.6em; }
.prose p,
.prose ul,
.prose ol { margin-bottom: 1.45em; }
.prose li + li { margin-top: .55em; }
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul { margin-top: .6em; margin-bottom: .6em; }
.prose a { color: var(--pacific); }
.prose blockquote,
.wp-block-quote { margin: 2.6rem 0; padding: 1.7rem 0 1.7rem 2rem; border-left: 3px solid var(--buoy); font-family: var(--display); font-size: 1.55rem; line-height: 1.25; }
.prose table { width: 100%; border-collapse: collapse; margin: 2.5rem 0; font-size: .94rem; }
.prose th,
.prose td { padding: .9rem; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.prose th { background: var(--kelp); color: var(--white); font-weight: 650; }
.wp-block-table { overflow-x: auto; }
.prose table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--white); line-height: 1.55; }
.prose th, .prose td { padding: 1.05rem 1.15rem; border: 0; border-bottom: 1px solid var(--line); }
.prose tbody tr:nth-child(even) { background: var(--fog); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: var(--sandbar); }
.prose .wp-block-table { margin-block: 2.5rem; }
.prose .wp-block-table table { margin: 0; }
.vtf-contact-form { display: grid; gap: .75rem; }
.vtf-contact-form input, .vtf-contact-form textarea, .vtf-newsletter input[type=email] { width: 100%; padding: .85rem; border: 1px solid var(--rain); border-radius: 2px; background: var(--white); color: var(--kelp); font: inherit; }
.vtf-contact-form button { justify-self: start; }
.vtf-contact-form label, .vtf-newsletter label { font-weight: 600; }
.vtf-contact-form .form-note, .vtf-newsletter .form-note { font-size: .85rem; line-height: 1.6; }
.vtf-contact-form .vtf-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.vtf-newsletter .sib_signup_form { padding: 0; }
.vtf-newsletter .sib_signup_form p { margin: 0 0 1rem; }
.vtf-newsletter input[type=submit] { background: var(--pacific); color: var(--white); padding: 1rem 1.5rem; border: 0; border-radius: 2px; font: 600 .95rem var(--body); cursor: pointer; }
.vtf-newsletter input[type=checkbox] { width: 18px; height: 18px; margin-right: .5rem; vertical-align: middle; }
.vtf-newsletter .sib_msg_disp { font-size: 1rem; }
.prose figure { margin: 2.8rem 0; }
.prose .alignwide { width: min(1000px, 90vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-block-button__link { border-radius: 2px; background: var(--kelp); }

.page-content { padding-block: clamp(5rem, 9vw, 9rem); }
.page-content > .prose { max-width: 820px; margin-inline: auto; }
.page-content--legal > .prose { max-width: 700px; }
.contact-panel { max-width: 820px; margin: 5rem auto 0; padding: clamp(2rem, 5vw, 4rem); background: var(--sandbar); }
.contact-panel fieldset { display: grid; gap: .55rem; margin: 0; padding: 0; border: 0; }
.contact-panel input,
.contact-panel textarea { margin-bottom: 1rem; }

.tours-hero { display: grid; grid-template-columns: 5fr 7fr; min-height: 760px; background: var(--kelp); color: var(--fog); }
.tours-hero__lead { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); }
.tours-hero__lead h1 { max-width: 6ch; }
.tours-hero__lead > p:not(.field-mark) { max-width: 31rem; color: var(--cloudbreak); }
.tours-mosaic { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 10px 10px 10px 0; }
.tours-mosaic > div { overflow: hidden; }
.tours-mosaic__wide { grid-row: 1 / -1; }
.tours-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.tours-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(4rem, 8vw, 9rem); padding-block: clamp(6rem, 10vw, 10rem); }
.tour-themes { border-top: 1px solid var(--line); }
.tour-themes > div { position: relative; padding: 2rem 0 2rem 70px; border-bottom: 1px solid var(--line); }
.tour-themes span { position: absolute; left: 0; top: 2.1rem; color: var(--rain); font-family: var(--display); font-size: 1.3rem; }
.tour-themes h2 { font-size: clamp(1.7rem, 2.8vw, 2.7rem); }
.tour-results { padding-block: clamp(6rem, 10vw, 10rem); }
.tours-provider-index { overflow: clip; padding-block: 0 clamp(6rem, 10vw, 10rem); background: var(--fog); }
.tours-provider-index > .section-shell { padding-top: 1px; }
.tours-provider-index .travelspark-tours-index { margin-top: 0; }
.provider-grid--results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skeleton-lines { display: grid; gap: .7rem; margin-top: 2rem; }
.skeleton-lines i { display: block; height: 8px; background: rgba(255,255,255,.16); animation: pulse 1.6s ease-in-out infinite alternate; }
.skeleton-lines i:nth-child(2) { width: 80%; }
.skeleton-lines i:nth-child(3) { width: 55%; }

/* TravelSpark, Viator and Nuitee output hooks: style source output, never hide it. */
.provider-widget [class*="tsva"],
.provider-widget [class*="travelspark"],
.provider-widget [class*="travel-spark"],
.provider-widget [class*="viator"],
.provider-widget [class*="nuitee"] { font-family: var(--body) !important; color: inherit; }
.provider-widget img { width: 100%; height: auto; object-fit: cover; }
.provider-widget a,
.provider-widget button { border-radius: 2px !important; }
.provider-widget [class*="price"],
.provider-widget [class*="rating"],
.provider-widget [class*="review"] { font-weight: 680; }

.error-page { position: relative; display: grid; place-items: center; min-height: calc(100vh - var(--header)); background: var(--kelp); color: var(--white); overflow: hidden; }
.error-page__image { position: absolute; inset: 0; opacity: .42; }
.error-page__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,39,37,.9), rgba(16,39,37,.3)); }
.error-page__image img { width: 100%; height: 100%; object-fit: cover; }
.error-page__copy { position: relative; z-index: 1; width: min(calc(100% - 64px), 860px); padding-block: 6rem; }
.error-page__copy h1 { max-width: 9ch; }
.error-page__copy > p:not(.field-mark) { max-width: 40rem; }
.error-page .button--ghost { border-color: var(--white); color: var(--white); }
.search-form { display: flex; max-width: 600px; margin: 2rem 0; }
.search-form label { flex: 1; }
.search-form .search-submit { flex: 0 0 auto; }

.site-footer { position: relative; padding-top: clamp(5rem, 9vw, 9rem); background: var(--kelp); color: var(--fog); }
.site-footer__tide { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cloudbreak) 15%, var(--cloudbreak) 84%, transparent); }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(3rem, 7vw, 8rem); width: min(calc(100% - 64px), var(--max)); margin-inline: auto; padding-bottom: 6rem; }
.site-footer__brand img { width: min(440px, 100%); height: auto; max-height: none; object-fit: contain; object-position: left; }
.site-footer__brand > p:not(.site-footer__slogan) { max-width: 30rem; color: var(--cloudbreak); font-size: .9rem; }
.site-footer__slogan { margin: 2rem 0 1rem; font-family: var(--display); font-size: 2rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: .75rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--sandbar); }
.site-footer__base { display: flex; justify-content: space-between; gap: 2rem; width: min(calc(100% - 64px), var(--max)); margin-inline: auto; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.18); color: var(--cloudbreak); font-size: .72rem; letter-spacing: .04em; }
.site-footer__base p { margin: 0; }

@keyframes pulse { from { opacity: .42; } to { opacity: 1; } }

@media (max-width: 1100px) {
	:root { --header: 82px; }
	.site-brand { width: 190px; }
	.primary-navigation .menu { gap: 1rem; }
	.primary-navigation a { font-size: .61rem; }
	.home-hero { grid-template-columns: minmax(0, 1.55fr) minmax(330px, .8fr); }
	.home-hero__panel h1 { font-size: clamp(3.5rem, 6.3vw, 5.8rem); }
	.story-grid { gap: 1.4rem; }
}

@media (max-width: 900px) {
	.section-shell,
	.site-header__inner,
	.quiet-ending__copy,
	.site-footer__inner,
	.site-footer__base,
	.error-page__copy { width: min(calc(100% - 40px), var(--max)); }
	.menu-toggle { display: flex; align-items: center; gap: .8rem; padding: .65rem; border: 0; background: transparent; color: var(--white); }
	.menu-toggle:hover { background: transparent; transform: none; }
	.menu-toggle__label { font-size: .7rem; }
	.menu-toggle__lines { display: grid; gap: 5px; width: 26px; }
	.menu-toggle__lines span { display: block; height: 1px; background: currentColor; transition: transform var(--ease); }
	.js .primary-navigation { position: fixed; top: var(--header); right: 0; bottom: 0; left: 0; visibility: hidden; opacity: 0; overflow-y: auto; background: var(--kelp); transition: opacity var(--ease), visibility var(--ease); }
	.js .primary-navigation.is-open { visibility: visible; opacity: 1; }
	.primary-navigation .menu { display: grid; align-content: start; gap: 0; width: min(calc(100% - 40px), 620px); margin: 3rem auto; }
	.primary-navigation li { border-bottom: 1px solid rgba(255,255,255,.2); }
	.primary-navigation a { padding: 1.1rem 0; font-family: var(--display); font-size: 1.8rem; font-weight: 450; text-transform: none; letter-spacing: -.02em; }
	.primary-navigation li:last-child > a { margin-top: 1.3rem; padding: 1rem; text-align: center; font-family: var(--body); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
	.home-hero { grid-template-columns: 1fr; }
	.home-hero__image { min-height: 62vh; }
	.home-hero__panel { min-height: auto; padding: 4.5rem 2rem; border-left: 0; border-top: 10px solid var(--fog); }
	.home-hero__panel h1 { max-width: 9ch; }
	.editorial-intro { grid-template-columns: 50px 1fr; }
	.editorial-intro__content { grid-column: 2; }
	.paired-moment { grid-template-columns: 1fr 1fr; }
	.paired-moment__swell { padding-top: 4rem; }
	.provider-grid { grid-template-columns: 1fr 1fr; }
	.provider-grid > :first-child:last-child { grid-column: 1 / -1; }
	.stays-section { grid-template-columns: 1fr; }
	.stays-section__image { min-height: 500px; }
	.story-grid { grid-template-columns: 1fr 1fr; }
	.story-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
	.archive-hero,
	.category-hero,
	.page-hero { grid-template-columns: 1fr; }
	.archive-hero__image,
	.category-hero__image,
	.page-hero__image { min-height: 440px; order: -1; }
	.story-grid--archive .story-card:nth-child(6n + 1) { grid-column: 1 / -1; }
	.article-header__grid { grid-template-columns: 1fr; gap: 2rem; }
	.article-meta { grid-template-columns: repeat(3, 1fr); }
	.article-layout { grid-template-columns: 1fr; }
	.article-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article-sidebar .sidebar-note { grid-column: 1 / -1; }
	.tours-hero { grid-template-columns: 1fr; }
	.tours-hero__lead { min-height: 500px; }
	.tours-mosaic { min-height: 560px; padding: 10px; }
	.tours-intro { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
	body { font-size: 17px; }
	.section-shell,
	.site-header__inner,
	.quiet-ending__copy,
	.site-footer__inner,
	.site-footer__base,
	.error-page__copy { width: min(calc(100% - 32px), var(--max)); }
	.site-brand { width: 164px; }
	.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
	.home-hero__image { min-height: 52vh; }
	.home-hero__coordinates { right: 1rem; bottom: 1rem; left: 1rem; }
	.home-hero__panel { padding: 3.5rem 1rem; }
	.home-hero__panel h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
	.category-rail > * { min-height: 62px; padding: .8rem 1rem; }
	.editorial-intro { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 5rem; }
	.editorial-intro__content { grid-column: auto; }
	.paired-moment { grid-template-columns: 1fr; gap: 4rem; }
	.paired-moment__swell { padding-top: 0; }
	.paired-moment__still .paired-moment__image,
	.paired-moment__swell .paired-moment__image { aspect-ratio: 4 / 5; }
	.section-heading--split,
	.planning-section__header,
	.newsletter-section { grid-template-columns: 1fr; gap: 2rem; }
	.provider-grid,
	.provider-grid--results { grid-template-columns: 1fr; }
	.provider-grid > :first-child:last-child { grid-column: auto; }
	.integration-card,
	.experience-card { min-height: 330px; }
	.planning-notes a { grid-template-columns: 46px 1fr; gap: 1rem; }
	.planning-notes small { grid-column: 2; }
	.stays-section__image { min-height: 420px; }
	.stays-section__content { padding: 4rem 1rem; }
	.story-grid,
	.story-grid--archive { grid-template-columns: 1fr; }
	.story-grid > :last-child:nth-child(odd),
	.story-grid--archive .story-card:nth-child(6n + 1) { grid-column: auto; }
	.story-grid--archive { row-gap: 4rem; }
	.quiet-ending { min-height: 700px; }
	.quiet-ending__image::after { background: rgba(16,39,37,.68); }
	.newsletter-section { padding-block: 5rem; }
	.inactive-form > div,
	.search-form { display: grid; }
	.archive-hero,
	.category-hero,
	.page-hero { min-height: 0; }
	.archive-hero__image,
	.category-hero__image,
	.page-hero__image { min-height: 360px; }
	.archive-hero__copy,
	.category-hero__copy,
	.page-hero__copy { padding: 4rem 1rem; }
	.article-header { padding-top: 3rem; }
	.breadcrumbs { margin-bottom: 2.5rem; }
	.article-meta { grid-template-columns: 1fr; }
	.article-opening-image { width: 100%; margin-bottom: 3rem; }
	.article-opening-image figcaption { padding-inline: 1rem; }
	.article-sidebar { grid-template-columns: 1fr; }
	.article-sidebar .sidebar-note { grid-column: auto; }
	.prose { font-size: 1rem; }
	.prose table { min-width: 620px; }
	.tours-hero__lead { min-height: auto; padding: 5rem 1rem; }
	.tours-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; min-height: 520px; }
	.tours-mosaic__wide { grid-column: 1 / -1; grid-row: auto; }
	.tour-themes > div { padding-left: 50px; }
	.error-page__copy { padding-block: 5rem; }
	.site-footer__inner { grid-template-columns: 1fr; padding-bottom: 4rem; }
	.site-footer__base { display: grid; }
}

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