/* =========================================================================
   Travellerio
   The site is an airport. The board announces what is leaving, the cards are
   boarding passes, the type is the one you read at a gate at 6am.
   ========================================================================= */

:root {
	/* Ink and paper. Cool, not cream — this is terminal lighting, not linen. */
	--ink:        #0B1220;
	--ink-soft:   #1C2740;
	--paper:      #EEF1F6;
	--card:       #FFFFFF;
	--rule:       #D6DEEA;
	--muted:      #5E6A82;

	/* Ticket blue does the acting: price, buttons, focus. */
	--ticket:     #1B4DFF;
	--ticket-ink: #0E35C4;

	/* Two signals, used sparingly and never together on one card. */
	--mint:       #00875A;
	--flare:      #E0402A;

	--display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
	--body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	--step--1: clamp(.78rem, .76rem + .1vw, .84rem);
	--step-0:  clamp(1rem, .97rem + .15vw, 1.06rem);
	--step-1:  clamp(1.2rem, 1.13rem + .35vw, 1.4rem);
	--step-2:  clamp(1.5rem, 1.35rem + .75vw, 2rem);
	--step-3:  clamp(2rem, 1.7rem + 1.5vw, 3.1rem);
	--step-4:  clamp(2.6rem, 2rem + 3vw, 4.4rem);

	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius: 14px;
	--shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 24px -12px rgba(11, 18, 32, .18);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--ticket); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0;
}

:focus-visible {
	outline: 2px solid var(--ticket);
	outline-offset: 3px;
	border-radius: 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: -9999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: .75rem 1rem;
	z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
	width: min(1180px, 100%);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* =========================================================== departure board
   The one animated element on the site. It exists because the content is
   genuinely time-critical — not for atmosphere. */

.board {
	background: var(--ink);
	color: #E7ECF6;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0 var(--gutter);
	overflow: hidden;
	font-family: var(--mono);
	font-size: .78rem;
	height: 38px;
}

.board__label {
	flex: none;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #FFC24A;
	padding-right: 1rem;
	border-right: 1px solid rgba(255, 255, 255, .16);
}

.board__track { flex: 1; overflow: hidden; }

.board__list {
	display: flex;
	gap: 2.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	width: max-content;
	animation: board-scroll 42s linear infinite;
}
.board:hover .board__list { animation-play-state: paused; }

.board__row a {
	display: flex;
	gap: .75rem;
	align-items: baseline;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.board__row a:hover .board__route { color: #FFC24A; }

.board__route { letter-spacing: .08em; font-weight: 600; }
.board__price { color: #9FB0CC; }
.board__time { color: #FFC24A; font-variant-numeric: tabular-nums; }

@keyframes board-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ==================================================================== header */

.masthead {
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: saturate(180%) blur(8px);
}

.masthead__inner {
	width: min(1180px, 100%);
	margin-inline: auto;
	padding: .85rem var(--gutter);
	display: flex;
	align-items: center;
	gap: 1rem;
}

.masthead__brand { margin-right: auto; }

.brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	color: var(--ink);
}

.brand__mark {
	font-family: var(--mono);
	font-weight: 700;
	font-size: .82rem;
	line-height: 1;
	letter-spacing: .14em;
	background: var(--ink);
	color: #fff;
	/* Tracking adds a phantom space after the V — trim the right padding so the
	   letters sit optically centered in the tile. */
	padding: .42rem .36rem .42rem .5rem;
	border-radius: 5px;
}

.brand__name {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1;
	letter-spacing: -.03em;
	/* The display face rides high in its box; nudge to the tile's optical center. */
	position: relative;
	top: .05em;
}

.masthead__nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav {
	display: flex;
	gap: 1.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	font-size: .95rem;
}
.nav a:hover { color: var(--ticket); }

.masthead__cta {
	background: var(--ink);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: .9rem;
	padding: .5rem .95rem;
	border-radius: 8px;
}
.masthead__cta:hover { background: var(--ticket); color: #fff; }

.masthead__toggle {
	display: none;
	background: none;
	border: 1px solid var(--rule);
	border-radius: 8px;
	padding: .55rem .6rem;
	cursor: pointer;
}
.masthead__toggle-bars,
.masthead__toggle-bars::before,
.masthead__toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
	content: '';
}
.masthead__toggle-bars { position: relative; }
.masthead__toggle-bars::before { position: absolute; top: -6px; }
.masthead__toggle-bars::after  { position: absolute; top: 6px; }

/* ====================================================================== hero */

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 1.5rem; }

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-family: var(--mono);
	font-size: .74rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 1.2rem;
}
.hero__eyebrow strong { color: var(--ink); }

.hero__dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 3px rgba(0, 135, 90, .18);
}

.hero__title {
	font-size: var(--step-4);
	max-width: 16ch;
	margin: 0 0 1rem;
}

.hero__lede {
	max-width: 58ch;
	color: var(--ink-soft);
	font-size: var(--step-1);
	line-height: 1.45;
	margin: 0;
}

/* ================================================== the boarding pass (card)
   Two panels split by a perforation: journey on the left, price and action on
   the stub. The notches are cut with radial gradients so they scale. */

.deal-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	margin-bottom: 2rem;
}

.pass {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 168px;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	position: relative;
	transition: transform .18s ease, box-shadow .18s ease;
}
.pass:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(11, 18, 32, .06), 0 18px 40px -18px rgba(11, 18, 32, .3);
}
.pass.is-expired { opacity: .55; }

.pass__main { padding: 1.15rem 1.25rem; min-width: 0; }

.pass__meta {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 .6rem;
}

.pass__type {
	font-family: var(--mono);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}

.pass__flag {
	font-family: var(--mono);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--flare);
	border: 1px solid currentColor;
	border-radius: 4px;
	padding: .12rem .35rem;
}

.pass__route { margin: 0 0 .2rem; }
.pass__route a { color: inherit; text-decoration: none; display: flex; align-items: flex-start; gap: .5rem; flex-wrap: wrap; }
.pass__route a:hover .pass__place { color: var(--ticket); }

.pass__od { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }

.pass__place {
	font-family: var(--display);
	font-weight: 700;
	font-size: var(--step-1);
	letter-spacing: -.01em;
	line-height: 1.05;
}

.pass__code {
	font-family: var(--mono);
	font-size: .64rem;
	font-weight: 600;
	letter-spacing: .16em;
	color: var(--muted);
}

.pass__arrow { color: var(--muted); font-size: var(--step-1); line-height: 1; margin-top: .1rem; }

.pass__city {
	margin: 0 0 .55rem;
	font-size: .85rem;
	color: var(--muted);
}

.pass__hook {
	margin: 0 0 .8rem;
	font-size: .92rem;
	line-height: 1.5;
	color: var(--ink-soft);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pass__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem;
	margin: 0;
}
.pass__facts div { min-width: 0; }
.pass__facts dt {
	font-family: var(--mono);
	font-size: .62rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: .15rem;
}
.pass__facts dd {
	margin: 0;
	font-size: .82rem;
	font-weight: 500;
}

/* --- the stub ---------------------------------------------------------- */

.pass__stub {
	position: relative;
	padding: 1.15rem 1rem;
	background: #F7F9FC;
	border-left: 2px dashed var(--rule);
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	gap: .25rem;
}

/* Punched holes at the perforation. */
.pass__stub::before,
.pass__stub::after {
	content: '';
	position: absolute;
	left: -9px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--paper);
	border: 1px solid var(--rule);
}
.pass__stub::before { top: -9px; }
.pass__stub::after  { bottom: -9px; }

.pass__save {
	margin: 0;
	font-family: var(--mono);
	font-weight: 700;
	font-size: 1rem;
	color: var(--mint);
	letter-spacing: .02em;
}
.pass__save span { font-size: .78em; }

.pass__price {
	margin: 0;
	font-family: var(--display);
	font-weight: 800;
	font-size: var(--step-2);
	letter-spacing: -.03em;
	line-height: 1;
}

.pass__ref {
	margin: 0 0 .6rem;
	font-size: .74rem;
	color: var(--muted);
}
.pass__ref s { text-decoration-thickness: 1px; }

.pass__cta {
	display: block;
	background: var(--ticket);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: .88rem;
	padding: .6rem .5rem;
	border-radius: 9px;
	transition: background .15s ease;
}
.pass__cta:hover { background: var(--ticket-ink); color: #fff; }

.pass__clock { margin: .55rem 0 0; }
.pass__clock-label {
	display: block;
	font-family: var(--mono);
	font-size: .6rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.pass__clock-value {
	font-family: var(--mono);
	font-size: .84rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.pass__clock-value.is-urgent { color: var(--flare); }
.pass__clock-value.is-expired { color: var(--muted); }

.pass__verified {
	margin: .4rem 0 0;
	font-size: .68rem;
	color: var(--muted);
}

/* Urgency reads on the stub edge only — no red card, no shouting.
   One signal per card: when the clock is the alarm, the discount goes quiet,
   otherwise the eye gets two competing claims on the same 168 pixels. */
.pass--urgent .pass__stub { background: #FFF6F4; }
.pass--urgent { border-color: #F3C9C0; }
.pass--urgent .pass__save { color: var(--ink-soft); }

.pass--error-fare .pass__stub { background: #FFFBEB; }
.pass--error-fare .pass__save { color: var(--ink-soft); }

.pass--featured {
	grid-template-columns: minmax(0, 1fr) 230px;
}
.pass--featured .pass__price { font-size: var(--step-3); }
.pass--featured .pass__place { font-size: var(--step-2); }
.pass--featured .pass__hook { font-size: var(--step-0); -webkit-line-clamp: 4; }

/* ================================================================== filters */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1rem 0 1.5rem;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 1.75rem;
}

.filters__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
}
.filters__group--sort { margin-left: auto; }

.filters__label {
	font-family: var(--mono);
	font-size: .66rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: .35rem;
}

.chip {
	font-family: var(--mono);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .04em;
	background: var(--card);
	border: 1px solid var(--rule);
	color: var(--ink);
	padding: .35rem .7rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

/* ================================================================ sections */

.section-title {
	font-size: var(--step-2);
	margin: 0 0 .4rem;
}

.section-lede {
	color: var(--muted);
	max-width: 55ch;
	margin: 0 0 1.5rem;
}

.featured, .deals, .journal, .related { padding-block: clamp(2rem, 5vw, 3.5rem); }
.featured { padding-bottom: 0; }

.deals__head { margin-bottom: .5rem; }

.deals__more { text-align: center; margin: 1rem 0 0; }

.button-quiet {
	display: inline-block;
	border: 1px solid var(--ink);
	border-radius: 10px;
	padding: .65rem 1.4rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
}
.button-quiet:hover { background: var(--ink); color: #fff; }

.empty {
	grid-column: 1 / -1;
	color: var(--muted);
	padding: 2rem 0;
}

/* ================================================================== alerts */

.alerts {
	background: var(--ink);
	color: #E7ECF6;
	padding-block: clamp(2.5rem, 6vw, 4rem);
	margin-top: 2rem;
}

.alerts__inner { max-width: 720px; }

/* Restyle the plugin's form for the dark band. */
.alerts .trvio-alert {
	background: transparent;
	border: 0;
	padding: 0;
}
.alerts .trvio-alert__title {
	font-family: var(--display);
	font-size: var(--step-2);
	color: #fff;
	letter-spacing: -.02em;
}
.alerts .trvio-alert__text { color: #A9B7D0; font-size: var(--step-0); }
.alerts .trvio-alert__label { color: #8C9BB8; }
.alerts .trvio-alert__select {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .2);
	color: #fff;
}
.alerts .trvio-alert__select option { color: #0B1220; }
.alerts .trvio-airport-chip {
	background: #fff;
	color: var(--ink);
	border-color: #fff;
}
.alerts .trvio-airport-chip button { background: rgba(11, 18, 32, .12); color: var(--ink); }
.alerts .trvio-airport-chip button:hover { background: rgba(11, 18, 32, .24); }
.alerts .trvio-alert__airports legend { color: #8C9BB8; font-family: var(--mono); }
.alerts .trvio-chip span {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .2);
	color: #E7ECF6;
	font-family: var(--mono);
}
.alerts .trvio-chip input:checked + span {
	background: #fff;
	color: var(--ink);
	border-color: #fff;
}
.alerts .trvio-alert__row input {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .2);
	color: #fff;
}
.alerts .trvio-alert__row input::placeholder { color: #7E8CA8; }
.alerts .trvio-alert__row button { background: var(--ticket); }
.alerts .trvio-alert__row button:hover { background: #3D66FF; }
.alerts .trvio-alert__legal { color: #7E8CA8; }
.alerts .trvio-alert__status.is-ok { color: #45D6A3; }

/* ================================================================= journal */

.journal__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.note {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	overflow: hidden;
}

.note__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.note__body { padding: 1.1rem 1.2rem 1.3rem; }

.note__meta {
	font-family: var(--mono);
	font-size: .68rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	display: flex;
	gap: .5rem;
	margin: 0 0 .5rem;
}

.note__title { font-size: var(--step-1); margin: 0 0 .5rem; }
.note__title a { color: inherit; text-decoration: none; }
.note__title a:hover { color: var(--ticket); }

.note__excerpt { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.note--wide {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	align-items: stretch;
}
.note--wide .note__media {
	position: relative;
	display: block;
	min-height: 200px;
}
.note--wide .note__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
}
.note--wide .note__body {
	padding: 1.3rem 1.5rem 1.4rem;
	align-self: center;
}
.note--wide .note__title { font-size: var(--step-1); }
.note--wide .note__excerpt { font-size: .95rem; line-height: 1.6; }

.stream__list { display: grid; gap: 1.25rem; }
.stream .page-head { padding-bottom: 1.5rem; }

/* ================================================== single deal & articles */

.page-head { padding-block: clamp(2rem, 5vw, 3rem) 1rem; }
.page-head__eyebrow,
.deal-single__eyebrow,
.article__meta {
	font-family: var(--mono);
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 .8rem;
	display: flex;
	gap: .6rem;
	align-items: center;
}
.page-head__title { font-size: var(--step-3); max-width: 22ch; }
.page-head__desc { color: var(--muted); max-width: 60ch; }

.deal-single__head { padding-block: clamp(2rem, 5vw, 3rem) 1.5rem; }
.deal-single__title { font-size: var(--step-3); max-width: 20ch; margin-bottom: .6rem; }

.deal-single__route {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	flex-wrap: wrap;
	margin: 0 0 .8rem;
}
.deal-single__city { color: var(--muted); font-size: .9rem; }

.deal-single__expired {
	color: var(--flare);
	border: 1px solid currentColor;
	border-radius: 4px;
	padding: .1rem .4rem;
}

.deal-single__hook {
	font-size: var(--step-1);
	max-width: 55ch;
	color: var(--ink-soft);
	margin: 0;
}

.deal-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2.5rem;
	align-items: start;
	padding-bottom: 3rem;
}

.deal-single__media { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; }

/* The rail is a full ticket — the card idea, held still. */
.ticket {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.4rem;
	position: sticky;
	top: 84px;
	text-align: center;
}

.ticket__save {
	margin: 0 0 .2rem;
	font-family: var(--mono);
	font-weight: 700;
	color: var(--mint);
}
.ticket__price {
	margin: 0;
	font-family: var(--display);
	font-weight: 800;
	font-size: var(--step-3);
	line-height: 1;
	letter-spacing: -.03em;
}
.ticket__ref { margin: .3rem 0 1.2rem; font-size: .78rem; color: var(--muted); }

.ticket__facts {
	margin: 0 0 1.2rem;
	text-align: left;
	border-top: 1px solid var(--rule);
}
.ticket__facts div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .6rem 0;
	border-bottom: 1px solid var(--rule);
}
.ticket__facts dt {
	font-family: var(--mono);
	font-size: .66rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}
.ticket__facts dd { margin: 0; font-size: .86rem; font-weight: 600; text-align: right; }
.ticket__clock { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ticket__clock.is-urgent { color: var(--flare); }

.ticket__cta {
	display: block;
	background: var(--ticket);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: .8rem 1rem;
	border-radius: 10px;
}
.ticket__cta:hover { background: var(--ticket-ink); color: #fff; }

.ticket__gone { color: var(--muted); font-size: .88rem; margin: 0; }
.ticket__verified { margin: .8rem 0 0; font-size: .72rem; color: var(--muted); }

.tips {
	margin-top: 2rem;
	border-left: 3px solid var(--ticket);
	padding: .2rem 0 .2rem 1.25rem;
}
.tips__title { font-size: var(--step-1); margin: 0 0 .7rem; }
.tips__list { margin: 0; padding-left: 1.1rem; }
.tips__list li { margin-bottom: .5rem; }

.article__head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; max-width: 760px; }
.article__title { font-size: var(--step-3); }
.article__lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 55ch; }
.article__media { margin: 0 auto 2rem; border-radius: var(--radius); overflow: hidden; }
.article__media img {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;
	max-height: 440px;
	object-fit: cover;
}

/* Share row under articles */
.share {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-top: 2.2rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--rule);
}
.share__label {
	font-family: var(--mono);
	font-size: .64rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: .3rem;
}
.share__btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	border: 1px solid var(--rule);
	background: var(--card);
	color: var(--ink-soft);
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.share__btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.share__done {
	font-size: .8rem;
	color: var(--mint);
	font-weight: 600;
}
.article__body { max-width: 760px; padding-bottom: 3rem; }

.prose { font-size: 1.06rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose img { border-radius: 10px; }
.prose blockquote {
	margin-inline: 0;
	padding-left: 1.2rem;
	border-left: 3px solid var(--rule);
	color: var(--ink-soft);
	font-style: italic;
}
.prose code {
	font-family: var(--mono);
	font-size: .9em;
	background: #E4E9F2;
	padding: .1em .35em;
	border-radius: 4px;
}

.trvio-disclosure {
	background: #E4E9F2;
	border-left: 3px solid var(--muted);
	border-radius: 0 8px 8px 0;
}

/* ================================================================== stream */

.stream { padding-block: 2rem 3rem; }
.stream__list { display: grid; gap: 1.25rem; }

/* ============================================================== pagination */

.pagination { padding: 1rem 0 3rem; }
.nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.page-numbers {
	font-family: var(--mono);
	font-size: .85rem;
	padding: .45rem .8rem;
	border: 1px solid var(--rule);
	border-radius: 8px;
	text-decoration: none;
	color: var(--ink);
	background: var(--card);
}
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ================================================================ 404, misc */

.page-404 { padding-block: clamp(3rem, 8vw, 6rem); max-width: 46ch; }
.page-404__text { color: var(--ink-soft); }

.notice-setup { padding-block: 4rem; max-width: 55ch; }

.searchform { display: flex; gap: .5rem; max-width: 420px; }
.searchform input {
	flex: 1;
	padding: .6rem .8rem;
	border: 1px solid var(--rule);
	border-radius: 9px;
	font: inherit;
}
.searchform button {
	padding: .6rem 1.1rem;
	border: 0;
	border-radius: 9px;
	background: var(--ink);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.widget { margin-bottom: 2rem; }
.widget__title { font-size: var(--step-1); margin-bottom: .6rem; }

/* ================================================================== footer */

.colophon {
	background: var(--ink);
	color: #A9B7D0;
	padding-block: 2.5rem;
	font-size: .9rem;
}

.colophon__inner { display: grid; gap: 1.25rem; }

.colophon__brand { display: flex; align-items: center; gap: .8rem; }
.colophon .brand__mark { background: rgba(255, 255, 255, .1); }
.colophon__tagline { margin: 0; }

.nav--footer { flex-wrap: wrap; }
.nav--footer a { color: #E7ECF6; font-size: .9rem; }
.nav--footer a:hover { color: #fff; }

.colophon__legal { margin: 0; font-size: .8rem; color: #7E8CA8; max-width: 70ch; }

/* ============================================================== responsive */

@media (max-width: 900px) {
	.deal-single__layout { grid-template-columns: 1fr; }
	.ticket { position: static; }
	.pass--featured { grid-template-columns: minmax(0, 1fr) 168px; }
}

@media (max-width: 720px) {
	.masthead__toggle { display: block; }

	.masthead__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--card);
		border-bottom: 1px solid var(--rule);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: .5rem var(--gutter) 1rem;
	}
	.masthead__nav.is-open { display: flex; }
	.nav { flex-direction: column; gap: 0; }
	.nav li { border-bottom: 1px solid var(--rule); }
	.nav a { display: block; padding: .8rem 0; }
	.masthead__cta { margin-top: .8rem; text-align: center; }

	.deal-grid { grid-template-columns: 1fr; }

	/* On a phone the pass folds: the stub becomes the bottom half of the
	   ticket, which is how you hold a real one anyway. */
	.pass,
	.pass--featured { grid-template-columns: 1fr; }
	.pass__stub {
		border-left: 0;
		border-top: 2px dashed var(--rule);
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		text-align: left;
		gap: .5rem 1rem;
	}
	.pass__stub::before { top: -9px; left: -9px; }
	.pass__stub::after  { top: -9px; bottom: auto; left: auto; right: -9px; }
	.pass__cta { flex: 1 1 100%; text-align: center; }
	.pass__ref { margin-bottom: 0; }
	.pass__clock { margin-top: 0; }

	.note--wide { grid-template-columns: 1fr; }
	.filters__group--sort { margin-left: 0; }
	.board__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.board__list { animation: none; width: auto; overflow-x: auto; }
	.pass:hover { transform: none; }
}

/* Price-history sparkline (single deal ticket) */
.spark {
	margin: 0 0 1.2rem;
	color: var(--ticket);
}
.spark svg { width: 100%; height: 48px; display: block; }
.spark__cap {
	margin-top: .35rem;
	font-family: var(--mono);
	font-size: .64rem;
	letter-spacing: .04em;
	color: var(--muted);
	text-align: left;
}

/* Cookie notice */
.cookie {
	position: fixed;
	left: 1rem; right: 1rem; bottom: 1rem;
	z-index: 60;
	max-width: 720px;
	margin-inline: auto;
	background: var(--ink);
	color: #E7ECF6;
	border-radius: 14px;
	padding: 1.1rem 1.3rem;
	box-shadow: 0 18px 50px -18px rgba(0,0,0,.6);
	transform: translateY(150%);
	transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cookie.is-visible { transform: none; }
.cookie__text { font-size: .86rem; line-height: 1.5; margin: 0; color: #B7C3DA; }
.cookie__text a { color: #fff; }
.cookie__prefs { margin: .9rem 0 .2rem; display: grid; gap: .55rem; }
.cookie__prefs[hidden] { display: none; }
.cookie__opt { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: #C4CEE0; line-height: 1.4; }
.cookie__opt input { margin-top: .15rem; accent-color: var(--ticket); }
.cookie__opt strong { color: #fff; font-weight: 600; }
.cookie__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.cookie__btn {
	border: 0; cursor: pointer;
	font: 600 .82rem/1 var(--body);
	padding: .6rem 1rem; border-radius: 8px;
}
.cookie__btn--accept { background: var(--ticket); color: #fff; margin-left: auto; }
.cookie__btn--accept:hover { background: #3D66FF; }
.cookie__btn--save { background: var(--mint); color: #fff; }
.cookie__btn--refuse, .cookie__btn--ghost { background: rgba(255,255,255,.1); color: #E7ECF6; }
.cookie__btn--refuse:hover, .cookie__btn--ghost:hover { background: rgba(255,255,255,.2); }

/* Alerts modal */
.alert-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.alert-modal[hidden] { display: none; }
.alert-modal__backdrop {
	position: absolute; inset: 0;
	background: rgba(11,18,32,.55);
	opacity: 0; transition: opacity .3s ease;
	backdrop-filter: blur(2px);
}
.alert-modal.is-open .alert-modal__backdrop { opacity: 1; }
.alert-modal__panel {
	position: relative;
	width: min(560px, calc(100% - 2rem));
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
	background: var(--card);
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
	transform: translateY(12px) scale(.98);
	opacity: 0;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.alert-modal.is-open .alert-modal__panel { transform: none; opacity: 1; }
.alert-modal__close {
	position: absolute; top: .75rem; right: .9rem;
	background: none; border: 0; font-size: 1.6rem; line-height: 1;
	color: var(--muted); cursor: pointer;
}
.alert-modal__close:hover { color: var(--ink); }

/* Back-to-top */
.to-top {
	position: fixed;
	right: 1.1rem; bottom: 1.1rem;
	z-index: 55;
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: var(--ink); color: #fff;
	font-size: 1.1rem; cursor: pointer;
	box-shadow: var(--shadow);
	opacity: 0; transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, background .15s ease;
}
.to-top[hidden] { display: none; }
.to-top.is-shown { opacity: 1; transform: none; }
.to-top:hover { background: var(--ticket); }

/* Footer social + cookie manager */
.colophon__meta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .4rem; }
.social { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social a {
	display: grid; place-items: center;
	width: 34px; height: 34px; border-radius: 8px;
	background: rgba(255,255,255,.08); color: #E7ECF6;
}
.social a:hover { background: var(--ticket); color: #fff; }
.colophon__cookies {
	background: none; border: 0; cursor: pointer;
	color: #7E8CA8; font: inherit; font-size: .82rem;
	text-decoration: underline; text-underline-offset: 2px;
	padding: 0;
}
.colophon__cookies:hover { color: #E7ECF6; }

@media (max-width: 560px) {
	.cookie__btn--accept { margin-left: 0; }
	.cookie__actions { flex-direction: column; }
	.cookie__btn { width: 100%; }
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
	.reveal.is-in { opacity: 1; transform: none; }
}

/* Contact Form 7 — match the theme */
.wpcf7 { max-width: 620px; }
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 1rem; font-size: .92rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	margin-top: .35rem;
	padding: .7rem .85rem;
	border: 1px solid var(--rule);
	border-radius: 10px;
	font: inherit;
	background: var(--card);
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
	outline: 2px solid var(--ticket); outline-offset: 1px; border-color: var(--ticket);
}
.wpcf7 .wpcf7-submit {
	width: auto;
	background: var(--ink); color: #fff;
	border: 0; border-radius: 10px;
	padding: .75rem 1.6rem; font-weight: 600; cursor: pointer;
	margin-top: .5rem;
}
.wpcf7 .wpcf7-submit:hover { background: var(--ticket); }
.wpcf7-response-output {
	border-radius: 10px; padding: .8rem 1rem !important; font-size: .9rem;
	margin: 1rem 0 0 !important;
}

/* Compare-elsewhere row on the deal ticket */
.ticket__compare { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.ticket__compare-label {
	display: block;
	font-family: var(--mono);
	font-size: .6rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: .3rem;
}
.ticket__compare-links { font-size: .82rem; }
.ticket__compare-links a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.ticket__compare-links a:hover { color: var(--ticket); }

/* Travellerio index — the trading signal */
.pass__index {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin: 0 auto .35rem;
	padding: .25rem .55rem .25rem .3rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--card);
	cursor: help;
}
.pass__index-value {
	display: grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	font: 700 .72rem/1 var(--mono);
}
.pass__index-label {
	font: 600 .64rem/1 var(--mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.ticket__index {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 0 0 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rule);
	text-align: left;
}
.ticket__index-value {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	font: 700 1rem/1 var(--mono);
	flex: none;
}
.ticket__index-text { display: flex; flex-direction: column; }
.ticket__index-text strong { font-size: .95rem; letter-spacing: -.01em; }
.ticket__index-text span:not(strong) {
	font: 500 .64rem/1.4 var(--mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Market strip on the hero */
.market {
	display: flex;
	gap: 2.2rem;
	flex-wrap: wrap;
	margin: 1.8rem 0 0;
	padding-top: 1.4rem;
	border-top: 1px solid var(--rule);
}
.market__item dt {
	font-family: var(--mono);
	font-size: .64rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: .25rem;
}
.market__item dd {
	margin: 0;
	font-family: var(--display);
	font-weight: 800;
	font-size: var(--step-2);
	line-height: 1;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}
.market__best { color: var(--mint); }

/* Narrow cards: let the hook take a 4th line instead of clipping mid-phrase */
@media (max-width: 900px) {
	.pass__hook { -webkit-line-clamp: 4; }
}

/* Continuous reading on carnets */
.read-next {
	max-width: var(--measure, 720px);
	margin: 2.5rem auto 3rem;
	padding-inline: 1.25rem;
	text-align: center;
}
.read-next__label {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-family: var(--mono);
	font-size: .68rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}
.read-next__spinner {
	width: 13px; height: 13px;
	border: 2px solid var(--rule);
	border-top-color: var(--ticket);
	border-radius: 50%;
	animation: trvio-spin .8s linear infinite;
}
@keyframes trvio-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.read-next__spinner { animation: none; }
}
.read-next__btn {
	border: 1px solid var(--ink);
	background: var(--ink);
	color: #fff;
	font: 600 .9rem/1 var(--body);
	padding: .85rem 1.6rem;
	border-radius: 10px;
	cursor: pointer;
}
.read-next__btn:hover { background: var(--ticket); border-color: var(--ticket); }
.read-next__end {
	font-family: var(--mono);
	font-size: .68rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}

.read-divider {
	position: relative;
	max-width: 1120px;
	margin: 3.5rem auto 2.5rem;
	padding-inline: 1.25rem;
	text-align: center;
}
.read-divider::before {
	content: "";
	position: absolute;
	left: 1.25rem; right: 1.25rem; top: 50%;
	border-top: 1px solid var(--rule);
}
.read-divider span {
	position: relative;
	background: var(--bg);
	padding: 0 1rem;
	font-family: var(--mono);
	font-size: .64rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}
