/*
Theme Name:   Island eSIM (GeneratePress child)
Template:     generatepress
Version:      0.3.0
Description:  Child theme for the Island eSIM comparison site. Tokens and components: docs/design-spec.md.
Text Domain:  ise-child
*/

/* ==========================================================================
   1. Tokens (design-spec §4). Pink is decoration only, never text or controls.
   ========================================================================== */
:root {
	--ise-ink: #1c2530;
	--ise-muted: #55606e;
	--ise-ocean: #0b5e8e;
	--ise-ocean-dark: #084a70;
	--ise-ocean-tint: #e8f1f7;
	--ise-pink: #e7849b;
	--ise-pink-tint: #fbe9ee;
	--ise-best: #3a9a5b; /* edge of "cheapest" rows and cards (decoration) */
	--ise-best-wash: #f1f8f3; /* background of "cheapest" rows and cards */
	--ise-best-tint: #dcefe2; /* "Cheapest …" badge */
	--ise-pink-text: #b0405c;
	--ise-bg: #ffffff;
	--ise-surface: #f4f7fa;
	--ise-border: #d9e0e7;
	--ise-control: #8795a4;
	--ise-ok: #1e6b34;
	--ise-ok-bg: #e6f4ea;
	--ise-warn: #7a4b00;
	--ise-warn-bg: #fff3d6;
	--ise-bad: #a12b2b;
	--ise-bad-bg: #fdecec;

	/* Section bands: hero tint, alternating band, closing CTA band, footer. */
	--ise-hero-bg: #eef5fa;
	--ise-band-bg: #f5f8fb;
	--ise-navy: #0c2a3f;
	--ise-on-navy: #d3e0ea;

	--ise-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ise-fs-h1: 30px;
	--ise-fs-h2: 24px;
	--ise-fs-h3: 18px;
	--ise-fs-body: 17px;
	--ise-fs-small: 15px;
	--ise-fs-price: 24px;

	--ise-s1: 4px;
	--ise-s2: 8px;
	--ise-s3: 12px;
	--ise-s4: 16px;
	--ise-s5: 24px;
	--ise-s6: 32px;
	--ise-s7: 48px;
	--ise-s8: 64px;
	--ise-section-y: 48px;

	--ise-radius: 10px;
	--ise-radius-lg: 14px;
	--ise-radius-sm: 6px;
	--ise-shadow: 0 1px 2px rgba(16, 32, 48, 0.05), 0 2px 6px rgba(16, 32, 48, 0.05);
	--ise-gutter: 16px;
	--ise-wide: 72rem;
	--ise-article: 42rem;
	--ise-prose: 48rem;
}

@media (min-width: 640px) {
	:root { --ise-gutter: 24px; }
}

@media (min-width: 960px) {
	:root {
		--ise-fs-h1: 40px;
		--ise-fs-h2: 30px;
		--ise-fs-h3: 20px;
		--ise-fs-body: 18px;
		--ise-section-y: 72px;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */
body {
	background: var(--ise-bg);
	color: var(--ise-ink);
	font-family: var(--ise-font);
	font-size: var(--ise-fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	color: var(--ise-ink);
	font-family: var(--ise-font);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1, .entry-title {
	font-size: var(--ise-fs-h1);
	font-weight: 750;
	line-height: 1.15;
	margin-bottom: var(--ise-s3);
}

h2 {
	font-size: var(--ise-fs-h2);
	font-weight: 700;
	line-height: 1.2;
	margin: var(--ise-s7) 0 var(--ise-s4);
}

h3 {
	font-size: var(--ise-fs-h3);
	font-weight: 650;
	line-height: 1.3;
	margin: var(--ise-s5) 0 var(--ise-s2);
}

a {
	color: var(--ise-ocean);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover { color: var(--ise-ocean-dark); text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible {
	outline: 3px solid var(--ise-ocean);
	outline-offset: 2px;
}

p, ul, ol { margin-bottom: var(--ise-s4); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* GeneratePress containers: our own gutters and widths. */
.site.grid-container,
.grid-container {
	max-width: none;
	padding: 0;
}

.one-container .site-content,
.separate-containers .site-content {
	padding: 0 var(--ise-gutter) var(--ise-s7);
	max-width: var(--ise-wide);
	margin: 0 auto;
}

.one-container .container .site-content .inside-article,
.inside-article {
	padding: 0;
}

.site-main { margin: 0 !important; }

.entry-header { margin-bottom: var(--ise-s2); }

.entry-header .entry-title { margin-bottom: 0; }

.entry-content > * { margin-left: auto; margin-right: auto; }

/* GeneratePress adds 2em above the content; the byline sits right under the H1. */
.entry-header + .entry-content,
.entry-content:not(:first-child) { margin-top: var(--ise-s3); }

/* Article pages: 42rem measure. */
.ise-layout-article .site-main,
.ise-layout-article .ise-crumbs {
	max-width: var(--ise-article);
	margin-left: auto !important;
	margin-right: auto !important;
}

.ise-meta,
.ise-meta a {
	color: var(--ise-muted);
	font-size: var(--ise-fs-small);
}

.screen-reader-text,
.ise-table caption {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ise-icon { vertical-align: -3px; flex: none; }

/* ==========================================================================
   3. Page sections. The publish script wraps the intro (everything before
   the first H2) in .ise-intro and each H2 in a <section class="ise-section">.
   On wide pages they become full-width bands; the band colour is painted
   past the content column with border-image, which never causes sideways
   scrolling.
   ========================================================================== */
.ise-band,
.ise-layout-wide .ise-crumbs,
.ise-layout-wide .entry-header,
.ise-layout-wide .ise-intro,
.ise-layout-wide .ise-section--alt,
.ise-layout-wide .ise-section--cta {
	border-image: conic-gradient(var(--ise-band, var(--ise-band-bg)) 0 0) fill 0 // 0 100vmax;
}

.ise-layout-wide .ise-crumbs,
.ise-layout-wide .entry-header,
.ise-layout-wide .ise-intro { --ise-band: var(--ise-bg); }

.ise-layout-wide .site-content { padding-top: 0; }

.ise-layout-wide .ise-crumbs { margin: 0; padding-top: var(--ise-s4); }

.ise-layout-wide .entry-header { margin: 0; padding-top: var(--ise-s3); }

.ise-layout-wide .entry-content { margin-top: 0 !important; }

.ise-layout-wide .ise-intro { padding: var(--ise-s3) 0 var(--ise-s6); }

/* The intro and the first section are both white: a hairline divides them. */
.ise-layout-wide:not(.home) .ise-intro + .ise-section:not(.ise-section--alt) { border-top: 1px solid var(--ise-border); }

/* Comparison intro on desktop: byline, disclosure and answer on the left, the
   jump list in the right-hand column level with the answer box. */
@media (min-width: 960px) {
	.ise-layout-wide:not(.home) .ise-intro:has(> .ise-jump) {
		column-gap: var(--ise-s7);
		display: grid;
		grid-template-columns: minmax(0, var(--ise-prose)) minmax(12rem, 1fr);
	}
	.ise-layout-wide:not(.home) .ise-intro:has(> .ise-jump) > * { grid-column: 1; }
	.ise-layout-wide:not(.home) .ise-intro:has(> .ise-jump) > .ise-answer,
	.ise-layout-wide:not(.home) .ise-intro:has(> .ise-jump) > .ise-verdict { margin-bottom: 0; }
	.ise-layout-wide:not(.home) .ise-intro > .ise-jump { grid-column: 2; grid-row: 1 / span 20; align-self: start; margin-top: var(--ise-s2); }
}

.ise-layout-wide .ise-intro > :last-child { margin-bottom: 0; }

.ise-layout-wide .ise-section { padding: var(--ise-section-y) 0; }

.ise-layout-wide .ise-section > h2:first-child { margin-top: 0; }

.ise-layout-wide .ise-section > :last-child { margin-bottom: 0; }

/* Two white sections in a row need a divider. */
.ise-layout-wide .ise-section:not(.ise-section--alt):not(.ise-section--cta) + .ise-section:not(.ise-section--alt):not(.ise-section--cta) { border-top: 1px solid var(--ise-border); }

/* Prose keeps a readable measure inside wide sections; grids and tables use the full width. */
.ise-layout-wide .ise-intro > p,
.ise-layout-wide .ise-section > p,
.ise-layout-wide .ise-section > ul:not([class]),
.ise-layout-wide .ise-section > ol:not([class]),
.ise-layout-wide .ise-section > h3,
.ise-layout-wide .ise-faq__item,
.ise-layout-wide .ise-answer,
.ise-layout-wide .ise-verdict,
.ise-layout-wide .ise-toc,
.ise-layout-wide .ise-callout,
.ise-layout-wide .entry-title {
	max-width: var(--ise-prose);
	margin-left: 0;
	margin-right: 0;
}

/* Article pages: sections are separated by space and a hairline, not bands. */
.ise-layout-article .ise-section { border-top: 1px solid var(--ise-border); margin-top: var(--ise-s7); }

.ise-layout-article .ise-section > h2:first-child { margin-top: var(--ise-s6); }

.ise-layout-article .ise-section--cta { border-top: 0; }

/* Home hero: H1 (moved into .ise-intro by functions.php), intro, buttons and
   figures on a Bermuda coast photo under a navy overlay. The overlay is darkest
   behind the text: white text keeps at least 7:1 contrast even over white sand.
   The photo layer is full-bleed; .site clips it so nothing scrolls sideways. */
.home .site { overflow-x: clip; }

.home .ise-hero {
	--ise-band: var(--ise-navy);
	color: #fff;
	isolation: isolate;
	padding: var(--ise-s7) 0;
	position: relative;
}

.home .ise-hero::before {
	background:
		linear-gradient(180deg, rgba(8, 32, 50, 0.6) 0%, rgba(8, 32, 50, 0.8) 40%, rgba(8, 32, 50, 0.93) 100%),
		url("assets/img/hero-bermuda-coast-600-20260930.webp") center top / cover no-repeat,
		var(--ise-navy);
	bottom: 0;
	content: "";
	left: calc(50% - 50vw);
	position: absolute;
	right: calc(50% - 50vw);
	top: 0;
	z-index: -1;
}

.home .ise-hero .entry-title {
	color: #fff;
	font-size: calc(var(--ise-fs-h1) + 4px);
	letter-spacing: -0.025em;
	margin: 0 0 var(--ise-s4);
	max-width: 20ch;
	text-shadow: 0 1px 12px rgba(8, 32, 50, 0.35);
}

.home .ise-hero > h1 + p { color: #dce8f1; font-size: calc(var(--ise-fs-body) + 1px); line-height: 1.6; max-width: 38rem; }

.home .ise-hero a:focus-visible { outline-color: #fff; }

/* Buttons on the dark photo: solid white primary, outlined secondary. */
.home .ise-hero .ise-btn--primary,
.home .ise-hero .ise-btn--primary:visited { background: #fff; border-color: #fff; color: var(--ise-ocean-dark); }

.home .ise-hero .ise-btn--primary:hover { background: var(--ise-ocean-tint); border-color: var(--ise-ocean-tint); color: var(--ise-ocean-dark); }

.home .ise-hero .ise-btn--secondary { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }

.home .ise-hero .ise-btn--secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* Figures: frosted dark tiles. */
.home .ise-hero .ise-stats li {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background: rgba(8, 32, 50, 0.45);
	border-color: rgba(255, 255, 255, 0.18);
}

.home .ise-hero .ise-stats__value { color: #fff; }

.home .ise-hero .ise-stats__label { color: #c9dae7; }

/* Desktop: text left, figures right; the overlay lightens towards the right so the coast shows. */
@media (min-width: 960px) {
	.home .ise-hero { align-items: center; column-gap: var(--ise-s7); display: grid; grid-template-columns: minmax(0, 1fr) 24rem; padding: 88px 0 96px; }
	.home .ise-hero::before {
		background:
			linear-gradient(90deg, rgba(8, 32, 50, 0.93) 0%, rgba(8, 32, 50, 0.86) 42%, rgba(8, 32, 50, 0.45) 68%, rgba(8, 32, 50, 0.15) 100%),
			url("assets/img/hero-bermuda-coast-1600-20260930.webp") center / cover no-repeat,
			var(--ise-navy);
	}
	.home .ise-hero > * { grid-column: 1; }
	.home .ise-hero > .ise-stats { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: repeat(2, 1fr); margin: 0; }
	.home .ise-hero .entry-title { font-size: 52px; line-height: 1.08; }
	.home .ise-hero > h1 + p { font-size: 20px; }
	.home .ise-hero .ise-actions { margin-bottom: 0; }
}

/* Closing call-to-action band. */
.ise-section--cta {
	--ise-band: var(--ise-ocean-tint);
	background: var(--ise-ocean-tint);
	text-align: center;
}

.ise-layout-article .ise-section--cta { border-radius: var(--ise-radius-lg); padding: var(--ise-s6) var(--ise-s5); }

.ise-section--cta p { color: var(--ise-ink); margin-left: auto !important; margin-right: auto !important; max-width: 36rem; }

.ise-section--cta .ise-actions { justify-content: center; }

/* A page that ends in a full-width band meets the footer with no white strip between. */
.ise-layout-wide .site-content:has(.entry-content > .ise-section:last-child) { padding-bottom: 0; }

/* ==========================================================================
   4. Header and menu (§3.2). Not sticky; the menu is a <details>.
   ========================================================================== */
.ise-header { border-bottom: 1px solid var(--ise-border); background: var(--ise-bg); }

.ise-header__inner {
	align-items: center;
	display: flex;
	gap: var(--ise-s2);
	margin: 0 auto;
	max-width: var(--ise-wide);
	min-height: 64px;
	padding: var(--ise-s2) var(--ise-gutter);
	position: relative;
}

.ise-logo {
	align-items: center;
	color: var(--ise-ink);
	display: inline-flex;
	font-size: 19px;
	font-weight: 750;
	gap: var(--ise-s2);
	letter-spacing: -0.01em;
	margin-right: auto;
	min-height: 44px;
	text-decoration: none;
	white-space: nowrap;
}

.ise-logo:hover { color: var(--ise-ink); }

.ise-nav { display: none; }

.ise-header__cta.ise-btn { font-size: 15px; min-height: 44px; padding: 0 var(--ise-s4); white-space: nowrap; width: auto; }

.ise-menu > summary {
	align-items: center;
	border-radius: var(--ise-radius);
	color: var(--ise-ink);
	cursor: pointer;
	display: inline-flex;
	gap: var(--ise-s1);
	justify-content: center;
	list-style: none;
	min-height: 44px;
	min-width: 44px;
	padding: 0 var(--ise-s2);
}

.ise-menu > summary:hover,
.ise-menu[open] > summary { background: var(--ise-surface); }

.ise-menu > summary::-webkit-details-marker { display: none; }

.ise-menu__label { font-size: var(--ise-fs-small); font-weight: 600; }

.ise-menu__panel {
	background: var(--ise-bg);
	border-bottom: 1px solid var(--ise-border);
	box-shadow: 0 12px 24px rgba(16, 32, 48, 0.08);
	left: 0;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 50;
}

.ise-menu__panel ul {
	list-style: none;
	margin: 0 auto;
	max-width: var(--ise-wide);
	padding: var(--ise-s2) var(--ise-gutter) var(--ise-s4);
}

.ise-menu__panel li + li a { border-top: 1px solid var(--ise-border); }

.ise-menu__panel a {
	align-items: center;
	color: var(--ise-ink);
	display: flex;
	font-weight: 500;
	justify-content: space-between;
	min-height: 52px;
	text-decoration: none;
}

.ise-menu__panel a::after { color: var(--ise-control); content: "›"; font-size: 22px; }

.ise-menu__panel a[aria-current] { color: var(--ise-ocean); font-weight: 650; }

@media (max-width: 400px) {
	.ise-logo { font-size: 17px; }
	.ise-logo__mark { width: 24px; height: 24px; }
	.ise-menu__label { display: none; }
	.ise-header__cta.ise-btn { padding: 0 var(--ise-s3); }
}

@media (min-width: 960px) {
	.ise-nav { display: block; margin-right: auto; }
	.ise-nav__list { display: flex; gap: var(--ise-s1); list-style: none; margin: 0; }
	.ise-nav a {
		border-radius: var(--ise-radius-sm);
		color: var(--ise-ink);
		display: inline-flex;
		align-items: center;
		font-size: 16px;
		font-weight: 500;
		min-height: 44px;
		padding: 0 var(--ise-s3);
		text-decoration: none;
	}
	.ise-nav a:hover { background: var(--ise-surface); color: var(--ise-ink); }
	.ise-nav a[aria-current] { color: var(--ise-ocean); box-shadow: inset 0 -2px 0 var(--ise-ocean); border-radius: 0; }
	.ise-menu { display: none; }
	.ise-logo { margin-right: var(--ise-s6); }
}

/* ==========================================================================
   5. Breadcrumbs: parent only on mobile.
   ========================================================================== */
.ise-crumbs { font-size: var(--ise-fs-small); margin: var(--ise-s3) 0 var(--ise-s1); }

.ise-crumbs ol { display: flex; flex-wrap: wrap; gap: var(--ise-s1); list-style: none; margin: 0; }

.ise-crumbs li { color: var(--ise-muted); }

.ise-crumbs li + li::before { content: "›"; margin-right: var(--ise-s1); color: var(--ise-muted); }

.ise-crumbs a { color: var(--ise-muted); text-decoration: none; }

.ise-crumbs a:hover { color: var(--ise-ocean); text-decoration: underline; }

@media (max-width: 639px) {
	.ise-crumbs li { display: none; }
	.ise-crumbs li.ise-crumbs__parent { display: block; }
	.ise-crumbs li.ise-crumbs__parent::before { content: "‹"; margin-right: var(--ise-s1); }
	.ise-crumbs li.ise-crumbs__parent a { min-height: 44px; display: inline-flex; align-items: center; }
	.ise-layout-wide .ise-crumbs { padding-top: var(--ise-s1); }
}

/* Country flags (ISE_Countries::flag): a thin edge so white flag parts don't melt into the page. */
.ise-flag {
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(16, 32, 48, 0.14);
	flex: none;
	height: 0.75em;
	width: auto;
}
.ise-flagged { align-items: center; display: inline-flex; gap: var(--ise-s2); }
.entry-title > .ise-flag { margin-right: 0.3em; vertical-align: 0.02em; }
.ise-btn .ise-flag { height: 15px; }

/* ==========================================================================
   6. Buttons (§6.3) and action rows
   ========================================================================== */
.ise-btn {
	align-items: center;
	border: 2px solid var(--ise-ocean);
	border-radius: var(--ise-radius);
	cursor: pointer;
	display: inline-flex;
	font-size: 16px;
	font-weight: 650;
	gap: var(--ise-s1);
	justify-content: center;
	line-height: 1.2;
	min-height: 48px;
	padding: var(--ise-s2) var(--ise-s5);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.1s, border-color 0.1s, color 0.1s;
}

.ise-btn:hover { text-decoration: none; }

/* Every link state spelled out: GP's "a:hover, a:focus, a:active" colour would
   otherwise turn the text dark (e.g. the code pop-up's focused button). */
.ise-btn--primary,
.ise-btn--primary:link,
.ise-btn--primary:visited,
.ise-btn--primary:focus { background: var(--ise-ocean); color: #fff; }

.ise-btn--primary:hover,
.ise-btn--primary:active,
.ise-btn--primary:visited:hover,
.ise-btn--primary:focus:hover { background: var(--ise-ocean-dark); border-color: var(--ise-ocean-dark); color: #fff; }

.ise-btn--secondary { background: #fff; color: var(--ise-ocean); }

.ise-btn--secondary:hover { background: var(--ise-ocean-tint); color: var(--ise-ocean-dark); }

/* A row of buttons and links; wraps on small screens without stray separators. */
.ise-actions,
.ise-cta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ise-s3) var(--ise-s4);
	margin: var(--ise-s5) 0;
}

.ise-actions > a:not(.ise-btn) { font-weight: 600; }

@media (max-width: 639px) {
	.ise-intro .ise-actions > .ise-btn { flex: 1 1 100%; }
}

/* A link that closes a section: "See all 141 plans →". */
.ise-more { margin-top: var(--ise-s5); }

.ise-more a { font-weight: 650; text-decoration: none; }

.ise-more a::after { content: " →"; }

.ise-more a:hover { text-decoration: underline; }

/* ==========================================================================
   7. Disclosure (§6.1), answer box (§6.2), callouts (§6.10), stats
   ========================================================================== */
.ise-disclosure {
	align-items: flex-start;
	color: var(--ise-muted);
	display: flex;
	font-size: 14px;
	gap: var(--ise-s2);
	line-height: 1.5;
	margin: var(--ise-s2) 0 var(--ise-s4);
	max-width: var(--ise-prose);
}

.ise-disclosure .ise-icon { margin-top: 2px; }

.ise-disclosure a { color: var(--ise-muted); }

.ise-intro > .ise-meta::before {
	background: var(--ise-ok);
	content: "";
	display: inline-block;
	height: 15px;
	margin-right: 6px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%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'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
	vertical-align: -2px;
	width: 15px;
}

/* Inside the answer or verdict box the line sits just above the button, small and quiet. */
.ise-answer .ise-disclosure,
.ise-verdict .ise-disclosure { font-size: 13px; margin: var(--ise-s4) 0 0; }

.ise-answer .ise-disclosure .ise-icon,
.ise-verdict .ise-disclosure .ise-icon { display: none; }

.ise-answer .ise-disclosure + .ise-actions,
.ise-verdict .ise-disclosure + .ise-actions { margin-top: var(--ise-s3); }

/* Answer box and verdict box (provider reviews) share one look: a tinted
   panel with a small uppercase label and a pink bar. */
.ise-answer,
.ise-verdict {
	background: var(--ise-ocean-tint);
	border-radius: var(--ise-radius-lg);
	margin: var(--ise-s4) 0 var(--ise-s5);
	padding: var(--ise-s5) var(--ise-s4);
}

@media (min-width: 640px) {
	.ise-answer,
	.ise-verdict { padding: var(--ise-s6); }
}

.ise-answer > h2,
.ise-verdict > h2 {
	align-items: center;
	color: var(--ise-ocean);
	display: flex;
	font-size: 13px;
	gap: var(--ise-s2);
	letter-spacing: 0.08em;
	margin: 0 0 var(--ise-s3);
	text-transform: uppercase;
}

.ise-answer > h2::before,
.ise-verdict > h2::before { background: var(--ise-pink); border-radius: 2px; content: ""; height: 4px; width: 20px; }

.ise-answer p:last-child { margin-bottom: 0; }

.ise-answer .ise-actions { margin: var(--ise-s5) 0 0; }

.ise-callout {
	border-left: 4px solid var(--ise-ocean);
	border-radius: var(--ise-radius);
	margin: var(--ise-s5) 0;
	padding: var(--ise-s4);
}

.ise-callout p:last-child { margin-bottom: 0; }

.ise-callout--tip { background: var(--ise-ocean-tint); }

.ise-callout--warn { background: var(--ise-warn-bg); border-left-color: var(--ise-warn); }

.ise-callout--bad { background: var(--ise-bad-bg); border-left-color: var(--ise-bad); }

.ise-callout--warn strong { color: var(--ise-warn); }

.ise-callout--bad strong { color: var(--ise-bad); }

.ise-notice {
	background: var(--ise-warn-bg);
	color: var(--ise-warn);
	font-size: var(--ise-fs-small);
	padding: var(--ise-s1) var(--ise-s2);
}

/* [ise_stats]: key figures under the hero. */
.ise-stats {
	display: grid;
	gap: var(--ise-s3);
	grid-template-columns: repeat(2, 1fr);
	list-style: none;
	margin: var(--ise-s6) 0 0;
	padding: 0;
}

@media (min-width: 800px) {
	.ise-stats { grid-template-columns: repeat(4, 1fr); }
}

.ise-stats li {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius-lg);
	display: flex;
	flex-direction: column;
	padding: var(--ise-s4);
}

.ise-stats__value { font-size: 26px; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }

.ise-stats__label { color: var(--ise-muted); font-size: 14px; }

/* [ise_providers]: compact centred band whose logos drift right to left, kept short so the
   Top 5 table stays near the first screen. The owner's one exception to
   "no motion" (§1.5): slow, paused on hover/focus, and
   static for prefers-reduced-motion. */
.ise-layout-wide .ise-section:has(> .ise-logos) { padding: var(--ise-s6) 0 var(--ise-s5); }

.ise-layout-wide .ise-section:has(> .ise-logos) + .ise-section { padding-top: var(--ise-s6); }

/* Centred stack: heading, one line, logos. */
.ise-section:has(> .ise-logos) { display: flex; flex-direction: column; text-align: center; }

.ise-section:has(> .ise-logos) > h2 { font-size: var(--ise-fs-h3); margin: 0 0 var(--ise-s1); }

.ise-section:has(> .ise-logos) > p { color: var(--ise-muted); font-size: var(--ise-fs-small); margin: 0 auto !important; max-width: 46rem; }

.ise-logos { margin-top: var(--ise-s4); min-width: 0; }

.ise-logos__viewport {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
	flex: 1 1 auto;
	mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
	min-width: 0;
	overflow: hidden;
}

.ise-logos__track {
	animation: ise-logos-scroll var(--ise-logos-duration, 60s) linear infinite;
	display: flex;
	width: max-content;
}

.ise-logos:hover .ise-logos__track,
.ise-logos:focus-within .ise-logos__track { animation-play-state: paused; }

@keyframes ise-logos-scroll {
	to { transform: translateX(-50%); }
}

.ise-logos__list {
	display: flex;
	flex-shrink: 0;
	gap: var(--ise-s5);
	list-style: none;
	margin: 0;
	padding: 0 var(--ise-s5) 0 0;
}

.ise-logos__item {
	align-items: center;
	color: var(--ise-muted);
	display: flex;
	font-size: 14px;
	font-weight: 600;
	gap: var(--ise-s2);
	min-height: 36px;
	text-decoration: none;
	white-space: nowrap;
}

a.ise-logos__item:hover { color: var(--ise-ocean); text-decoration: underline; }

.ise-logos__mark {
	align-items: center;
	background: var(--ise-surface);
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius-sm);
	display: flex;
	flex-shrink: 0;
	height: 30px;
	justify-content: center;
	overflow: hidden;
	width: 30px;
}

.ise-logos__mark img { border-radius: 4px; display: block; filter: grayscale(1); height: 24px; opacity: 0.75; width: 24px; }

/* Grey logos so the brand colours don't pull the eye; colour comes back on hover. */

.ise-logos__item:hover .ise-logos__mark img { filter: none; opacity: 1; }

.ise-logos__initial { color: var(--ise-muted); font-size: 13px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	.ise-logos__viewport { -webkit-mask-image: none; mask-image: none; }
	.ise-logos__track { animation: none; width: auto; }
	.ise-logos__list { flex-shrink: 1; flex-wrap: wrap; gap: var(--ise-s1) var(--ise-s5); justify-content: center; padding: 0; }
	.ise-logos__list--copy { display: none; }
}

/* ==========================================================================
   8. Badges
   ========================================================================== */
.ise-badge {
	border-radius: 999px;
	display: inline-block;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.3;
	padding: 3px 8px;
	white-space: nowrap;
}

.ise-badge--ok { background: var(--ise-ok-bg); color: var(--ise-ok); }

.ise-badge--warn { background: var(--ise-warn-bg); color: var(--ise-warn); }

.ise-badge--pick { background: var(--ise-best-tint); color: var(--ise-ink); }

.ise-row--cheapest .ise-badge--pick { background: #fff; box-shadow: inset 0 0 0 1px var(--ise-best-tint); }

/* ==========================================================================
   9. Filter chips (§6.4)
   ========================================================================== */
.ise-chip {
	align-items: center;
	background: #fff;
	border: 1px solid var(--ise-control);
	border-radius: 999px;
	color: var(--ise-ink);
	display: inline-flex;
	font-size: 15px;
	font-weight: 500;
	min-height: 44px;
	padding: 0 var(--ise-s4);
	text-decoration: none;
	transition: background-color 0.1s, border-color 0.1s, color 0.1s;
}

.ise-chip:hover { border-color: var(--ise-ocean); color: var(--ise-ocean); text-decoration: none; }

.ise-chip[aria-current] { background: var(--ise-ocean); border-color: var(--ise-ocean); color: #fff; }

.ise-chip--preset { font-size: 14px; min-height: 40px; padding: 0 var(--ise-s3); }

/* Filter panel: a white card; three groups side by side from 860px. */
.ise-filters {
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius-lg);
	box-shadow: var(--ise-shadow);
	margin: var(--ise-s4) 0 var(--ise-s5);
}

.ise-filters__summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: var(--ise-s2);
	list-style: none;
	min-height: 52px;
	padding: 0 var(--ise-s4);
}

.ise-filters__summary::-webkit-details-marker { display: none; }

.ise-filters__summary::after {
	border-bottom: 2px solid var(--ise-muted);
	border-right: 2px solid var(--ise-muted);
	content: "";
	height: 8px;
	margin: 0 4px 4px auto;
	transform: rotate(45deg);
	width: 8px;
}

.ise-filters[open] > .ise-filters__summary { border-bottom: 1px solid var(--ise-border); }

.ise-filters[open] > .ise-filters__summary::after { margin-bottom: -4px; transform: rotate(-135deg); }

.ise-filters__title { align-items: center; display: inline-flex; font-weight: 650; gap: var(--ise-s2); }

.ise-filters__icon { color: var(--ise-ocean); flex: none; }

.ise-filters__active:not(:empty) {
	background: var(--ise-ocean-tint);
	border-radius: 999px;
	color: var(--ise-ocean-dark);
	font-size: 13px;
	font-weight: 600;
	padding: 2px var(--ise-s2);
}

.ise-filters__groups { display: grid; }

.ise-fgroup { min-width: 0; padding: var(--ise-s4); }

.ise-fgroup + .ise-fgroup { border-top: 1px solid var(--ise-border); }

.ise-fgroup__head {
	align-items: center;
	display: flex;
	gap: var(--ise-s2);
	justify-content: space-between;
	margin-bottom: var(--ise-s1);
	min-height: 36px;
}

.ise-fgroup__label {
	color: var(--ise-muted);
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ise-fgroup__value {
	background: var(--ise-surface);
	border-radius: 999px;
	color: var(--ise-muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	padding: 2px var(--ise-s3);
	white-space: nowrap;
}

.ise-fgroup__value.is-set { background: var(--ise-ocean-tint); color: var(--ise-ocean-dark); font-weight: 600; }

/* Total / per-day data: pick the pane with the checked radio. Without :has()
   both panes show, which still works. */
.ise-fgroup--data:has([data-ise-per][value="daily"]:checked) .ise-pane--total,
.ise-fgroup--data:not(:has([data-ise-per][value="daily"]:checked)) .ise-pane--daily { display: none; }

/* Segmented control (Total data / Per day). */
.ise-seg { background: var(--ise-surface); border: 1px solid var(--ise-border); border-radius: var(--ise-radius); display: inline-flex; padding: 3px; }

.ise-seg__opt { cursor: pointer; position: relative; }

.ise-seg__opt input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; }

.ise-seg__opt span {
	border-radius: var(--ise-radius-sm);
	color: var(--ise-muted);
	display: block;
	font-size: 14px;
	font-weight: 600;
	padding: 6px var(--ise-s3);
	white-space: nowrap;
}

.ise-seg__opt input:checked + span { background: #fff; box-shadow: var(--ise-shadow); color: var(--ise-ocean); }

.ise-seg__opt input:focus-visible + span { outline: 3px solid var(--ise-ocean); outline-offset: 1px; }

/* Two-thumb slider: two range inputs over one track; only the thumbs take
   pointer events. --lo and --hi (set in the HTML, updated by JS) paint the fill. */
.ise-range { height: 44px; position: relative; }

.ise-range::before,
.ise-range::after {
	border-radius: 999px;
	content: "";
	height: 6px;
	position: absolute;
	top: 19px;
}

.ise-range::before { background: var(--ise-border); left: 0; right: 0; }

.ise-range::after { background: var(--ise-ocean); left: var(--lo, 0%); right: calc(100% - var(--hi, 100%)); }

.ise-range__input {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	height: 44px;
	left: -11px;
	margin: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	width: calc(100% + 22px);
	z-index: 2;
}

.ise-range__input::-webkit-slider-runnable-track { background: none; border: 0; height: 44px; }

.ise-range__input::-moz-range-track { background: none; border: 0; height: 44px; }

.ise-range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	background: #fff;
	border: 3px solid var(--ise-ocean);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(16, 32, 48, 0.2);
	cursor: grab;
	height: 22px;
	margin-top: 11px;
	pointer-events: auto;
	width: 22px;
}

.ise-range__input::-moz-range-thumb {
	background: #fff;
	border: 3px solid var(--ise-ocean);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(16, 32, 48, 0.2);
	box-sizing: border-box;
	cursor: grab;
	height: 22px;
	pointer-events: auto;
	width: 22px;
}

.ise-range__input:focus { outline: none; }

.ise-range__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ise-ocean); }

.ise-range__input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ise-ocean); }

.ise-range__ends {
	color: var(--ise-muted);
	display: flex;
	font-size: 13px;
	justify-content: space-between;
	margin: -6px 0 var(--ise-s3);
}

.ise-presets { display: flex; flex-wrap: wrap; gap: var(--ise-s2); }

/* More options: checkbox pills. */
.ise-filters__more {
	align-items: center;
	border-top: 1px solid var(--ise-border);
	display: flex;
	flex-wrap: wrap;
	gap: var(--ise-s2) var(--ise-s2);
	padding: var(--ise-s4);
}

.ise-filters__more .ise-fgroup__label { flex-basis: 100%; }

.ise-check {
	align-items: center;
	border: 1px solid var(--ise-control);
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 500;
	gap: var(--ise-s2);
	min-height: 40px;
	padding: 0 var(--ise-s3);
}

.ise-check input { accent-color: var(--ise-ocean); height: 18px; margin: 0; width: 18px; }

.ise-check:hover { border-color: var(--ise-ocean); }

.ise-check:has(input:checked) { background: var(--ise-ocean-tint); border-color: var(--ise-ocean); color: var(--ise-ocean-dark); }

.ise-filters__foot { align-items: center; display: flex; gap: var(--ise-s4); margin-left: auto; }

.ise-filters__apply { min-height: 44px; }

.ise-filters__apply[hidden] { display: none; }

.ise-filters__reset { align-items: center; color: var(--ise-muted); display: inline-flex; font-size: 15px; font-weight: 600; min-height: 44px; }

@media (min-width: 860px) {
	.ise-filters__groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.ise-fgroup { padding: var(--ise-s5); }

	.ise-fgroup + .ise-fgroup { border-left: 1px solid var(--ise-border); border-top: 0; }

	.ise-filters__more { padding: var(--ise-s4) var(--ise-s5); }

	.ise-filters__more .ise-fgroup__label { flex-basis: auto; margin-right: var(--ise-s2); }
}

/* Sort: a segmented row of links. */
.ise-sort { align-items: center; display: flex; flex-wrap: wrap; gap: var(--ise-s2); }

.ise-sort__label { color: var(--ise-muted); font-size: var(--ise-fs-small); }

.ise-sort__opts {
	background: var(--ise-surface);
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius);
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 3px;
}

.ise-sort__opt {
	align-items: center;
	border-radius: var(--ise-radius-sm);
	color: var(--ise-ink);
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	min-height: 38px;
	padding: 0 var(--ise-s3);
	text-decoration: none;
	white-space: nowrap;
}

.ise-sort__opt:hover { color: var(--ise-ocean); text-decoration: none; }

@media (max-width: 639px) {
	.ise-compare__bar .ise-sort { flex-basis: 100%; }

	.ise-sort__label { display: none; }

	.ise-sort__opts { flex: 1; }

	.ise-sort__opt { flex: 1 1 auto; justify-content: center; }
}

.ise-sort__opt[aria-current] { background: #fff; box-shadow: var(--ise-shadow); color: var(--ise-ocean); }

/* ==========================================================================
   10. Comparison table (§6.5). One <table>; cards below 860px via CSS only
   (eight columns don't fit a tablet), two across from 640px.
   ========================================================================== */
.ise-compare { margin: var(--ise-s4) 0 var(--ise-s5); }

.ise-compare[aria-busy="true"] { opacity: 0.6; }

.ise-compare__bar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ise-s2) var(--ise-s4);
	justify-content: space-between;
	margin-bottom: var(--ise-s3);
}

.ise-compare__count { color: var(--ise-muted); font-size: var(--ise-fs-small); margin: 0; }

.ise-table { border: 0; border-collapse: separate; border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums; }

.ise-row__head { align-items: center; display: flex; gap: var(--ise-s3); }

.ise-row__logo {
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius-sm);
	flex: none;
	height: 32px;
	object-fit: contain;
	width: 32px;
}

.ise-row__logo--initial {
	align-items: center;
	background: var(--ise-surface);
	color: var(--ise-muted);
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	justify-content: center;
}

.ise-row__name { font-weight: 700; }

.ise-row__name a { color: var(--ise-ink); text-decoration: none; }

.ise-row__name a:hover { color: var(--ise-ocean); text-decoration: underline; }

.ise-row__sub { color: var(--ise-muted); display: block; font-size: 13px; font-weight: 400; }

.ise-row__badges { display: flex; flex-wrap: wrap; gap: var(--ise-s1); margin-top: 6px; }

.ise-row__tag { color: var(--ise-muted); display: block; font-size: 13px; }

.ise-cell--price { font-weight: 750; }

.ise-cell--action .ise-btn { font-size: 15px; min-height: 44px; padding: var(--ise-s1) var(--ise-s4); white-space: nowrap; }

/* Phone and tablet: each row is a card. */
@media (max-width: 859px) {
	.ise-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

	.ise-table,
	.ise-table tbody { display: block; }

	.ise-table tr {
		background: #fff;
		border: 1px solid var(--ise-border);
		border-radius: var(--ise-radius-lg);
		box-shadow: var(--ise-shadow);
		display: grid;
		gap: var(--ise-s3) var(--ise-s3);
		grid-template-areas:
			"provider provider price"
			"data days ppg"
			"network hotspot hotspot"
			"action action action";
		grid-template-columns: 1fr 1fr auto;
		grid-template-rows: auto auto auto 1fr;
		margin-bottom: var(--ise-s3);
		padding: var(--ise-s4);
	}

	.ise-table tr.ise-row--cheapest { background: var(--ise-best-wash); border-color: var(--ise-best); box-shadow: inset 0 3px 0 var(--ise-best), var(--ise-shadow); }

	.ise-table th,
	.ise-table td { border: 0; display: block; padding: 0; text-align: left; }

	.ise-table td[data-label]::before {
		color: var(--ise-muted);
		content: attr(data-label);
		display: block;
		font-size: 12px;
		font-weight: 500;
		letter-spacing: 0.02em;
	}

	.ise-cell--provider { grid-area: provider; font-size: 18px; }
	.ise-cell--data { grid-area: data; }
	.ise-cell--days { grid-area: days; }
	.ise-cell--price { grid-area: price; font-size: var(--ise-fs-price); line-height: 1.1; text-align: right !important; }
	.ise-cell--price::before { display: none !important; }
	.ise-cell--ppg { grid-area: ppg; text-align: right !important; font-size: var(--ise-fs-small); }
	.ise-cell--network { grid-area: network; font-size: var(--ise-fs-small); }
	.ise-cell--hotspot { grid-area: hotspot; font-size: var(--ise-fs-small); }
	.ise-cell--action { align-self: end; grid-area: action; margin-top: var(--ise-s1); }
	.ise-cell--action .ise-btn { width: 100%; min-height: 48px; font-size: 16px; }
}

@media (min-width: 640px) and (max-width: 859px) {
	.ise-table tbody { display: grid; gap: var(--ise-s3); grid-template-columns: 1fr 1fr; }
	.ise-table tr { margin-bottom: 0; }
}

/* Desktop: a real table in a rounded card. */
@media (min-width: 860px) {
	.ise-table {
		background: #fff;
		border: 1px solid var(--ise-border);
		border-radius: var(--ise-radius-lg);
		box-shadow: var(--ise-shadow);
	}

	.ise-table th,
	.ise-table td {
		border-bottom: 1px solid var(--ise-border);
		font-size: var(--ise-fs-small);
		padding: var(--ise-s3);
		text-align: left;
		vertical-align: middle;
	}

	.ise-table tbody tr:last-child > * { border-bottom: 0; }

	.ise-table thead th {
		background: var(--ise-surface);
		color: var(--ise-muted);
		font-size: 12px;
		font-weight: 650;
		letter-spacing: 0.06em;
		padding-bottom: var(--ise-s2);
		padding-top: var(--ise-s2);
		text-transform: uppercase;
		white-space: nowrap;
	}

	.ise-table thead th:first-child { border-top-left-radius: var(--ise-radius-lg); }

	.ise-table thead th:last-child { border-top-right-radius: var(--ise-radius-lg); }

	.ise-table thead abbr { text-decoration: none; }

	.ise-table tbody tr:hover > * { background: #fafcfd; }

	.ise-row--cheapest > .ise-cell--provider { box-shadow: inset 3px 0 0 var(--ise-best); }

	.ise-row--cheapest > * { background: var(--ise-best-wash); }

	.ise-table tbody tr.ise-row--cheapest:hover > * { background: #e9f4ec; }

	.ise-cell--provider { font-size: 16px !important; min-width: 10rem; padding-left: var(--ise-s4) !important; }

	.ise-cell--data,
	.ise-cell--days,
	.ise-cell--ppg { white-space: nowrap; }

	.ise-cell--price { font-size: 17px !important; white-space: nowrap; }

	.ise-cell--action { padding-right: var(--ise-s4) !important; text-align: right !important; width: 1%; }
}

.ise-compare__more { margin: var(--ise-s5) 0 var(--ise-s4); text-align: center; }

.ise-compare__foot { color: var(--ise-muted); font-size: 14px; margin-top: var(--ise-s4); max-width: var(--ise-prose); }

.ise-compare__foot p { margin-bottom: var(--ise-s2); }

.ise-compare__foot a { color: var(--ise-muted); }

.ise-compare__notes { list-style: none; margin: 0; padding: 0; }

.ise-compare__empty { background: var(--ise-surface); border-radius: var(--ise-radius); padding: var(--ise-s4); }

/* ==========================================================================
   11. Pick cards (§6.6)
   ========================================================================== */
.ise-picks { display: grid; gap: var(--ise-s4); margin: var(--ise-s5) 0; }

@media (min-width: 640px) {
	.ise-picks { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
	.ise-layout-wide .ise-picks { grid-template-columns: repeat(4, 1fr); }
}

.ise-pick {
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius-lg);
	box-shadow: var(--ise-shadow);
	display: flex;
	flex-direction: column;
	margin: var(--ise-s5) 0;
	padding: var(--ise-s5) var(--ise-s4) var(--ise-s4);
}

.ise-picks .ise-pick { margin: 0; }

.ise-pick p { margin-bottom: var(--ise-s2); }

.ise-pick__label {
	align-self: flex-start;
	background: var(--ise-pink-tint);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 3px 10px;
	text-transform: uppercase;
}

.ise-pick__plan { font-size: var(--ise-fs-h3); margin: var(--ise-s3) 0 0; }

.ise-pick__plan a { color: var(--ise-ink); text-decoration: none; }

.ise-pick__plan a:hover { color: var(--ise-ocean); text-decoration: underline; }

.ise-pick__summary { color: var(--ise-muted); display: block; font-size: var(--ise-fs-small); font-weight: 400; letter-spacing: 0; }

.ise-pick__price { font-size: 30px; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; margin: var(--ise-s3) 0 !important; }

.ise-pick__reason { color: var(--ise-muted); font-size: var(--ise-fs-small); flex: 1; margin-bottom: var(--ise-s4) !important; }

.ise-pick .ise-btn { width: 100%; }

.ise-pick__checked { color: var(--ise-muted); font-size: 13px; margin: var(--ise-s2) 0 0 !important; text-align: center; }

.ise-pick__promo-price { color: var(--ise-ok); display: block; font-size: var(--ise-fs-small); font-weight: 650; letter-spacing: 0; margin-top: var(--ise-s1); }

/* ==========================================================================
   11b. Discount codes (§6.16). Tables only get a badge; the code itself is in
   the pop-up (a native <dialog>, bottom sheet on phones) and in [ise_promo]
   cards. Green = saving, as for "cheapest".
   ========================================================================== */
.ise-badge--promo { align-items: center; background: var(--ise-ok-bg); color: var(--ise-ok); display: inline-flex; gap: 4px; }

.ise-row--cheapest .ise-badge--promo { background: #fff; box-shadow: inset 0 0 0 1px var(--ise-best-tint); }

.ise-cell--price .ise-badge--promo { font-size: 12px; font-weight: 650; margin-top: 6px; white-space: nowrap; }

.ise-pick__price .ise-badge--promo { font-size: 13px; letter-spacing: 0; margin-top: var(--ise-s2); }

.ise-promo__box {
	align-items: center;
	background: var(--ise-best-wash);
	border: 1.5px dashed var(--ise-best);
	border-radius: var(--ise-radius);
	display: flex;
	gap: var(--ise-s2);
	justify-content: space-between;
	min-height: 56px;
	padding: 3px 3px 3px var(--ise-s4);
}

.ise-promo__code {
	color: var(--ise-ink);
	font: 700 20px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.08em;
	min-width: 0;
	overflow-wrap: anywhere;
	-webkit-user-select: all;
	user-select: all;
}

.ise-promo__copy {
	align-items: center;
	background: #fff;
	border: 1px solid var(--ise-control);
	border-radius: var(--ise-radius-sm);
	color: var(--ise-ocean);
	cursor: pointer;
	display: inline-flex;
	flex: none;
	font: 600 15px/1 var(--ise-font);
	gap: 6px;
	min-height: 48px;
	padding: 0 var(--ise-s4);
}

.ise-promo__copy[hidden] { display: none; }

.ise-promo__copy:hover { background: var(--ise-ocean-tint); color: var(--ise-ocean-dark); }

.ise-promo__copy:focus-visible,
.ise-modal__close:focus-visible { outline: 3px solid var(--ise-ocean); outline-offset: 2px; }

.ise-promo__copy.is-copied { background: var(--ise-ok-bg); border-color: var(--ise-ok); color: var(--ise-ok); }

.ise-promo__icon { flex: none; }

/* [ise_promo]: a white card for reviews and guides. */
.ise-promo {
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius-lg);
	box-shadow: var(--ise-shadow);
	display: grid;
	gap: var(--ise-s3);
	margin: var(--ise-s5) 0;
	max-width: 30rem;
	padding: var(--ise-s4);
}

.ise-promo p { margin: 0; }

.ise-promo__deal { align-items: center; display: flex; gap: var(--ise-s2); }

.ise-promo__deal .ise-promo__icon { color: var(--ise-best); }

.ise-promo__deal strong { color: var(--ise-ok); }

.ise-promo__terms { color: var(--ise-muted); font-size: 14px; line-height: 1.45; }

/* Code pop-up. */
.ise-modal {
	background: #fff;
	border: 0;
	border-radius: var(--ise-radius-lg);
	box-shadow: 0 12px 40px rgba(12, 42, 63, 0.25);
	color: var(--ise-ink);
	max-height: calc(100dvh - 32px);
	max-width: 27rem;
	overflow-y: auto;
	padding: var(--ise-s5);
	width: calc(100% - 32px);
}

.ise-modal::backdrop { background: rgba(12, 42, 63, 0.55); }

.ise-modal p { margin: 0; }

.ise-modal__closeform { margin: 0; position: absolute; right: var(--ise-s2); top: var(--ise-s2); }

.ise-modal__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--ise-muted);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.ise-modal__close:hover { background: var(--ise-surface); color: var(--ise-ink); }

.ise-modal__provider { align-items: center; display: flex; font-weight: 700; gap: var(--ise-s2); padding-right: 44px; }

.ise-modal__logo { border: 1px solid var(--ise-border); border-radius: var(--ise-radius-sm); height: 32px; object-fit: contain; width: 32px; }

.ise-modal__title { color: var(--ise-ok); font-size: var(--ise-fs-h2); line-height: 1.2; margin: var(--ise-s4) 0 var(--ise-s1); }

.ise-modal__plan { color: var(--ise-muted); font-size: var(--ise-fs-small); margin-bottom: var(--ise-s4) !important; }

.ise-modal__plan strong { color: var(--ise-ink); }

.ise-modal__status { color: var(--ise-ok); font-size: 14px; font-weight: 600; min-height: 1.45em; margin: var(--ise-s2) 0 0 !important; }

.ise-modal__howto { font-size: var(--ise-fs-small); margin: var(--ise-s4) 0 var(--ise-s2); }

.ise-modal__steps { font-size: var(--ise-fs-small); line-height: 1.45; margin: 0 0 var(--ise-s5) var(--ise-s5); padding: 0; }

.ise-modal__steps li { margin-bottom: var(--ise-s1); }

.ise-modal__go { width: 100%; }

.ise-modal__meta { color: var(--ise-muted); font-size: 13px; margin-top: var(--ise-s3) !important; text-align: center; }

/* Phones: a bottom sheet, so the button sits where the thumb is. */
@media (max-width: 639px) {
	.ise-modal { border-radius: var(--ise-radius-lg) var(--ise-radius-lg) 0 0; margin: auto 0 0; max-width: 100%; padding-bottom: calc(var(--ise-s5) + env(safe-area-inset-bottom)); width: 100%; }
}

/* ==========================================================================
   12. Tables in content and the alternatives table (§6.7)
   ========================================================================== */
.entry-content table:not(.ise-table) {
	background: #fff;
	border: 1px solid var(--ise-border);
	border-collapse: separate;
	border-radius: var(--ise-radius-lg);
	border-spacing: 0;
	font-size: var(--ise-fs-small);
	margin-bottom: var(--ise-s5);
	width: 100%;
}

.entry-content table:not(.ise-table) th,
.entry-content table:not(.ise-table) td {
	border: 0;
	border-bottom: 1px solid var(--ise-border);
	padding: var(--ise-s3);
	text-align: left;
	vertical-align: top;
}

.entry-content table:not(.ise-table) tbody tr:last-child > * { border-bottom: 0; }

.entry-content table:not(.ise-table) thead th {
	background: var(--ise-surface);
	color: var(--ise-muted);
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.entry-content table:not(.ise-table) thead th:first-child { border-top-left-radius: var(--ise-radius-lg); }

.entry-content table:not(.ise-table) thead th:last-child { border-top-right-radius: var(--ise-radius-lg); }

.ise-alt-wrap { margin: var(--ise-s4) 0 var(--ise-s5); }

.entry-content table.ise-alt caption { caption-side: top; color: var(--ise-muted); font-size: var(--ise-fs-small); padding-bottom: var(--ise-s2); text-align: left; }

.entry-content table.ise-alt td .ise-badge { margin: 2px 0; }

.ise-alt__checked,
.ise-alt__note { color: var(--ise-muted); display: block; font-size: 13px; }

.ise-alt__esim > * { background: var(--ise-ocean-tint); }

.entry-content table.ise-alt tbody tr.ise-alt__esim:last-child > :first-child { border-bottom-left-radius: var(--ise-radius-lg); }

.entry-content table.ise-alt tbody tr.ise-alt__esim:last-child > :last-child { border-bottom-right-radius: var(--ise-radius-lg); }

@media (max-width: 639px) {
	.entry-content table.ise-alt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.entry-content table.ise-alt { background: none; border: 0; }
	.entry-content table.ise-alt,
	.entry-content table.ise-alt caption,
	.entry-content table.ise-alt tbody,
	.entry-content table.ise-alt tr,
	.entry-content table.ise-alt th,
	.entry-content table.ise-alt td { display: block; border: 0; }
	.entry-content table.ise-alt tr { background: #fff; border: 1px solid var(--ise-border); border-radius: var(--ise-radius-lg); margin-bottom: var(--ise-s3); padding: var(--ise-s2) 0; }
	.entry-content table.ise-alt tr > * { background: none; padding: var(--ise-s1) var(--ise-s4); }
	.entry-content table.ise-alt tr.ise-alt__esim { background: var(--ise-ocean-tint); }
	.entry-content table.ise-alt td[data-label]::before { color: var(--ise-muted); content: attr(data-label); display: block; font-size: 12px; }
}

/* ==========================================================================
   13. Cards: routes, features, steps, FAQ, verdict (§6.8), pros/cons (§6.9), TOC
   ========================================================================== */

/* Route cards: the whole card is one link. */
.ise-routes {
	display: grid;
	gap: var(--ise-s4);
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	list-style: none;
	margin: var(--ise-s5) 0;
	padding: 0;
}

.ise-routes--list { grid-template-columns: 1fr; gap: var(--ise-s3); }

.ise-routes a {
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius-lg);
	box-shadow: var(--ise-shadow);
	color: var(--ise-ink);
	display: flex;
	flex-direction: column;
	gap: var(--ise-s1);
	height: 100%;
	padding: var(--ise-s5);
	text-decoration: none;
	transition: border-color 0.1s;
}

.ise-routes a:hover { border-color: var(--ise-ocean); color: var(--ise-ink); }

.ise-routes a:hover strong { color: var(--ise-ocean); }

.ise-routes .ise-icon--lg,
.ise-features .ise-icon--lg {
	background: var(--ise-ocean-tint);
	border-radius: 12px;
	box-sizing: content-box;
	color: var(--ise-ocean);
	margin-bottom: var(--ise-s3);
	padding: 10px;
}

.ise-routes strong { font-size: var(--ise-fs-h3); font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }

.ise-routes span { color: var(--ise-muted); font-size: var(--ise-fs-small); }

.ise-routes a > span:not(.ise-routes__go) { flex: 1; }

.ise-routes__go { color: var(--ise-ocean) !important; font-size: 20px !important; font-weight: 600; margin-top: var(--ise-s2); }

.ise-routes--list a { display: grid; grid-template-columns: 1fr auto; gap: var(--ise-s1) var(--ise-s4); padding: var(--ise-s4) var(--ise-s5); }

.ise-routes--list strong,
.ise-routes--list span:not(.ise-routes__go) { grid-column: 1; }

.ise-routes--list .ise-routes__go { align-self: center; grid-column: 2; grid-row: 1 / span 2; margin: 0; }

/* Feature cards. */
.ise-features {
	display: grid;
	gap: var(--ise-s4);
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	list-style: none;
	margin: var(--ise-s5) 0;
	padding: 0;
}

.ise-features li {
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius-lg);
	display: flex;
	flex-direction: column;
	padding: var(--ise-s5);
}

.ise-features .ise-icon--lg { align-self: flex-start; }

.ise-features strong { font-size: var(--ise-fs-h3); font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: var(--ise-s1); }

.ise-features span { color: var(--ise-muted); font-size: var(--ise-fs-small); }

/* Numbered steps. */
.ise-steps {
	counter-reset: ise-step;
	display: grid;
	gap: var(--ise-s5) var(--ise-s5);
	list-style: none;
	margin: var(--ise-s5) 0;
	padding: 0;
}

@media (min-width: 640px) {
	.ise-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
	.ise-layout-wide .ise-steps { grid-template-columns: repeat(4, 1fr); }
}

.ise-steps li { counter-increment: ise-step; display: flex; flex-direction: column; }

.ise-steps li::before {
	align-items: center;
	background: var(--ise-ocean);
	border-radius: 50%;
	color: #fff;
	content: counter(ise-step);
	display: flex;
	font-size: 15px;
	font-weight: 700;
	height: 36px;
	justify-content: center;
	margin-bottom: var(--ise-s3);
	width: 36px;
}

.ise-steps strong { font-size: var(--ise-fs-h3); font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: var(--ise-s1); }

.ise-steps span { color: var(--ise-muted); font-size: var(--ise-fs-small); }

/* FAQ: one card per question, all answers visible (they're quoted by search and AI). */
.ise-faq__item {
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: var(--ise-radius-lg);
	margin-bottom: var(--ise-s3);
	padding: var(--ise-s4) var(--ise-s5);
}

.ise-faq__item h3 { font-size: 17px; margin: 0 0 var(--ise-s2); }

.ise-faq__item p { font-size: var(--ise-fs-small); }

.ise-faq__item > :last-child { margin-bottom: 0; }

@media (min-width: 960px) {
	.ise-faq__item h3 { font-size: 18px; }
	.ise-faq__item p { font-size: 16px; }
}

/* Verdict box. */
.ise-verdict dl { display: grid; gap: var(--ise-s2) var(--ise-s4); grid-template-columns: max-content 1fr; margin: 0 0 var(--ise-s4); padding-bottom: var(--ise-s4); border-bottom: 1px solid rgba(11, 94, 142, 0.18); }

.ise-verdict .ise-promo { box-shadow: none; }

.ise-verdict dt { color: var(--ise-muted); font-size: var(--ise-fs-small); }

.ise-verdict dd { margin: 0; font-weight: 600; }

.ise-verdict p:last-child { margin-bottom: 0; }

.ise-verdict .ise-actions { margin: var(--ise-s4) 0 0; }

@media (max-width: 639px) {
	.ise-verdict dl { grid-template-columns: 1fr; gap: 0; }
	.ise-verdict dd { margin-bottom: var(--ise-s2); }
	.ise-verdict .ise-btn { width: 100%; }
}

.ise-proscons { display: grid; gap: var(--ise-s4); margin: var(--ise-s4) 0 var(--ise-s5); }

@media (min-width: 640px) {
	.ise-proscons { grid-template-columns: 1fr 1fr; }
}

.ise-proscons > div { border: 1px solid var(--ise-border); border-radius: var(--ise-radius-lg); padding: var(--ise-s4) var(--ise-s5); background: #fff; }

.ise-proscons h3 { margin-top: 0; }

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

.ise-proscons li { padding-left: 1.6em; position: relative; margin-bottom: var(--ise-s2); }

.ise-proscons li::before { left: 0; position: absolute; font-weight: 700; }

.ise-proscons__pros li::before { content: "✓"; color: var(--ise-ok); }

.ise-proscons__cons li::before { content: "✕"; color: var(--ise-bad); }

/* On this page. */
.ise-toc { background: #fff; border: 1px solid var(--ise-border); border-radius: var(--ise-radius-lg); margin: var(--ise-s4) 0; padding: 0; }

.ise-toc summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: var(--ise-fs-small);
	font-weight: 650;
	justify-content: space-between;
	list-style: none;
	min-height: 48px;
	padding: 0 var(--ise-s4);
}

.ise-toc summary::-webkit-details-marker { display: none; }

.ise-toc summary::after { color: var(--ise-muted); content: "+"; font-size: 22px; font-weight: 400; }

.ise-toc[open] summary::after { content: "–"; }

.ise-toc ol { border-top: 1px solid var(--ise-border); font-size: var(--ise-fs-small); margin: 0; padding: var(--ise-s3) var(--ise-s4) var(--ise-s3) var(--ise-s7); }

.ise-toc li { margin-bottom: var(--ise-s1); padding: 2px 0; }

/* Jump list on wide pages: one swipeable row of links on phones, a plain
   list beside the answer box from 960px. */
.ise-jump { margin: var(--ise-s5) 0 0; }

.ise-jump__label { color: var(--ise-muted); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; margin: 0 0 var(--ise-s2); text-transform: uppercase; }

.ise-jump ul {
	display: flex;
	gap: var(--ise-s2);
	list-style: none;
	margin: 0 calc(-1 * var(--ise-gutter));
	overflow-x: auto;
	padding: 0 var(--ise-gutter) var(--ise-s1);
	scrollbar-width: none;
}

.ise-jump ul::-webkit-scrollbar { display: none; }

.ise-jump li { flex: none; margin: 0; }

.ise-jump a {
	border: 1px solid var(--ise-border);
	border-radius: 999px;
	color: var(--ise-ink);
	display: block;
	font-size: var(--ise-fs-small);
	font-weight: 550;
	line-height: 1;
	padding: 11px 14px;
	text-decoration: none;
	white-space: nowrap;
}

.ise-jump a:hover { border-color: var(--ise-ocean); color: var(--ise-ocean); }

@media (min-width: 960px) {
	.ise-jump__label { margin-bottom: var(--ise-s3); }
	.ise-jump ul { border-left: 2px solid var(--ise-border); display: block; margin: 0; overflow: visible; padding: 0; }
	.ise-jump a { border: 0; border-radius: 0; color: var(--ise-muted); font-weight: 500; line-height: 1.4; margin-left: -2px; padding: 7px 0 7px var(--ise-s4); white-space: normal; border-left: 2px solid transparent; }
	.ise-jump a:hover { border-left-color: var(--ise-ocean); color: var(--ise-ocean); }
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer { background: var(--ise-navy); }

.ise-footer { background: var(--ise-navy); color: var(--ise-on-navy); font-size: var(--ise-fs-small); }

.ise-footer__inner {
	display: grid;
	gap: var(--ise-s6) var(--ise-s5);
	margin: 0 auto;
	max-width: var(--ise-wide);
	padding: var(--ise-s7) var(--ise-gutter) var(--ise-s6);
}

@media (min-width: 640px) {
	.ise-footer__inner { grid-template-columns: repeat(3, 1fr); }
	.ise-footer__col:first-child { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
	.ise-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.ise-footer__col:first-child { grid-column: auto; max-width: 22rem; }
}

.ise-footer__brand { align-items: center; color: #fff; display: flex; font-size: 18px; font-weight: 750; gap: var(--ise-s2); }

.ise-footer__title { color: #fff; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; margin: 0 0 var(--ise-s2); text-transform: uppercase; }

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

.ise-footer li a { color: var(--ise-on-navy); display: inline-block; padding: 7px 0; text-decoration: none; }

.ise-footer li a:hover { color: #fff; text-decoration: underline; }

.ise-footer a:focus-visible { outline-color: #fff; }

.ise-footer__checked { color: var(--ise-on-navy); }

.ise-footer__checked::before { color: #7fd19b; content: "● " / ""; }

.ise-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #aebfcd;
	font-size: 13px;
	margin: 0 auto;
	max-width: calc(var(--ise-wide) - 2 * var(--ise-gutter));
	padding: var(--ise-s4) 0 var(--ise-s6);
}

@media (max-width: 1200px) {
	.ise-footer__legal { margin: 0 var(--ise-gutter); }
}
