/* ==========================================================================
   SofiaCh' — main styles
   Mobile first, like Salt in our Hair: the rules without a media query are for phones
   (from 320px); wider screens add to them.
     600px  small tablets
     768px  tablets
     980px  desktop: menu in the header, side-by-side layouts
     1200px large desktop
   One content column for the page and the footer: centred, up to 1140px wide (like Salt in
   our Hair). The header is wider, up to 1360px.
   ========================================================================== */

:root {
	--text: #404040;
	--muted: #696969;
	--dark: #323232;
	--title-dark: #323232;
	--bg: #ffffff;
	--soft: #f2f2f2;
	--soft-75: rgba(242, 242, 242, 0.75);
	--pill-hover: #d0e687;
	--lime: #bada55;
	--link: #94b330;
	--highlight: #fccf7e;
	--orange: #faa200;

	--font-body: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
	--font-logo: "Mansalva", cursive;
	--font-script: "Mrs Saint Delafield", cursive;
	--tighten: -.02em; /* set to 0 when the real Proxima Nova is connected */

	--container: 1140px;
	--container-header: 1360px;
	--gutter: 16px;
	/* Left edge of the content column, measured from the window edge. */
	--edge: max(var(--gutter), (100vw - var(--container)) / 2);
	--radius-card: 10px;

	/* Type scale: headings #323232 Bold, text 17–18px #404040, small text 14px #696969. */
	--h1: 34px; --h2: 26px; --h3: 21px; --h4: 18px;
	--p: 17px; --p-lh: 1.7; --small: 14px;
	--lead: 19px; --lead-lh: 1.45;
}
@media (min-width: 980px) {
	:root {
		--gutter: 32px;
		--h1: 42px; --h2: 32px; --h3: 24px; --h4: 20px;
		--p: 18px; --lead: 22px;
	}
}

/* Base ------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }

p { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

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

.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--lime);
	border-radius: 99px;
	color: var(--dark);
}
.skip-link:focus { top: 16px; }

.container {
	width: min(var(--container), calc(100% - 2 * var(--gutter)));
	margin-inline: auto;
}

/* <picture> around photos with AVIF copies (inc/avif.php): no box of its own. */
picture.sofiach-picture { display: contents; }

/* Main photos: a tiny blurred copy (inline, see sofiach_lqip()) shows until the photo loads. */
img.has-lqip { background-size: cover; background-position: center; background-repeat: no-repeat; }
.home-hero__photo img.has-lqip { background-position: 50% 40%; }

.sofiach-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.img-placeholder {
	display: block;
	width: 100%; height: 100%;
	min-height: 40px;
	background: linear-gradient(135deg, #e6e6e6, #f6f6f6);
}

.js .reveal {
	opacity: 0;
	transform: translateX(-16px);
	transition: opacity .5s ease, transform .5s ease;
	transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Pills ------------------------------------------------------------------- */

.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: var(--soft-75);
	cursor: pointer;
	transition: background-color .2s ease;
}
.pill:hover,
.pill:focus-visible,
.pill[aria-expanded="true"] { background: var(--pill-hover); }

/* Header ------------------------------------------------------------------
   Phones and tablets: logo + burger; the menu opens as a white panel over the page.
   Desktop (980+): logo, menu pills, search, social icons and the language globe in one row. */

.site-header {
	position: relative;
	z-index: 50;
}
.has-overlay-header .site-header {
	position: absolute;
	top: 0; left: 0; right: 0;
}
.admin-bar.has-overlay-header .site-header { top: 46px; }

.site-header__inner {
	width: min(var(--container-header), calc(100% - 2 * var(--gutter)));
	position: relative;
	display: flex;
	align-items: center;
	height: 72px;
	padding-top: 1px;
}

.logo {
	font-family: var(--font-logo);
	font-size: 28px;
	line-height: 44px;
	letter-spacing: .1em;
	color: var(--dark);
	white-space: nowrap;
}
.site-header__logo {
	flex: 0 0 auto;
	margin: 0 16px 0 0;
	text-align: center;
}
.has-overlay-header .site-header__logo { font-size: 24px; line-height: 40px; }
.logo--image img { max-height: 44px; width: auto; }

body.nav-open { overflow: hidden; }

.site-nav {
	position: fixed;
	inset: 0;
	z-index: 65;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	padding: 88px 16px 32px;
	background: #fff;
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.admin-bar .site-nav { padding-top: 134px; }
.nav-open .site-nav {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity .25s ease, transform .25s ease;
}
/* The open menu is taller than the screen: it scrolls instead of squeezing its rows. */
.site-nav > * { flex-shrink: 0; }

.nav__list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.nav__link {
	width: 100%;
	height: 48px;
	padding: 0 22px;
	justify-content: flex-start;
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 18px;
	color: var(--text);
	white-space: nowrap;
}

.search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 200px;
	height: 37px;
	margin-left: 28px;
	border-radius: 999px;
	background: var(--soft-75);
	transition: width .25s ease, background-color .2s ease;
}
.site-nav .search-form { width: 100%; height: 48px; margin-left: 0; }
.search-form:focus-within { background: var(--soft); }
.search-form__icon {
	position: absolute;
	left: 14px;
	width: 16px; height: 16px;
	color: var(--text);
	pointer-events: none;
}
.search-form__input {
	width: 100%;
	height: 100%;
	padding: 0 14px 0 36px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: 700 14px/1 var(--font-body);
	color: var(--text);
	-webkit-appearance: none;
	appearance: none;
}
.search-form__input::placeholder { color: var(--text); opacity: 1; }
.search-form__input:focus { outline: none; }
.search-form__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.social {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0;
}
.social__link {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--soft-75);
	color: var(--text);
	transition: background-color .2s ease;
}
.social__link:hover { background: var(--pill-hover); }
.social__link .icon { width: 31px; height: 31px; }

.burger {
	position: relative;
	z-index: 70;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	margin-left: auto;
	border: 0;
	border-radius: 50%;
	background: var(--soft-75);
	cursor: pointer;
}
.burger .icon { width: 24px; height: 24px; color: var(--text); }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (min-width: 783px) {
	.admin-bar.has-overlay-header .site-header { top: 32px; }
}

@media (min-width: 980px) {
	.site-header__inner { height: 66px; }
	.site-header__logo { margin: 0 40px 0 0; text-align: left; }
	.has-overlay-header .site-header__logo { font-size: 28px; line-height: 44px; }

	.site-nav {
		position: static;
		z-index: auto;
		flex: 1 1 auto;
		flex-direction: row;
		align-items: center;
		gap: 0;
		min-width: 0;
		padding: 0;
		background: none;
		overflow: visible;
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: none;
	}
	.admin-bar .site-nav { padding-top: 0; }

	.nav__list { flex-direction: row; align-items: center; gap: 8px; }
	.nav__link { width: auto; height: 34px; padding: 0 12px; justify-content: center; font-size: 14px; }

	.site-nav .search-form { width: 175px; height: 37px; margin-left: auto; }

	.social { margin-left: 12px; }
	.social__link { width: 34px; height: 34px; }

	.burger { display: none; }
}

@media (min-width: 1200px) {
	.nav__list { gap: 14px; }
	.nav__link { padding: 0 17px; font-size: 15px; }
	.site-nav .search-form { width: 200px; }
}

/* Sticky header: hides while scrolling down, comes back on a dark bar when scrolling up */

.site-header.is-fixed {
	position: fixed;
	top: 0; left: 0; right: 0;
	background: var(--dark);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
	transform: translateY(-110%);
	transition: transform .3s ease;
}
.site-header.is-fixed.is-shown { transform: none; }
.site-header.is-fixed .site-header__inner { height: 54px; padding-top: 0; }
.site-header.is-fixed .logo { line-height: 1; }
.site-header.is-fixed .burger { width: 40px; height: 40px; background: rgba(255, 255, 255, .12); }
.site-header.is-fixed .burger .icon { color: #fff; }
body.has-fixed-header:not(.has-overlay-header) { padding-top: 55px; }
/* WordPress scrolls its admin bar away on phones. */
.admin-bar .site-header.is-fixed { top: 0; }

@media (min-width: 601px) {
	.admin-bar .site-header.is-fixed { top: 46px; }
}
@media (min-width: 783px) {
	.admin-bar .site-header.is-fixed { top: 32px; }
}
@media (min-width: 980px) {
	/* A slim dark bar with white text; a grey pill only on hover. */
	.site-header.is-fixed .site-header__inner { height: 50px; }
	body.has-fixed-header:not(.has-overlay-header) { padding-top: 51px; }
	.site-header.is-fixed .logo { color: #fff; }
	.site-header.is-fixed .logo--image img { filter: brightness(0) invert(1); }
	.site-header.is-fixed .nav__link { height: 34px; background: transparent; color: #fff; }
	.site-header.is-fixed .nav__link:hover,
	.site-header.is-fixed .nav__link:focus-visible,
	.site-header.is-fixed .nav__link[aria-expanded="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
	.site-header.is-fixed .search-form { height: 36px; background: rgba(255, 255, 255, .12); }
	.site-header.is-fixed .search-form:focus-within { background: rgba(255, 255, 255, .2); }
	.site-header.is-fixed .search-form__icon,
	.site-header.is-fixed .search-form__input,
	.site-header.is-fixed .search-form__input::placeholder { color: #fff; }
	.site-header.is-fixed .social__link,
	.site-header.is-fixed .lang-switch__toggle { background: rgba(255, 255, 255, .92); }
	.site-header.is-fixed .social__link:hover,
	.site-header.is-fixed .lang-switch__toggle:hover,
	.site-header.is-fixed .lang-switch__toggle[aria-expanded="true"] { background: var(--pill-hover); }
}

/* Language switcher (Polylang): globe button + a small EN / RU list ------- */

.lang-switch { position: relative; }
.lang-switch__toggle {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--soft-75);
	color: var(--text);
	cursor: pointer;
	transition: background-color .2s ease;
}
.lang-switch__toggle:hover,
.lang-switch__toggle[aria-expanded="true"] { background: var(--pill-hover); }
.lang-switch__toggle .icon { width: 32px; height: 32px; }
.lang-switch__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 50%;
	transform: translateX(50%); /* centred under the globe */
	z-index: 60;
	min-width: 0;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.lang-switch__list[hidden] { display: none; }
.lang-switch__list li + li { border-top: 1px solid var(--soft); }
.lang-switch__link {
	display: block;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	text-align: center;
	color: var(--dark);
	text-decoration: none;
	transition: color .2s ease;
}
.lang-switch__link:hover,
.lang-switch__link.is-current { color: var(--orange); }

@media (min-width: 980px) {
	.lang-switch__toggle { width: 34px; height: 34px; }
	.lang-switch__toggle .icon { width: 26px; height: 26px; }
}

/* Destinations panel --------------------------------------------------------
   Phones and tablets: inside the menu, the "Destinations" button and the panel form one
   window; every region opens with its own "+".
   Desktop: a compact panel under the menu, two columns of regions, the page dimmed behind. */

.nav__item--mega { position: static; }
.nav__item--mega .nav__link[aria-expanded="true"] {
	justify-content: center;
	border-radius: 12px 12px 0 0;
	background: var(--pill-hover);
	color: var(--dark);
	letter-spacing: .08em;
}

.mega {
	position: static;
	z-index: 60;
	background: #fff;
	border: 1px solid var(--soft);
	border-top: 0;
	border-radius: 0 0 12px 12px;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease;
}
.mega.is-open { opacity: 1; transform: none; }
.mega[hidden] { display: none; }

.mega__cols { padding: 4px 14px 12px; }
.mega__region { padding-top: 6px; }
.mega__empty { display: none; }

.mega__head {
	display: flex;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid var(--lime);
}
.mega__title {
	flex: 1;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--dark);
}
.mega__go { display: none; }
.mega__go .icon { width: 20px; height: 20px; transition: transform .2s ease; }
.mega__go:hover .icon { transform: translateX(2px); }

/* "+": a lime circle with a white plus with rounded ends; a minus when the region is open. */
.mega__expand {
	position: relative;
	display: block;
	width: 36px; height: 36px;
	margin-left: 6px;
	border: 0;
	border-radius: 50%;
	background: radial-gradient(circle, var(--lime) 11px, transparent 11.5px);
	cursor: pointer;
}
.mega__expand::before,
.mega__expand::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 11px; height: 2px;
	border-radius: 2px;
	background: #fff;
	transform: translate(-50%, -50%);
	transition: transform .2s ease;
}
.mega__expand::after { transform: translate(-50%, -50%) rotate(90deg); }
.mega__expand[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0deg); }

.mega__countries {
	display: none;
	grid-template-columns: repeat(2, minmax(0, 1fr)); /* equal columns: long names get "…" instead of widening */
	gap: 11px 9px;
	padding: 12px 0 6px;
}
.mega__region.is-open .mega__countries { display: grid; }
.mega__countries li { min-width: 0; }
.mega__country {
	width: 100%;
	height: 36px;
	padding: 0 14px;
	background: var(--soft);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--dark);
}
.mega__country span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mega__all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 48px;
	border-radius: 0 0 12px 12px;
	background: var(--pill-hover);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--dark);
}
.mega__all .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.mega__all:hover { background: var(--lime); color: var(--text); }
/* The arrow slides to the right on hover, like the region arrows. */
.mega__all:hover .icon,
.mega__all:focus-visible .icon { transform: translateX(4px); }

@media (min-width: 980px) {
	.nav__item--mega .nav__link[aria-expanded="true"] { border-radius: 999px; color: var(--text); letter-spacing: .05em; }

	.mega {
		position: absolute;
		top: 65px;
		left: 0;
		width: min(820px, 100%);
		overflow: hidden;
		border: 0;
		border-radius: 12px;
		box-shadow: 0 4px 18px rgba(0, 0, 0, .16);
	}
	/* Invisible bridge over the gap between the button and the panel, so hover is not lost. */
	.mega::before {
		content: "";
		position: absolute;
		left: 0; right: 0;
		top: -15px;
		height: 15px;
	}

	/* Regions in aligned rows: Asia | Europe, Africa | North America… */
	.mega__cols {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 22px 32px;
		padding: 8px 17px 18px;
	}
	.mega__region { padding-top: 9px; }
	.mega__empty { display: block; }
	.mega__head { margin-bottom: 12px; padding: 0 0 6px; }
	.mega__go { display: grid; }
	.mega__expand { display: none; }
	.mega__countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }

	/* The page behind the open panel is dimmed. */
	body::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 40; /* under the header (50) and its panel */
		background: rgba(20, 20, 20, .6);
		opacity: 0;
		pointer-events: none;
		transition: opacity .18s ease;
	}
	body.mega-open::after { opacity: 1; }
}

/* Destinations popup (home page, "next destination" button): the same panel in a window. */

.dest-popup {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	opacity: 0;
	transition: opacity .2s ease;
}
.dest-popup[hidden] { display: none; }
.dest-popup.is-open { opacity: 1; }
.dest-popup-open { overflow: hidden; }
.dest-popup__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .6); }
.dest-popup__box {
	position: relative;
	width: min(820px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	transform: translateY(8px);
	transition: transform .2s ease;
}
.dest-popup.is-open .dest-popup__box { transform: none; }
.dest-popup__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	background: var(--pill-hover);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--dark);
}
.dest-popup__close {
	position: absolute;
	top: 50%; right: 8px;
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	margin-top: -18px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--dark);
	cursor: pointer;
}
.dest-popup__close:hover { background: rgba(255, 255, 255, .5); }
.dest-popup__close .icon { width: 22px; height: 22px; }
/* The panel inside the popup is always shown and sits in the window, not under the header. */
.dest-popup .mega,
.dest-popup .mega[hidden] {
	position: static;
	display: block;
	width: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	transform: none;
}
.dest-popup .mega::before { display: none; }
.dest-popup .mega__all { border-radius: 0; }

/* Home: hero ----------------------------------------------------------------
   Phones and tablets: the photo on top, the text under it.
   Desktop: the photo on the left, the text on its right.
   Spacing between the home blocks: "Space above" / "Space below" in the block sidebar set
   --space-top / --space-bottom (8px scale); without them each block keeps its default below.
   The spacing inside a block is fixed. */

.home-hero {
	position: relative;
	margin-top: var(--space-top, 0px);
	margin-bottom: var(--space-bottom, 0px);
	padding-bottom: 20px;
	overflow: hidden;
}

.home-hero__photo {
	position: relative;
	top: 0;
	left: -9%;
	width: 118%;
	height: 124vw;
	max-height: 700px;
	clip-path: url(#sofiach-clip-home);
}
.home-hero__photo img,
.home-hero__photo .img-placeholder {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
}

.home-hero__inner { position: relative; }

.home-hero__text {
	max-width: 460px;
	margin: 0 auto;
	text-align: center;
	font-size: var(--lead);
	line-height: var(--lead-lh);
	color: var(--text);
}
.home-hero__text .icon-badge { position: relative; z-index: 2; margin: -48px auto 24px; }
.home-hero__text > p { margin: 0; }
.home-hero__text > .home-hero__choose { margin-top: 34px; }
.home-hero__choose { line-height: var(--lead-lh); }

.highlight {
	position: relative;
	top: -4px;
	display: inline-block;
	margin-left: 1px;
	padding: 3px 7px 4px;
	border-radius: 999px;
	background: var(--highlight);
	font-style: italic;
	font-weight: 700;
	line-height: 26px;
	color: var(--dark);
}
/* "next destination" is a button that opens the destinations popup: a small arrow inside
   the pill, a lift and a shadow on hover. */
.highlight--button {
	border: 0;
	font: inherit;
	font-style: italic;
	font-weight: 500;
	color: var(--dark);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.highlight--button:hover,
.highlight--button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.highlight--button::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	border-radius: 1px;
	transform: rotate(45deg);
	vertical-align: 2px;
	transition: transform .2s ease;
}
.highlight--button:hover::after,
.highlight--button:focus-visible::after { transform: translateX(3px) rotate(45deg); }

/* Any other block added to the home page sits in the normal content column. */
.home-blocks > :not(.home-hero):not(.regions):not(.country-pills) {
	width: min(var(--container), 100% - 2 * var(--gutter));
	margin-left: auto;
	margin-right: auto;
}
/* Editor: a frame around the hero texts so it is clear they belong to the hero block. */
.sofiach-home-hero-edit { padding: 16px; border: 1px dashed var(--muted); border-radius: 12px; }
.sofiach-home-hero-edit__note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.sofiach-home-hero-edit__photo {
	position: relative;
	display: block;
	width: 100%;
	max-width: 420px;
	margin: 0 auto 16px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--soft);
	cursor: pointer;
}
.sofiach-home-hero-edit__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sofiach-home-hero-edit__photo span {
	position: absolute;
	left: 50%; bottom: 12px;
	transform: translateX(-50%);
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	font-size: 13px;
	font-weight: 700;
	color: var(--dark);
	white-space: nowrap;
}
.sofiach-home-hero-edit__photo:not(:has(img)) { min-height: 120px; }

@media (min-width: 980px) {
	.home-hero { min-height: 577px; padding-bottom: 0; overflow: visible; }
	.home-hero__photo {
		position: absolute;
		left: -15px;
		width: calc(50% + 50px);
		height: 611px;
		max-height: none;
	}
	.home-hero__text {
		width: 46%;
		max-width: none;
		margin: 0 0 0 auto;
		padding-top: 117px;
	}
	.home-hero__text .icon-badge { margin: 0 auto 46px; }
}

@media (min-width: 1200px) {
	/* The intro fills the space between the photo and the right edge of the column,
	   with the text block centred in it. */
	.home-hero__text {
		--hero-text-left: calc(50vw + 55px - var(--edge));
		width: calc(100% - var(--hero-text-left));
		margin-left: var(--hero-text-left);
		font-size: clamp(22px, 1.6vw, 26px);
	}
	.home-hero__intro,
	.home-hero__choose { max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* Icon badge: white circle, soft grey blob, hand-drawn icon */

.icon-badge {
	position: relative;
	display: grid;
	place-items: center;
	width: 96px; height: 96px;
	border-radius: 50%;
	background: #fff;
}
.icon-badge__blob {
	position: absolute;
	top: 11px; left: 8px;
	width: 79px; height: 73px;
	fill: var(--soft);
}
.icon-badge__icon {
	position: relative;
	width: 45px;
	height: 40px;
}

/* Home: region cards ----------------------------------------------------------
   They scroll sideways (swipe, trackpad or drag with the mouse), like Salt in our Hair.
   Phones: edge to edge, one and a half visible. Tablets: two and a half. Desktop: three,
   and a fourth peeks in from the right when there are more. */

.regions {
	--regions-top: 64px;
	display: flex;
	gap: 12px;
	/* Full screen width, so cards slide in from the very edge; the first one lines up with the text. */
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: 0;
	margin-top: var(--space-top, var(--regions-top));
	margin-bottom: var(--space-bottom, 0px);
	padding: 0 var(--gutter);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-padding-left: var(--gutter);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.regions::-webkit-scrollbar { display: none; }
/* Room for the icons that stick out above the cards: part of the block, so the block's own
   spacing starts at the top of the icons. */
.regions:has(.icon-badge) { --regions-top: 0px; padding-top: 70px; }
.regions.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.regions.is-dragging .region-card { pointer-events: none; }

.region-card {
	position: relative;
	display: block;
	flex: 0 0 calc((100% - 12px) / 1.5);
	scroll-snap-align: start;
}
.region-card img { -webkit-user-drag: none; }
.region-card .icon-badge {
	position: absolute;
	top: -57px;
	left: 50%;
	z-index: 2;
	transform: translateX(-50%);
	transition: transform .3s ease;
}
.region-card:hover .icon-badge { transform: translateX(-50%) translateY(-4px) rotate(-6deg); }

.region-card__media {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--radius-card);
}
.region-card__media img,
.region-card__media .img-placeholder {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.region-card:hover .region-card__media img { transform: scale(1.04); }

/* Region labels: frosted glass until hover, then the lime pill */
.region-card__label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	min-width: 96px;
	height: 42px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(5px) saturate(140%);
	backdrop-filter: blur(5px) saturate(140%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
	white-space: nowrap;
	transition: background-color .25s ease, color .25s ease, text-shadow .25s ease;
}
.region-card:hover .region-card__label,
.region-card:focus-visible .region-card__label {
	background: var(--pill-hover);
	color: var(--dark);
	text-shadow: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	/* Browsers without the blur: a lighter, readable pill instead. */
	.region-card__label { background: rgba(255, 255, 255, .78); color: var(--dark); text-shadow: none; }
}

@media (min-width: 600px) {
	.region-card { flex-basis: calc((100% - 24px) / 2.4); }
}

@media (min-width: 980px) {
	.regions {
		--regions-top: 96px;
		width: min(var(--container), calc(100% - 2 * var(--gutter)));
		margin-left: auto;
		margin-right: auto;
		padding: 0;
		gap: 17px;
		scroll-padding-left: 0;
	}
	.regions:has(.icon-badge) { --regions-top: 40px; padding-top: 57px; }
	.region-card { flex-basis: calc((100% - 34px) / 3); }
	.regions:has(> :nth-child(4)) .region-card { flex-basis: calc((100% - 51px) / 3.4); }
	.region-card__media { aspect-ratio: 4 / 5; }
	.region-card__label { min-width: 116px; height: 46px; padding: 0 28px; font-size: 15px; }
}

/* Home: country pills ------------------------------------------------------------
   Sized to their name, photo on the right with the same inset all round. */

.country-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: var(--space-top, 56px);
	margin-bottom: var(--space-bottom, 56px);
}
.country-pill {
	justify-content: flex-start;
	gap: 14px;
	height: 48px;
	padding: 0 4px 0 22px;
	background: var(--soft);
	font-size: 15px;
	color: var(--dark);
	white-space: nowrap;
}
.country-pill__name { font-weight: 700; }
.country-pill__img {
	display: block;
	flex: 0 0 40px;
	width: 40px; height: 40px;
	overflow: hidden;
	border-radius: 50%;
}
.country-pill__img img,
.country-pill__img .img-placeholder { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 980px) {
	.country-pills { margin-top: var(--space-top, 80px); margin-bottom: var(--space-bottom, 88px); }
}

/* Category title: "Travel Guide" + giant hand-written name ------------------ */

.cat-title {
	position: relative;
	display: inline-block;
	font-weight: 400;
	--title-color: var(--orange);
}
.cat-title__name {
	display: block;
	font-family: var(--font-logo);
	color: var(--title-color);
	text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(0, 0, 0, .2);
	white-space: nowrap;
}
.cat-title__script {
	position: absolute;
	z-index: 1;
	font-family: var(--font-script);
	letter-spacing: -.05em;
	line-height: 1.35;
	color: var(--title-dark);
	white-space: nowrap;
}

.cat-title--region .cat-title__name {
	padding-bottom: 20px;
	font-size: clamp(76px, 21vw, 140px);
	line-height: 1;
	letter-spacing: -.1em;
}
.cat-title--region .cat-title__script {
	top: .1em;
	left: calc(clamp(76px, 21vw, 140px) * 1.02);
	font-size: clamp(26px, 7vw, 40px);
}

.cat-title--country .cat-title__name {
	padding-top: 30px;
	padding-bottom: 14px;
	font-size: clamp(64px, 19vw, 112px);
	line-height: 1;
	letter-spacing: -.05em;
}
.cat-title--country .cat-title__script {
	top: 0;
	left: calc(clamp(64px, 19vw, 112px) * 1.2);
	font-size: clamp(30px, 9vw, 46px);
}

/* Russian version: Lemon Tuesday keeps its own spacing (the English names are set tighter). */
.cat-title__name:lang(ru) { letter-spacing: 0; }
/* "Гайд" is much shorter than "Travel Guide": larger, anchored to the right end of the name
   and dipping onto its letters, like the English title. --k: how much larger than
   "Travel Guide" (the script/name size ratio differs per layout, so it is set per width to keep
   the same "гайд"-to-name proportion, Bimbo 16 : Lemon Tuesday 28); --x: how far it hangs past
   the end of the name. */
.cat-title .cat-title__script:lang(ru) {
	top: auto;
	bottom: 56%; /* sits on the top of the lowercase letters at every size */
	left: auto;
	right: 0;
	letter-spacing: 0;
	--k: 1.08;
	--x: .36em;
	transform: translateX(calc(var(--k) * var(--x))) scale(var(--k));
	transform-origin: right bottom;
}
/* Region names are short: "гайд" ends over the last letter. */
.cat-title--region .cat-title__script:lang(ru) { --k: 1.52; --x: 0em; bottom: 66%; }

@media (min-width: 980px) {
	.cat-title--region .cat-title__name { padding-bottom: 0; font-size: 140px; line-height: 140px; }
	.cat-title--region .cat-title__script { top: 24px; left: 143px; font-size: 53px; }
	.cat-title--country .cat-title__name { padding: 0; font-size: 88px; line-height: 88px; }
	/* "Travel Guide" above the country name, not on top of its letters. */
	.cat-title--country .cat-title__script { top: -22px; left: 108px; font-size: 36px; }
	.cat-title--country .cat-title__script:lang(ru) { --k: 1.24; }
	.cat-title--region .cat-title__script:lang(ru) { --k: 1.33; bottom: 56%; }
}

@media (min-width: 1200px) {
	.cat-title--region .cat-title__name { font-size: 175px; line-height: normal; /* box = glyph area, like on the original */ }
	.cat-title--region .cat-title__script { top: 30px; left: 179px; font-size: 66px; /* Mrs Saint Delafield is smaller than the original 48px script */ }
	.cat-title--country .cat-title__name { font-size: 112px; line-height: normal; }
	.cat-title--country .cat-title__script { top: 14px; left: 139px; font-size: 46px; }
	/* With the real Brittany Signature: the original sizes and positions. */
	.has-script-font .cat-title--region .cat-title__script { top: 43px; font-size: 48px; }
	.has-script-font .cat-title--country .cat-title__script { top: 23px; font-size: 34px; }
	.cat-title--country .cat-title__script:lang(ru) { --k: 1.67; }
	.cat-title--region .cat-title__script:lang(ru) { --k: 1.85; }
}

/* Region page ------------------------------------------------------------- */

.region-hero {
	position: relative;
	padding-bottom: 20px;
	overflow: hidden;
}
.region-hero__bg { position: absolute; inset: 0; }
.region-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.region-hero--image .region-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
}
.region-hero__inner { position: relative; padding-top: 140px; }
.region-hero__desc {
	max-width: 420px;
	margin-top: -20px;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.35;
	color: var(--text);
}

/* Region page: its countries ("Explore …"), text-only pills like Salt in our Hair. */
.region-countries { margin-top: 48px; margin-bottom: 0; }
.region-countries__title { font-size: var(--h2); line-height: 1.25; color: var(--dark); }
.region-countries__list { justify-content: flex-start; margin: 16px 0 0; }
.region-countries .country-pills { gap: 10px; }
.region-countries .country-pill {
	gap: 0;
	height: 48px;
	padding: 0 20px;
	font-size: 16px;
	font-weight: 700;
}
.region-countries .country-pill__img { display: none; }

@media (min-width: 980px) {
	.region-hero { height: 600px; padding-bottom: 0; }
	.region-hero__inner { padding-top: 250px; }
	.region-hero .cat-title { margin-left: -7px; }
	.region-countries { margin-top: 64px; }
}

/* Country page and post hero: the photo in the arc frame -------------------------
   Phones and tablets: the photo on top, the title under it.
   Desktop: the title on the left, the photo on the right reaching the window edge. */

.country-hero,
.post-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.country-hero__photo,
.post-hero__photo {
	position: relative;
	top: 0;
	left: 0;
	width: 112%;
	height: 92vw;
	max-height: 560px;
	clip-path: url(#sofiach-clip-arc);
}
.country-hero__photo img,
.country-hero__photo .img-placeholder,
.post-hero__photo img {
	width: 100%; height: 100%;
	object-fit: cover;
}

.country-hero__inner { position: relative; }
.country-hero__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	text-align: center;
}
.country-hero__desc {
	width: 100%;
	max-width: 340px;
	margin-top: 4px;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--text);
}

.post-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
}
.post-hero__text { width: 100%; padding: 16px 0 0; }
.post-hero .entry__title { font-size: var(--h1); line-height: 1.15; }
.post-hero + .entry__content { padding-top: 20px; }

@media (min-width: 980px) {
	.country-hero { display: block; height: 600px; }
	.post-hero { display: block; min-height: 600px; }
	.country-hero__photo,
	.post-hero__photo { position: absolute; height: 600px; max-height: none; }
	.country-hero__photo { left: 40%; width: 68%; }
	.post-hero__photo { left: 44%; width: 66%; }

	.country-hero__text { width: 40%; padding-top: 191px; }
	.country-hero__desc { max-width: 327px; }

	.post-hero__inner { align-items: flex-start; min-height: 600px; }
	.post-hero__text { width: 40%; padding: 150px 0 40px; }
}

@media (min-width: 1200px) {
	.country-hero__photo,
	.post-hero__photo { left: calc(var(--edge) + 420px); width: min(1100px, calc(100vw - var(--edge) - 420px + 40px)); }
	.country-hero__text { width: 376px; }
	.country-hero__desc { width: 327px; }
	.post-hero__text { width: 400px; }
}

/* Post grid --------------------------------------------------------------- */

.posts-section { padding-top: 48px; padding-bottom: 64px; }

.section-title {
	max-width: 915px;
	margin-bottom: 7px;
	font-size: var(--h2);
	font-weight: 700;
	line-height: 1.25;
	color: var(--dark);
}

.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 9px;
}

.card__link { position: relative; display: block; }

.card__media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
}
.card__media img,
.card__media .img-placeholder {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__title {
	position: absolute;
	top: 20px;
	left: 20px;
	right: 25px;
	max-width: 250px;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: var(--tighten);
	color: var(--dark);
}
.card__title span {
	background: #fff;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	text-shadow: -1px -1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, 1px 1px 0 #fff;
}

.empty-note { color: var(--muted); font-size: 18px; }

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--soft);
	color: var(--muted);
	font-weight: 700;
}
.pagination a.page-numbers:hover,
.pagination .current { background: var(--pill-hover); color: var(--text); }

@media (min-width: 768px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 980px) {
	.posts-section { padding-top: 64px; padding-bottom: 96px; }
	.post-grid { grid-template-columns: repeat(3, 1fr); }
	.card__title { top: 35px; left: 25px; }
}

@media (min-width: 1200px) {
	.post-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

/* About me page ------------------------------------------------------------------ */

.about__inner {
	display: flow-root; /* contains the floated photo */
	padding-top: 6px;
	padding-bottom: 60px;
}

.about__photo {
	width: min(90vw, 420px);
	aspect-ratio: 562 / 541;
	margin: 0 auto 20px;
	clip-path: url(#sofiach-clip-about);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__content {
	max-width: 960px;
	font-size: var(--p);
	line-height: var(--p-lh);
	color: var(--text);
}
.about__content > * { margin: 0; }
.about__content h1 {
	margin: 0 0 24px;
	font-family: var(--font-logo);
	font-size: clamp(32px, 9vw, 44px); /* "Hi, this is Sofia" on one line */
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: .02em;
	color: var(--dark);
}
.about__content h2,
.about__content h3,
.about__content h4 { font-family: var(--font-body); font-weight: 700; color: var(--dark); }
.about__content h2 { margin: 28px 0 6px; font-size: var(--h2); line-height: 1.25; }
.about__content h3 { margin: 22px 0 4px; font-size: var(--h3); line-height: 1.3; }
.about__content h4 { font-size: var(--h4); line-height: 1.35; }
.about__content p + p { margin-top: .6em; }
.about__content img { border-radius: var(--radius-card); }

@media (min-width: 980px) {
	.about__photo { float: right; width: 46%; margin: 63px 0 12px 32px; }
	.about__content { padding-left: 18px; }
	/* One line, lined up with the text on the left. */
	.about__content h1 { font-size: 52px; }
}

@media (min-width: 1200px) {
	/* Sticks out past the column on the right, like the original, but never past the window. */
	.about__photo {
		width: 562px;
		height: 541px;
		aspect-ratio: auto;
		margin-right: calc(-1 * min(72px, var(--edge) - 8px));
	}
}

/* Generic pages, single post ---------------------------------------------- */

.page-head { padding-top: 60px; padding-bottom: 10px; }
.page-title { font-size: var(--h1); font-weight: 700; color: var(--dark); }
.page-head--404 { padding-top: 100px; padding-bottom: 60px; }
.page-head--404 .search-form { width: 260px; margin: 30px 0 0; }

/* The text column is 760px wide and starts at the left edge of the content column, like the
   header, the page titles and the footer. */
.entry__head,
.entry__content,
.entry__comments {
	width: min(760px, calc(100% - 2 * var(--gutter)));
	margin-left: max(var(--gutter), (100% - var(--container)) / 2);
	margin-right: auto;
}
.entry__head { padding-top: 60px; }
.entry__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.entry__cats .pill { height: 32px; padding: 0 16px; background: var(--soft); font-size: 14px; font-weight: 700; color: var(--muted); }
.entry__title { font-size: var(--h1); font-weight: 700; line-height: 1.2; color: var(--dark); }
.entry__meta { margin-top: 10px; font-size: var(--small); letter-spacing: .05em; color: var(--muted); }
.entry__media { margin-top: 30px; margin-bottom: 0; }
.entry__media img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius-card); }

.entry__content {
	padding-top: 30px;
	padding-bottom: 40px;
	font-size: 18px;
	line-height: 1.7;
	color: var(--text);
}
.entry__content > * + * { margin-top: 1em; }
.entry__content h2 { font-size: 28px; color: var(--muted); margin-top: 1.6em; line-height: 1.3; }
.entry__content h3 { font-size: 22px; color: var(--muted); margin-top: 1.4em; }
.entry__content h4 { font-size: 19px; margin-top: 1.3em; }
.entry__content h5 { font-size: 17px; margin-top: 1.2em; }
.entry__content h6 { font-size: 15px; margin-top: 1.2em; letter-spacing: .03em; text-transform: uppercase; }
.entry__content a { color: var(--link); text-decoration: underline; }
.entry__content ul { list-style: disc; padding-left: 1.4em; }
.entry__content ol { padding-left: 1.4em; }
.entry__content img { border-radius: var(--radius-card); }
.entry__content blockquote { margin-left: 0; padding: 12px 24px; border-left: 4px solid var(--lime); background: var(--soft); border-radius: 0 12px 12px 0; }
.entry__content .alignwide { width: min(var(--container), 100vw - 2 * var(--gutter)); max-width: none; }
.entry__content .alignfull { width: 100vw; margin-left: calc(-1 * var(--edge)); max-width: none; }

.entry__comments { padding-bottom: 40px; }
.comments textarea,
.comments input[type="text"],
.comments input[type="email"],
.comments input[type="url"] {
	width: 100%;
	padding: 10px 16px;
	border: 1px solid #ddd;
	border-radius: 16px;
	font: inherit;
}
.comments .submit {
	padding: 10px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--lime);
	font-weight: 700;
	cursor: pointer;
}

/* Search results ------------------------------------------------------------ */

.search-head .search-form {
	width: min(420px, 100%);
	height: 44px;
	margin: 22px 0 0;
	background: var(--soft);
}
.search-head .search-form__input { font-size: 16px; }

.dest-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}
.dest-pill {
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	background: var(--soft);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--muted);
}
.dest-pill .icon { width: 18px; height: 18px; }
.posts-section .dest-pills { margin-top: 16px; }

/* Footer: subscribe ----------------------------------------------------------
   Phones and tablets: the author photo, then the title, text and form centred under it, on grey
   under a low wave.
   Desktop: the text on the left, the photo on the right, on the grey wave. */

.site-footer { padding-top: 30px; }

.subscribe {
	position: relative;
	padding: 40px 0;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 100 1920 200' preserveAspectRatio='none'%3E%3Cpath fill='%23F2F2F2' d='M1920 300v-4.067c-455.162 0-690.876-51.203-1082.65-129.288C490.044 97.423 0 100.013 0 100.013V300h1920z'/%3E%3C/svg%3E") center top / 100% 70px no-repeat,
		linear-gradient(var(--soft), var(--soft)) center 69px / 100% calc(100% - 69px) no-repeat;
}

.subscribe__inner {
	position: relative;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 24px;
}

.subscribe__text { width: 100%; text-align: center; }

.subscribe__title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--dark);
}
/* "& Tips": the handwritten end of the title. */
.subscribe__script {
	display: block;
	margin: 6px 0 0;
	font-family: var(--font-script);
	font-size: 1.35em;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	color: var(--dark);
}

.subscribe__lead {
	margin-top: 34px; /* room for the long strokes of the handwritten "& Tips" */
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
}

.subscribe__form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-top: 22px;
}
.subscribe__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 40px;
	background: #fff;
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--dark);
}
.subscribe__input::placeholder { color: #c9c9c9; }
.subscribe__input:focus { outline: none; border-color: var(--lime); }
.subscribe__button {
	flex: 0 0 auto;
	width: 100%;
	min-width: 180px;
	height: 48px;
	padding: 0 32px;
	border: 0;
	border-radius: 100px;
	background: var(--lime);
	font-size: 16px;
	font-weight: 700;
	color: var(--dark);
	cursor: pointer;
	transition: background-color .2s ease;
}
.subscribe__button:hover { background: var(--pill-hover); }
.subscribe__hp { position: absolute; left: -9999px; }
.subscribe__error {
	margin-top: 6px;
	color: #b3261e;
	font-size: 14px;
}
.subscribe__thanks {
	display: inline-block;
	margin-top: 6px;
	padding: 8px 20px;
	border-radius: 999px;
	background: var(--pill-hover);
	font-weight: 600;
}

/* Bigger author photo that rises over the grey wave. */
.subscribe__photo {
	position: relative;
	z-index: 2;
	width: min(280px, 76vw);
	height: min(280px, 76vw);
	margin-top: -80px;
	clip-path: url(#sofiach-clip-blob);
}
.subscribe__photo img,
.subscribe__photo .img-placeholder { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 980px) {
	.site-footer { padding-top: 15px; }

	/* The block grows with its text here: the wave stays where it is on wide screens
	   (71px from the top) and everything under it is grey, so the text stays on grey. */
	.subscribe {
		padding: 0 0 48px;
		background:
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 100 1920 200' preserveAspectRatio='none'%3E%3Cpath fill='%23F2F2F2' d='M1920 300v-4.067c-455.162 0-690.876-51.203-1082.65-129.288C490.044 97.423 0 100.013 0 100.013V300h1920z'/%3E%3C/svg%3E") center 71px / 100% 262px no-repeat,
			linear-gradient(var(--soft), var(--soft)) center 332px / 100% calc(100% - 332px) no-repeat;
	}
	/* Tall enough for the photo, so it never touches the footer logo. */
	.subscribe__inner { display: block; min-height: 460px; }

	.subscribe__text { position: relative; width: min(600px, 62%); padding-top: 153px; text-align: left; }
	/* A slightly smaller title, so "& Tips" stays on its line. */
	.subscribe__title { font-size: 30px; }
	.subscribe__script { display: inline-block; margin: 0 0 0 4px; line-height: 0; }
	.subscribe__lead { max-width: 470px; font-size: 17px; }

	.subscribe__form { flex-direction: row; flex-wrap: wrap; max-width: 520px; }
	.subscribe__input,
	.subscribe__button { width: auto; }

	.subscribe__photo {
		position: absolute;
		top: 157px;
		right: 0;
		z-index: auto;
		width: 280px;
		height: 280px;
		margin-top: 0;
	}
}

@media (min-width: 1200px) {
	/* The wave slopes down to the right, so the text starts low enough to stay on the grey;
	   it runs a little into the grey footer below, which gets extra top space. */
	.subscribe {
		height: 333px;
		padding: 0;
		background:
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 100 1920 200' preserveAspectRatio='none'%3E%3Cpath fill='%23F2F2F2' d='M1920 300v-4.067c-455.162 0-690.876-51.203-1082.65-129.288C490.044 97.423 0 100.013 0 100.013V300h1920z'/%3E%3C/svg%3E")
			center bottom / 100% 262px no-repeat;
	}
	.subscribe__inner { height: 100%; min-height: 0; }
	.subscribe__text { position: absolute; top: 205px; left: 0; width: 520px; padding-top: 0; }
	.subscribe__title { font-size: 40px; }
	.subscribe__lead { margin-top: 14px; }
	.subscribe__form { flex-wrap: nowrap; }
	/* Photo centred on the text block, above the footer logo. */
	.subscribe__photo { top: 140px; right: 51px; width: 314px; height: 314px; }
}

/* Footer: menu, logo, copyright ------------------------------------------------ */

.footer-bottom {
	margin-top: -2px;
	padding: 24px 0 45px;
	background: var(--soft);
}

.footer-bottom__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	min-height: 150px;
}

.footer-menu { flex: 0 0 auto; }

.footer-menu__cols {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px 32px;
	text-align: center;
}
.footer-menu__cols a {
	display: block;
	font-size: 15px;
	line-height: 28px;
	letter-spacing: .1em;
	color: var(--muted);
	transition: color .2s ease;
}
.footer-menu__cols > li > a {
	font-weight: 700;
	text-transform: uppercase;
}
.footer-menu__cols a:hover { color: var(--text); }

.footer-logo {
	margin: 0;
	font-size: 36px;
	line-height: 57px;
	color: var(--text);
}

.copyright {
	margin-top: 24px;
	padding: 0 16px;
	text-align: center;
	font-size: var(--small);
	color: var(--muted);
}

.legal-menu__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin-top: 10px;
}
.legal-menu__list a {
	font-size: 13px;
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: rgba(105, 105, 105, .4);
}
.legal-menu__list a:hover { color: var(--text); text-decoration-color: currentColor; }

.cookie-settings-link { margin-top: 8px; text-align: center; }
.cookie-settings-link a { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(105, 105, 105, .4); }
.cookie-settings-link a:hover { color: var(--text); }

/* Font credits on the Russian version (required by the font licences). */
.font-credits { margin-top: 40px; font-size: var(--small); color: var(--muted); }

@media (min-width: 980px) {
	.footer-bottom__inner { flex-direction: row; align-items: flex-start; gap: 0; }
	.footer-menu__cols { flex-wrap: nowrap; justify-content: flex-start; gap: 25px; text-align: left; }
	.footer-menu__cols > li { min-width: 150px; }
	.footer-logo { margin: 24px 0 0 auto; }
	.copyright { margin-top: 7px; padding: 0; }
}

@media (min-width: 1200px) {
	.footer-bottom { padding-top: 150px; }
	.footer-menu__cols > li { width: 191px; }
	.footer-logo { margin-right: 128px; }
}

/* Cookie consent banner -------------------------------------------------------- */

.consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 100;
	padding: 20px 22px 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 28px rgba(0, 0, 0, .18);
	font-size: 15px;
	line-height: 1.45;
	color: var(--text);
	animation: consent-in .3s ease;
}
@keyframes consent-in { from { opacity: 0; transform: translateY(10px); } }
.consent__text a { color: var(--link); text-decoration: underline; }
.consent__prefs { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--soft); }
.consent__prefs[hidden] { display: none; }
.consent__option { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.consent__option input { width: 18px; height: 18px; accent-color: var(--lime); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.consent__btn { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.consent__btn--main { flex: 1 1 100%; order: -1; background: var(--lime); color: var(--dark); }
.consent__btn--main:hover { background: var(--pill-hover); }
.consent__btn--soft { background: var(--soft); color: var(--text); }
.consent__btn--soft:hover { background: var(--pill-hover); }
.consent__btn--link { padding: 0 6px; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 980px) {
	.consent { left: 20px; right: auto; bottom: 20px; width: min(420px, calc(100% - 32px)); }
	.consent__btn--main { flex: 0 1 auto; order: 0; margin-left: auto; }
}

/* Subscribe popup ("All my {country} tips") ------------------------------------
   Phones and tablets: a sheet from the bottom, photo on top. Desktop: a centred window,
   photo on the left. */

.popup {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: end center;
	padding: 0;
	opacity: 0;
	transition: opacity .2s ease;
}
.popup.is-open { opacity: 1; }
.popup[hidden] { display: none; }
.popup-open, .popup-open body { overflow: hidden; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(50, 50, 50, .55); }
.popup__box {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 180px auto;
	width: min(920px, 100%);
	max-height: 92vh;
	overflow: hidden;
	border-radius: 28px 28px 0 0;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	transform: translateY(40px);
	transition: transform .25s ease;
}
.popup.is-open .popup__box { transform: none; }
.popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	cursor: pointer;
	transition: background-color .2s ease;
}
.popup__close:hover { background: var(--pill-hover); }
.popup__close .icon { width: 22px; height: 22px; color: var(--dark); }
.popup__photo { position: relative; min-height: 180px; background: var(--soft); }
.popup__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.popup__logo {
	position: absolute;
	left: 22px;
	bottom: 18px;
	font-family: var(--font-logo);
	font-size: 26px;
	letter-spacing: .1em;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.popup__body { padding: 22px 22px 28px; overflow-y: auto; }
.popup__script { margin: 0 0 4px; font-family: var(--font-script); font-size: 34px; line-height: 1.2; color: var(--dark); }
.popup__title { font-size: var(--h2); line-height: 1.15; color: var(--dark); }
.popup__text { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--text); }
.popup__form { display: grid; gap: 12px; margin-top: 22px; }
.popup__input {
	width: 100%;
	height: 50px;
	padding: 0 20px;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--dark);
}
.popup__input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(186, 218, 85, .35); }
.popup__button {
	justify-self: stretch;
	height: 50px;
	margin-top: 4px;
	padding: 0 30px;
	border: 0;
	border-radius: 999px;
	background: var(--lime);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	color: var(--dark);
	cursor: pointer;
	transition: background-color .2s ease;
}
.popup__button:hover { background: var(--pill-hover); }
.popup__button:disabled { opacity: .6; cursor: wait; }
.popup__note { margin-top: 2px; font-size: 13px; color: var(--muted); }
.popup__note a { text-decoration: underline; }
.popup__thanks {
	display: inline-block;
	margin-top: 22px;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--pill-hover);
	font-weight: 700;
	color: var(--dark);
}
.popup__thanks.is-error { background: #fde4e1; color: #b3261e; }
.popup__thanks[hidden],
.popup__form[hidden] { display: none; }

@media (min-width: 980px) {
	.popup { place-items: center; padding: 24px; }
	.popup__box {
		grid-template-columns: 42% 1fr;
		grid-template-rows: none;
		max-height: calc(100vh - 48px);
		border-radius: 28px;
		transform: translateY(16px) scale(.98);
	}
	.popup__close { top: 16px; right: 16px; background: var(--soft); }
	.popup__photo { min-height: 100%; }
	.popup__body { padding: 48px 48px 40px 44px; }
	.popup__button { justify-self: start; }
}

/* Typography system ------------------------------------------------------
   One look per tag across the site: headings #323232 Bold on the --h1…--h4 scale,
   text on --p in #404040, small text 14px #696969, one link style.
   Everything from here to the end is also used in the block editor (tools/make_editor_css.py). */

.page-title, .entry__title { font-size: var(--h1); color: var(--dark); }
.entry__content h2 {
	font-family: var(--font-body); font-size: var(--h2); font-weight: 700; line-height: 1.25; color: var(--dark);
}
.entry__content h3 { font-size: var(--h3); font-weight: 700; line-height: 1.3; color: var(--dark); }
.entry__content h4 { font-size: var(--h4); font-weight: 700; line-height: 1.35; color: var(--dark); }
.entry__content { font-size: var(--p); line-height: var(--p-lh); color: var(--text); }
.entry__meta { font-size: var(--small); color: var(--muted); }

/* Links in text: dark text with a lime marker underneath */
.text-link, .entry__content a, .about__content a {
	color: var(--text);
	text-decoration: none;
	background-image: linear-gradient(transparent 62%, var(--pill-hover) 62%);
	transition: background-color .2s ease;
}
.text-link:hover, .entry__content a:hover, .about__content a:hover { color: var(--text); background-color: var(--pill-hover); }

/* Patterns & post extras -------------------------------------------------- */

/* Script accent above a heading (Brittany Signature) */
.sofiach-script,
.entry__content .sofiach-script {
	margin: 0 0 -.2em;
	font-family: var(--font-script);
	font-size: 34px;
	line-height: 1.2;
	color: var(--dark);
}

/* Buttons in patterns: lime pill */
.sofiach-btn .wp-block-button__link,
.entry__content .sofiach-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--lime);
	background-image: none;
	color: var(--dark);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s ease;
}
.sofiach-btn .wp-block-button__link:hover { background: var(--pill-hover); }

/* Notes with an icon: the text lines up with the middle of the round icon. */
.entry__content .sofiach-note {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 76px;
	margin: 1.6em 0;
	padding: 16px 20px 16px 76px;
	border-radius: 20px;
	background: var(--soft);
	font-size: 17px;
	line-height: 1.6;
}
.entry__content .sofiach-note > .wp-block-group__inner-container { width: 100%; }
.entry__content .sofiach-note > *,
.entry__content .sofiach-note > .wp-block-group__inner-container > * { margin: 0; }
.entry__content .sofiach-note > .wp-block-group__inner-container > * + * { margin-top: .5em; }
.sofiach-note::before,
.sofiach-note::after {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border-radius: 50%;
}
.sofiach-note::before { background: var(--highlight); }
.sofiach-note::after {
	background: var(--dark);
	-webkit-mask: var(--note-icon) center / 24px no-repeat;
	mask: var(--note-icon) center / 24px no-repeat;
}
.sofiach-note--transport::before,
.sofiach-note--stay::before { background: var(--pill-hover); }
.sofiach-note--read { background: transparent; border: 2px solid var(--pill-hover); }
.sofiach-note--read::before { background: var(--lime); }
.sofiach-note--tip { --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.7.5 1.1 1.3 1.1 2.1V16h5v-.1c0-.8.4-1.6 1.1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.sofiach-note--transport { --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17H3v-5l2-5h14l2 5v5h-2'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M7 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0'/%3E%3Cpath d='M13 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0'/%3E%3C/svg%3E"); }
.sofiach-note--stay { --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6v13'/%3E%3Cpath d='M21 19v-6a3 3 0 0 0-3-3h-7v6'/%3E%3Cpath d='M3 16h18'/%3E%3Cpath d='M6 11.5a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0-3 0'/%3E%3C/svg%3E"); }
.sofiach-note--tour { --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v3a2 2 0 0 0 0 4v3H3v-3a2 2 0 0 0 0-4z'/%3E%3Cpath d='M15 8v10'/%3E%3C/svg%3E"); }
.sofiach-note--read { --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* Save to Pinterest card */
.entry__content .sofiach-pin {
	position: relative;
	margin: 2em 0;
	padding: 22px;
	border-radius: 24px;
	background: var(--soft);
	overflow: hidden;
}
.sofiach-pin > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 96px;
	grid-template-areas: "script image" "text image" "button image";
	align-items: start;
	column-gap: 24px;
}
.entry__content .sofiach-pin > .wp-block-group__inner-container > * { margin: 0; max-width: none; }
.sofiach-pin .sofiach-script { grid-area: script; }
.sofiach-pin__text { grid-area: text; margin-top: 6px !important; color: var(--text); }
.sofiach-pin .wp-block-buttons { grid-area: button; margin-top: 16px !important; }
.sofiach-pin__image { grid-area: image; align-self: center; }
.sofiach-pin__image img {
	width: 96px;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 14px;
	transform: rotate(3deg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.sofiach-pin .sofiach-btn .wp-block-button__link { background: #fff; }
.sofiach-pin .sofiach-btn .wp-block-button__link:hover { background: var(--pill-hover); }

/* Subscribe inside a post */
.entry__content .sofiach-inline-sub {
	margin: 2em 0;
	padding: 28px 32px;
	border-radius: 24px;
	background: var(--pill-hover);
}
.entry__content .sofiach-inline-sub > .wp-block-group__inner-container > * { margin: 0; }
.entry__content .sofiach-inline-sub h3 { margin-bottom: 4px; }
.sofiach-inline-sub .subscribe__form { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.sofiach-inline-sub .subscribe__input { flex: 1 1 220px; width: auto; height: 44px; }
.sofiach-inline-sub .subscribe__button { width: auto; height: 44px; padding: 0 26px; background: var(--dark); color: #fff; }
.sofiach-inline-sub .subscribe__button:hover { background: #000; }

/* Hand-picked posts: photo links are not text links (no lime marker); photo zooms on hover. */
.entry__content .sofiach-picks { margin: 2.4em 0; }
.entry__content .sofiach-picks h2 { margin-top: 0; }
.entry__content .sofiach-picks a { background: none; text-decoration: none; }
/* The handwritten line sits above the heading instead of touching it. */
.entry__content .sofiach-picks .sofiach-script { margin-bottom: 2px; }
.sofiach-picks .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}
.sofiach-picks .wp-block-post { margin: 0; }
.sofiach-picks .wp-block-post-featured-image { margin: 0; overflow: hidden; border-radius: 18px; }
.sofiach-picks .wp-block-post-featured-image a { display: block; }
.sofiach-picks .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 18px;
	transition: transform .5s ease;
}
.sofiach-picks .wp-block-post:hover .wp-block-post-featured-image img,
.sofiach-picks .wp-block-post:focus-within .wp-block-post-featured-image img { transform: scale(1.04); }
.entry__content .sofiach-picks .wp-block-post-title { margin: 10px 0 0; font-size: 18px; line-height: 1.3; }
.entry__content .sofiach-picks .wp-block-post-title a { background: none; color: var(--dark); transition: color .2s ease; }
.entry__content .sofiach-picks .wp-block-post-title a:hover,
.entry__content .sofiach-picks .wp-block-post:hover .wp-block-post-title a { color: var(--muted); }

/* About me with numbers */
.sofiach-about-card { gap: 40px; margin: 2.4em 0; }
.sofiach-arc img {
	width: 100%;
	aspect-ratio: 562 / 541;
	object-fit: cover;
	clip-path: url(#sofiach-clip-about);
	border-radius: 0 !important;
}
.entry__content .sofiach-about-card h2 { margin-top: 0; }
.sofiach-stats { gap: 12px; margin: 18px 0 22px; }
.entry__content .sofiach-stats p {
	margin: 0;
	padding: 10px 18px;
	border-radius: 16px;
	background: var(--soft);
	font-size: 14px;
	line-height: 1.3;
	color: var(--muted);
}
.sofiach-stats strong {
	display: block;
	font-family: var(--font-logo);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.1;
	color: var(--orange);
}

/* FAQ */
.entry__content .sofiach-faq { margin: 2.4em 0; }
.entry__content .sofiach-faq h2 { margin-bottom: 10px; }
.entry__content .sofiach-faq .wp-block-details {
	margin: 0;
	border-bottom: 1px solid var(--soft);
}
.sofiach-faq summary {
	position: relative;
	padding: 16px 48px 16px 0;
	list-style: none;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	color: var(--dark);
}
.sofiach-faq summary::-webkit-details-marker { display: none; }
.sofiach-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background: var(--soft);
	font-size: 20px;
	font-weight: 400;
	transition: background-color .2s ease, transform .2s ease;
}
.sofiach-faq details[open] summary::after { content: "–"; background: var(--pill-hover); }
.entry__content .sofiach-faq details > p { margin: 0 0 16px; }

/* Key facts of a place */
.entry__content .sofiach-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px 24px;
	padding: 18px 22px;
	border-radius: 18px;
	background: var(--soft);
	list-style: none;
	font-size: 16px;
}
.entry__content .sofiach-facts li { margin: 0; }

/* In this guide: numbered, one column on phones; two columns in reading order on desktop. */
.entry__content .toc {
	margin: 0 0 2em;
	padding: 20px 24px;
	border-radius: 20px;
	background: var(--soft);
}
.toc__title {
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}
.entry__content .toc__list {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}
.entry__content .toc__list li {
	position: relative;
	min-height: 24px;
	margin: 0;
	padding-left: 34px;
	break-inside: avoid;
	counter-increment: toc;
	font-size: 16px;
	line-height: 1.4;
}
.toc__list li::before {
	content: counter(toc);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--pill-hover);
	font-size: 12px;
	font-weight: 700;
	color: var(--dark);
}
.entry__content .toc__list a { background: none; color: var(--text); }
.entry__content .toc__list a:hover { color: var(--dark); text-decoration: underline; }
.entry__content h2[id] { scroll-margin-top: 24px; }

/* Share */
.entry__content .share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 2.4em;
	padding-top: 20px;
	border-top: 1px solid var(--soft);
}
.share__label { margin-right: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.entry__content .share__btn {
	height: 36px;
	padding: 0 16px;
	background: var(--soft);
	background-image: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--dark);
}
.entry__content .share__btn:hover { background: var(--pill-hover); }

/* More from {country} */
.more-country {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 20px;
	margin-top: 20px;
	margin-bottom: 60px;
	padding-top: 36px;
	padding-bottom: 36px;
	border-radius: 28px;
	background: var(--soft);
}
.more-country__head { padding: 0 20px 0 24px; }
.more-country__script { display: block; font-family: var(--font-script); font-size: 34px; color: var(--dark); }
.more-country__name {
	display: block;
	font-family: var(--font-logo);
	font-size: clamp(56px, 8vw, 96px);
	line-height: 1;
	color: var(--title-color);
	text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(0, 0, 0, .2);
}
.more-country__all { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--dark); }
.more-country__all:hover { color: var(--muted); }
.more-country__list { margin: 0; padding: 0 20px; list-style: none; }
.more-country__list li + li { margin-top: 12px; }
.more-country__list a { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--dark); }
.more-country__list a:hover .more-country__title { text-decoration: underline; }
.more-country__img { flex: 0 0 auto; width: 84px; height: 64px; border-radius: 12px; overflow: hidden; background: #fff; }
.more-country__img img { width: 100%; height: 100%; object-fit: cover; }

/* Post cards row ("Best places to visit in …"): photo cards that scroll sideways */
.sofiach-row { margin: 2.4em 0; }
.entry__content .sofiach-row > .wp-block-group__inner-container > * + * { margin-top: 0; }
.sofiach-row__title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.sofiach-row__title a,
.entry__content .sofiach-row__title a { color: var(--dark); background: none; text-decoration: none; }
.sofiach-row__title a::after {
	content: "";
	display: inline-grid;
	width: 36px;
	height: 36px;
	margin-left: 12px;
	vertical-align: middle;
	border-radius: 50%;
	background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23323232' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: background-color .2s ease, transform .2s ease;
}
.sofiach-row__title a:hover::after { background-color: var(--pill-hover); transform: translateX(3px); }

.sofiach-row .wp-block-post-template {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
.sofiach-row .wp-block-post-template::-webkit-scrollbar { display: none; }
.sofiach-row .wp-block-post-template.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.sofiach-row .wp-block-post-template.is-dragging .wp-block-post { pointer-events: none; }
.sofiach-row .wp-block-post {
	position: relative;
	flex: 0 0 calc((100% - 12px) / 1.5);
	margin: 0 !important;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 14px;
	background: var(--soft);
	scroll-snap-align: start;
	isolation: isolate;
	contain: paint;
}
/* Photo fills the card and zooms a little on hover (like Salt in our Hair). */
.sofiach-row .sofiach-row__image { position: absolute; inset: 0; margin: 0; }
.sofiach-row .sofiach-row__image a,
.sofiach-row .sofiach-row__image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; background: none; }
.sofiach-row .sofiach-row__image img { -webkit-user-drag: none; transition: transform .5s ease; }
.sofiach-row .wp-block-post:hover .sofiach-row__image img,
.sofiach-row .wp-block-post:focus-within .sofiach-row__image img { transform: scale(1.04); }
/* Darker at the bottom so the white text reads on any photo. */
.sofiach-row .wp-block-post::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	z-index: 1;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
	pointer-events: none;
}
.sofiach-row .sofiach-row__name,
.entry__content .sofiach-row .sofiach-row__name {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 44px;
	z-index: 2;
	margin: 0;
	font-size: 17px;
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sofiach-row .sofiach-row__name a,
.entry__content .sofiach-row .sofiach-row__name a { color: #fff; background: none; text-decoration: none; }
/* The whole card is the link. */
.sofiach-row .sofiach-row__name a::before { content: ""; position: absolute; inset: -1000px; }
.sofiach-row .sofiach-place,
.entry__content .sofiach-row .sofiach-place {
	position: absolute;
	left: 18px;
	bottom: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, .92);
}
.sofiach-place::before {
	content: "";
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 980px) {
	.entry__content .sofiach-pin { padding: 28px 28px 28px 32px; }
	.sofiach-pin > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr) 150px; }
	.sofiach-pin__image img { width: 150px; }

	.sofiach-picks .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.entry__content .sofiach-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.entry__content .toc__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(var(--toc-rows, 4), auto);
		grid-auto-flow: column;
		column-gap: 32px;
	}

	.more-country { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; }
	.more-country__head { padding: 0 0 0 48px; }
	.more-country__list { padding: 0 32px 0 0; }

	.sofiach-row .wp-block-post-template { gap: 16px; }
	.sofiach-row .wp-block-post { flex-basis: calc((100% - 32px) / 2.6); }
	.sofiach-row .sofiach-row__name,
	.entry__content .sofiach-row .sofiach-row__name { font-size: 19px; }
}

@media (min-width: 1200px) {
	/* Outside the narrow post column (e.g. on wide pages): four cards, like the reference. */
	.sofiach-row.alignwide .wp-block-post,
	.sofiach-row.alignfull .wp-block-post { flex-basis: calc((100% - 48px) / 4); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Home: main heading (H1) above the intro, where the globe badge used to be. */
.home-hero__title {
	position: relative;
	z-index: 2;
	margin: 0 auto 24px;
	font-family: var(--font-body);
	font-size: var(--h2);
	font-weight: 700;
	line-height: 1.2;
	color: var(--dark);
	text-wrap: balance;
}
@media (max-width: 860px) {
	.home-hero__title { font-size: 26px; margin-bottom: 18px; }
}
