/**
 * WiFi Solutions page — scoped styles
 *
 * Loaded by hifocus_wifi_assets() on the single wifi-solutions solution post
 * only, with hifocus-main as its declared dependency.
 *
 * The page reuses main.css components wholesale — sw-hero, sw-crumbs, sw-band,
 * section-head, product-showcase-grid, sw-faq and cta-panel. This sheet adds
 * only the patterns main.css has no equivalent for:
 *
 *   1. .wifi-hero__media / .wifi-hero__waves — hero image hook + broadcast rings
 *   2. .wifi-hero__meta   — the hero highlight line
 *   3. .wifi-core         — the three capabilities, one featured
 *   4. .wifi-venue        — image-led "where it matters" cards (light band)
 *   5. .wifi-brand        — grouped, text-first brand cards (dark band)
 *   6. .wifi-process      — the four-step timeline (plain white section)
 *   7. .wifi-contact      — the contact grid inside the closing CTA
 *
 * Every rule is scoped under .wifi-page, so no other page is affected —
 * including the seven other solution posts, which render through
 * single-solution.php or their own bespoke template and never load this sheet.
 *
 * All colours, radii, spacing and easing come from the existing :root tokens.
 * No new palette, no new fonts, no third-party framework.
 *
 * ON THE DUPLICATION WITH networking-solutions.css
 *
 * .wifi-core, .wifi-venue, .wifi-process and .wifi-contact restate shapes that
 * networking-solutions.css already defines as .net-*. That is deliberate for
 * now: those rules are scoped under .networking-page and cannot be reached from
 * here without editing that sheet, which would put a live page at risk for no
 * gain on this one.
 *
 * The right moment to consolidate is the Networking page rewrite (splitting the
 * two pages by subject — wireless here, cabling and switching there), when both
 * sheets are open anyway. At that point the shared component set should move to
 * a single sheet scoped to a class both pages carry. Until then, a change to
 * card styling needs making in both files.
 */

/* -------------------------------------------------- *
 * 1. Hero — photograph, tint hook and broadcast rings
 *
 * The hero photograph is NOT a background image. It is a real <img> in the
 * right-hand column of .sw-hero__inner, which main.css already lays out as
 * 1fr 1fr and collapses to one column when .sw-hero__visual is absent. The
 * template prints that column only when the attachment resolves, so a deleted
 * image degrades to the original single-column hero rather than a blank half.
 *
 * .wifi-hero__media stays an empty, transparent layer between .sw-hero__bg and
 * the copy, kept as a hook for a future tint or texture. It previously carried
 * a recipe for a full-bleed url("../images/wifi-solutions/hero.jpg")
 * background; that approach was dropped for the two-column treatment and no
 * such file is coming. Do not reinstate it — a full-bleed background behind the
 * copy would fight the photograph now sitting beside it.
 * -------------------------------------------------- */

.wifi-page .wifi-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/*
 * 4/3 against a 1200x1097 (1.094:1) source: the crop takes about 18% off the
 * height and nothing off the width, which is the widest this image survives.
 * 16/10 would cost ~27% and start cutting the ceiling-mounted access point out
 * of frame. object-position biases up to hold the AP and the windows behind it.
 */
.wifi-page .wifi-hero__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(120, 170, 255, 0.18);
	box-shadow: 0 26px 56px rgba(0, 0, 0, 0.42);
}

.wifi-page .wifi-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

/*
 * Concentric rings radiating from the top right — a broadcast motif, and the
 * one place this page deliberately differs from the Networking hero, which
 * uses a square grid for a wired subject. Masked so it fades out well before
 * it reaches the headline.
 */
.wifi-page .wifi-hero__waves {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: repeating-radial-gradient(
		circle at 88% 14%,
		rgba(34, 211, 238, 0.10) 0 1px,
		transparent 1px 76px
	);
	-webkit-mask-image: radial-gradient(72% 82% at 88% 14%, #000 0%, transparent 70%);
	mask-image: radial-gradient(72% 82% at 88% 14%, #000 0%, transparent 70%);
	pointer-events: none;
}

/* -------------------------------------------------- *
 * 2. Hero highlight line
 * -------------------------------------------------- */

.wifi-page .wifi-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.6rem 1.4rem;
	margin: var(--space-lg) 0 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.wifi-page .wifi-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.wifi-page .wifi-hero__meta svg {
	width: 16px;
	height: 16px;
	color: var(--cyan-400);
}

/* -------------------------------------------------- *
 * 3. The three capabilities
 *
 * Two equal cards on the first row, then the featured guest-WiFi card spanning
 * the full width beneath them. Same glass treatment as .sw-module so the page
 * does not fork the design system; the featured variant only adds width, a
 * larger icon, a brighter edge and the capability list.
 * -------------------------------------------------- */

.wifi-page .wifi-core-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-md);
}

.wifi-page .wifi-core {
	position: relative;
	isolation: isolate;
	display: flex;
	gap: var(--space-sm);
	padding: var(--space-md);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(120, 170, 255, 0.18);
	background-color: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: transform 0.35s var(--ease-out), border-color var(--transition),
		background-color var(--transition);
}

.wifi-page .wifi-core:hover {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.45);
	background-color: rgba(255, 255, 255, 0.07);
}

.wifi-page .wifi-core__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	background-color: rgba(34, 211, 238, 0.1);
	color: var(--cyan-400);
	transition: background-image var(--transition), color var(--transition);
}

.wifi-page .wifi-core__icon svg {
	width: 24px;
	height: 24px;
}

.wifi-page .wifi-core:hover .wifi-core__icon {
	background-image: var(--gradient-brand);
	color: var(--color-inverse);
}

.wifi-page .wifi-core__title {
	margin: 0;
	color: var(--color-inverse);
	font-size: 1.05rem;
	font-weight: 700;
}

.wifi-page .wifi-core__desc {
	margin: 0.4rem 0 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: var(--fs-sm);
	line-height: 1.7;
}

/* ---------- Featured: guest WiFi ---------- */

.wifi-page .wifi-core--featured {
	grid-column: 1 / -1;
	padding: clamp(1.5rem, 3.5vw, 2.25rem);
	border-color: rgba(34, 211, 238, 0.35);
	background:
		radial-gradient(90% 140% at 0% 0%, rgba(34, 211, 238, 0.12) 0%, transparent 60%),
		rgba(255, 255, 255, 0.05);
}

.wifi-page .wifi-core--featured .wifi-core__icon {
	width: 60px;
	height: 60px;
	background-image: var(--gradient-brand);
	color: var(--color-inverse);
	box-shadow: 0 10px 28px rgba(22, 102, 232, 0.38);
}

.wifi-page .wifi-core--featured .wifi-core__icon svg {
	width: 30px;
	height: 30px;
}

.wifi-page .wifi-core--featured .wifi-core__title {
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.wifi-page .wifi-core--featured .wifi-core__desc {
	max-width: 68ch;
	font-size: var(--fs-base);
}

.wifi-page .wifi-core__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.6rem 1.5rem;
	margin: var(--space-md) 0 0;
	padding: 0;
	list-style: none;
}

/*
 * Third flex child on the featured card, after .wifi-core__icon and
 * .wifi-core__body. Deliberately no aspect-ratio: align-self: stretch plus a
 * full-height object-fit: cover means the image always matches the card's own
 * height, so adding or removing a capability above can never leave the figure
 * short or overhanging. Only the featured card carries an image; the two
 * half-width cards pass 'image' => 0 and print no figure at all.
 */
.wifi-page .wifi-core__figure {
	flex: 0 0 34%;
	align-self: stretch;
	margin: 0;
	overflow: hidden;
	min-height: 220px;
	border-radius: var(--radius-md);
	border: 1px solid rgba(120, 170, 255, 0.18);
}

.wifi-page .wifi-core__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.wifi-page .wifi-core__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.5;
}

.wifi-page .wifi-core__check {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: 0.1rem;
	color: var(--cyan-400);
}

.wifi-page .wifi-core__check svg {
	width: 18px;
	height: 18px;
}

/* -------------------------------------------------- *
 * 4. Where it matters — image-led venue cards (light band)
 *
 * Six venues on a three-track grid: two clean rows, no stranded card. This was
 * a four-track grid of icon-only cards, and the note that stood here warned
 * against adding a fifth venue for exactly that reason. Six over three tracks
 * removes the hazard, so the warning goes with it — but the arithmetic still
 * applies at every breakpoint below, which is why the grid steps 3 -> 2 -> 1
 * and never through a track count that does not divide six.
 *
 * The cards are image-led: photograph flush to the top edge, then a padded
 * body with the venue name and one line. The icon tile these cards used to
 * carry is gone; under a photograph it competed with it.
 *
 * A two-column intro row briefly sat above this grid, pairing the heading with
 * attachment 2691. 2691 is now the Warehouses card image and the intro row has
 * been removed — the same photograph twice inside one section read as a
 * mistake. The heading is back to a centred, full-width .section-head.
 * -------------------------------------------------- */

.wifi-page .wifi-venue-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

/*
 * padding: 0 and overflow: hidden, so the photograph can sit flush to the top
 * edge and still be clipped by the card's own corner radius. The padding this
 * card used to carry now lives on .wifi-venue__body.
 */
.wifi-page .wifi-venue {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	background-color: var(--color-bg);
	box-shadow: var(--shadow-sm);
	transition: transform 0.35s var(--ease-out), border-color var(--transition),
		box-shadow 0.35s var(--ease-out);
}

.wifi-page .wifi-venue:hover {
	transform: translateY(-6px);
	border-color: rgba(22, 102, 232, 0.35);
	box-shadow: var(--shadow-md);
}

/*
 * 3/2 is native for five of the six images (800x533). Attachment 2691 is
 * square (1200x1097) and is the one this ratio costs: cover trims about 27% of
 * its height. object-position holds the centre band, where the racking is. If
 * it ever reads as badly cut, 4/3 is the fallback — it costs 2691 only ~19%,
 * at the price of cropping the other five horizontally.
 *
 * The ratio lives here rather than on the image so that all six cards line up
 * regardless of what any individual attachment's dimensions are.
 */
.wifi-page .wifi-venue__figure {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background-color: var(--color-surface);
}

.wifi-page .wifi-venue__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s var(--ease-out);
}

.wifi-page .wifi-venue:hover .wifi-venue__img {
	transform: scale(1.04);
}

/*
 * flex: 1 so every body in a row is the same height even when one venue's line
 * wraps further than its neighbours', which keeps the card bottoms aligned.
 */
.wifi-page .wifi-venue__body {
	flex: 1;
	padding: var(--space-md);
}

.wifi-page .wifi-venue__title {
	margin: 0;
	color: var(--color-text);
	font-size: 1rem;
	font-weight: 700;
}

.wifi-page .wifi-venue__desc {
	margin: 0.4rem 0 0;
	color: var(--color-muted);
	font-size: var(--fs-sm);
	line-height: 1.65;
}

/* -------------------------------------------------- *
 * 5. Brands — grouped, text-first cards on the dark band
 *
 * Two groups: the WiFi platforms, then Fortinet on its own because it is
 * firewall and licensing rather than WiFi hardware.
 *
 * Unlike the Networking brand cards, the notes here are full sentences rather
 * than two-word product lines, so these cards are left-aligned and two across
 * rather than centred and four across. A centred layout turns a sentence into
 * a ragged triangle.
 *
 * A logo renders only when the brand taxonomy holds a real attachment for that
 * term. Otherwise .wifi-brand--text styles the name itself, so the row stays
 * even whether or not any logo exists.
 * -------------------------------------------------- */

.wifi-page .wifi-brand-group + .wifi-brand-group {
	margin-top: var(--space-lg);
}

.wifi-page .wifi-brand-group__label {
	margin: 0 0 0.35rem;
	color: var(--cyan-400);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wifi-page .wifi-brand-group__note {
	margin: 0 0 var(--space-sm);
	color: rgba(255, 255, 255, 0.55);
	font-size: var(--fs-sm);
	line-height: 1.6;
}

.wifi-page .wifi-brand-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-sm);
}

/*
 * A group holding one brand spans the full width rather than sitting in a
 * half-width column with a gap beside it. This is what visually separates
 * Fortinet from the WiFi platforms above, and it stays correct if a second
 * security brand is ever added — the grid simply returns to two columns.
 */
.wifi-page .wifi-brand-grid:has(> :only-child) {
	grid-template-columns: 1fr;
}

.wifi-page .wifi-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	padding: var(--space-md);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(120, 170, 255, 0.18);
	background-color: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: transform 0.35s var(--ease-out), border-color var(--transition),
		background-color var(--transition);
}

.wifi-page a.wifi-brand:hover,
.wifi-page a.wifi-brand:focus-visible {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.5);
	background-color: rgba(255, 255, 255, 0.08);
}

/* Unused while logos are switched off in the template. Kept for reinstatement. */
.wifi-page .wifi-brand__logo {
	max-width: 132px;
	max-height: 40px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/*
 * The name is the only mark a brand card carries, so it does the work a logo
 * would and is sized accordingly. Solid colour, for plain readability on the
 * dark band.
 *
 * All five brands render through this element. Logos are switched off in the
 * template by $hifocus_wifi_use_brand_terms, because the attachments on the
 * brand terms are dark-on-transparent versions that all but disappear on this
 * dark band. .wifi-brand__logo below is kept for when light-on-dark versions
 * exist; the two elements are mutually exclusive, never both.
 */
.wifi-page .wifi-brand__name {
	color: var(--color-inverse);
	font-size: clamp(1.4rem, 2.6vw, 1.8rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

/* Short gradient rule, tying the name to the accent edge of the card. */
.wifi-page .wifi-brand__name::after {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	margin-top: 0.7rem;
	border-radius: 999px;
	background-image: var(--gradient-brand);
}

/* The note steps back so the name carries the card. */
.wifi-page .wifi-brand__note {
	color: rgba(255, 255, 255, 0.55);
	font-size: var(--fs-sm);
	line-height: 1.7;
}

.wifi-page .wifi-brand-foot {
	max-width: 70ch;
	margin: var(--space-lg) auto 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: var(--fs-sm);
	line-height: 1.7;
	text-align: center;
}

/* -------------------------------------------------- *
 * 6. Process — four-step timeline on a plain white section
 *
 * The light-background sibling of .sec-process: same geometry, but the type
 * colours come from --color-text / --color-muted rather than white.
 * -------------------------------------------------- */

.wifi-page .wifi-process {
	--pgap: clamp(1rem, 2.5vw, 1.75rem);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--pgap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wifi-page .wifi-process__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 0.5rem;
	text-align: center;
}

/*
 * Connector: a gradient hairline from this step's badge centre to the next.
 * The badge is 52px, so its centre sits 0.5rem + 26px below the step top. The
 * line bridges the column width plus the grid gap to reach the next badge, and
 * the last step drops it.
 */
.wifi-page .wifi-process__step::before {
	content: "";
	position: absolute;
	top: calc(0.5rem + 26px);
	left: 50%;
	z-index: 0;
	width: calc(100% + var(--pgap));
	height: 2px;
	background: linear-gradient(90deg, rgba(22, 102, 232, 0.45), rgba(22, 102, 232, 0.12));
}

.wifi-page .wifi-process__step:last-child::before {
	display: none;
}

.wifi-page .wifi-process__num {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background-image: var(--gradient-brand);
	color: var(--color-inverse);
	font-size: 1rem;
	font-weight: 800;
	box-shadow: 0 8px 24px rgba(22, 102, 232, 0.32);
}

.wifi-page .wifi-process__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: 1rem;
	border-radius: 14px;
	background-color: rgba(22, 102, 232, 0.09);
	color: var(--color-primary);
}

.wifi-page .wifi-process__icon svg {
	width: 22px;
	height: 22px;
}

.wifi-page .wifi-process__title {
	margin: 0.9rem 0 0;
	color: var(--color-text);
	font-size: 1.02rem;
	font-weight: 700;
}

/*
 * Wider than the Networking equivalent's 24ch: there are four steps here
 * rather than five, so each column is roomier, and step 1 carries the longest
 * copy on the page.
 */
.wifi-page .wifi-process__desc {
	max-width: 30ch;
	margin: 0.4rem 0 0;
	color: var(--color-muted);
	font-size: var(--fs-sm);
	line-height: 1.6;
}

/* -------------------------------------------------- *
 * 7. Contact grid inside the closing CTA
 * -------------------------------------------------- */

.wifi-page .wifi-contact {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-sm);
	margin-top: var(--space-lg);
	text-align: left;
}

.wifi-page .wifi-contact__card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: var(--space-md);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(120, 170, 255, 0.18);
	background-color: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: transform 0.35s var(--ease-out), border-color var(--transition),
		background-color var(--transition);
}

.wifi-page .wifi-contact__card:hover {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.5);
	background-color: rgba(255, 255, 255, 0.08);
}

.wifi-page .wifi-contact__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 0.35rem;
	border-radius: 12px;
	background-color: rgba(34, 211, 238, 0.12);
	color: var(--cyan-400);
}

.wifi-page .wifi-contact__icon svg {
	width: 20px;
	height: 20px;
}

.wifi-page .wifi-contact__label {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wifi-page .wifi-contact__value {
	margin: 0;
	color: var(--color-inverse);
	font-size: 0.98rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.wifi-page .wifi-contact__value a {
	color: var(--color-inverse);
}

.wifi-page .wifi-contact__value a:hover,
.wifi-page .wifi-contact__value a:focus-visible {
	color: var(--cyan-300);
}

/* -------------------------------------------------- *
 * 8. Cross-link panel — "Need the Cabling Too?"
 *
 * The route across to single-solution-networking-solutions.php. Mirrored there
 * as .net-crosslink pointing back here; the two are the same shape so the pair
 * reads as one deliberate relationship rather than two ad-hoc banners.
 *
 * A row of icon / copy / button that becomes a centred stack on mobile.
 * -------------------------------------------------- */

.wifi-page .wifi-crosslink__panel {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	padding: var(--space-md) clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(22, 102, 232, 0.22);
	background:
		radial-gradient(70% 160% at 0% 50%, rgba(34, 211, 238, 0.10) 0%, transparent 62%),
		var(--color-bg);
	box-shadow: var(--shadow-sm);
}

.wifi-page .wifi-crosslink__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: var(--radius-md);
	background-image: var(--gradient-brand);
	color: var(--color-inverse);
	box-shadow: 0 10px 26px rgba(22, 102, 232, 0.32);
}

.wifi-page .wifi-crosslink__icon svg {
	width: 27px;
	height: 27px;
}

.wifi-page .wifi-crosslink__body {
	flex: 1 1 auto;
	min-width: 0;
}

.wifi-page .wifi-crosslink__title {
	margin: 0;
	color: var(--color-text);
	font-size: clamp(1.1rem, 2.2vw, 1.35rem);
	font-weight: 800;
	letter-spacing: -0.015em;
}

.wifi-page .wifi-crosslink__lead {
	max-width: 68ch;
	margin: 0.35rem 0 0;
	color: var(--color-muted);
	font-size: var(--fs-sm);
	line-height: 1.7;
}

.wifi-page .wifi-crosslink__btn {
	flex-shrink: 0;
}

@media (max-width: 760px) {
	.wifi-page .wifi-crosslink__panel {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.wifi-page .wifi-crosslink__lead {
		margin-inline: auto;
	}
}

/* -------------------------------------------------- *
 * Motion + responsive
 * -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.wifi-page .wifi-core:hover,
	.wifi-page .wifi-venue:hover,
	.wifi-page a.wifi-brand:hover,
	.wifi-page .wifi-contact__card:hover {
		transform: none;
	}

	/* The venue card's photograph must not creep on hover either. */
	.wifi-page .wifi-venue:hover .wifi-venue__img {
		transform: none;
	}
}

/*
 * Laptop: venues drop from three tracks to two, the contact grid halves.
 * Two tracks divides six evenly — three rows, no stranded card. Every step in
 * this sheet's venue ladder (3 -> 2 -> 1) has to keep that property.
 */
@media (max-width: 1024px) {
	.wifi-page .wifi-venue-grid,
	.wifi-page .wifi-contact {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Tablet: core cards stack and the process timeline goes vertical. */
@media (max-width: 900px) {
	.wifi-page .wifi-core-grid {
		grid-template-columns: 1fr;
	}

	.wifi-page .wifi-core__list {
		grid-template-columns: 1fr;
	}

	.wifi-page .wifi-brand-grid {
		grid-template-columns: 1fr;
	}

	.wifi-page .wifi-process {
		grid-template-columns: 1fr;
		max-width: 30rem;
		margin-inline: auto;
		gap: var(--space-md);
	}

	/* Vertical stack: the horizontal connector no longer applies. */
	.wifi-page .wifi-process__step::before {
		display: none;
	}

	.wifi-page .wifi-process__desc {
		max-width: 40ch;
	}
}

/* Mobile: single column throughout. */
@media (max-width: 620px) {
	.wifi-page .wifi-venue-grid,
	.wifi-page .wifi-contact {
		grid-template-columns: 1fr;
	}

	.wifi-page .wifi-core {
		flex-direction: column;
	}

	/*
	 * The card is now a column, so `flex: 0 0 34%` would resolve against the
	 * card's HEIGHT rather than its width. Reset the basis and give the figure
	 * an explicit landscape ratio instead — stretched to full height in a
	 * column it would otherwise render as a very tall block. It stays last in
	 * source order, so stacked it reads icon, then text, then image.
	 */
	.wifi-page .wifi-core__figure {
		flex: 0 0 auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}
