/*
 * 33travels calculator shell: masthead, hero, tool region, article, footer.
 * Taken from the jet lag / golden hour / flight carbon plugins (one copy for all calculators).
 *
 * Atlas look (t33-atlas theme): Erode + Atkinson Next, terra #C2502E, sea #5E9C94, ochre #D9A441,
 * ink #1C2A3A, paper #F4EEE3, masthead paper-2 with the double neatline. 16px gutters, nothing
 * wider than the viewport at 360px. Every class is scoped under .tcx-*. The calculator card
 * itself is calc-core (.cc), themed by t33-theme.css.
 */

@font-face { font-family: Erode; src: url(/wp-content/themes/t33-atlas/assets/fonts/erode.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: Erode; src: url(/wp-content/themes/t33-atlas/assets/fonts/erode-italic.woff2) format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Atkinson Next'; src: url(/wp-content/themes/t33-atlas/assets/fonts/atkinson.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Next'; src: url(/wp-content/themes/t33-atlas/assets/fonts/atkinson-italic.woff2) format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Atkinson Mono'; src: url(/wp-content/themes/t33-atlas/assets/fonts/atkinson-mono.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
	--tcx-accent: #C2502E;
	--tcx-accent-ink: #A23D1C;
	--tcx-accent-soft: #F3DCD0;
	--tcx-sea: #5E9C94;
	--tcx-sea-ink: #33665F;
	--tcx-sea-soft: #DCE8E3;
	--tcx-ochre: #D9A441;
	--tcx-ochre-ink: #8A6418;
	--tcx-ochre-soft: #F5E6C4;
	--tcx-ink: #1C2A3A;
	--tcx-ink2: #3B4859;
	--tcx-dim: #5C6876;
	--tcx-night: #15212D;
	--tcx-paper2: #FBF8F2;
	--tcx-paper3: #EAE1D0;
	--tcx-sand: #EFE5D3;
	--tcx-page: #F4EEE3;
	--tcx-white: #fff;
	--tcx-line: #D9CFBF;
	--tcx-line2: #C9BCA6;
	--tcx-serif: Erode, ui-serif, Georgia, 'Times New Roman', serif;
	--tcx-sans: 'Atkinson Next', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--tcx-mono: 'Atkinson Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--tcx-mast-h: 56px;
	--tcx-gutter: 16px;
	--tcx-r: 12px;
	--tcx-shadow: 0 1px 0 rgba(28, 42, 58, 0.06), 0 14px 30px -18px rgba(28, 42, 58, 0.38);
	--tcx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
	background: var(--tcx-page);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body.tcx-body {
	margin: 0;
	background: var(--tcx-page);
	color: var(--tcx-ink);
	font-family: var(--tcx-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.tcx-body a {
	color: inherit;
}

.tcx-body button,
.tcx-body input,
.tcx-body select {
	font: inherit;
	color: inherit;
}

.tcx-body :focus-visible {
	outline: 2px solid var(--tcx-ink);
	outline-offset: 2px;
	border-radius: 4px;
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--tcx-ochre) 45%, transparent);
}

/* ---------------------------------------------------------------- masthead */

.tcx-mast {
	position: relative;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--tcx-mast-h);
	padding: 0 20px;
	background: color-mix(in srgb, var(--tcx-paper2) 90%, transparent);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	backdrop-filter: saturate(1.2) blur(10px);
}

/* The theme's double neatline under the header. */
.tcx-mast::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5px;
	height: 5px;
	pointer-events: none;
	border-top: 1px solid rgba(28, 42, 58, 0.22);
	border-bottom: 1px solid rgba(28, 42, 58, 0.09);
}

.tcx-logo,
.tcx-foot-logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex: none;
	line-height: 1;
	color: var(--tcx-ink);
	text-decoration: none;
}

.tcx-logo svg,
.tcx-foot-logo svg {
	display: block;
	width: 34px;
	height: 34px;
}

.tcx-brand-word {
	font: 600 23px/1 var(--tcx-serif);
	letter-spacing: -0.02em;
}

@media (max-width: 860px) {
	.tcx-logo svg { width: 32px; height: 32px; }
}

.tcx-nav {
	margin-left: auto;
}

.tcx-nav ul,
.tcx-burger-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcx-nav > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.tcx-nav a,
.tcx-nav summary {
	display: block;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	list-style: none;
	border-radius: 6px;
}

.tcx-nav summary::-webkit-details-marker,
.tcx-burger summary::-webkit-details-marker {
	display: none;
}

.tcx-nav a:hover,
.tcx-nav summary:hover,
.tcx-nav details[open] > summary {
	color: var(--tcx-accent-ink);
}

.tcx-nav summary::after {
	content: '';
	display: inline-block;
	margin-left: 6px;
	width: 5px;
	height: 5px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.tcx-sub {
	position: relative;
}

.tcx-sub-list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 220px;
	padding: 6px;
	background: var(--tcx-white);
	border: 1px solid var(--tcx-line);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(40, 30, 20, 0.14);
}

.tcx-sub-list a {
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.tcx-sub-list a:hover {
	background: var(--tcx-page);
}

.tcx-burger {
	display: none;
	margin-left: auto;
}

.tcx-burger summary {
	display: block;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	cursor: pointer;
	list-style: none;
	position: relative;
}

.tcx-burger-icon,
.tcx-burger-icon::before,
.tcx-burger-icon::after {
	position: absolute;
	left: 12px;
	width: 20px;
	height: 2px;
	background: var(--tcx-ink);
	border-radius: 2px;
	content: '';
}

.tcx-burger-icon {
	top: 21px;
}

.tcx-burger-icon::before {
	left: 0;
	top: -6px;
}

.tcx-burger-icon::after {
	left: 0;
	top: 6px;
}

.tcx-burger-panel {
	position: absolute;
	top: var(--tcx-mast-h);
	left: 0;
	right: 0;
	max-height: calc(100svh - var(--tcx-mast-h));
	overflow: auto;
	padding: 8px 20px 20px;
	background: var(--tcx-white);
	border-bottom: 1px solid var(--tcx-line);
	box-shadow: 0 16px 32px rgba(40, 30, 20, 0.14);
}

.tcx-burger-panel a {
	display: block;
	padding: 10px 0;
	font-weight: 600;
	text-decoration: none;
}

.tcx-m-head {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tcx-accent-ink);
}

.tcx-m-group ul {
	padding-left: 12px;
}

@media (max-width: 860px) {
	:root {
		--tcx-mast-h: 52px;
	}
	.tcx-mast {
		padding: 0 16px;
	}
	.tcx-nav {
		display: none;
	}
	.tcx-burger {
		display: block;
	}
}


/* -------------------------------------------------------------------- hero */

.tcx-main {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--tcx-gutter) 24px;
}

.tcx-hero {
	padding: 26px 0 18px;
	text-align: center;
}

.tcx-hero-in {
	max-width: 720px;
	margin: 0 auto;
}

.tcx-hero h1 {
	margin: 0;
	font-family: var(--tcx-serif);
	font-size: clamp(34px, 7.4vw, 52px);
	line-height: 1.04;
	font-weight: 650;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.tcx-tagline {
	margin: 12px auto 0;
	max-width: 34em;
	font-size: clamp(17px, 2.6vw, 20px);
	line-height: 1.45;
	color: var(--tcx-ink2);
	text-wrap: balance;
}

.tcx-small {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 12px 0 0;
	padding: 5px 12px 5px 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tcx-sea-ink);
	background: var(--tcx-sea-soft);
	border-radius: 999px;
}

.tcx-hero-photo {
	margin: 18px 0 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--tcx-r);
	background: var(--tcx-sand);
}

.tcx-hero-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 900px) {
	.tcx-hero {
		padding: 20px 0 14px;
	}
	.tcx-hero.has-photo {
		display: grid;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		align-items: center;
		gap: 36px;
		text-align: left;
	}
	.tcx-hero.has-photo .tcx-hero-in {
		margin: 0;
	}
	.tcx-hero.has-photo .tcx-tagline {
		margin-left: 0;
	}
	.tcx-hero.has-photo .tcx-hero-photo {
		margin: 0;
		max-height: 230px;
		aspect-ratio: 16 / 10;
	}
}

/* -------------------------------------------------------------------- tool */

.tcx-tool {
	position: relative;
	margin: 0 0 8px;
}

.tcx-tool .cc {
	margin: 0 auto;
}

/* ------------------------------------------------------------------ article */

.tcx-article {
	max-width: 820px;
	margin: 0 auto;
	padding: 56px 24px 40px;
	font-size: 17px;
	line-height: 1.7;
}

.tcx-article h2 {
	font-family: var(--tcx-serif);
	margin: 2.2em 0 0.6em;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.tcx-article > h2:first-child,
.tcx-article > h2:first-of-type {
	margin-top: 0;
}

.tcx-article h3 {
	margin: 1.6em 0 0.4em;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.tcx-article p,
.tcx-article ul,
.tcx-article ol {
	margin: 0 0 1.1em;
}

.tcx-article a {
	color: var(--tcx-accent-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tcx-article figure {
	margin: 1.6em 0;
}

.tcx-article figure img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 12px;
	background: var(--tcx-sand);
}

.tcx-article figcaption {
	margin-top: 6px;
	font-size: 13px;
	color: var(--tcx-dim);
}

.tcx-article table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1.4em 0;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.4;
	background: var(--tcx-white);
	border: 1px solid var(--tcx-line);
	border-radius: 12px;
}

.tcx-article th,
.tcx-article td {
	padding: 9px 14px;
	text-align: left;
	border-bottom: 1px solid var(--tcx-line);
}

.tcx-article thead th {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tcx-dim);
}

.tcx-article tbody tr:last-child > * {
	border-bottom: 0;
}

/* ------------------------------------------------------------------ footer */

.tcx-foot {
	background: var(--tcx-night);
	color: #D8D1C3;
}

.tcx-foot-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 32px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 26px 24px 22px;
	font-size: 14px;
}

.tcx-foot-logo,
.tcx-foot-logo:hover {
	color: #F4EEE3;
}

.tcx-foot-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	font-weight: 600;
}

.tcx-foot-nav a,
.tcx-foot-tools a {
	color: #E4DDCF;
	text-decoration: none;
}

.tcx-foot-nav a:hover,
.tcx-foot-tools a:hover {
	color: #F4EEE3;
	text-decoration: underline;
	text-decoration-color: var(--tcx-ochre);
	text-underline-offset: 3px;
}

.tcx-foot-tools {
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(233, 226, 212, 0.18);
	font-size: 13px;
}

.tcx-foot-label {
	font: 700 11px/1 var(--tcx-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tcx-ochre);
}

.tcx-foot-c {
	flex-basis: 100%;
	margin: 0;
	font-size: 13px;
	color: #A9A296;
}


/* ------------------------------------------------- article: FAQ, wp blocks */

.tcx-article .schema-faq {
	margin: 1.2em 0;
}

.tcx-article .schema-faq-section {
	padding: 14px 0;
	border-bottom: 1px solid var(--tcx-line);
}

.tcx-article .schema-faq-question {
	display: block;
	margin: 0 0 4px;
	font-family: var(--tcx-serif);
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
}

.tcx-article .schema-faq-answer {
	margin: 0;
}

.tcx-article .wp-block-table {
	max-width: 100%;
	margin: 1.4em 0;
}

.tcx-article .wp-block-table table {
	margin: 0;
}

.tcx-article .wp-block-image {
	margin: 1.6em 0;
}

.tcx-article .wp-block-image figcaption {
	font-size: 13px;
	color: var(--tcx-dim);
}

/* ------------------------------------------------------------------ print */

@media print {
	html,
	body.tcx-body {
		background: #fff;
	}
	.tcx-mast,
	.tcx-hero,
	.tcx-article,
	.tcx-foot {
		display: none !important;
	}
	.tcx-main {
		padding: 0;
	}
}

/* aff-article scopes its palette variables to .afa; the lead paragraph sits outside it. */
.tcx-article {
	--afa-accent-dark: #7a2c12;
}

/* Article tables are wp-block-table figures: undo core's heavy borders and thick thead rule. */
.tcx-article .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tcx-article .wp-block-table table {
	display: table;
	width: 100%;
	border: 1px solid var(--tcx-line);
	border-collapse: collapse;
	background: var(--tcx-white);
	font-size: 15px;
	line-height: 1.4;
}

.tcx-article .wp-block-table thead {
	border-bottom: 0;
}

.tcx-article .wp-block-table th,
.tcx-article .wp-block-table td {
	padding: 9px 14px;
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--tcx-line);
}

.tcx-article .wp-block-table thead th {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tcx-dim);
	background: var(--tcx-paper2);
	border-bottom: 1px solid var(--tcx-line2);
}

.tcx-article .wp-block-table tbody tr:last-child td {
	border-bottom: 0;
}
