/*
 * VietWell design system — component layer.
 *
 * Tokens (colour, type, spacing, shadow, radius) live in theme.json and are
 * consumed here as `--wp--preset--*` / `--wp--custom--*` variables. This file
 * only holds the components core blocks cannot express on their own:
 * the boarding pass, the compare table, the step rail, the FAQ, and the
 * decorative blobs.
 *
 * All classes are prefixed `vw-` and applied from patterns via the block
 * "Additional CSS class" field, so every section stays editable in the
 * Site Editor.
 *
 * Loaded on the front end and inside the editor (see functions.php).
 */

/* ---------------------------------------------------------------------------
 * 1. Local aliases
 * Short names for the presets used constantly below.
 * ------------------------------------------------------------------------ */
:root,
.editor-styles-wrapper {
	--vw-mist: var(--wp--preset--color--mist);
	--vw-pastel: var(--wp--preset--color--pastel);
	--vw-pastel-strong: var(--wp--preset--color--pastel-strong);
	--vw-blue: var(--wp--preset--color--blue);
	--vw-blue-deep: var(--wp--preset--color--blue-deep);
	--vw-deep: var(--wp--preset--color--deep);
	--vw-deep-soft: var(--wp--preset--color--deep-soft);
	--vw-warm: var(--wp--preset--color--warm);
	--vw-warm-soft: var(--wp--preset--color--warm-soft);
	--vw-line: var(--wp--preset--color--line);
	--vw-shadow: var(--wp--preset--shadow--lifted);
	--vw-shadow-sm: var(--wp--preset--shadow--soft);
	--vw-r: var(--wp--custom--radius--card);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* ---------------------------------------------------------------------------
 * 2. Eyebrow — small uppercase label with a warm leading rule.
 * ------------------------------------------------------------------------ */
.vw-eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: var(--vw-blue-deep);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.vw-eyebrow::before {
	content: "";
	flex: none;
	width: 26px;
	height: 1.5px;
	background: var(--vw-warm);
}

/* Centred variant, used by centred section headings. */
.vw-eyebrow.has-text-align-center {
	justify-content: center;
}

/* On dark backgrounds the label lightens but keeps the warm rule. */
.vw-on-dark .vw-eyebrow {
	color: var(--vw-warm-soft);
}

/* ---------------------------------------------------------------------------
 * 3. Section heading block
 * ------------------------------------------------------------------------ */
.vw-section-head {
	max-width: 680px;
	margin-bottom: var(--wp--preset--spacing--60);
}

.vw-section-head.has-text-align-center,
.vw-section-head.vw-section-head--center {
	margin-inline: auto;
	text-align: center;
}

.vw-section-head p:not(.vw-eyebrow) {
	color: var(--vw-deep-soft);
	font-size: 1.0625rem;
}

/* An italic display accent, e.g. "Fly home." */
.vw-accent-italic {
	color: var(--vw-warm);
	font-style: italic;
}

.vw-on-dark .vw-accent-italic {
	color: var(--vw-warm-soft);
}

/* ---------------------------------------------------------------------------
 * 4. Header — sticky, translucent, gains a hairline once scrolled.
 * ------------------------------------------------------------------------ */
.vw-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: color-mix(in srgb, var(--vw-mist) 82%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.vw-header.is-scrolled {
	border-bottom-color: var(--vw-line);
}

.vw-header .wp-block-navigation {
	color: var(--vw-deep-soft);
	font-size: 0.90625rem;
	font-weight: 500;
}

.vw-header .wp-block-navigation a:hover {
	color: var(--vw-blue-deep);
	text-decoration: none;
}

.vw-header .wp-block-site-title a {
	color: var(--vw-deep);
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
 * 5. Hero — soft radial blobs behind a two-column layout.
 * ------------------------------------------------------------------------ */
.vw-hero {
	position: relative;
	overflow: hidden;
}

.vw-hero::before,
.vw-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

.vw-hero::before {
	top: -160px;
	right: -160px;
	width: 560px;
	height: 560px;
	background: radial-gradient(circle, var(--vw-pastel-strong), transparent 68%);
	opacity: 0.7;
}

.vw-hero::after {
	bottom: -180px;
	left: -120px;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, var(--vw-warm-soft), transparent 70%);
	opacity: 0.5;
}

.vw-hero > * {
	position: relative;
	z-index: 1;
}

.vw-hero .vw-sub {
	max-width: 480px;
	color: var(--vw-deep-soft);
	font-size: 1.125rem;
}

/* Reassurance row under the hero buttons. Ticks come from the list styling. */
.vw-assure {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--vw-deep-soft);
	font-size: 0.84375rem;
	font-weight: 500;
}

/*
 * The tick is positioned rather than laid out as a flex item: these list items
 * mix bold and plain text, and flex would treat each inline run as its own item
 * and space them apart.
 */
.vw-assure li {
	position: relative;
	padding-left: 23px;
}

/* ---------------------------------------------------------------------------
 * 6. Tick list — shared by the hero assurances and the service cards.
 * The tick is a masked SVG so patterns stay free of inline markup.
 * ------------------------------------------------------------------------ */
.vw-assure li::before,
.vw-check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	width: 16px;
	height: 16px;
	background-color: var(--vw-blue);
	-webkit-mask: var(--vw-tick) center / 16px 16px no-repeat;
	mask: var(--vw-tick) center / 16px 16px no-repeat;
}

.vw-assure li::before {
	top: 50%;
	margin-top: -8px;
}

:root,
.editor-styles-wrapper {
	--vw-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13 4L6 11l-3-3' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.vw-check-list {
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vw-check-list li {
	position: relative;
	padding-left: 27px;
	color: var(--vw-deep-soft);
	font-size: 0.90625rem;
	line-height: 1.55;
}

.vw-check-list li::before {
	top: 4px;
}

.vw-check-list li strong {
	color: var(--vw-deep);
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * 7. Boarding pass — the hero's signature graphic.
 * ------------------------------------------------------------------------ */
.vw-pass {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--vw-line);
	border-radius: 24px;
	box-shadow: var(--vw-shadow);
	transform: rotate(-1.4deg);
}

.vw-pass__top {
	position: relative;
	overflow: hidden;
	padding: 22px 26px;
	background: linear-gradient(135deg, var(--vw-blue), var(--vw-blue-deep));
	color: #fff;
}

.vw-pass__label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.85;
}

.vw-pass__title {
	margin-top: 3px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3125rem;
	font-weight: 600;
	line-height: 1.2;
}

/* The ECG trace bleeds across the full width of the header. */
.vw-pass__ecg {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	width: 100%;
	height: 34px;
	opacity: 0.55;
}

.vw-pass__route {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 26px 18px;
}

.vw-pass__city {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--vw-deep);
}

.vw-pass__place {
	color: var(--vw-deep-soft);
	font-size: 0.75rem;
	font-weight: 500;
}

.vw-pass__node:last-of-type {
	text-align: right;
}

.vw-pass__plane {
	flex: none;
	color: var(--vw-blue-deep);
}

/* Perforation: a dashed rule with a notch punched out of each end. */
.vw-pass__perf {
	position: relative;
	margin: 0 22px;
	border-top: 2px dashed var(--vw-line);
}

.vw-pass__perf::before,
.vw-pass__perf::after {
	content: "";
	position: absolute;
	top: -11px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--vw-mist);
}

.vw-pass__perf::before {
	left: -33px;
}

.vw-pass__perf::after {
	right: -33px;
}

.vw-pass__detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
	padding: 20px 26px 24px;
}

.vw-pass__k {
	color: var(--vw-blue-deep);
	font-size: 0.65625rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.vw-pass__v {
	margin-top: 2px;
	color: var(--vw-deep);
	font-size: 0.875rem;
	font-weight: 600;
}

.vw-pass__stamp {
	position: absolute;
	right: 18px;
	bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	border: 2px solid var(--vw-warm);
	border-radius: 50%;
	color: var(--vw-warm);
	font-size: 0.59375rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-12deg);
	opacity: 0.9;
}

/* ---------------------------------------------------------------------------
 * 8. Trust bar — the stat strip under the hero.
 * ------------------------------------------------------------------------ */
.vw-trust {
	border-top: 1px solid var(--vw-line);
	border-bottom: 1px solid var(--vw-line);
}

.vw-stat {
	text-align: center;
}

.vw-stat .vw-stat__n {
	margin: 0;
	color: var(--vw-blue-deep);
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.125rem;
	font-weight: 600;
	line-height: 1.15;
}

.vw-stat .vw-stat__l {
	margin: 2px 0 0;
	color: var(--vw-deep-soft);
	font-size: 0.8125rem;
	font-weight: 500;
}

/* ---------------------------------------------------------------------------
 * 9. Cards — pain points and services share one base.
 * ------------------------------------------------------------------------ */
.vw-card {
	background: #fff;
	border: 1px solid var(--vw-line);
	border-radius: var(--vw-r);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.vw-card:hover {
	border-color: var(--vw-pastel-strong);
	box-shadow: var(--vw-shadow-sm);
	transform: translateY(-4px);
}

/* --- Pain card: icon tile rendered from a masked SVG on ::before. --- */
.vw-pain-card {
	position: relative;
	padding: 30px 30px 30px 94px;
	height: 100%;
}

.vw-pain-card::before {
	content: "";
	position: absolute;
	top: 30px;
	left: 30px;
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background-color: var(--vw-pastel);
	background-image: var(--vw-pain-icon);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
}

.vw-pain-card h3 {
	margin-bottom: 7px;
	font-size: 1.1875rem;
}

.vw-pain-card p {
	margin: 0;
	color: var(--vw-deep-soft);
	font-size: 0.90625rem;
}

/* Icon variants. Each sets the tile's background image. */
.vw-pain-card--clock {
	--vw-pain-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%233683B8' stroke-width='1.8'/%3E%3Cpath d='M12 7v5l3 2' stroke='%233683B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.vw-pain-card--test {
	--vw-pain-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 3h6M10 3v4l-5 9a3 3 0 003 4h8a3 3 0 003-4l-5-9V3' stroke='%233683B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.vw-pain-card--cost {
	--vw-pain-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 2v20M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6' stroke='%233683B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.vw-pain-card--voice {
	--vw-pain-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 11.5a8.5 8.5 0 01-12.2 7.6L3 21l1.9-5.8A8.5 8.5 0 1121 11.5z' stroke='%233683B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- Service card --- */
.vw-service-card {
	padding: 34px;
	height: 100%;
}

.vw-service-card:hover {
	box-shadow: var(--vw-shadow);
	transform: translateY(-3px);
}

/* Emoji tile + title, laid out side by side. */
.vw-service-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.vw-service-card__emoji {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: 0;
	border-radius: 14px;
	background: var(--vw-pastel);
	font-size: 1.4375rem;
	line-height: 1;
}

/* The optional-extras card leans warm rather than blue. */
.vw-service-card--warm .vw-service-card__emoji {
	background: var(--vw-warm-soft);
}

.vw-service-card__head h3 {
	margin: 0;
	font-size: 1.3125rem;
}

.vw-service-card__tag {
	margin: 0;
	color: var(--vw-blue-deep);
	font-size: 0.78125rem;
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * 10. Solution band — inset dark panel with a blue glow.
 * ------------------------------------------------------------------------ */
.vw-band {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--band);
	background: var(--vw-deep);
	color: #fff;
}

.vw-band::before {
	content: "";
	position: absolute;
	top: -120px;
	right: -80px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(79, 156, 207, 0.4), transparent 70%);
	pointer-events: none;
}

.vw-band > * {
	position: relative;
	z-index: 1;
}

.vw-band h2 {
	color: #fff;
}

.vw-band p {
	color: #c7d8e3;
}

/* On the dark band the primary button inverts to white. */
.vw-on-dark .wp-block-button__link,
.vw-band .wp-block-button__link {
	background-color: #fff;
	color: var(--vw-blue-deep);
}

.vw-on-dark .wp-block-button__link:hover,
.vw-band .wp-block-button__link:hover {
	background-color: var(--vw-deep);
	color: #fff;
}

/* Ghost button on dark: outlined in translucent white. */
.vw-on-dark .is-style-ghost .wp-block-button__link {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.vw-on-dark .is-style-ghost .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * 11. Compare table — Vietnam vs. the alternatives.
 * ------------------------------------------------------------------------ */
.vw-compare {
	padding: 10px;
	background: #fff;
	border: 1px solid var(--vw-line);
	border-radius: var(--vw-r);
	box-shadow: var(--vw-shadow-sm);
}

.vw-compare table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

.vw-compare th,
.vw-compare td {
	padding: 15px 18px;
	border: 0;
	vertical-align: middle;
}

.vw-compare thead th {
	color: var(--vw-deep-soft);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Column 2 is Vietnam — emphasised; column 3 is everyone else. */
.vw-compare th:nth-child(2),
.vw-compare td:nth-child(2) {
	color: var(--vw-blue-deep);
	font-weight: 700;
	text-align: center;
}

.vw-compare th:nth-child(3),
.vw-compare td:nth-child(3) {
	color: var(--vw-deep-soft);
	text-align: center;
}

.vw-compare tbody td:first-child {
	color: var(--vw-deep);
	font-size: 0.875rem;
	font-weight: 600;
}

/* Zebra striping, with the radius carried onto the end cells. */
.vw-compare tbody tr:nth-child(odd) td {
	background: var(--vw-mist);
}

.vw-compare tbody tr:nth-child(odd) td:first-child {
	border-radius: 12px 0 0 12px;
}

.vw-compare tbody tr:nth-child(odd) td:last-child {
	border-radius: 0 12px 12px 0;
}

/* ---------------------------------------------------------------------------
 * 12. Steps — four stops joined by dashed chevrons.
 * ------------------------------------------------------------------------ */
.vw-step {
	position: relative;
	padding: 0 22px;
}

.vw-step .vw-step__n {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0 0 20px;
	border: 2px solid var(--vw-pastel-strong);
	border-radius: 50%;
	background: #fff;
	color: var(--vw-blue-deep);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1;
}

.vw-step h3 {
	margin-bottom: 8px;
	font-size: 1.125rem;
}

.vw-step p {
	margin: 0;
	color: var(--vw-deep-soft);
	font-size: 0.875rem;
}

/* Chevron between steps — hidden on the last one and when stacked. */
.vw-steps .wp-block-column:not(:last-child) .vw-step::after {
	content: "";
	position: absolute;
	top: 26px;
	right: -6px;
	width: 12px;
	height: 12px;
	border-top: 2px dashed var(--vw-pastel-strong);
	border-right: 2px dashed var(--vw-pastel-strong);
	transform: rotate(45deg);
}

/* ---------------------------------------------------------------------------
 * 13. FAQ — built on core/details, so it works without JavaScript.
 * ------------------------------------------------------------------------ */
.vw-faq {
	max-width: 780px;
	margin-inline: auto;
}

.vw-faq .wp-block-details {
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--vw-line);
	background: transparent;
}

.vw-faq .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 4px;
	cursor: pointer;
	color: var(--vw-deep);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.0625rem;
	font-weight: 600;
	list-style: none;
}

.vw-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

/* Replace the native marker with a circular +, which rotates into an ×. */
.vw-faq .wp-block-details summary::after {
	content: "+";
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1.5px solid var(--vw-line);
	border-radius: 50%;
	color: var(--vw-blue-deep);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.vw-faq .wp-block-details[open] summary::after {
	background: var(--vw-blue-deep);
	border-color: var(--vw-blue-deep);
	color: #fff;
	transform: rotate(45deg);
}

.vw-faq .wp-block-details p {
	padding: 0 4px 24px;
	margin: 0;
	color: var(--vw-deep-soft);
	font-size: 0.9375rem;
}

/* ---------------------------------------------------------------------------
 * 14. Final CTA — gradient card with two soft orbs.
 * ------------------------------------------------------------------------ */
.vw-cta-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--band);
	background: linear-gradient(135deg, var(--vw-blue), var(--vw-blue-deep));
	color: #fff;
	text-align: center;
}

.vw-cta-card::before,
.vw-cta-card::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.vw-cta-card::before {
	top: -100px;
	left: -60px;
	width: 340px;
	height: 340px;
	background: rgba(255, 255, 255, 0.1);
}

.vw-cta-card::after {
	bottom: -120px;
	right: -60px;
	width: 360px;
	height: 360px;
	background: rgba(235, 164, 137, 0.28);
}

.vw-cta-card > * {
	position: relative;
	z-index: 1;
}

.vw-cta-card h2 {
	color: #fff;
}

.vw-cta-card p {
	max-width: 520px;
	margin-inline: auto;
	color: #e4eef5;
	font-size: 1.125rem;
}

/* ---------------------------------------------------------------------------
 * 15. Footer
 * ------------------------------------------------------------------------ */
.vw-footer {
	background: var(--vw-deep);
	color: #a9c2d2;
}

.vw-footer .wp-block-site-title a {
	color: #fff;
	font-size: 1.4375rem;
}

.vw-footer h4 {
	margin-bottom: 16px;
	color: #fff;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.vw-footer a:not(.wp-block-button__link) {
	color: #a9c2d2;
	text-decoration: none;
}

.vw-footer a:not(.wp-block-button__link):hover {
	color: #fff;
	text-decoration: none;
}

.vw-footer .wp-block-navigation {
	font-size: 0.875rem;
}

/* Footer link columns are plain lists, without bullets. */
.vw-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.vw-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8125rem;
}

.vw-footer__bottom p {
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * 16. Buttons — ghost variant (registered as a block style in five-utilities).
 * ------------------------------------------------------------------------ */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	border: 1.5px solid transparent;
	transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	white-space: nowrap;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.is-style-ghost .wp-block-button__link {
	background-color: transparent;
	border-color: var(--vw-line);
	box-shadow: none;
	color: var(--vw-deep);
}

.is-style-ghost .wp-block-button__link:hover {
	background-color: #fff;
	border-color: var(--vw-blue);
	color: var(--vw-blue-deep);
}

/* ---------------------------------------------------------------------------
 * 17. Directory — archive cards + facts, shared by all Featured List types
 * (hospitals, hotels, restaurants, destinations).
 * ------------------------------------------------------------------------ */
.vw-archive .wp-block-query-title {
	margin: 0;
}

.vw-entry-grid {
	gap: var(--wp--preset--spacing--40);
}

.vw-entry-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 16px 16px 22px;
}

.vw-entry-card__image img {
	border-radius: 14px;
}

.vw-entry-card .wp-block-post-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.vw-entry-card .wp-block-post-title a {
	color: var(--vw-deep);
	text-decoration: none;
}

.vw-entry-card .wp-block-post-title a:hover {
	color: var(--vw-blue-deep);
}

/* Location terms act as the card's eyebrow. */
.vw-entry-card__terms {
	margin: 4px 0 0;
	color: var(--vw-blue-deep);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.vw-entry-card__terms a {
	color: inherit;
	text-decoration: none;
}

.vw-entry-card__excerpt {
	margin: 0;
	color: var(--vw-deep-soft);
	font-size: 0.90625rem;
}

.vw-entry-card__excerpt p {
	margin: 0;
}

/* Facts sit at the bottom of the card regardless of excerpt length. */
.vw-entry-card .vw-facts--inline {
	margin-top: auto;
	padding-top: 14px;
}

/* --- Facts (block: five/entry-facts) --- */
.vw-facts {
	margin: 0;
}

.vw-facts__row {
	display: grid;
	grid-template-columns: 40% 1fr;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--vw-line);
}

.vw-facts__row:last-child {
	border-bottom: 0;
}

.vw-facts__label {
	margin: 0;
	color: var(--vw-deep-soft);
	font-size: 0.8125rem;
	font-weight: 500;
}

.vw-facts__value {
	margin: 0;
	color: var(--vw-deep);
	font-size: 0.90625rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.vw-facts__value a {
	color: var(--vw-blue-deep);
	text-decoration: none;
}

.vw-facts__value a:hover {
	text-decoration: underline;
}

/* Inline variant: one compact line, items separated by a middot. */
.vw-facts--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0;
	color: var(--vw-deep-soft);
	font-size: 0.8125rem;
	font-weight: 500;
}

.vw-facts--inline .vw-facts__item + .vw-facts__item::before {
	content: "·";
	margin-right: 10px;
	color: var(--vw-pastel-strong);
}

.vw-facts--inline a {
	color: var(--vw-blue-deep);
	text-decoration: none;
}

/* --- Single entry --- */
.vw-entry .vw-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.vw-facts-panel {
	position: sticky;
	top: 100px; /* Chừa chỗ cho header dính. */
	padding: 28px;
}

.vw-facts-panel h2 {
	margin: 0;
}

/* Sticky panel gây khó chịu trên màn hình hẹp — bỏ khi đã xếp chồng. */
@media (max-width: 781px) {
	.vw-facts-panel {
		position: static;
	}
}

/* ---------------------------------------------------------------------------
 * 18. Scroll reveal — opt-in, and inert until the script marks it ready.
 * Without JS (or with reduced motion) content simply stays visible.
 * ------------------------------------------------------------------------ */
.vw-reveal-ready .vw-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.vw-reveal-ready .vw-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------------------------------------------
 * 19. Responsive
 * Core stacks columns at 781px; the bespoke pieces follow suit here.
 * ------------------------------------------------------------------------ */
@media (max-width: 781px) {
	.vw-pass {
		transform: none;
	}

	.vw-steps .wp-block-column .vw-step {
		padding: 0;
	}

	.vw-steps .wp-block-column:not(:last-child) .vw-step::after {
		display: none;
	}

	.vw-compare th,
	.vw-compare td {
		padding: 13px 12px;
	}

	.vw-hero .vw-sub {
		max-width: none;
	}
}

@media (max-width: 600px) {
	/*
	 * A narrow pass leaves no clear corner for the stamp, so it stops floating
	 * over the detail grid and takes its own centred row underneath.
	 */
	.vw-pass__detail {
		padding-bottom: 104px;
	}

	.vw-pass__stamp {
		right: auto;
		bottom: 14px;
		left: 50%;
		margin-left: -39px;
	}

	.vw-pain-card {
		padding: 26px;
	}

	/* Stack the icon above the copy once the card gets narrow. */
	.vw-pain-card::before {
		position: static;
		margin-bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.vw-reveal-ready .vw-reveal {
		opacity: 1;
		transform: none;
	}
}
