/*
Theme Name: Into The World
Theme URI: https://intotheworld.eu
Description: Child theme of Twenty Twenty-Five for Into The World expedition safaris. Includes the journal, article and tour page designs as templates and patterns.
Author: Into The World
Author URI: https://intotheworld.eu
Template: twentytwentyfive
Version: 1.4.2
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: into-the-world
*/

/* ------------------------------------------------------------------
   Colours used below come from theme.json (Appearance > Editor > Styles
   > Colors). Change them there and the whole site follows.
   ------------------------------------------------------------------ */
:root {
	--itw-base: var(--wp--preset--color--base);
	--itw-surface: var(--wp--preset--color--surface);
	--itw-sand: var(--wp--preset--color--sand);
	--itw-line: var(--wp--preset--color--line);
	--itw-ink: var(--wp--preset--color--contrast);
	--itw-muted: var(--wp--preset--color--muted);
	--itw-accent: var(--wp--preset--color--accent);
	--itw-accent-soft: var(--wp--preset--color--accent-soft);
	--itw-sage: var(--wp--preset--color--sage);
	--itw-display: var(--wp--preset--font-family--display);
	--itw-sans: var(--wp--preset--font-family--sans);
	--itw-serif: var(--wp--preset--font-family--serif);
	--itw-radius: 6px;
	--itw-section: clamp(64px, 8vw, 104px);
}

/* ---------- Global ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
:focus-visible { outline: 2px solid var(--itw-accent); outline-offset: 3px; }
.itw-landing-content > * + *,
.itw-landing > * + * { margin-block-start: 0; }
.itw-inner { width: 100%; }

.itw-eyebrow,
.itw-eyebrow a {
	font-family: var(--itw-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--itw-accent);
	text-decoration: none;
	margin: 0;
}
.itw-eyebrow--muted { color: var(--itw-muted); }
.itw-eyebrow--light { color: #E3DACB; }
.itw-lead { font-size: 1.0625rem; line-height: 1.65; }
.itw-serif, .itw-serif-lead { font-family: var(--itw-serif); }
.itw-serif-lead { font-size: 1.25rem; line-height: 1.65; }
.itw-meta { font-size: 0.875rem; color: var(--itw-muted); margin: 0; }
.itw-accent { color: var(--itw-accent) !important; }
.itw-sage { color: var(--itw-sage) !important; }
.itw-more-link { margin: 0; }
.itw-more-link a { color: var(--itw-ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.itw-more-link a:hover { color: var(--itw-accent); }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-itw-dark .wp-block-button__link { background: var(--itw-ink); color: #fff; }
.wp-block-button.is-style-itw-dark .wp-block-button__link:hover { background: var(--itw-accent); }
.wp-block-button.is-style-itw-light .wp-block-button__link { background: #fff; color: var(--itw-ink); }
.wp-block-button.is-style-itw-light .wp-block-button__link:hover { background: var(--itw-accent-soft); color: var(--itw-ink); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 1.5px solid currentColor;
	padding: calc(0.95rem - 1.5px) calc(1.6rem - 1.5px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--itw-ink); color: #fff; border-color: var(--itw-ink); }
.itw-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--itw-ink); border-color: #fff; }
.itw-full-btn, .itw-full-btn .wp-block-button { width: 100%; }
.itw-full-btn .wp-block-button__link { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.itw-header, .itw-hero {
	padding-left: var(--wp--style--root--padding-left) !important;
	padding-right: var(--wp--style--root--padding-right) !important;
}
.itw-hero .wp-block-cover__inner-container { width: 100%; max-width: 1312px; margin-inline: auto; }
.itw-header {
	min-height: 84px;
	padding-top: 12px;
	padding-bottom: 12px;
	background: var(--itw-base);
	border-bottom: 1px solid var(--itw-line);
	gap: 24px;
}
.itw-brand { gap: 2px !important; }
.itw-logo, .itw-logo a { font-family: var(--itw-display); font-size: 1.625rem; font-weight: 600; color: var(--itw-ink); text-decoration: none; margin: 0; }
.itw-tagline { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--itw-muted); margin: 0; }
.itw-nav { gap: 36px; }
.itw-nav a { color: var(--itw-ink); text-decoration: none; }
.itw-nav a:hover, .itw-nav .current-menu-item > a { color: var(--itw-accent); }
.itw-header-actions { gap: 18px; }
.itw-header-cta .wp-block-button__link { padding: 0.8rem 1.4rem; font-size: 0.875rem; }
.itw-social .wp-social-link { color: var(--itw-ink); }

/* ---------- Hero (cover) ---------- */
.itw-hero { padding-bottom: clamp(48px, 7vw, 88px); }
.itw-hero :is(h1, h2, h3, p) { color: #fff; }
.itw-hero-inner { max-width: 860px; gap: 22px; }
.itw-hero .itw-eyebrow { color: #EDE3D2; }
.itw-hero-title { font-size: var(--wp--preset--font-size--huge); line-height: 0.98; letter-spacing: -0.02em; margin: 0; }
.itw-hero-title--xl { font-size: clamp(3rem, 8vw, 6.5rem); }
.itw-hero-lead { font-size: 1.25rem; line-height: 1.55; max-width: 640px; margin: 0; color: #F1ECE3 !important; }
.itw-hero .wp-block-buttons { margin-top: 8px; }
.itw-breadcrumb { font-size: 0.8125rem; font-weight: 600; margin: 0; }
.itw-hero-top { margin-bottom: 32px; gap: 16px; }
.itw-lang-switch .wp-block-button__link { padding: 0.5rem 1rem !important; font-size: 0.8125rem; }
.itw-facts--plain { border: 0; padding: 8px 0 0; max-width: 900px; }
.itw-expedition-hero { margin: 0; }
.itw-breadcrumb a { color: #F1ECE3; text-decoration: none; }

/* ---------- Sections and bands ---------- */
.itw-section { padding-top: var(--itw-section); padding-bottom: var(--itw-section); }
.itw-section--tight-top { padding-top: 0; }
.itw-band-sand { background: var(--itw-sand); }
.itw-band-sage { background: var(--itw-sage); color: #fff; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.itw-band-dark { background: var(--itw-ink); color: #fff; }
:is(.itw-band-sage, .itw-band-dark, .itw-tourcard) :is(h1, h2, h3, h4) { color: #fff; }
.itw-band-sage .itw-eyebrow, .itw-band-dark .itw-eyebrow { color: #E3DACB; }
.itw-band-sage .itw-eyebrow { color: #E3E0D5; }
.itw-band-sage .itw-lead { color: #E9E6DD; }
.itw-band-dark .itw-lead { color: #D6CEBF; }
.itw-band-sage .itw-more-link a { color: #fff; }
.itw-section-head { margin-bottom: 44px; gap: 24px; }
.itw-section-head h2 { margin: 0; }
.itw-section-title { gap: 12px; }
.itw-section-intro { gap: 12px; max-width: 820px; margin-bottom: 40px; }
.itw-page-intro { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.itw-page-intro .itw-inner > * + * { margin-block-start: 18px; }
.itw-page-title { font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; max-width: 1000px; }
.itw-page-intro .itw-serif-lead { max-width: 820px; color: #433E37; }

/* ---------- Credentials strip ---------- */
.itw-band-credentials { border-bottom: 1px solid var(--itw-line); padding-top: 28px; padding-bottom: 28px; }
.itw-credentials .wp-block-group { gap: 2px; }
.itw-stat { font-family: var(--itw-display); font-size: 1.625rem; margin: 0; }
.itw-stat-label { font-size: 0.875rem; color: var(--itw-muted); margin: 0; }

/* ---------- Cards ---------- */
.itw-card { background: var(--itw-surface); border: 1px solid var(--itw-line); border-radius: var(--itw-radius); overflow: hidden; }
.itw-card > * + * { margin-block-start: 0; }
.itw-card-body { padding: clamp(24px, 3vw, 36px); gap: 18px; }
.itw-card-body > * { margin: 0; }
.itw-card-body > .itw-facts, .itw-booking > *, .itw-rows > * { align-self: stretch; }
.itw-card-body--sm { padding: 24px 28px; gap: 10px; }
.itw-card-h { font-family: var(--itw-display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; margin: 0; }
.itw-card-h--lg { font-size: clamp(2rem, 4vw, 3.25rem); }
.itw-mini-card .itw-card-h, .itw-next-departure .itw-card-h, .itw-tourcard .itw-card-h { font-size: 1.625rem; line-height: 1.15; }
.itw-card-cover { border-radius: 0; padding: 20px; }
.itw-badge { display: inline-block; background: var(--itw-accent); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; margin: 0; }
.itw-badge--light { background: #fff; color: var(--itw-ink) !important; }
.itw-flush { margin: 0; }
.itw-flush img { display: block; width: 100%; }
.itw-fill { margin: 0; height: 100%; }
.itw-fill img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.itw-rounded img { border-radius: 4px; }


.itw-facts { padding: 18px 0; border-top: 1px solid var(--itw-line); border-bottom: 1px solid var(--itw-line); }
.itw-fact { gap: 4px; }
.itw-fact > * { margin: 0; }
.itw-fact-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--itw-muted); }
.itw-fact-value { font-size: 1rem; font-weight: 600; }
.itw-price-sm { font-family: var(--itw-display); font-size: 2rem; font-weight: 400; line-height: 1; }

/* Horizontal cards (safaris page) */
.itw-hcard-cols { gap: 0 !important; margin: 0; }
.itw-hcard-cols > .wp-block-column { margin: 0; }
.itw-hcard .itw-card-cover { height: 100%; }
.itw-hcard .itw-card-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.itw-card-foot { gap: 32px; padding-top: 8px; }
.itw-stack-lg { gap: 32px; }
.itw-mini-card .wp-block-columns { gap: 0; margin: 0; }
.itw-mini-card .itw-meta a { color: var(--itw-muted); }

/* ---------- Home: manifesto, hosts, stories, Instagram ---------- */
.itw-manifesto { max-width: 780px; margin-bottom: 56px; }
.itw-rule-top { border-top: 2px solid var(--itw-ink); padding-top: 24px; gap: 12px; }
.itw-rule-top > * { margin: 0; }
.itw-rule-h { font-family: var(--itw-sans); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }
.itw-rule-top p { color: #433E37; line-height: 1.65; }

.itw-hosts { gap: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.itw-hosts.alignfull { padding-left: 0 !important; padding-right: 0 !important; }
.itw-hosts > .wp-block-column { margin: 0; }
.itw-hosts-photo figure { margin: 0; height: 100%; }
.itw-hosts-photo img { width: 100%; height: 100%; min-height: 420px; max-height: 640px; object-fit: cover; display: block; }
.itw-hosts-text { padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 80px); }
.itw-hosts-text > * { margin: 0 0 20px; }

.itw-stories .wp-block-post-template, .itw-journal-grid .wp-block-post-template { gap: 48px 32px; }
.itw-card-img { margin-bottom: 16px; }
.itw-card-img img { border-radius: 4px; }
.itw-card-title { font-size: 1.625rem; line-height: 1.18; margin: 8px 0 10px; }
.itw-card-title a { color: var(--itw-ink); text-decoration: none; }
.itw-card-title a:hover { color: var(--itw-accent); }
.itw-card-excerpt { color: var(--itw-muted); font-size: 1rem; line-height: 1.6; }
.itw-card-excerpt p { margin: 0; }

.itw-insta figure { margin: 0; }
.itw-insta img { border-radius: 4px; width: 100%; }
.itw-substack-embed { width: 100%; max-width: 480px; border-radius: 8px; background: #fff; margin-top: 8px; }

/* ---------- Past journeys ---------- */
.itw-past { gap: 8px; }
.itw-past > * { margin: 0; }
.itw-past .itw-card-img { margin-bottom: 6px; }
.itw-past-title { font-family: var(--itw-display); font-size: 1.5rem; line-height: 1.15; }
.itw-past-title a { color: var(--itw-ink); text-decoration: none; }
.itw-cta-row { gap: 32px; }
.itw-cta-row h2 { margin: 0 0 8px; font-size: clamp(2rem, 3.5vw, 2.75rem); }

/* ---------- Tour page ---------- */
.itw-hero--tour { min-height: 660px; }
.itw-factsbar-wrap { position: relative; z-index: 2; margin-top: -56px !important; }
.itw-factsbar { background: var(--itw-surface); border: 1px solid var(--itw-line); border-radius: var(--itw-radius); padding: 28px 36px; }
.itw-factsbar .itw-fact-value { font-size: 1.125rem; }
.itw-tour-cols { gap: clamp(40px, 5vw, 80px); }
.itw-tour-main > * + * { margin-block-start: 88px; }
.itw-tour-main h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); margin: 0; }
.itw-block { gap: 22px; }
.itw-block > * { margin: 0; }
.itw-profile-box { background: var(--itw-sand); border-radius: var(--itw-radius); padding: clamp(24px, 3vw, 40px); gap: 48px; margin-left: 0; margin-right: 0; }
.itw-profile { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.itw-profile-top { display: flex; justify-content: space-between; font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }
.itw-profile-top span:last-child { color: var(--itw-muted); }
.itw-profile-bar { height: 6px; background: #D6CEBF; border-radius: 3px; overflow: hidden; }
.itw-profile-bar span { display: block; height: 100%; background: var(--itw-accent); }
.itw-list { padding-left: 1.2em; margin: 16px 0 0; }
.itw-list li { margin-bottom: 10px; line-height: 1.5; }

.itw-days { border-top: 1px solid #D6CEBF; }
.itw-day { border-bottom: 1px solid #D6CEBF; }
.itw-day > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	padding: 22px 40px 22px 0;
	position: relative;
	font-size: 1.25rem;
	font-weight: 600;
}
.itw-day > summary::-webkit-details-marker { display: none; }
.itw-day > summary::after { content: "+"; position: absolute; right: 4px; font-size: 1.625rem; font-weight: 400; color: var(--itw-ink); }
.itw-day[open] > summary::after { content: "\2212"; }
.itw-day-when { flex: 0 0 150px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--itw-accent); }
.itw-day > :not(summary) { margin: 0 0 14px 166px; }
.itw-day > p:not(.itw-meta) { font-family: var(--itw-serif); font-size: 1.125rem; line-height: 1.65; color: #34302B; }
.itw-day[open] { padding-bottom: 14px; }

.itw-gallery { gap: 10px; margin: 0; }
.itw-gallery figure { margin: 0 0 10px; }
.itw-quote-card { background: var(--itw-surface); border: 1px solid var(--itw-line); border-radius: var(--itw-radius); padding: 32px; gap: 16px; height: 100%; box-sizing: border-box; }
.itw-quote-card > * { margin: 0; }
.itw-quote-text { font-family: var(--itw-serif); font-size: 1.25rem; line-height: 1.55; }

.itw-sticky { position: sticky; top: 32px; align-self: flex-start; }
.admin-bar .itw-sticky { top: 64px; }
.itw-booking { padding: 32px; gap: 18px; }
.itw-booking > * { margin: 0; }
.itw-price-block { gap: 4px; }
.itw-price-block > * { margin: 0; }
.itw-price { font-family: var(--itw-display); font-size: 3rem; line-height: 1; }
.itw-note { background: var(--itw-accent-soft); color: #4F4433; padding: 12px 14px; border-radius: 4px; font-size: 0.875rem; font-weight: 600; }
.itw-rows { gap: 12px; border-top: 1px solid var(--itw-line); padding-top: 18px; }
.itw-row { justify-content: space-between; }
.itw-row > * { margin: 0; }
.itw-row-value { font-weight: 600; font-size: 0.9375rem; }
.itw-card-foot-note { border-top: 1px solid var(--itw-line); padding-top: 16px; }

.itw-form-col input, .itw-form-col select, .itw-form-col textarea {
	background: #3A3631 !important; color: #fff !important; border: 1px solid #665F55 !important; border-radius: 4px !important; min-height: 48px;
}
.itw-form-col label { color: #D6CEBF !important; font-weight: 700; font-size: 0.8125rem; }
.itw-form-col button[type="submit"] { background: var(--itw-accent) !important; border-radius: 999px !important; min-height: 52px; padding: 0 32px !important; font-weight: 700 !important; }

/* ---------- Tour card inside blog posts ---------- */
.itw-tourcard { background: var(--itw-ink); color: #fff; border-radius: var(--itw-radius); overflow: hidden; font-family: var(--itw-sans); margin-top: 2rem; margin-bottom: 2rem; }
.itw-tourcard .wp-block-columns { gap: 0; margin: 0; }
.itw-tourcard .itw-meta { color: #D6CEBF; }
.itw-tourcard .wp-block-buttons { margin-top: 8px; }

/* ---------- Trip report pattern ---------- */
.itw-standfirst { font-family: var(--itw-display); font-size: 1.5rem; line-height: 1.45; color: var(--itw-ink); }
.itw-trip-facts { font-family: var(--itw-sans); background: var(--itw-sand); border-radius: var(--itw-radius); padding: 24px 28px; }
.itw-trip-facts .itw-fact { gap: 4px; }
.itw-trip-facts .itw-fact > * { margin: 0; }
.itw-trip-facts .itw-fact-value { font-size: 0.9375rem; line-height: 1.4; }
.itw-trip-map img { border-radius: 4px; }
.itw-trip-gallery { gap: 8px !important; }
.itw-trip-gallery img { border-radius: 3px; }
.itw-prose blockquote.wp-block-quote cite { display: block; margin-top: 10px; font-family: var(--itw-sans); font-size: 0.875rem; font-style: normal; color: var(--itw-muted); }

/* ---------- Article ---------- */
.itw-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: transparent; z-index: 1000; pointer-events: none; }
.admin-bar .itw-progress { top: 32px; }
.itw-progress span { display: block; height: 100%; width: 100%; background: var(--itw-accent); transform-origin: 0 50%; transform: scaleX(0); }
.itw-article-head { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 40px; text-align: center; }
.itw-article-head > * + * { margin-block-start: 18px; }
.itw-article-title { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; }
.itw-article-meta { gap: 14px; color: var(--itw-muted); font-size: 0.875rem; }
.itw-article-meta > * { margin: 0; }
.itw-byline a { color: var(--itw-ink); font-weight: 700; text-decoration: none; }
.itw-article-lead img { border-radius: 4px; }
.itw-article-cols { gap: clamp(40px, 5vw, 72px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: 88px; }
.itw-prose { font-family: var(--itw-serif); font-size: 1.25rem; line-height: 1.75; color: #34302B; max-width: 720px; }
.itw-prose > * + * { margin-block-start: 1.4em; }
.itw-prose :is(h2, h3) { font-family: var(--itw-display); color: var(--itw-ink); line-height: 1.2; margin-top: 1.8em; }
.itw-prose h2 { font-size: 2.125rem; }
.itw-prose h3 { font-size: 1.625rem; }
.itw-prose img { border-radius: 4px; }
.itw-prose figcaption { font-family: var(--itw-sans); font-size: 0.875rem; color: var(--itw-muted); text-align: left; }
.itw-prose a { color: var(--itw-accent); text-underline-offset: 3px; }
.itw-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--itw-line); font-family: var(--itw-sans); }
.itw-tags a { font-size: 0.8125rem; font-weight: 700; color: var(--itw-ink); text-decoration: none; border: 1px solid #D6CEBF; padding: 8px 14px; border-radius: 999px; }
.itw-tags .wp-block-post-terms__separator { display: none; }
.itw-author-box { background: var(--itw-sand); border-radius: var(--itw-radius); padding: 28px; gap: 6px; margin-top: 28px; }
.itw-author-name { font-weight: 700; }
.itw-author-bio { color: #433E37; font-size: 0.9375rem; line-height: 1.55; }

.itw-article-side > * + * { margin-block-start: 28px; }
.itw-side-block { gap: 14px; }
.itw-mini-list .wp-block-post-template { margin: 0; padding: 0; }
.itw-mini-list .wp-block-post-template > li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; }
.itw-mini-img { margin: 0; }
.itw-mini-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.itw-mini-title { font-size: 1.0625rem; line-height: 1.25; margin: 0; }
.itw-mini-title a { color: var(--itw-ink); text-decoration: none; }
.itw-side-substack { background: var(--itw-sage); color: #fff; border-radius: var(--itw-radius); padding: 24px; gap: 10px; }
.itw-side-substack > * { margin: 0; }
.itw-side-substack p { color: #E9E6DD; font-size: 0.875rem; }
.itw-side-title { font-family: var(--itw-display); font-size: 1.375rem !important; color: #fff !important; }

.itw-prevnext { border-top: 1px solid var(--itw-ink); border-bottom: 1px solid var(--itw-line); gap: 0; }
.itw-prevnext > div { padding: 36px 0; }
.itw-prevnext .itw-prev { padding-right: 36px; border-right: 1px solid var(--itw-line); }
.itw-prevnext .itw-next { padding-left: 36px; text-align: right; }
.itw-prevnext a { display: flex; flex-direction: column; gap: 8px; color: var(--itw-ink); text-decoration: none; }
.itw-prevnext .itw-next a { align-items: flex-end; }
.itw-prevnext .post-navigation-link__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--itw-muted); }
.itw-prevnext .post-navigation-link__title { font-family: var(--itw-display); font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.15; }
.itw-prevnext a:hover .post-navigation-link__title { color: var(--itw-accent); }

.itw-related-wrap { padding-top: 88px; padding-bottom: 96px; }
.itw-related-wrap h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); margin-bottom: 40px; }
.itw-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.itw-related__card { display: flex; flex-direction: column; gap: 12px; color: var(--itw-ink); text-decoration: none; }
.itw-related__img { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--itw-sand); }
.itw-related__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itw-related__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--itw-accent); }
.itw-related__title { font-family: var(--itw-display); font-size: 1.625rem; line-height: 1.2; margin: 0; }
.itw-related__card:hover .itw-related__title { color: var(--itw-accent); }


/* ---------- Sticky tour bar ---------- */
.itw-tour-bar {
	position: fixed; left: 50%; bottom: 16px; z-index: 900;
	width: min(820px, calc(100% - 24px)); box-sizing: border-box;
	transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
	transition: transform .35s ease, opacity .35s ease, visibility .35s;
	background: var(--itw-surface); border: 1px solid #D6CEBF; border-radius: 999px;
	padding: 8px 8px 8px 24px; gap: 20px; margin: 0 !important;
	box-shadow: 0 8px 28px rgba(46, 43, 39, 0.16);
}
.itw-tour-bar.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.itw-tour-bar p { margin: 0; }
.itw-tour-bar .itw-bar-text { gap: 0; min-width: 0; }
.itw-bar-eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--itw-accent); }
.itw-bar-title { font-family: var(--itw-display); font-size: 1.0625rem; line-height: 1.2; }
.itw-bar-meta { font-size: 0.8125rem; color: var(--itw-muted); }
.itw-bar-social { display: flex; gap: 14px; margin-left: auto !important; font-size: 0.8125rem; font-weight: 700; }
.itw-bar-social a { color: var(--itw-ink); text-decoration: none; border-bottom: 1.5px solid var(--itw-line); }
.itw-bar-social a:hover { border-color: var(--itw-accent); color: var(--itw-accent); }
.itw-bar-cta .wp-block-button__link { padding: 0.8rem 1.3rem; font-size: 0.875rem; white-space: nowrap; }
.itw-bar-close {
	flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent;
	font-size: 22px; line-height: 1; color: var(--itw-muted); cursor: pointer;
}
.itw-bar-close:hover, .itw-bar-close:focus-visible { background: var(--itw-sand); color: var(--itw-ink); }
@media (max-width: 781px) {
	.itw-tour-bar { padding-left: 18px; gap: 10px; bottom: 10px; }
	.itw-bar-social, .itw-bar-eyebrow { display: none !important; }
	.itw-bar-title { font-size: 0.9375rem; }
	.itw-bar-meta { font-size: 0.75rem; }
	.itw-bar-cta .wp-block-button__link { padding: 0.7rem 1rem; font-size: 0.8125rem; }
	.itw-bar-close { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .itw-tour-bar { transition: none; } }
.itw-tour-bar .wp-block-buttons { margin: 0; }

/* ---------- More expeditions ---------- */
.itw-exp-section { padding-top: 40px; }
.itw-exp-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--itw-ink); border-bottom: 1px solid var(--itw-line); margin-bottom: 72px; }
.itw-exp-nav a { display: flex; flex-direction: column; gap: 6px; padding: 28px 0; color: var(--itw-ink); text-decoration: none; }
.itw-exp-nav__prev { padding-right: 28px !important; border-right: 1px solid var(--itw-line); }
.itw-exp-nav__next { padding-left: 28px !important; align-items: flex-end; text-align: right; }
.itw-exp-nav span { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--itw-muted); }
.itw-exp-nav strong { font-family: var(--itw-display); font-weight: 400; font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.15; }
.itw-exp-nav a:hover strong { color: var(--itw-accent); }
.itw-exp-more__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.itw-exp-more__head h2 { margin: 0; font-size: clamp(2rem, 3.2vw, 2.75rem); }
.itw-exp-more__arrows { display: flex; gap: 8px; }
.itw-exp-arrow { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--itw-ink); background: transparent; color: var(--itw-ink); font-size: 20px; cursor: pointer; }
.itw-exp-arrow:hover, .itw-exp-arrow:focus-visible { background: var(--itw-ink); color: #fff; }
.itw-exp-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%);
	gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px;
	scrollbar-width: thin; overscroll-behavior-x: contain;
}
.itw-exp-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; color: var(--itw-ink); text-decoration: none; }
.itw-exp-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--itw-sand); }
.itw-exp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.itw-exp-card:hover .itw-exp-card__img img { transform: scale(1.03); }
.itw-exp-card__title { font-family: var(--itw-display); font-size: 1.5rem; line-height: 1.15; }
.itw-exp-card:hover .itw-exp-card__title { color: var(--itw-accent); }
.itw-exp-card__sub { font-size: 0.9375rem; color: var(--itw-muted); line-height: 1.5; }
@media (max-width: 781px) {
	.itw-exp-track { grid-auto-columns: 78%; }
	.itw-exp-more__arrows { display: none; }
	.itw-exp-nav { grid-template-columns: 1fr; }
	.itw-exp-nav__prev { border-right: 0; border-bottom: 1px solid var(--itw-line); padding-right: 0 !important; }
	.itw-exp-nav__next { padding-left: 0 !important; align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .itw-exp-card__img img { transition: none; } }

/* ---------- Journal ---------- */
.itw-featured { margin-bottom: 24px; }
.itw-featured .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.itw-featured .wp-block-columns { gap: 56px; }
.itw-featured-title { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.05; margin: 14px 0 18px; }
.itw-featured-title a { color: var(--itw-ink); text-decoration: none; }
.itw-featured-excerpt { font-family: var(--itw-serif); font-size: 1.25rem; line-height: 1.6; color: #433E37; }
.itw-featured-excerpt .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 12px; font-family: var(--itw-sans); font-size: 0.9375rem; font-weight: 700; color: var(--itw-ink); }
.itw-journal { padding-bottom: var(--itw-section); }
.itw-filters { gap: 10px; border-top: 1px solid var(--itw-line); padding-top: 32px; margin-bottom: 40px; align-items: center; }
.itw-filters > * { margin: 0; }
.itw-pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.itw-pills li { margin: 0; }
.itw-pills a, .itw-pill-all a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; box-sizing: border-box;
	border: 1.5px solid var(--itw-ink); border-radius: 999px; font-size: 0.875rem; font-weight: 700; color: var(--itw-ink); text-decoration: none;
}
.itw-pills .current-cat a, .itw-pills a:hover, .itw-pill-all a:hover, .blog .itw-pill-all a { background: var(--itw-ink); color: #fff; }
.wp-block-query-pagination { margin-top: 56px; font-weight: 700; }

/* ---------- Footer ---------- */
.itw-footer { background: var(--itw-ink); color: #E9E1D3; padding-top: 72px; padding-bottom: 40px; }
.itw-footer a { color: #E9E1D3; text-decoration: none; }
.itw-footer a:hover { color: #fff; text-decoration: underline; }
.itw-footer-col { gap: 10px; }
.itw-footer-col > * { margin: 0; font-size: 0.9375rem; }
.itw-footer-logo, .itw-footer-logo a { font-family: var(--itw-display); font-size: 1.5rem !important; color: #fff !important; }
.itw-footer-blurb { color: #C9C1B4; font-size: 0.875rem !important; line-height: 1.6; }
.itw-footer-heading { font-size: 0.75rem !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #C9C1B4; }
.itw-footer-bottom { border-top: 1px solid #46423C; margin-top: 56px; padding-top: 24px; gap: 16px; font-size: 0.8125rem; color: #C9C1B4; }
.itw-footer-bottom > * { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.itw-nav { gap: 22px; }
	.itw-tagline { display: none; }
}
@media (max-width: 781px) {
	.itw-header .itw-social { display: none !important; }
	.itw-header { gap: 12px; }
	.itw-logo, .itw-logo a { font-size: 1.25rem; white-space: nowrap; }
	.itw-header-actions { gap: 8px; }
	.itw-header-cta .wp-block-button__link { white-space: nowrap; padding: 0.65rem 1rem; font-size: 0.8125rem; }
	.itw-hero-lead { font-size: 1.0625rem; }
	.itw-factsbar-wrap { margin-top: 24px !important; }
	.itw-factsbar { padding: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.itw-related { grid-template-columns: 1fr; }
	.itw-sticky { position: static; }
	.itw-day-when { flex-basis: auto; }
	.itw-day > summary { flex-wrap: wrap; gap: 4px 12px; font-size: 1.0625rem; }
	.itw-day > :not(summary) { margin-left: 0; }
	.itw-prose { font-size: 1.125rem; }
	.itw-prevnext { grid-template-columns: 1fr !important; }
	.itw-prevnext .itw-prev { border-right: 0; border-bottom: 1px solid var(--itw-line); padding-right: 0; }
	.itw-prevnext .itw-next { padding-left: 0; text-align: left; }
	.itw-prevnext .itw-next a { align-items: flex-start; }
	.itw-hosts-photo img { min-height: 320px; }
	.itw-hcard .itw-card-cover { min-height: 280px !important; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; }
}
