/*
 * onwardsky/v9-section: shared tokens and resets for the V9 sections.
 * Section layout comes from the generated sections/*.css files.
 * Tokens: final V9 (teal) values; the main ones follow theme.json presets
 * so Global Styles colour changes reach these sections too.
 */

.osv {
	--c-101828: var(--wp--preset--color--ink, #12262A);
	--c-156970: var(--wp--preset--color--accent, #156970);
	--c-0B283D: var(--wp--preset--color--heading, #0E2F34);
	--c-27A3B5: var(--wp--preset--color--accent-bright, #21A1A3);
	--c-E3EEF2: #E5EBEB;
	--c-FF6800: #CC4700;
	--c-EE6100: #B33E00;
	--c-D3E6ED: var(--wp--preset--color--border, #D5E4E4);
	--c-EEF4F6: #EEF2F2;
	--c-E4F5FB: var(--wp--preset--color--surface, #E7F3F3);
	--c-344A5C: var(--wp--preset--color--secondary, #33484B);
	--c-CFE3EA: #D1E1E1;
	--c-4A6275: var(--wp--preset--color--muted, #4A6266);
	--c-EEF6F9: var(--wp--preset--color--surface-alt, #EFF4F4);
	--c-C6DAE2: var(--wp--preset--color--border-strong, #C6D7D7);
	--c-DCE9EE: var(--wp--preset--color--divider, #DDE7E7);
	--c-9CCAD6: #9DCACC;
	--c-F7FCFD: #F5FAFA;
	--c-DCE6EA: #DCE4E4;
	--c-7FD6E3: #86D6D2;
	--c-BFD6DF: #BFD3D3;
	--c-A9C2CE: #ABC2C1;
	--c-D5E6EC: #D7E4E4;
	--c-24394A: #23373A;
	--c-C9DEE6: #CCDDDD; /* V9 #C9DBDB, lightened to 4.55:1 on teal (WCAG AA) */
	--c-06222F: #0F2A2B;
	--c-7FB9C8: #8AB8B0;
	--c-9ADDE7: #A2DEDB;
	--c-CFEFF4: #D6ECE8;
	--c-F2F8FA: #EFF6F6;
	--c-E4EEF2: #E5EBEC;
	--c-9CB3BF: #9DB3B3;
	--c-163650: #184249;
	--c-B5D2DE: #B7D4D9;
	--c-2E5470: #2B4E69;
	--c-4A6E87: #4C6E73;
	--c-FFD2B0: #FFD3BA;
	--c-BFE9F0: #C8E6E1;
	--c-0F5B61: #0F5A60;
	--c-F4FBFD: #F4F8F8;
	--c-CBE7EE: #D0E4E2;
	--c-B9D9E2: #BCD6D4;
	--c-FFE6D3: #FFE7D9;
	--c-9CC4D0: #9DC4C7;
	--c-F1F9FB: #EEF7F7;
	--c-123A55: #15393E;
	--c-DCEAF0: #DDE8E9;
	--c-F5FAFC: #F2F8F8;
	--c-5F7484: #5F7477;
	--c-C9E1E9: #CADEDD;
	--c-10344E: #134046;
	--c-071D2D: #0A262A;
	--c-8FAAB8: #90AAAA;
	--c-B9CDD6: #BACED2;
	--c-F2F9FB: #EFF7F7;
	--c-7A3300: #7A2E00;
	--c-F2C9A8: #F2CAB1;
	--c-FFF1E6: #FFEDE7;
	--c-D3DEE3: #D1DBDC;
	--c-1E2B36: #243437;
	--c-9AABB5: #9AABAC;
	--c-1E3A52: #1D393E;
	--c-33475B: #30464A;
	--c-E1EBEF: #E1E9E9;
	--r-0B283D: 14,47,52;
	--r-27A3B5: 33,161,163;
	--r-7FD6E3: 134,214,210;
	--r-E4F5FB: 231,243,243;
	--r-B8E4F1: 189,225,223;
	--r-FF6800: 204,71,0;
	--os-bg: #FFFFFF;
	--os-bg-rgb: 255,255,255;
	--os-cta-ink: #FFFFFF;
	--os-cta-bg: var(--wp--preset--color--cta, #C94300);
	--os-cta-bg-h: var(--wp--preset--color--cta-hover, #B33C00);
	--os-cta-bg-a: var(--wp--preset--color--cta-active, #9C3200);
	--os-cta-r: 10px;
	--os-cta-sh: 0 1px 2px rgba(122,51,0,.28),0 8px 18px -10px rgba(201,67,0,.6);
	--os-cta-sh-h: 0 1px 2px rgba(122,51,0,.3),0 12px 22px -12px rgba(179,60,0,.7);
	--os-on-cta: #FFFFFF;
	--os-on-cta-d: #FFFFFF;
	--os-font: 'Figtree',system-ui,sans-serif;
	--os-fsa: none;
	--os-fix-ws: normal;
	--s02: #F1F7F7;
	--s04: var(--wp--preset--color--deep, #0F555B);
	--sft: var(--wp--preset--color--surface-soft, #F3F8F8);
}

/* The route line after the last section sits outside .osv, and directly in the page
   content, so it needs the colour token and the full page width here. */
.osv-human-support + div {
	--c-156970: var(--wp--preset--color--accent, #156970);
	max-width: none;
	margin-block: 0;
	/* Core's constrained layout centres children with !important. */
	margin-inline: calc(var(--wp--style--root--padding-left) * -1) calc(var(--wp--style--root--padding-right) * -1) !important;
}

/* Booking process cards, centred in each ring. They sit beside the SVG because iOS Safari
   draws positioned or transformed content in a foreignObject outside the SVG at full size.
   Scale = 0.66 x ring diameter / 200, following --v-orbD in sections/booking-process.css. */
.osv-orb-art {
	--osv-orb-scale: .528;
	position: absolute;
	inset: 6%;
	overflow: hidden;
	border-radius: 50%;
	isolation: isolate;
	pointer-events: none;
}

.osv-orb-art__in {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	height: 200px;
	transform: translate(-50%, -50%) scale(var(--osv-orb-scale));
}

@media (max-width: 379.98px) {
	.osv-orb-art {
		--osv-orb-scale: .4752;
	}
}

@media (min-width: 720px) and (max-width: 899.98px) {
	.osv-orb-art {
		--osv-orb-scale: .6072;
	}
}

@media (min-width: 900px) and (max-width: 1199.98px) {
	.osv-orb-art {
		--osv-orb-scale: .6996;
	}
}

@media (min-width: 1200px) {
	.osv-orb-art {
		--osv-orb-scale: .7788;
	}
}

/* V9 sets no body line-height and relies on browser heading defaults where
   it sets no value; neutralise theme.json element styles inside sections. */
.osv {
	line-height: normal;
}

/* Front end only: sections off screen skip style/layout/paint until needed
   (faster first paint on a throttled phone). view.js renders each
   once when idle so the remembered height is exact for in-page links. The first
   two sections can be partly in the first viewport, so they always render
   (skipping them caused a 0.05 layout shift on desktop). */
.wp-site-blocks section.osv[data-v9] ~ section.osv[data-v9] ~ section.osv[data-v9] {
	content-visibility: auto;
	contain-intrinsic-size: auto 800px;
}

.osv :is(h1, h2, h3, h4, h5, h6) {
	font-size: revert;
	line-height: revert;
	letter-spacing: revert;
	color: revert;
}

/* Illustration labels follow the site font from Global Styles (V9 fixed
   them to Figtree via a presentation attribute; CSS takes precedence). */
.osv svg text {
	font-family: inherit;
}

/* <picture> only chooses AVIF or WebP; the <img> keeps V9's layout. */
.osv picture {
	display: contents;
}

.osv a {
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.osv [data-cta]:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 2px #fff, 0 0 0 5px #0B283D !important;
}

.osv [data-v9-click] {
	-webkit-tap-highlight-color: transparent;
}

.osv [data-v9-track]::-webkit-scrollbar {
	display: none;
}

@keyframes osMarq {
	to {
		transform: translateX(-50%);
	}
}

@keyframes osBlink {
	0%, 100% { opacity: .25; }
	50% { opacity: 1; }
}

@keyframes osSpin {
	to {
		transform: rotate(360deg);
	}
}

/* Airline strip: pause on hover/focus (V9 behaviour, no pause button). */
.osv-airline-strip div:has(> ul):hover > ul,
.osv-airline-strip div:has(> ul):focus-within > ul {
	animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
	.osv-airline-strip div:has(> ul) {
		overflow-x: auto !important;
		-webkit-mask-image: none !important;
		mask-image: none !important;
	}

	.osv-airline-strip ul {
		flex-wrap: wrap !important;
		justify-content: center !important;
		width: 100% !important;
		animation: none !important;
	}

	.osv-airline-strip li[aria-hidden="true"] {
		display: none !important;
	}
}

/* Sample-ticket dialog (V9 modal), native <dialog> for focus and Escape. */
.osv-modal {
	width: 100%;
	max-width: 780px;
	max-height: calc(100% - 2 * clamp(10px, 3vw, 40px));
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	color: var(--c-0B283D);
}

.osv-modal[open] {
	display: flex;
	flex-direction: column;
}

.osv-modal::backdrop {
	background: rgba(var(--r-0B283D), .72);
}

.osv-modal__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 12px 20px;
	border-bottom: 1px solid var(--c-E3EEF2);
}

.osv-modal__title {
	flex: 1;
	min-width: 0;
}

.osv-modal__title strong {
	display: block;
	font-size: 17px;
	font-weight: 700;
}

.osv-modal__title span {
	display: block;
	font-size: 13.5px;
	color: var(--c-4A6275);
}

.osv-modal__close {
	width: 44px;
	height: 44px;
	border: 1px solid var(--c-D3E6ED);
	border-radius: 10px;
	background: #fff;
	color: var(--c-0B283D);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.osv-modal__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(10px, 2vw, 20px);
	overflow: auto;
	background: var(--c-EEF4F6);
}

.osv-modal__body img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}
