/* ==========================================================================
   WATG theme: extra styles
   theme.json handles colors, fonts, sizes and widths. This file covers the
   rest: the see-through header, the post hero image, cards, footer.
   Breakpoints match the old Kadence site: 1024px (tablet) and 767px (phone).
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Site colors, defined once
   The real color values live in theme.json (e.g. theme-palette8 = #FFF8F3,
   the cream behind the intro, itinerary and "Michael's Thoughts" boxes).
   Kadence's old names (--global-palette1 to 9) are pointed at those, so
   changing a color in theme.json changes it everywhere, old content included.

   ":root:root" is deliberate: the Kadence Blocks plugin prints its own default
   palette (a cool #F7FAFC instead of the cream) and this beats it.
   -------------------------------------------------------------------------- */
:root:root {
	--global-palette1: var(--wp--preset--color--theme-palette-1);
	--global-palette2: var(--wp--preset--color--theme-palette-2);
	--global-palette3: var(--wp--preset--color--theme-palette-3);
	--global-palette4: var(--wp--preset--color--theme-palette-4);
	--global-palette5: var(--wp--preset--color--theme-palette-5);
	--global-palette6: var(--wp--preset--color--theme-palette-6);
	--global-palette7: var(--wp--preset--color--theme-palette-7);
	--global-palette8: var(--wp--preset--color--theme-palette-8);
	--global-palette9: var(--wp--preset--color--theme-palette-9);

	/* Our own shortcuts. */
	--watg-header-height: 121px;   /* Space reserved under the see-through header. */
	--watg-card-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.05);
}

.has-palette-4-color { color: var(--global-palette4) !important; }
.has-palette-9-color { color: var(--global-palette9) !important; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}


/* --------------------------------------------------------------------------
   2. See-through header
   The header floats over the top of the page (over the hero photo), with
   white links and icons, like the Kadence "transparent header".
   -------------------------------------------------------------------------- */
.wp-site-blocks {
	position: relative; /* The header is positioned inside this box (keeps it below the admin bar). */
}

/* WordPress puts a gap between the header and the page. Because our header
   floats over the photo, that gap showed as a white bar at the top. Remove it. */
.wp-site-blocks > .watg-site-header + * {
	margin-top: 0 !important;
}

.watg-site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	--watg-header-fg: var(--global-palette9); /* Header text/icon color: white over photos. */
}

/* Pages with a pale blue title band (search, 404): dark header text so it stays readable. */
body:has(.watg-band) .watg-site-header {
	--watg-header-fg: var(--global-palette3);
}

.watg-header-inner {
	padding: 10px 1.5rem;
	gap: 1rem;
}

.watg-header-right {
	gap: 0.75rem;
}

/* Logo sizes: desktop 200px, tablet 162px, phone 95px (same as Kadence). */
.watg-logo img {
	width: 200px;
	height: auto;
	border-radius: 0;
}

/* Menu: white over photos (dark on pale bands). The menu itself, including the
   Destinations panel, is styled by the watg-core plugin (blocks/site-menu/style.css). */
.watg-site-header .watg-primary-nav {
	color: var(--watg-header-fg);
}

/* Search: just a white magnifier icon until clicked. */
.watg-header-search .wp-block-search__button {
	background: transparent;
	color: var(--watg-header-fg);
	border: 0;
	padding: 0.25em;
	margin: 0;
}

.watg-header-search .wp-block-search__button:hover {
	color: var(--global-palette1);
}

.watg-header-search .wp-block-search__button svg {
	width: 1.45em;
	height: 1.45em;
	fill: currentColor;
}

.watg-header-search .wp-block-search__input {
	border-radius: 2em;
	border: 0;
	padding: 0.3em 0.9em;
	font-size: 16px;
}

/* Social icons: white icon in a filled blue circle. */
.watg-header-social {
	gap: 0.4em;
}

.watg-header-social .wp-social-link {
	font-size: 0.85em; /* Icon size. */
}

.watg-header-social .wp-social-link:hover {
	background-color: var(--global-palette7) !important;
	transform: none;
}

/* Tablet and phone (1024px and down, like Kadence): search left, logo centered,
   menu button right. "display: contents" lets the right-hand group's items line
   up with the logo, so "order" can rearrange them. */
@media (max-width: 1024px) {
	.watg-logo img { width: 162px; }

	.watg-header-right { display: contents !important; } /* !important: beats WordPress's own "display:flex" rule. */

	.watg-header-search { order: 1; }
	.watg-logo          { order: 2; margin: 0 auto; }
	.watg-primary-nav   { order: 3; }

	.watg-header-social { display: none !important; }
}

/* Phone: smaller logo. */
@media (max-width: 599px) {
	:root { --watg-header-height: 90px; }

	.watg-logo img { width: 95px; }
}

/* Sticky header (assets/js/header.js adds the classes).
   Once you scroll past the top, the header sticks to the window and slides
   away while you scroll down, then slides back in when you scroll up.
   Pale blue see-through background (palette 7 at 30%), blue links, smaller logo,
   matching the old Kadence sticky header. */
.watg-site-header.is-stuck {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px); /* Below the admin bar when logged in. */
	--watg-header-fg: var(--global-palette1);
	transform: translateY(-110%);
	transition: transform 0.3s ease;
}

.watg-site-header.is-stuck.is-visible,
body.watg-menu-is-open .watg-site-header.is-stuck {
	/* "none" (not a 0 move), so the phone menu can still cover the whole screen.
	   While the phone menu is open the header never slides away. */
	transform: none;
}

body.watg-menu-is-open .watg-site-header.is-stuck {
	transition: none;
}

/* The frosted background is on a layer behind the header's contents (not on the
   header itself), so the Destinations panel's own blur still works. */
.watg-site-header.is-stuck::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(189, 228, 255, 0.3);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.watg-site-header.is-stuck .watg-header-inner {
	padding-top: 6px;
	padding-bottom: 6px;
}

.watg-site-header.is-stuck .watg-logo img {
	width: 140px;
	transition: width 0.3s ease;
}

.watg-site-header.is-stuck .watg-header-search .wp-block-search__button:hover,
.watg-site-header.is-stuck a.watg-menu__link:hover,
.watg-site-header.is-stuck .has-mega:hover > .watg-menu__row > .watg-menu__link {
	color: var(--global-palette7);
}

@media (max-width: 1024px) {
	.watg-site-header.is-stuck .watg-logo img { width: 120px; }
}

@media (max-width: 599px) {
	.watg-site-header.is-stuck .watg-logo img { width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
	.watg-site-header.is-stuck { transition: none; }
}


/* --------------------------------------------------------------------------
   3. Post hero image (single posts)
   Full page width at the image's own shape: never cropped. A short, wide
   photo makes a short hero; a taller photo makes a taller one.
   The bottom fades to white and the title overlaps it, as on the old site.
   -------------------------------------------------------------------------- */
.watg-hero {
	position: relative;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.watg-hero img {
	display: block;
	width: 100%;
	height: auto !important;      /* Natural height: no cropping. */
	object-fit: initial !important;
	border-radius: 0 !important;
}

.watg-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(0deg, #fff 5%, rgba(255, 255, 255, 0.35) 30%, rgba(255, 255, 255, 0) 50%);
}

/* Title sits on top of the faded bottom edge of the photo.
   Overlap: 90px on desktop, less on small screens. */
.watg-entry-title {
	position: relative;
	z-index: 1;
	margin-top: clamp(-90px, -8vw, -20px) !important;
}

/* Posts without a featured image: push the title below the header. */
.watg-single:not(:has(.watg-hero)) {
	padding-top: var(--watg-header-height);
}

.watg-single:not(:has(.watg-hero)) .watg-entry-title {
	margin-top: 0 !important;
}


/* --------------------------------------------------------------------------
   4. Post and page content
   Posts: one centered 794px column. Pages: the whole window, each section
   setting its own width (see .watg-page-content). Both like the Kadence theme. Blocks inside keep their own margins (so the
   itinerary box stays narrow), and "full width" sections stretch to the
   edges of the window (like the intro paragraph).
   -------------------------------------------------------------------------- */
html {
	overflow-x: clip; /* Full-width sections use 100vw, which includes the scrollbar; hide that sliver. */
}

.watg-entry-content {
	--watg-content: 794px;
	box-sizing: content-box;
	max-width: var(--watg-content);
	margin: 2rem auto 0;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* Pages: like Kadence's "full width" page layout. The content area is the
   whole window; each section sets its own width (Kadence sections: 1200px
   inside, the same content width the Kadence theme used). */
.watg-page-content {
	--watg-content: 100%;
	--global-content-width: 1200px;
	--global-content-edge-padding: 1.5rem;
	--wp--style--global--content-size: 1200px; /* What Kadence sections read when the Kadence theme is off. */
	max-width: none;
	margin-top: 0;
	padding-left: 0;
	padding-right: 0;
}

/* "Full width" blocks: stretch from the column out to both window edges. */
.watg-entry-content > .alignfull {
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: none;
	width: auto;
}

/* "Wide" blocks: up to 1152px, but never past the window's side padding. */
.watg-entry-content > .alignwide {
	margin-left: max(calc((var(--watg-content) - 1152px) / 2), calc(50% - 50vw + 1.5rem)) !important;
	margin-right: max(calc((var(--watg-content) - 1152px) / 2), calc(50% - 50vw + 1.5rem)) !important;
	max-width: none;
	width: auto;
}


/* On pages, "wide" sections span the whole content area, as in Kadence's full-width pages. */
.watg-page-content > .alignwide {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Heading sizes step down on phones (under 768px), as in the Kadence theme:
   Title (H1) 65 -> 35px, Huge (H2) 40 -> 30px, Extra large (H3) 30 -> 20px. */
@media (width < 768px) {
	:root {
		--wp--preset--font-size--title: 35px;
		--wp--preset--font-size--xx-large: 30px;
		--wp--preset--font-size--x-large: 20px;
	}
}

/* --------------------------------------------------------------------------
   Page sections (the country pages, Home, About...): Groups, Covers and
   Columns built to look like the old Kadence sections.
   -------------------------------------------------------------------------- */

/* Spacing inside sections and between them (the Kadence theme's rhythm, the same
   as in posts): 2rem below each block, nothing below the last one; headings
   1.5em above (none when first) and 0.5em below; sections, rows and ticket
   grids add no space of their own (only what is set on them). */
:where(.watg-section.is-layout-flow) { display: flow-root; } /* Margins stay inside the section. */
:root :is(.watg-section, .watg-page-content, .watg-page-hero > .wp-block-cover__inner-container) > * { margin-block: 0 var(--wp--style--block-gap, 2rem); }
:root :is(.watg-section, .watg-page-content, .watg-page-hero > .wp-block-cover__inner-container) > :is(h1, h2, h3, h4, h5, h6) { margin-block: 1.5em 0.5em; }
:root :is(.watg-section, .watg-page-content, .watg-page-hero > .wp-block-cover__inner-container) > :first-child { margin-block-start: 0; }
:root :is(.watg-section, .watg-page-content, .watg-page-hero > .wp-block-cover__inner-container) > :is(.watg-section, .watg-page-hero, .watg-ticket-grid, .wp-block-columns, :last-child) { margin-block-end: 0; }

/* Rows of items inside a section (e.g. the icon + heading at the top of each
   info card): 0.5em apart, and a picture keeps its 2rem below, as in Kadence. */
:root .watg-section > .wp-block-group.is-layout-flex:not(.watg-section) { gap: 0.5em; }
:root .watg-section > .wp-block-group.is-layout-flex:not(.watg-section) > .wp-block-image:not(:last-child) { margin-bottom: 2rem; }
:root .watg-section > .wp-block-group:not(.watg-section) > .wp-block-image:last-child { margin-bottom: 0; }

/* Hero with a background photo: as tall as its content, normal text colour. */
.wp-block-cover.watg-page-hero { min-height: 0; }
.wp-block-cover.watg-page-hero.is-light > .wp-block-cover__inner-container { color: inherit; }
/* Heroes that fade to white: hide the photo's last 2px (already white under the
   fade) so no hairline of photo shows where the hero ends on a fraction of a pixel. */
.wp-block-cover.watg-page-hero:has(> .has-background-gradient)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	min-height: 0;
	z-index: 1;
	background: var(--wp--preset--color--theme-palette-9);
}
/* Heroes that fade to a different colour (China's dark hero, a cream one): the strip matches it. */
.wp-block-cover.watg-page-hero:has(> [style*="theme-palette-3) 0%"])::after { background: var(--wp--preset--color--theme-palette-3); }
.wp-block-cover.watg-page-hero:has(> [style*="theme-palette-8) 0%"])::after { background: var(--wp--preset--color--theme-palette-8); }

/* Sections "inside the content width": 1200px, 24px at the sides unless set. */
.watg-row { position: relative; }
.watg-row:is(.watg-wave-top, .watg-wave-bottom) { overflow-x: clip; }
.watg-row-inner { box-sizing: border-box; max-width: var(--global-content-width, 1200px); margin-inline: auto !important; }
:where(.watg-row-inner) { padding-inline: 1.5rem; }

/* Column widths include their padding (Kadence pads inside the column). */
.wp-block-columns.watg-cols > .wp-block-column { box-sizing: border-box; }
/* Equal columns are a grid, like Kadence's, so they stay equal when one has padding. */
.wp-block-columns.watg-cols:not(:has(> [style*="flex-basis"])) { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (width < 768px) {
	.wp-block-columns.watg-cols:not(:has(> [style*="flex-basis"])):not(.watg-cols--mob-row) { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
	.wp-block-columns.watg-cols:not(:has(> [style*="flex-basis"])).watg-cols--mob-two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (768px <= width < 1025px) {
	.wp-block-columns.watg-cols:not(:has(> [style*="flex-basis"])).watg-cols--tab-two-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wp-block-columns.watg-cols:not(:has(> [style*="flex-basis"])).watg-cols--tab-three-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (width < 1025px) {
	.wp-block-columns.watg-cols:not(:has(> [style*="flex-basis"])).watg-cols--tab-stack { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
}

/* Columns: side by side from 768px, stacked on phones (Kadence's breakpoint,
   not WordPress's 782px). "--tab-stack": stacked on tablets too.
   "--mob-row": stay side by side on phones. */
@media (width < 768px) {
	.wp-block-columns.is-not-stacked-on-mobile.watg-cols:not(.watg-cols--mob-row) { flex-wrap: wrap !important; }
	.wp-block-columns.is-not-stacked-on-mobile.watg-cols:not(.watg-cols--mob-row) > .wp-block-column { flex-basis: 100% !important; }
}
@media (width < 768px) {
	/* "--mob-two-grid": two per row on phones. */
	.wp-block-columns.is-not-stacked-on-mobile.watg-cols.watg-cols--mob-two-grid > .wp-block-column { flex-basis: calc(50% - var(--wp--style--block-gap, 2rem) / 2) !important; }
}
@media (768px <= width < 1025px) {
	/* "--tab-two-grid" / "--tab-three-grid": two or three per row on tablets. */
	.wp-block-columns.is-not-stacked-on-mobile.watg-cols:is(.watg-cols--tab-two-grid, .watg-cols--tab-three-grid) { flex-wrap: wrap !important; }
	.wp-block-columns.is-not-stacked-on-mobile.watg-cols.watg-cols--tab-two-grid > .wp-block-column { flex-basis: calc(50% - var(--wp--style--block-gap, 2rem) / 2) !important; flex-grow: 0 !important; }
	.wp-block-columns.is-not-stacked-on-mobile.watg-cols.watg-cols--tab-three-grid > .wp-block-column { flex-basis: calc((100% - 2 * var(--wp--style--block-gap, 2rem)) / 3) !important; flex-grow: 0 !important; }
}
@media (width < 1025px) {
	.wp-block-columns.is-not-stacked-on-mobile.watg-cols--tab-stack { flex-wrap: wrap !important; }
	.wp-block-columns.is-not-stacked-on-mobile.watg-cols--tab-stack > .wp-block-column { flex-basis: 100% !important; }
}

/* Waves at the top/bottom of a section (white, like the page behind).
   Height: --watg-wave-top / --watg-wave-bottom (set by watg-wave-top-3em etc.). */
.watg-wave-top::before,
.watg-wave-bottom::after {
	content: "";
	position: absolute;
	left: 0;
	width: calc(100% + 1.3px);
	z-index: 1;
	pointer-events: none;
	background: no-repeat 0 0 / 100% 100%;
}
.watg-wave-top::before {
	top: -1px;
	height: var(--watg-wave-top, 100px);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' transform='rotate(180 500 50)' d='M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z'/%3E%3C/svg%3E");
}
.watg-wave-bottom::after {
	bottom: -1px;
	height: var(--watg-wave-bottom, 100px);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z'/%3E%3C/svg%3E");
}

/* A box that is one big link (its heading or picture carries the link and
   stretches it over the whole box). */
.watg-link-card { position: relative; transition: all 0.5s ease; }
.watg-entry-content .watg-link-card a.watg-card-link { color: inherit; text-decoration: none; }
.watg-link-card a.watg-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Fade-in when scrolled into view (assets/js/animate.js adds "watg-anim" to
   <html> and "is-visible" to each section as it appears). */
@media (prefers-reduced-motion: no-preference) {
	.watg-anim :is(.watg-fade-up, .watg-fade-down) {
		opacity: 0;
		transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
	}
	.watg-anim .watg-fade-up { transform: translateY(100px); }
	.watg-anim .watg-fade-down { transform: translateY(-100px); }
	.watg-anim .watg-fade-slow { transition-duration: 1s; transition-delay: 0.35s; }
	.watg-anim :is(.watg-fade-up, .watg-fade-down).is-visible { opacity: 1; transform: none; }
}

/* Hooked Elements before/after the article: same column as the post. */
.watg-hooked--before-content,
.watg-hooked--after-content {
	box-sizing: content-box;
	max-width: 794px;
	margin: 2rem auto 0;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.watg-hooked--after-title {
	margin-top: 1rem;
}

.watg-hooked__item + .watg-hooked__item {
	margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Post boxes: Group block styles (Group > Styles), matching the old Kadence
   sections. Tablet = 1024px and narrower, phone = 767px and narrower.
   -------------------------------------------------------------------------- */

/* Intro banner: full-width cream band, faint map behind, big centered text. */
.is-style-watg-intro {
	position: relative;
	isolation: isolate;
	margin-top: 0;
	margin-bottom: 0;
	padding: 4rem 20vw; /* Side space = a fifth of the screen width. */
	background: var(--wp--preset--color--theme-palette-8, #fff8f3);
}

.is-style-watg-intro::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../images/map-background.webp") center / cover no-repeat;
	opacity: 0.3;
}

.is-style-watg-intro > * {
	max-width: none !important;
	margin-top: 0;
	margin-bottom: 0;
	color: var(--wp--preset--color--theme-palette-4, #2d3748);
	font-size: 1.6rem;
	line-height: 1.6;
	text-align: center;
}

@media (max-width: 1024px) {
	.is-style-watg-intro { padding-left: 10vw; padding-right: 10vw; }
	.watg-intro--shrink > * { font-size: 1.4rem; }
}

@media (max-width: 767px) {
	.is-style-watg-intro { padding-left: 5vw; padding-right: 5vw; }
	.watg-intro--shrink > * { font-size: 1rem; }
}

/* Contents box: narrow cream box with rounded corners. */
.is-style-watg-contents {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--content-size, 794px) - 20rem) !important;
	margin-top: 5rem;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 2rem;
	border-radius: 1em;
	background: var(--wp--preset--color--theme-palette-8, #fff8f3);
}

.is-style-watg-contents > * {
	max-width: none !important;
}

.is-style-watg-contents > :first-child { margin-top: 0; }
.is-style-watg-contents > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
	.is-style-watg-contents { max-width: none !important; }
}

/* Thoughts bubble: cream box whose bottom comes to a point, like a speech bubble. */
.is-style-watg-thoughts {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--content-size, 794px) - 10rem) !important;
	margin-top: 5rem;
	margin-bottom: 5rem;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 2rem 2rem 6.5rem;
	border-radius: 1em;
	background: var(--wp--preset--color--theme-palette-8, #fff8f3);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100px), 50% calc(100% - 2px), 0 calc(100% - 100px));
}

.is-style-watg-thoughts > * {
	max-width: none !important;
}

.is-style-watg-thoughts .wp-block-columns {
	gap: 2rem;
	margin: 0;
}

/* WordPress stacks columns below 782px, but the phone styles start at 767px,
   so between the two the photo filled the whole bubble. Keep the photo beside
   the text (one third / two thirds) until phone width. */
@media (width >= 768px) {
	.wp-block-group.is-style-watg-thoughts > .wp-block-columns {
		flex-wrap: nowrap !important;
	}

	.wp-block-group.is-style-watg-thoughts > .wp-block-columns > .wp-block-column {
		flex: 2 1 0 !important;
	}

	.wp-block-group.is-style-watg-thoughts > .wp-block-columns > .wp-block-column:first-child {
		flex: 1 1 0 !important;
	}
}

/* Phones: a narrower bubble than the text around it, with a small photo.
   ("width < 768px" leaves no gap with the rule above, even at zoomed sizes.) */
@media (width < 768px) {
	.is-style-watg-thoughts {
		max-width: none !important;
		margin-left: 2rem !important;
		margin-right: 2rem !important;
		padding: 1rem 1rem 8rem;
	}

	.is-style-watg-thoughts .wp-block-image {
		max-width: 160px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Tips box: sky-blue rounded box with white text. */
.is-style-watg-tips {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--content-size, 794px) - 8rem) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 2rem;
	border-radius: 1em;
	background: var(--wp--preset--color--theme-palette-1, #5fa6e0);
}

.is-style-watg-tips,
.is-style-watg-tips :where(h1, h2, h3, h4, h5, h6, p, li, a) {
	color: #fff;
}

.is-style-watg-tips > * { max-width: none !important; }
.is-style-watg-tips > :first-child { margin-top: 0; }
.is-style-watg-tips > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
	.is-style-watg-tips { max-width: none !important; padding: 1rem; }
}

/* Inset wrapper: narrower content (used around some photo pairs). */
.watg-inset {
	padding-left: 6.5rem;
	padding-right: 6.5rem;
}

.watg-inset > * {
	max-width: none !important;
}

@media (max-width: 1024px) {
	.watg-inset { padding-left: 10rem; padding-right: 10rem; }
}

@media (max-width: 767px) {
	.watg-inset { padding-left: 1rem; padding-right: 1rem; }
}

/* --------------------------------------------------------------------------
   Buttons: WordPress's own Buttons block. Colors, rounded ends, size and the
   green hover are in theme.json ("button"); this adds the smooth color change
   and the "Stretch to fill" style used on the country pages.
   -------------------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.wp-block-buttons {
	gap: 8px;
}

.wp-block-buttons.is-style-watg-fill > .wp-block-button {
	flex: 1 1 auto;
}

.wp-block-buttons.is-style-watg-fill .wp-block-button__link {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Accordion (the FAQ on country pages): WordPress's own Accordion block,
   styled to match the old Kadence one. Pale blue rounded bars with a circled
   arrow on the left; the open bar turns sky blue. One opens at a time
   ("Auto-close" in the block's settings).
   -------------------------------------------------------------------------- */
.wp-block-accordion-item + .wp-block-accordion-item {
	margin-top: 12px; /* Gap between bars. */
}

.wp-block-accordion-heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(1.75rem, 1.576rem + 0.543vw, 2rem);
	font-weight: 400;
	line-height: 1;
}

.wp-block-accordion-heading__toggle {
	gap: 10px;
	padding: 2rem 14px;
	border-radius: 1em; /* Bar corners. */
	background: var(--wp--preset--color--theme-palette-7, #bde4ff);
	color: var(--wp--preset--color--theme-palette-3, #191e21);
	--watg-acc-bg: var(--wp--preset--color--theme-palette-7, #bde4ff);
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.wp-block-accordion-heading__toggle:hover {
	--watg-acc-bg: #eeeeee;
	background: #eeeeee;
	color: #444444;
}

.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle {
	--watg-acc-bg: var(--wp--preset--color--theme-palette-1, #5fa6e0);
	background: var(--wp--preset--color--theme-palette-1, #5fa6e0);
	color: #ffffff;
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	text-decoration: none;
}

.wp-block-accordion-heading__toggle-title {
	text-align: center;
}

/* The circled arrow: a dark circle with a chevron drawn by two short bars. */
.wp-block-accordion-heading__toggle-icon,
.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
	position: relative;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: currentColor;
	font-size: 0; /* Hides the "+" WordPress puts here. */
	transform: none;
}

.wp-block-accordion-heading__toggle-icon::before,
.wp-block-accordion-heading__toggle-icon::after {
	content: "";
	position: absolute;
	top: 11px;
	width: 10px;
	height: 2px;
	background: var(--watg-acc-bg);
	transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.wp-block-accordion-heading__toggle-icon::before { left: 4px; transform: rotate(45deg); }
.wp-block-accordion-heading__toggle-icon::after { left: 10px; transform: rotate(-45deg); }

/* Open: the arrow points up. */
.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon::before { transform: rotate(-45deg); }
.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon::after { transform: rotate(45deg); }

.wp-block-accordion-panel {
	margin-top: 0;
	padding: 20px;
	background: var(--wp--preset--color--theme-palette-9, #fff);
}

/* Fold open/closed smoothly. Each item is a two-row grid (bar, answer); the
   answer's row grows from 0 to its full height while the item clips whatever
   hasn't been revealed yet, so the text stays still and is uncovered like a
   curtain. WordPress hides a closed answer outright, so it is kept in place but
   invisible (and skipped by screen readers and the keyboard) once it has
   finished folding away. */
.wp-block-accordion-item {
	display: grid;
	grid-template-rows: auto minmax(0, 0fr);
	align-content: start; /* The bar never stretches while the answer opens. */
	overflow: clip;
}

.wp-block-accordion-item.is-open {
	grid-template-rows: auto minmax(0, 1fr);
}

.wp-block-accordion-item > .wp-block-accordion-panel {
	min-height: 0;
}

.wp-block-accordion-item > .wp-block-accordion-panel[hidden] {
	display: block !important;
	content-visibility: visible !important; /* Keeps its height while folding shut. */
	visibility: hidden;
	padding: 20px !important;
}

/* The item clips its edges, so draw the keyboard focus ring inside the bar. */
.wp-block-accordion-heading__toggle:focus-visible {
	outline-offset: -4px;
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-accordion-item {
		transition: grid-template-rows 0.35s ease;
	}

	.wp-block-accordion-item > .wp-block-accordion-panel[hidden] {
		transition: visibility 0s linear 0.35s;
	}
}

.wp-block-accordion-panel > :first-child { margin-top: 0; }
.wp-block-accordion-panel > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Recent Writings (Home page): a Query Loop block with the class
   "watg-recent-posts" showing the newest posts as cards. The whole card is
   clickable (the title's link covers it) and the banner is never cropped.
   -------------------------------------------------------------------------- */
/* Its Kadence column lays items out side by side; always give the cards their
   own full-width line so the heading stays above them at every width. */
.watg-recent-posts {
	flex: 0 0 100%;
	width: 100%;
}
.watg-recent-posts .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.watg-recent-posts .wp-block-post {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border-radius: 16px; /* Card corners. */
	background: var(--wp--preset--color--theme-palette-9, #fff);
	box-shadow: inset 0 0 14px rgba(45, 55, 72, 0.19);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.watg-recent-posts .wp-block-post:hover,
.watg-recent-posts .wp-block-post:focus-within {
	transform: translateY(-4px);
	box-shadow: inset 0 0 14px rgba(45, 55, 72, 0.19), 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* The banner, uncropped. */
.watg-recent-posts .wp-block-post-featured-image {
	margin: 0;
}

.watg-recent-posts .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.watg-recent-posts .wp-block-post-title {
	margin: 1rem 1.25rem 0.5rem;
	font-size: 24px;
	line-height: 1.3;
	text-align: center;
}

.watg-recent-posts .wp-block-post-title a {
	color: var(--wp--preset--color--theme-palette-3, #191e21);
	text-decoration: none;
}

/* The title's link stretches over the whole card, so anywhere on it is clickable. */
.watg-recent-posts .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.watg-recent-posts .wp-block-post-excerpt {
	margin: 0 1.25rem 1.5rem;
	text-align: center;
}

.watg-recent-posts .wp-block-post-excerpt__excerpt {
	margin: 0;
}

@media (max-width: 781px) {
	.watg-recent-posts .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
		max-width: 420px;
		margin: 0 auto;
	}
}

/* Similar Posts (under each post; watg-core similar-posts.php): the same cards,
   in a sideways-scrolling row that snaps to each card. 3 visible on desktop,
   2 on tablet, 1 on phone. The script adds the arrows and dots. */
/* Pale blue band, the same colour as the footer, so it runs straight into it
   and marks where the article ends (as on the old site). */
.watg-similar {
	padding: 4.5rem 1.5rem 2.5rem;
	background: var(--wp--preset--color--theme-palette-7, #bde4ff);
}
.watg-similar > .wp-block-heading {
	margin-bottom: 1.5rem;
}
.watg-similar-posts {
	--watg-per-view: 3;
	--watg-gap: 30px;
	position: relative;
}
.watg-similar-posts .wp-block-post-template {
	display: flex;
	gap: var(--watg-gap);
	max-width: none;
	margin: 0 -10px;
	padding: 8px 10px 24px; /* Room for the card's hover lift and shadow. */
	scroll-padding-inline: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.watg-similar-posts .wp-block-post-template::-webkit-scrollbar {
	display: none;
}
.watg-similar-posts .wp-block-post {
	flex: 0 0 calc((100% - (var(--watg-per-view) - 1) * var(--watg-gap)) / var(--watg-per-view));
	scroll-snap-align: start;
}
.watg-carousel__arrow {
	position: absolute;
	top: calc(50% - 30px);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--wp--preset--color--theme-palette-1, #5fa6e0);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.watg-carousel__arrow:hover,
.watg-carousel__arrow:focus-visible {
	background: var(--wp--preset--color--theme-palette-1, #5fa6e0);
	color: #fff;
}
.watg-carousel__arrow--prev { left: -22px; }
.watg-carousel__arrow--next { right: -22px; }
.watg-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 4px;
}
.watg-carousel__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(45, 55, 72, 0.25);
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}
.watg-carousel__dots button[aria-current] {
	background: var(--wp--preset--color--theme-palette-1, #5fa6e0);
	transform: scale(1.25);
}
.watg-similar-posts.is-static .watg-carousel__arrow,
.watg-similar-posts.is-static .watg-carousel__dots {
	display: none;
}
@media (max-width: 1024px) {
	.watg-similar-posts { --watg-per-view: 2; }
}
@media (max-width: 767px) {
	.watg-similar-posts { --watg-per-view: 1; }
	.watg-carousel__arrow--prev { left: -12px; }
	.watg-carousel__arrow--next { right: -12px; }
}

@media (prefers-reduced-motion: reduce) {
	.watg-recent-posts .wp-block-post {
		transition: none;
	}

	.watg-recent-posts .wp-block-post:hover,
	.watg-recent-posts .wp-block-post:focus-within {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Author card (used in the "author box" Hooked Elements).
   A Group block with the class "watg-author-card", holding a photo
   (class "watg-author-card__photo") and a Group with the name heading
   (linked to the author page) and a short bio. The whole card is clickable
   and turns green on hover.
   -------------------------------------------------------------------------- */
.watg-author-card {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 16px;
	max-width: 400px;
	margin: 0 auto;
	border-radius: 1em;
	background-color: var(--wp--preset--color--theme-palette-1, #5fa6e0);
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
	color: var(--wp--preset--color--theme-palette-9, #fff);
	transition: background-color 0.3s ease;
}

.watg-author-card:hover,
.watg-author-card:focus-within {
	background-color: var(--wp--preset--color--theme-palette-2, #7fbc5e);
}

.watg-author-card > .watg-author-card__photo {
	flex: 0 0 30%;
	margin: 0;
}

.watg-author-card__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 1em;
}

.watg-author-card > .watg-author-card__text {
	flex: 1 1 auto;
	margin: 0;
	padding: 8px 12px 8px 0;
}

.watg-author-card .watg-author-card__name {
	margin: 0;
	color: inherit;
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	line-height: 1.3;
}

.watg-author-card .watg-author-card__name a {
	color: inherit;
	text-decoration: none;
}

/* The name's link covers the whole card, so the card itself is clickable. */
.watg-author-card .watg-author-card__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 1em;
}

.watg-author-card .watg-author-card__bio {
	margin: 0.25em 0 0;
	color: inherit;
	font-size: 13px;
	line-height: 1.5;
}

/* SPACING RULES (one rhythm for every post)
   - Between any two blocks: 2rem (32px), set as "blockGap" in theme.json.
   - Headings: 1.5em above, 0.5em below (60px / 20px for a normal H2),
     and whatever follows a heading (text, image, gallery) sits 0.5em below it. */
.watg-entry-content > :is(h2, h3, h4, h5, h6) {
	margin-top: 1.5em;
	margin-bottom: 0.5em; /* "em" = the heading's own size, so bigger headings get a bit more room. */
}

.watg-entry-content > :is(h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}

/* The block after a heading adds no gap of its own: only the heading's 0.5em counts. */
.watg-entry-content > :is(h2, h3, h4, h5, h6) + *,
.watg-entry-content > :is(h2, h3, h4, h5, h6) + .wp-block-spacer + * {
	margin-top: 0 !important;
}

/* Old "empty" spacers (saved with height 0 and big margins) only created
   uneven gaps, so they are switched off. Real spacers with a height stay. */
.watg-entry-content > .wp-block-spacer[style*="height:0px"] {
	display: none;
}

/* The dotted separator between sections: same gap as everything else. */
.watg-entry-content:not(.watg-page-content) > .wp-block-separator.is-style-dots {
	margin-bottom: 0;
}

/* Rounded photos (1em desktop, 0.7em phone), like the Kadence image setting. */
.wp-block-image img,
.wp-block-gallery .wp-block-image img {
	border-radius: 1em;
}

@media (max-width: 767px) {
	.wp-block-image img,
	.wp-block-gallery .wp-block-image img {
		border-radius: 0.7em;
	}
}

/* Galleries with exactly two photos: stacked on phones, side by side
   from tablet width (768px) up. */
@media (max-width: 767px) {
	.wp-block-gallery.has-nested-images:has(> figure.wp-block-image:nth-of-type(2):last-of-type) > figure.wp-block-image:not(#individual-image) {
		width: 100%;
	}
}

/* Content links are underlined (Kadence "standard" link style). */
.watg-entry-content a:where(:not(.wp-element-button)) {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* YouTube embeds centered. */
.wp-block-embed__wrapper {
	text-align: center;
}


/* --------------------------------------------------------------------------
   5. Colored title band (archive, search, 404)
   These pages have no hero photo, so the header sits on a pale blue band.
   -------------------------------------------------------------------------- */
.watg-band {
	padding-top: calc(var(--watg-header-height) + 1rem);
	padding-bottom: 3rem;
	margin-top: 0 !important;
	text-align: center;
}

.watg-band h1 {
	margin: 0;
}

/* On light-blue bands, header icons stay white like the old archive pages. */

/* Search page (templates/search.html; watg-core search.php). */
.watg-search-band .wp-block-query-title {
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	line-height: 1.2;
	overflow-wrap: anywhere; /* A long search wraps instead of running off the screen. */
}
.watg-search-count {
	margin: 0.5rem 0 0;
	font-size: 1.1rem;
	color: var(--wp--preset--color--theme-palette-4);
}
.watg-search-suggest {
	margin: 0.75rem 0 0;
	font-size: 1.25rem;
}
.watg-search-suggest a {
	font-weight: 700;
	color: var(--wp--preset--color--theme-palette-3);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.watg-search-band .watg-search-form {
	width: min(100%, 560px);
	margin: 1.5rem auto 0;
}
.watg-search-form .wp-block-search__input {
	padding: 0.7rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(45, 55, 72, 0.2);
}
.watg-search-form .wp-block-search__button {
	margin-left: 0.5rem;
	border-radius: 999px;
	padding-inline: 1.5rem;
}
.watg-search-body {
	padding: 3rem 1.5rem 4rem;
}
.watg-search-results .wp-block-post-title {
	font-size: 22px;
}
.watg-search-results .wp-block-query-pagination {
	margin-top: 3rem;
	gap: 0.5rem;
}
@media (min-width: 600px) and (max-width: 1024px) { /* Tablets: 2 across. */
	.watg-search-results .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin: 0; }
}
.watg-search-empty {
	padding: 1rem 0 2rem;
}
.watg-search-empty .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* The destination guide card above the results: photo beside the text, the whole
   card clickable. Button blue with white text. */
.watg-dest-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	margin: 0 0 3rem;
	overflow: hidden;
	border-radius: 16px;
	background: var(--wp--preset--color--theme-palette-1, #5fa6e0);
	color: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.watg-dest-card:hover,
.watg-dest-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}
.watg-dest-card__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 240px;
	object-fit: cover;
}
.watg-dest-card__body {
	align-self: center;
	padding: 2rem 2.5rem;
}
.watg-dest-card__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	line-height: 1.1;
}
.watg-dest-card__title a {
	color: #fff;
	text-decoration: none;
}
.watg-dest-card__title a::after { /* The link covers the whole card. */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.watg-dest-card__text {
	margin: 0 0 1.25rem;
}
.watg-dest-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.6rem 1.1rem 0.6rem 1.4rem;
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--theme-palette-3, #191e21);
	font-weight: 700;
}
.watg-dest-card__cta svg {
	transition: transform 0.2s ease;
}
.watg-dest-card:hover .watg-dest-card__cta svg {
	transform: translateX(3px);
}
@media (max-width: 781px) {
	.watg-dest-card { grid-template-columns: minmax(0, 1fr); }
	.watg-dest-card__img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
	.watg-dest-card__body { padding: 1.5rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.watg-dest-card { transition: none; }
	.watg-dest-card:hover, .watg-dest-card:focus-within { transform: none; }
}


/* --------------------------------------------------------------------------
   6. Post cards (archive, search, blog grids)
   -------------------------------------------------------------------------- */
.watg-card {
	background: var(--global-palette9);
	border-radius: 4px;
	box-shadow: var(--watg-card-shadow);
	overflow: hidden;
	height: 100%;
}

.watg-card .wp-block-post-featured-image {
	margin: 0;
}

.watg-card .wp-block-post-featured-image img {
	border-radius: 0;
	transition: transform 0.5s ease;
}

.watg-card .wp-block-post-featured-image a {
	display: block;
	overflow: hidden;
}

.watg-card .wp-block-post-featured-image a:hover img {
	transform: scale(1.05);
}

.watg-card-body {
	padding: 2rem;
}

.watg-card-body > * + * {
	margin-top: 0.75rem;
}

.watg-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.5;
	margin: 0.25rem 0 0;
}

.watg-card .wp-block-post-title a {
	color: var(--global-palette3);
	text-decoration: none;
}

.watg-card .wp-block-post-title a:hover {
	color: var(--global-palette1);
}

.watg-card .wp-block-post-terms a {
	color: var(--global-palette1);
	text-decoration: none;
}

.watg-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--global-palette4);
	text-decoration: none;
}

.watg-card .wp-block-post-excerpt__more-link:hover {
	color: var(--global-palette1);
}

/* Page numbers under the grid. */
.wp-block-query-pagination {
	margin-top: 3rem;
	gap: 0.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	text-decoration: none;
	padding: 0.2em 0.6em;
	border-radius: 4px;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--global-palette1);
	color: var(--global-palette9);
}


/* --------------------------------------------------------------------------
   7. Comments
   -------------------------------------------------------------------------- */
.watg-comments {
	margin-top: 4rem;
	margin-bottom: 4rem;
}

/* Spam guard's hidden field (watg-core comments.php): off-screen, never seen. */
.watg-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.watg-comments .wp-block-comment-template li {
	margin-bottom: 2rem;
}

.watg-comments input:not([type="submit"]):not([type="checkbox"]),
.watg-comments textarea {
	width: 100%;
	border: 1px solid var(--global-palette6);
	border-radius: 4px;
	padding: 0.5em 0.75em;
	font: inherit;
	font-size: 0.9em;
}


/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.watg-site-footer {
	margin-top: 0;
}

/* Like the Kadence footer: a 1152px-wide, two-column grid.
   Top row: menu (pushed to the middle) | social icons (from the middle).
   Bottom row: copyright | "Privacy and Copyright", centred in their halves.
   Tablets: the menu takes two thirds; the bottom row stacks.
   Phones: everything stacks, centred. */
.watg-footer-inner {
	padding-inline: var(--wp--style--root--padding-left, 1.5rem);
}
.watg-footer-top,
.watg-footer-bottom {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 30px;
	max-width: 1152px;
	margin-inline: auto;
}
:root .watg-footer-inner > *,
:root .watg-footer-top > *,
:root .watg-footer-bottom > * {
	margin-block: 0;
}
.watg-footer-top {
	align-items: center;
	padding: 8px 0 3.2px;
}
.watg-footer-bottom {
	padding: 3.2px 0;
}
:root .watg-footer-bottom > p {
	margin-block: 1em;
}
/* Privacy and Copyright link: same colour as the copyright line, sky blue on hover. */
:root .watg-footer-bottom a { color: inherit; text-decoration: none; }
:root .watg-footer-bottom a:hover, :root .watg-footer-bottom a:focus-visible { color: var(--global-palette1); }

/* Menu links: dark grey; the page you're on is darker; sky blue on hover. */
:root .watg-footer-nav .wp-block-navigation-item__content {
	padding: 0.3em 0.6em !important;
	color: var(--global-palette5);
	text-decoration: none;
}
:root .watg-footer-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--global-palette3);
}
:root .watg-footer-nav .wp-block-navigation-item__content:hover {
	color: var(--global-palette1);
}

/* Social icons: plain 21px logos in 42px buttons. */
:root .watg-footer-social {
	gap: 0.3em;
	font-size: 21px;
	justify-content: flex-start;
}
:root .watg-footer-social .wp-social-link {
	margin: 0;
	color: var(--global-palette4);
}
:root .watg-footer-social .wp-social-link a {
	padding: 0.5em;
}
.watg-footer-social .wp-social-link:hover {
	color: var(--global-palette1);
	transform: none;
}

@media (width < 1025px) {
	.watg-footer-top { grid-template-columns: 2fr 1fr; }
	.watg-footer-bottom { grid-template-columns: 1fr; }
}
@media (width < 768px) {
	.watg-footer-top { grid-template-columns: 1fr; row-gap: 30px; }
	.watg-footer-nav .wp-block-navigation__container { justify-content: center; }
	:root .watg-footer-social { justify-content: center; }
}

/* Keep the footer above the page content. */
.watg-site-footer {
	position: relative;
	z-index: 50;
}

/* --------------------------------------------------------------------------
   9. "Back to top" button (bottom right corner)
   Fades in once you scroll down (in browsers that support scroll-driven
   animations; elsewhere it is simply always visible). No JavaScript.
   -------------------------------------------------------------------------- */
.watg-scroll-up {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 90;
	width: 49px;
	height: 49px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid currentColor;
	border-radius: 50%;
	color: var(--global-palette1);
	background: var(--global-palette9);
	text-decoration: none;
}

.watg-scroll-up:hover,
.watg-scroll-up:focus {
	color: var(--global-palette3);
}

@supports (animation-timeline: scroll()) {
	.watg-scroll-up {
		animation: watg-fade-in linear both;
		animation-timeline: scroll(root);
		animation-range: 0 400px;
	}

	@keyframes watg-fade-in {
		from { opacity: 0; visibility: hidden; }
		to   { opacity: 1; visibility: visible; }
	}
}


/* --------------------------------------------------------------------------
   10. Accessibility: a clear focus ring for keyboard users.
   -------------------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--global-palette1);
	outline-offset: 2px;
}

/* Text for screen readers only (hidden on screen). */
.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

/* An extra H1 in a post's text is shown as an H2 that looks the same. */
.watg-h1-size { line-height: 1.32; }

/* Kept from the old Kadence "Additional CSS" (the only rules content still uses).
   "zoomy": grows a little on hover. "country-flag": centred on tablets/phones. */
.zoomy { transition: all .5s; }
.zoomy:hover { transform: scale(1.1); }
@media (width < 1025px) {
	.country-flag { margin: 0 auto 30px; float: unset; }
}
/* YouTube videos (watg-core youtube.php): a thumbnail with a play button, 640px
   wide like before; clicking swaps in the real player at the same size. */
.wp-block-embed.is-provider-youtube .wp-block-embed__wrapper { max-width: 640px; margin: 5px auto; }
.watg-yt { position: absolute; inset: 0; background: #000; }
.wp-block-embed.is-provider-youtube iframe { border: 0; }
.watg-yt__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
.watg-yt__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.watg-yt__title { position: absolute; inset: 0 0 auto; padding: 12px 16px 30px; color: #fff; font-size: 16px; text-align: left; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.watg-yt__play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(33,33,33,.8); transition: background .2s; }
.watg-yt__play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff; }
.watg-yt__btn:hover .watg-yt__play, .watg-yt__btn:focus-visible .watg-yt__play { background: #f00; }

/* BEGIN section utilities (written by the converter; one rule per line) */
.wp-block-columns.watg-cols.watg-cols--grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
:root .watg-colgap-1rem { column-gap: 1rem !important; }
:root .watg-drop-shadow img { filter: drop-shadow(4px 4px 10px rgba(0,0,0,0.3)); }
:root .watg-drop-shadow-1e9379 img { filter: drop-shadow(6px 6px 14px rgba(0,0,0,0.67)); }
:root .watg-fs-0_8em { font-size: 0.8em !important; }
:root .watg-fs-1_5rem { font-size: 1.5rem !important; }
:root .watg-fs-1rem { font-size: 1rem !important; }
:root .watg-fs-2rem { font-size: 2rem !important; }
:root .watg-hover-bg-theme-palette1:hover { background-color: var(--wp--preset--color--theme-palette-1) !important; background-image: none !important; }
:root .watg-hover-bg-theme-palette2:hover { background-color: var(--wp--preset--color--theme-palette-2) !important; background-image: none !important; }
:root .watg-hover-bg-theme-palette7:hover { background-color: var(--wp--preset--color--theme-palette-7) !important; background-image: none !important; }
:root .watg-text-shadow { text-shadow: 4px 4px 5px rgba(0,0,0,0.5); }
:root .watg-text-shadow-c7b29a { text-shadow: 4px 4px 8px rgba(0,0,0,0.33); }
:root .watg-wave-bottom-100px { --watg-wave-bottom: 100px; }
:root .watg-wave-bottom-3em { --watg-wave-bottom: 3em; }
:root .watg-wave-top-100px { --watg-wave-top: 100px; }
:root .watg-wave-top-2em { --watg-wave-top: 2em; }
:root .watg-wave-top-3em { --watg-wave-top: 3em; }
@media (width < 1025px) { :root .watg-t-basis-30pct { flex-basis: 30% !important; flex-grow: 0 !important; } }
@media (width < 1025px) { :root .watg-t-basis-70pct { flex-basis: 70% !important; flex-grow: 0 !important; } }
@media (width < 1025px) { :root .watg-t-fs-0_7em { font-size: 0.7em !important; } }
@media (width < 1025px) { :root .watg-t-fs-lg { font-size: var(--wp--preset--font-size--heading-lg) !important; } }
@media (width < 1025px) { :root .watg-t-fs-md { font-size: var(--wp--preset--font-size--heading-md) !important; } }
@media (width < 1025px) { :root .watg-t-fs-sm { font-size: var(--wp--preset--font-size--heading-sm) !important; } }
@media (width < 1025px) { :root .watg-t-fs-xxl { font-size: var(--wp--preset--font-size--heading-xxl) !important; } }
@media (width < 1025px) { :root .watg-t-items-left { align-items: flex-start !important; } }
@media (width < 1025px) { :root .watg-t-maxw-70pct { max-width: 70% !important; margin-left: auto !important; margin-right: auto !important; } }
@media (width < 1025px) { :root .watg-t-mt-sm { margin-top: 1.5rem !important; } }
@media (width < 1025px) { :root .watg-t-mx-0 { margin-left: 0 !important; margin-right: 0 !important; } }
@media (width < 1025px) { :root .watg-t-mx-lg { margin-left: 3rem !important; margin-right: 3rem !important; } }
@media (width < 1025px) { :root .watg-t-my-md { margin-top: 2rem !important; margin-bottom: 2rem !important; } }
@media (width < 1025px) { :root .watg-t-pb-5xl { padding-bottom: 10rem !important; } }
@media (width < 1025px) { :root .watg-t-pb-xs { padding-bottom: 1rem !important; } }
@media (width < 1025px) { :root .watg-t-pt-4xl { padding-top: 8rem !important; } }
@media (width < 1025px) { :root .watg-t-px-10pct { padding-left: 10% !important; padding-right: 10% !important; } }
@media (width < 1025px) { :root .watg-t-px-15pct { padding-left: 15% !important; padding-right: 15% !important; } }
@media (width < 1025px) { :root .watg-t-px-5pct { padding-left: 5% !important; padding-right: 5% !important; } }
@media (width < 1025px) { :root .watg-t-px-lg { padding-left: 3rem !important; padding-right: 3rem !important; } }
@media (width < 1025px) { :root .watg-t-px-md { padding-left: 2rem !important; padding-right: 2rem !important; } }
@media (width < 1025px) { :root .watg-t-py-3xl { padding-top: 6.5rem !important; padding-bottom: 6.5rem !important; } }
@media (width < 1025px) { :root .watg-t-self-middle { align-self: center !important; } }
@media (width < 1025px) { :root .watg-t-self-top { align-self: flex-start !important; } }
@media (width < 1025px) { :root .watg-t-text-center { text-align: center !important; } }
@media (width < 1025px) { :root .watg-t-wave-bottom-50px { --watg-wave-bottom: 50px !important; } }
@media (width < 1025px) { :root .watg-t-wave-bottom-70px { --watg-wave-bottom: 70px !important; } }
@media (width < 1025px) { :root .watg-t-wave-top-50px { --watg-wave-top: 50px !important; } }
@media (width < 1025px) { :root .watg-t-wave-top-70px { --watg-wave-top: 70px !important; } }
@media (width < 768px) { :root .watg-m-colgap-1rem { column-gap: 1rem !important; } }
@media (width < 768px) { :root .watg-m-fs-0_6em { font-size: 0.6em !important; } }
@media (width < 768px) { :root .watg-m-fs-0_7rem { font-size: 0.7rem !important; } }
@media (width < 768px) { :root .watg-m-fs-3xl { font-size: var(--wp--preset--font-size--heading-xxxl) !important; } }
@media (width < 768px) { :root .watg-m-fs-lg { font-size: var(--wp--preset--font-size--heading-lg) !important; } }
@media (width < 768px) { :root .watg-m-fs-md { font-size: var(--wp--preset--font-size--heading-md) !important; } }
@media (width < 768px) { :root .watg-m-fs-sm { font-size: var(--wp--preset--font-size--heading-sm) !important; } }
@media (width < 768px) { :root .watg-m-fs-xxl { font-size: var(--wp--preset--font-size--heading-xxl) !important; } }
@media (width < 768px) { :root .watg-m-imgw-150 img { width: 150px !important; } }
@media (width < 768px) { :root .watg-m-items-center { align-items: center !important; } }
@media (width < 768px) { :root .watg-m-maxw-70pct { max-width: 70% !important; margin-left: auto !important; margin-right: auto !important; } }
@media (width < 768px) { :root .watg-m-mt-xxs { margin-top: 0.5rem !important; } }
@media (width < 768px) { :root .watg-m-mx-0 { margin-left: 0 !important; margin-right: 0 !important; } }
@media (width < 768px) { :root .watg-m-my-md { margin-top: 2rem !important; margin-bottom: 2rem !important; } }
@media (width < 768px) { :root .watg-m-order-1 { order: 1 !important; } }
@media (width < 768px) { :root .watg-m-order-n1 { order: -1 !important; } }
@media (width < 768px) { :root .watg-m-pb-0 { padding-bottom: 0 !important; } }
@media (width < 768px) { :root .watg-m-pt-3xl { padding-top: 6.5rem !important; } }
@media (width < 768px) { :root .watg-m-px-0 { padding-left: 0 !important; padding-right: 0 !important; } }
@media (width < 768px) { :root .watg-m-px-10pct { padding-left: 10% !important; padding-right: 10% !important; } }
@media (width < 768px) { :root .watg-m-px-5pct { padding-left: 5% !important; padding-right: 5% !important; } }
@media (width < 768px) { :root .watg-m-px-xs { padding-left: 1rem !important; padding-right: 1rem !important; } }
@media (width < 768px) { :root .watg-m-px-xxs { padding-left: 0.5rem !important; padding-right: 0.5rem !important; } }
@media (width < 768px) { :root .watg-m-rowgap-1rem { row-gap: 1rem !important; } }
@media (width < 768px) { :root .watg-m-wave-bottom-40px { --watg-wave-bottom: 40px !important; } }
@media (width < 768px) { :root .watg-m-wave-top-40px { --watg-wave-top: 40px !important; } }
/* END section utilities */

/* The early flags (China, Malaysia, Vietnam) were set with no gap below, so the
   country name ran into them. Give them a clear gap like the other flags.
   (Kept outside the converter's section above, which it rewrites.) */
:root .watg-page-hero .watg-drop-shadow-1e9379 { margin-bottom: 2rem !important; }

/* --------------------------------------------------------------------------
   Home page (content from watg-core data/home.html)
   -------------------------------------------------------------------------- */
/* Video banner: the video at its own 16:9 shape on wide screens, at least
   70% of the screen tall on phones (cropped from the middle). */
.wp-block-cover.watg-home-hero {
	min-height: max(70vh, min(56.25vw, 100vh)); /* Never taller than the screen, so the headline is always in view. */
	margin: 0;
	padding: 7rem 1.5rem clamp(5.5rem, 13vh, 9rem); /* Room for the header at the top; the headline sits near the bottom, raised a little. */
}
/* Headline and button at the bottom of the video, whatever position the block is set to in the editor. */
.wp-block-cover.watg-home-hero.has-custom-content-position { align-items: flex-end; }
.watg-home-hero .wp-block-cover__inner-container { text-align: center; color: #fff; }
.watg-home-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-xxxl);
	font-weight: 400;
	line-height: 1.05;
	color: #fff;
	text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.45);
}
.watg-home-cta { justify-content: center; margin-top: 2.5rem; }
.watg-home-hero .watg-home-cta { margin-top: 1.75rem; }

/* Sections: one width, generous space between them. */
.watg-home-section {
	max-width: 1440px;
	margin: 0 auto;
	padding: 5rem 2.5rem;
}
.watg-home-band { position: relative; overflow-x: clip; padding: 3rem 0; } /* Its wavy edges are placed relative to it. */
/* The last band (Latest Vlog) runs straight into the footer, which is the same blue. */
.watg-home-band--last { padding-bottom: 0; }
.watg-page:has(.watg-home-band--last) { margin-bottom: 0; padding-bottom: 0; }
.watg-home-band--last .watg-home-section { padding-bottom: 3rem; }
.watg-home-title {
	margin: 0 0 2.5rem;
	text-align: center;
}
.watg-home-intro__cols { gap: 4rem; }
.watg-home-intro__photo { margin: 0; }
.watg-home-intro__photo img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); }
/* About us button and social icons: one centred row, the same gap between every item. */
.watg-home-intro__actions { justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.watg-home-intro__actions > * { margin: 0; }
.watg-home-social { gap: 0.75rem; margin: 0; }
@media (max-width: 781px) {
	.watg-home-section { padding: 3.5rem 1.25rem; }
	.watg-home-intro__cols { gap: 2rem; }
	.watg-home-intro h2 { text-align: center; }
	.watg-home-band { padding: 1.5rem 0 4rem; } /* Keeps the button clear of the wavy edge. */
}

/* --------------------------------------------------------------------------
   About page (content from watg-core data/about.html). Uses the Home page's
   section widths and bands (.watg-home-section, .watg-home-band).
   -------------------------------------------------------------------------- */
.watg-about__photo { margin: 0; }
.watg-about__photo img,
.watg-about-name__shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
/* Intro: portrait beside the text. */
.watg-about-intro__cols { gap: 4rem; }
.watg-about-intro__cols > .wp-block-column:first-child { flex: 0 0 34%; }
.watg-about-intro__photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.watg-about-intro__title { margin-top: 0; font-size: var(--wp--preset--font-size--heading-xl); }
/* Our Story: text beside a staggered collage of four photos. */
.watg-about-story__cols { gap: 4rem; }
.watg-about-story__title { margin-top: 0; font-size: var(--wp--preset--font-size--heading-xl); }
.watg-about-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.watg-about-collage__col { display: flex; flex-direction: column; gap: 16px; }
.watg-about-collage__col > * { margin: 0 !important; }
.watg-about-collage > .watg-about-collage__col--offset { margin-top: 3rem !important; }
.watg-about-collage img { aspect-ratio: 3 / 4; object-fit: cover; }
/* The Name: the screenshot and the story as two matching cards. */
.watg-about-name__title { margin: 0 0 2.5rem; text-align: center; font-size: var(--wp--preset--font-size--heading-xxl); }
.watg-about-name__cols { gap: 2.5rem; align-items: stretch !important; }
.watg-about-name__cols > .wp-block-column { display: flex; align-self: stretch !important; }
.watg-about-name__shot { display: flex; align-items: center; margin: 0; padding: 1.5rem; border-radius: 16px; background: #fff; box-shadow: inset 0 0 14px rgba(45, 55, 72, 0.19); }
.watg-about-name__shot img { box-shadow: none; border-radius: 8px; }
.watg-about-name__card {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 2.5rem;
	border-radius: 16px;
	background: var(--wp--preset--color--theme-palette-7, #bde4ff);
}
.watg-about-name__card p { margin: 0; font-size: var(--wp--preset--font-size--heading-md); line-height: 1.6; }
/* Yemisi and Michael: two matching cards with a round photo. */
.watg-about-people { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.watg-about-people > *, .watg-about-collage > * { margin-block: 0 !important; } /* Grid gaps only, not WordPress's extra space above the second item. */
.watg-about-person {
	padding: 2.5rem 2rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	text-align: center;
}
.watg-about-person__photo { margin: 0 auto 1.25rem; width: min(220px, 60%); }
.watg-about-person__photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--wp--preset--color--theme-palette-7, #bde4ff); }
.watg-about-person__name { margin: 0 0 1rem; }
.watg-about-person p { margin: 0; text-align: left; }
@media (max-width: 1024px) {
	.watg-about-people { gap: 1.5rem; }
	.watg-about-person { padding: 2rem 1.5rem; }
}
@media (max-width: 781px) {
	.watg-about-intro__cols, .watg-about-story__cols { gap: 2rem; }
	.watg-about-intro__cols > .wp-block-column:first-child { flex-basis: auto; }
	.watg-about-intro__title, .watg-about-story__title { text-align: center; }
	.watg-about-intro__photo { max-width: 360px; margin: 0 auto; }
	.watg-about-collage > .watg-about-collage__col--offset { margin-top: 2rem !important; }
	.watg-about-name__card { padding: 1.75rem; }
	.watg-about-people { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Destinations, Asia, Europe, North America (watg-core data/destinations.html etc.)
   Photo banner with a two-sentence intro, the country cards on cream right
   under it, then the longer text, then the blue "Latest guides" band that
   runs into the footer.
   -------------------------------------------------------------------------- */
.wp-block-cover.watg-region-hero { min-height: max(55vh, min(40vw, 80vh)); } /* A little shorter than Home's. */
.watg-region-hero__text {
	max-width: 640px;
	margin: 1rem auto 0;
	color: #fff;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	line-height: 1.5;
	text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}
.watg-region-jump { justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.wp-block-cover.watg-region-hero { margin-bottom: 0 !important; }
.watg-region-cards { margin-top: 0 !important; } /* Straight out of the banner. */
.watg-region-group__title { margin: 3.5rem 0 1.5rem; scroll-margin-top: 110px; } /* Room for the sticky header after a jump link. */
.watg-home-title + .watg-region-group__title { margin-top: 0; }
.watg-region-about { max-width: 920px; }
.watg-region-about__title { margin: 0 0 1.5rem; }
.watg-region-about p { margin: 0 0 1.1rem; }
@media (max-width: 781px) {
	.watg-region-hero__text { font-size: 1rem; }
	.watg-region-about__title { font-size: var(--wp--preset--font-size--heading-lg); }
	.watg-region-group__title { margin-top: 2.5rem; }
}

/* Privacy and Copyright page (data/privacy-and-copyright.html). */
.watg-legal { max-width: 820px; padding-top: 170px !important; } /* Clears the fixed header (this page has no banner). */
.watg-legal__title { margin: 0 0 .5rem; }
.watg-legal__updated { margin: 0 0 2rem; font-size: .9rem; opacity: .75; }
.watg-legal h2 { margin: 3rem 0 1rem; scroll-margin-top: 110px; }
.watg-legal h3 { margin: 2rem 0 .75rem; }
.watg-legal p, .watg-legal li { line-height: 1.65; }
.watg-legal li + li { margin-top: .6rem; }

/* Phones and tablets: keep content clear of the wavy edges.
   - Country pages: the intro section (carousel, text, Info/FAQ/Travel Blog buttons)
     has no bottom padding, so once the columns stack the buttons sat under the wave.
   - Home, About and region bands: their 100px waves are steep on a phone and cut
     into the headings; 60px keeps the same shape at phone size. */
@media (width < 1025px) {
	.watg-wave-bottom.watg-wave-bottom-3em:not(.watg-wave-top) { padding-bottom: calc(var(--watg-wave-bottom, 3em) + 1.25rem); }
}
@media (max-width: 781px) {
	:root .watg-wave-top.watg-wave-top-100px { --watg-wave-top: 60px; }
	:root .watg-wave-bottom.watg-wave-bottom-100px { --watg-wave-bottom: 60px; }
}
