/* ==========================================================================
   ONE ERA — main stylesheet (mobile-first)
   Visual reference: images/One Era – Đô thị đáng sống.png (ADR-P11).
   Design tokens are CSS custom properties; brand colors can be overridden
   from ONE ERA → Cài đặt (printed as #one-era-tokens).
   ========================================================================== */

/* ---------- 0. Fonts (formerly fonts.css; merged to save a render-blocking request) ----------
   Subsets: latin + vietnamese only. The vietnamese subset covers every Vietnamese letter (ă â đ ê ô ơ ư
   and tone marks); latin-ext was dropped because its overlapping range made browsers fetch both (Phase 5). */
/* Self-hosted fonts (SIL OFL 1.1, see assets/fonts/OFL-*.txt). Generated from @fontsource 5.0.8. */
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-display:swap;font-weight:400;src:url('../fonts/be-vietnam-pro-vietnamese-400-normal.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-display:swap;font-weight:400;src:url('../fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-display:swap;font-weight:500;src:url('../fonts/be-vietnam-pro-vietnamese-500-normal.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-display:swap;font-weight:500;src:url('../fonts/be-vietnam-pro-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-display:swap;font-weight:600;src:url('../fonts/be-vietnam-pro-vietnamese-600-normal.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-display:swap;font-weight:600;src:url('../fonts/be-vietnam-pro-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:normal;font-display:swap;font-weight:500;src:url('../fonts/playfair-display-vietnamese-500-normal.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Playfair Display';font-style:normal;font-display:swap;font-weight:500;src:url('../fonts/playfair-display-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:normal;font-display:swap;font-weight:600;src:url('../fonts/playfair-display-vietnamese-600-normal.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Playfair Display';font-style:normal;font-display:swap;font-weight:600;src:url('../fonts/playfair-display-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---------- 1. Tokens ---------- */
:root {
	/* Brand (overridable) */
	--oe-color-primary: #00263A;
	--oe-color-accent: #E9B65B;
	--lco-brand: var(--oe-color-primary); /* LAMMO Contact One plugin brand colour (ADR-P20) */
	--oe-color-surface: #F7F3EC;
	--oe-color-text: #1B2A35;

	/* Derived (static fallbacks; refined with color-mix below) */
	--oe-primary-deep: #001A29;
	--oe-primary-soft: #0E3A52;
	--oe-accent-hover: #F0C77E;
	--oe-accent-ink: #7A5A1E;   /* gold text on light backgrounds, ≥ 4.5:1 on white */
	--oe-highlight: #A03A12;    /* small eyebrow on cream (banner), ≥ 5:1 on #F7F3EC */
	--oe-muted: #56636D;
	--oe-border: #E2DDD3;
	--oe-white: #FFFFFF;
	--oe-on-dark: #FFFFFF;
	--oe-on-dark-muted: rgba(255, 255, 255, .8);
	--oe-on-dark-border: rgba(255, 255, 255, .18);
	--oe-on-dark-line: rgba(255, 255, 255, .34);
	--oe-scrim: rgba(0, 26, 41, .72);
	--oe-success: #1E7B4A;
	--oe-error: #B42318;
	--oe-error-on-dark: #FFB4A9;

	/* Typography */
	--oe-font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--oe-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--oe-fs-2xs: .75rem;
	--oe-fs-xs: .8125rem;
	--oe-fs-sm: .9375rem;
	--oe-fs-base: 1rem;
	--oe-fs-lg: 1.0625rem;
	--oe-fs-h4: 1.0625rem;
	--oe-fs-h3: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem);
	--oe-fs-h2: clamp(1.5rem, 1.15rem + 1.5vw, 2.375rem);
	--oe-fs-h2-sm: clamp(1.25rem, 1.05rem + .8vw, 1.625rem);
	--oe-fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
	--oe-fs-stat: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
	--oe-lh-tight: 1.28; /* room for stacked Vietnamese diacritics (Ể, Ỗ) on uppercase headings */
	--oe-lh: 1.6;

	/* Spacing scale */
	--oe-space-1: .25rem;
	--oe-space-2: .5rem;
	--oe-space-3: .75rem;
	--oe-space-4: 1rem;
	--oe-space-5: 1.5rem;
	--oe-space-6: 2rem;
	--oe-space-7: 3rem;
	--oe-space-8: 4rem;
	--oe-section-y: clamp(3.5rem, 1.2rem + 5.9vw, 6.5rem); /* 56px @320 → ~104px @1440 (§21) */
	--oe-fade-h: calc(var(--oe-section-y) * .8);          /* section-to-section colour fade, inside the padding */

	/* Layout — width system shared with the CMS (admin.css --oe-admin-*). */
	--oe-container: 1400px;                              /* max content frame */
	--oe-gutter: clamp(1rem, .4rem + 2.6vw, 2.5rem);     /* side gutter: 16px @390 → 40px @1440+ */
	--oe-gap: 1rem;                                      /* cards / tiles in a grid */
	--oe-gap-lg: clamp(2rem, 1.5rem + 1.5vw, 3rem);      /* between major columns */
	--oe-measure: 65ch;                                  /* max line length for paragraphs */
	--oe-measure-narrow: 52ch;                           /* hero / banner lead text */
	--oe-measure-article: 60rem;                         /* §29 article frame (posts, pages): 960px — text, featured image, CTA, "Tin khác" all run full width */
	--oe-article-media: 100%;                            /* §29 images / galleries / embeds inside the post body: 100% of the frame on phones, 82% from 768px */
	--oe-fs-prose: var(--oe-fs-lg);                      /* §29 long-read body: 17px, 19px from 1024px (long 960px line) */
	--oe-lh-prose: 1.7;                                  /* §29 long-read line height (stacked Vietnamese diacritics) */
	--oe-header-h: 64px;

	/* Shape */
	--oe-radius-sm: 6px;
	--oe-radius: 10px;
	--oe-radius-lg: 16px;
	--oe-radius-pill: 999px;
	--oe-shadow-sm: 0 2px 8px rgba(0, 26, 41, .08);
	--oe-shadow: 0 12px 32px rgba(0, 26, 41, .14);
	--oe-shadow-lg: 0 24px 60px rgba(0, 26, 41, .28);

	--oe-ease: cubic-bezier(.2, .7, .2, 1);
	--oe-duration: .25s;
}

@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--oe-primary-deep: color-mix(in srgb, var(--oe-color-primary) 70%, #000);
		--oe-primary-soft: color-mix(in srgb, var(--oe-color-primary) 88%, #fff);
		--oe-accent-hover: color-mix(in srgb, var(--oe-color-accent) 80%, #fff);
		--oe-accent-ink: color-mix(in srgb, var(--oe-color-accent) 50%, #000);
		--oe-muted: color-mix(in srgb, var(--oe-color-text) 75%, #fff);
		--oe-border: color-mix(in srgb, var(--oe-color-text) 13%, var(--oe-color-surface));
		--oe-scrim: color-mix(in srgb, var(--oe-primary-deep) 72%, transparent);
	}
}

@media (min-width: 1024px) {
	:root { --oe-header-h: 76px; --oe-fs-prose: 1.1875rem; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--oe-header-h) + 8px); }
body {
	margin: 0;
	font-family: var(--oe-font-body);
	font-size: var(--oe-fs-base);
	line-height: var(--oe-lh);
	color: var(--oe-color-text);
	background: var(--oe-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { border-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 var(--oe-space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0 0 var(--oe-space-4); font-family: var(--oe-font-heading); font-weight: 500; line-height: var(--oe-lh-tight); letter-spacing: -.005em; }
h3, h4 { font-family: var(--oe-font-body); font-weight: 600; letter-spacing: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
dialog { color: inherit; }
:focus-visible { outline: 3px solid var(--oe-color-accent); outline-offset: 3px; border-radius: 2px; }
.oe-theme--light :focus-visible, .oe-theme--cream :focus-visible { outline-color: var(--oe-accent-ink); }
.oe-theme--light .oe-theme--dark :focus-visible, .oe-theme--cream .oe-theme--dark :focus-visible { outline-color: var(--oe-color-accent); }
.oe-main:focus { outline: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.oe-skip-link {
	position: absolute; left: var(--oe-space-4); top: -100px; z-index: 1000;
	padding: var(--oe-space-3) var(--oe-space-4); background: var(--oe-color-accent); color: var(--oe-color-primary);
	font-weight: 600; border-radius: var(--oe-radius-sm); text-decoration: none;
}
.oe-skip-link:focus { top: var(--oe-space-4); }

.oe-container { width: 100%; max-width: calc(var(--oe-container) + 2 * var(--oe-gutter)); margin-inline: auto; padding-inline: var(--oe-gutter); }
.oe-narrow { max-width: calc(760px + 2 * var(--oe-gutter)); }
.oe-center { text-align: center; }

/* ---------- 3. Section themes ---------- */
.oe-section { position: relative; padding-block: var(--oe-section-y); }
.oe-theme--light { --oe-section-bg: var(--oe-white); background: var(--oe-white); color: var(--oe-color-text); }
.oe-theme--cream { --oe-section-bg: var(--oe-color-surface); background: var(--oe-color-surface); color: var(--oe-color-text); }
.oe-theme--dark { --oe-section-bg: var(--oe-color-primary); background: var(--oe-color-primary); color: var(--oe-on-dark); }
.oe-section.has-bg { isolation: isolate; overflow: hidden; }
.oe-section__bg { position: absolute; inset: 0; z-index: -1; }
.oe-section__bg img { width: 100%; height: 100%; object-fit: cover; }
.oe-section__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 26, 41, .9) 0%, rgba(0, 26, 41, .72) 55%, rgba(0, 26, 41, .62) 100%), linear-gradient(0deg, rgba(0, 26, 41, .75), rgba(0, 26, 41, 0) 60%); }

/* ---------- 3b. Section transitions (UI contract §21) ----------
   The theme adds "oe-next--{light|cream|dark|footer}" to a block whose next rendered block has another
   background (inc/template-functions.php → oe_section_transitions), and "oe-prev--hero" to the block after
   the photo hero. The fade is a background layer (never above content) of height --oe-fade-h, which is
   smaller than the section padding, so it only tints padding. Brand tokens only: CMS colours flow through.
   Light ↔ dark goes through --oe-primary-soft so the mid-tones stay clean navy, not grey. */
.oe-next--light  { --oe-fade-to: var(--oe-white); }
.oe-next--cream  { --oe-fade-to: var(--oe-color-surface); }
.oe-next--dark   { --oe-fade-to: var(--oe-color-primary); }
.oe-next--footer { --oe-fade-to: var(--oe-primary-deep); }
[class*="oe-next--"] { --oe-fade-bottom: linear-gradient(180deg, transparent 0%, var(--oe-fade-to) 100%); }
.oe-theme--dark.oe-next--light, .oe-theme--dark.oe-next--cream { --oe-fade-bottom: linear-gradient(180deg, transparent 0%, var(--oe-primary-soft) 22%, var(--oe-fade-to) 100%); }
.oe-theme--light.oe-next--dark, .oe-theme--cream.oe-next--dark,
.oe-theme--light.oe-next--footer, .oe-theme--cream.oe-next--footer { --oe-fade-bottom: linear-gradient(180deg, transparent 0%, var(--oe-primary-soft) 78%, var(--oe-fade-to) 100%); }
.oe-prev--hero { --oe-fade-top: linear-gradient(180deg, var(--oe-primary-deep) 0%, var(--oe-primary-soft) 18%, transparent 100%); }
.oe-theme--dark.oe-prev--hero { --oe-fade-top: linear-gradient(180deg, var(--oe-primary-deep) 0%, transparent 100%); }
/* Eased stops (slow start, slow finish) keep the mixed mid-tone band narrow, so light ↔ navy never reads grey. */
@supports (color: color-mix(in srgb, red, blue)) {
	.oe-theme--dark.oe-next--light, .oe-theme--dark.oe-next--cream {
		--oe-fade-bottom: linear-gradient(180deg, transparent 0%, var(--oe-primary-soft) 14%, color-mix(in srgb, var(--oe-fade-to) 50%, var(--oe-primary-soft)) 42%, color-mix(in srgb, var(--oe-fade-to) 88%, var(--oe-primary-soft)) 70%, var(--oe-fade-to) 100%);
	}
	/* §22: smoothstep-eased alpha ramp (flat at both ends, no slope break; alpha, so a photo above still shows
	   through). The hue drifts from --oe-primary-soft to the target navy while lightness only falls, so no
	   lighter band sits right above the navy edge. It uses the whole bottom padding (--oe-fade-h-bottom). */
	.oe-theme--light.oe-next--dark, .oe-theme--cream.oe-next--dark,
	.oe-theme--light.oe-next--footer, .oe-theme--cream.oe-next--footer {
		--oe-fade-bottom: linear-gradient(180deg,
			transparent 0%,
			color-mix(in srgb, var(--oe-primary-soft) 3%, transparent) 10%,
			color-mix(in srgb, var(--oe-primary-soft) 10%, transparent) 20%,
			color-mix(in srgb, color-mix(in oklab, var(--oe-fade-to) 20%, var(--oe-primary-soft)) 22%, transparent) 30%,
			color-mix(in srgb, color-mix(in oklab, var(--oe-fade-to) 40%, var(--oe-primary-soft)) 35%, transparent) 40%,
			color-mix(in srgb, color-mix(in oklab, var(--oe-fade-to) 60%, var(--oe-primary-soft)) 50%, transparent) 50%,
			color-mix(in srgb, color-mix(in oklab, var(--oe-fade-to) 75%, var(--oe-primary-soft)) 65%, transparent) 60%,
			color-mix(in srgb, color-mix(in oklab, var(--oe-fade-to) 88%, var(--oe-primary-soft)) 78%, transparent) 70%,
			color-mix(in srgb, var(--oe-fade-to) 90%, transparent) 80%,
			color-mix(in srgb, var(--oe-fade-to) 97%, transparent) 90%,
			var(--oe-fade-to) 100%);
	}
	/* The hero keeps its framed bottom edge (stats strip); the next light block only takes a soft navy veil. */
	.oe-prev--hero { --oe-fade-top: linear-gradient(180deg, color-mix(in srgb, var(--oe-primary-deep) 45%, transparent) 0%, color-mix(in srgb, var(--oe-primary-deep) 14%, transparent) 35%, transparent 100%); }
	.oe-theme--dark.oe-prev--hero { --oe-fade-top: linear-gradient(180deg, var(--oe-primary-deep) 0%, transparent 100%); }
}

.oe-section[class*="oe-next--"], .oe-duo[class*="oe-next--"], .oe-prev--hero {
	background-image: var(--oe-fade-top, none), var(--oe-fade-bottom, none);
	background-repeat: no-repeat;
	/* The bottom fade overhangs by 1px: with fractional section heights the last device row could otherwise
	   be left uncovered and show the section colour as a thin light line above the next block. */
	background-position: top, left 0 bottom -1px;
	background-size: 100% var(--oe-fade-h), 100% calc(var(--oe-fade-h-bottom, var(--oe-fade-h)) + 1px);
}
/* Light → navy needs the longest run to stay clean (§22): 90% of the bottom padding, so ≥ 10% stays clear above content (§24). */
.oe-theme--light.oe-next--dark, .oe-theme--cream.oe-next--dark,
.oe-theme--light.oe-next--footer, .oe-theme--cream.oe-next--footer { --oe-fade-h-bottom: calc(var(--oe-section-y) * .9); }
/* Photo-backed sections: the photo covers the section background, so the fades are pseudo layers above
   the photo (the section is isolated, the photo sits at z-index -1). The photo always melts into the
   section's own base colour at both edges; the bottom edge melts into the next background instead when it differs. */
.oe-section.has-bg::before, .oe-section.has-bg::after { content: ""; position: absolute; left: 0; right: 0; height: var(--oe-fade-h); pointer-events: none; }
.oe-section.has-bg::before { top: 0; background: var(--oe-fade-top, linear-gradient(180deg, var(--oe-section-bg) 0%, transparent 100%)); }
.oe-section.has-bg::after { bottom: 0; height: var(--oe-fade-h-bottom, var(--oe-fade-h)); background: var(--oe-fade-bottom, linear-gradient(180deg, transparent 0%, var(--oe-section-bg) 100%)); }
/* Overview photo that reaches the section's bottom edge (no note/regional block after it). */
/* Same height, stops and bottom line as the section's own bottom fade (§24), so the band runs on across the
   photo's left edge with no vertical seam (the photo's white left veil sits below this layer). */
.oe-overview__stage:last-child .oe-overview__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: var(--oe-fade-h-bottom, var(--oe-fade-h)); pointer-events: none; background: var(--oe-fade-bottom, none); }

/* ---------- 4. Headings, eyebrow, notes, badges ---------- */
.oe-eyebrow {
	margin: 0 0 var(--oe-space-2);
	font-size: var(--oe-fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--oe-accent-ink);
}
.oe-theme--dark .oe-eyebrow, .oe-hero .oe-eyebrow { color: var(--oe-color-accent); }
.oe-eyebrow--highlight { color: var(--oe-highlight); letter-spacing: .08em; }
.oe-eyebrow a { text-decoration: none; }

.oe-heading { max-width: 760px; margin-bottom: var(--oe-space-5); }
.oe-heading--center { margin-inline: auto; text-align: center; }
.oe-heading__title { font-size: var(--oe-fs-h2); text-transform: uppercase; margin-bottom: var(--oe-space-3); color: var(--oe-color-primary); letter-spacing: .01em; text-wrap: balance; }
.oe-theme--dark .oe-heading__title { color: var(--oe-on-dark); }
.oe-heading__intro { color: var(--oe-muted); font-size: var(--oe-fs-base); max-width: var(--oe-measure); }
.oe-theme--dark .oe-heading__intro { color: var(--oe-on-dark-muted); }
.oe-heading-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--oe-space-3) var(--oe-space-6); margin-bottom: var(--oe-space-5); }
.oe-heading-row .oe-heading { margin-bottom: 0; }
.oe-heading-row > .oe-actions { margin-top: 0; }

.oe-note { margin-top: var(--oe-space-5); font-size: var(--oe-fs-xs); color: var(--oe-muted); font-style: italic; max-width: var(--oe-measure); }
.oe-theme--dark .oe-note, .oe-hero .oe-note { color: var(--oe-on-dark-muted); }


.oe-badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; margin-top: var(--oe-space-2);
	font-family: var(--oe-font-body); font-size: 11px; font-weight: 600; line-height: 1.7; letter-spacing: .03em;
	border-radius: var(--oe-radius-pill); border: 1px solid currentColor; color: var(--oe-muted); vertical-align: middle; white-space: nowrap;
}
.oe-badge--existing { color: var(--oe-success); }
.oe-badge--in_progress { color: #8A5F00; }
.oe-badge--approved, .oe-badge--expected { color: var(--oe-accent-ink); }
.oe-theme--dark .oe-badge { color: var(--oe-on-dark-muted); }
.oe-theme--dark .oe-badge--existing { color: #8FE0B4; }
.oe-theme--dark .oe-badge--approved, .oe-theme--dark .oe-badge--expected, .oe-theme--dark .oe-badge--in_progress { color: var(--oe-color-accent); }

/* ---------- 5. Buttons ---------- */
.oe-actions { display: flex; flex-wrap: wrap; gap: var(--oe-space-3); margin-top: var(--oe-space-5); }
.oe-actions:empty { display: none; }
.oe-actions--center { justify-content: center; }

.oe-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--oe-space-2);
	min-height: 48px; padding: .75rem 1.5rem;
	font-size: var(--oe-fs-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
	border: 1.5px solid transparent; border-radius: var(--oe-radius-pill); cursor: pointer;
	transition: background-color var(--oe-duration) var(--oe-ease), color var(--oe-duration) var(--oe-ease), border-color var(--oe-duration) var(--oe-ease), transform var(--oe-duration) var(--oe-ease), box-shadow var(--oe-duration) var(--oe-ease);
}
.oe-btn .oe-icon { width: 18px; height: 18px; flex: none; }
.oe-btn__icon--lead { width: 16px; height: 16px; }
.oe-btn--primary { background: var(--oe-color-accent); color: var(--oe-color-primary); box-shadow: 0 6px 18px rgba(233, 182, 91, .25); }
.oe-btn--primary:hover { background: var(--oe-accent-hover); transform: translateY(-1px); }
.oe-btn--outline { background: transparent; color: var(--oe-color-primary); border-color: var(--oe-color-primary); }
.oe-btn--outline:hover { background: var(--oe-color-primary); color: var(--oe-on-dark); }
.oe-theme--dark .oe-btn--outline, .oe-btn--on-dark.oe-btn--outline, .oe-hero .oe-btn--outline { color: var(--oe-on-dark); border-color: rgba(255, 255, 255, .8); }
.oe-theme--dark .oe-btn--outline:hover, .oe-btn--on-dark.oe-btn--outline:hover, .oe-hero .oe-btn--outline:hover { background: var(--oe-on-dark); color: var(--oe-color-primary); border-color: var(--oe-on-dark); }
.oe-btn--ghost { min-height: 44px; padding-inline: 0; background: none; border: 0; color: var(--oe-accent-ink); text-transform: none; letter-spacing: 0; font-size: var(--oe-fs-sm); font-weight: 600; }
.oe-theme--dark .oe-btn--ghost, .oe-hero .oe-btn--ghost { color: var(--oe-color-accent); }
.oe-btn--ghost:hover .oe-btn__icon { transform: translateX(4px); }
.oe-btn__icon { transition: transform var(--oe-duration) var(--oe-ease); }
.oe-btn--sm { min-height: 44px; padding: .5rem 1.1rem; }
.oe-btn--block { width: 100%; }
.oe-btn[disabled], .oe-btn.is-loading { opacity: .7; cursor: progress; transform: none; }
.oe-more-link { font-size: var(--oe-fs-xs); color: var(--oe-muted); }
.oe-more-link[hidden] { display: none; }

/* ---------- 6. Header (Section 01) ---------- */
.oe-site-header { position: relative; z-index: 100; background: var(--oe-color-primary); color: var(--oe-on-dark); transition: box-shadow var(--oe-duration) var(--oe-ease), background-color var(--oe-duration); }
.oe-site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .oe-site-header.is-sticky { top: 46px; }
@media (min-width: 783px) { .admin-bar .oe-site-header.is-sticky { top: 32px; } }
@media (max-width: 600px) { .admin-bar .oe-site-header.is-sticky { top: 0; } }
.oe-site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .25); background: rgba(0, 26, 41, .96); }
@supports (backdrop-filter: blur(8px)) {
	.oe-site-header.is-scrolled { background: color-mix(in srgb, var(--oe-color-primary) 92%, transparent); backdrop-filter: blur(10px); }
}
.oe-site-header__inner { display: flex; align-items: center; gap: var(--oe-space-4); min-height: var(--oe-header-h); }
.oe-site-header__actions { display: flex; align-items: center; gap: var(--oe-space-2); margin-left: auto; }

.oe-brand { display: inline-flex; flex-direction: column; justify-content: center; text-decoration: none; color: inherit; line-height: 1; }
.oe-brand__logo { width: auto; max-height: 44px; max-width: 180px; object-fit: contain; }
.oe-brand__name { font-family: var(--oe-font-heading); font-size: 1.5rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.oe-brand__tagline { margin-top: 5px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--oe-color-accent); white-space: nowrap; }
/* The CTA label and the menu button never wrap or shrink (a 2-line "TƯ VẤN" and a 34px toggle at 320px, 0.3.1). */
.oe-site-header__cta { flex: none; white-space: nowrap; }
.oe-site-header__actions > .oe-nav-toggle { flex: none; }
/* Below 360px the row (logo · CTA · menu) is ~30px too wide: tighten gaps, CTA side padding and tagline tracking. */
@media (max-width: 359.98px) {
	.oe-site-header__inner { gap: var(--oe-space-2); }
	.oe-site-header__actions { gap: var(--oe-space-1); }
	.oe-site-header__cta { padding-inline: .75rem; }
	.oe-brand__tagline { letter-spacing: .18em; }
}

.oe-only-desktop { display: none; }
.oe-nav-toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	background: transparent; color: inherit; border: 1px solid var(--oe-on-dark-border); border-radius: var(--oe-radius-sm); cursor: pointer;
}
.oe-nav-toggle__close { display: none; }
.oe-nav-toggle[aria-expanded="true"] .oe-nav-toggle__open { display: none; }
.oe-nav-toggle[aria-expanded="true"] .oe-nav-toggle__close { display: block; }

/* Mobile navigation panel (JS adds .js; without JS the list is shown inline below the bar). */
.oe-nav { order: 10; width: 100%; padding-bottom: var(--oe-space-3); }
.oe-site-header__inner { flex-wrap: wrap; }
.oe-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--oe-space-1) var(--oe-space-4); }
.oe-nav__link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--oe-fs-sm); text-decoration: none; color: var(--oe-on-dark-muted); position: relative; }
.oe-nav__link:hover, .oe-nav__link.is-active, .oe-nav__link.is-current { color: var(--oe-on-dark); }
/* §7–§8 (UI_CONTRACT_FAQ_PAGE): page items (Trang chủ, Trang FAQ) marked current; mobile panel adds a gold bar. */
.js .oe-nav .oe-nav__link.is-current { box-shadow: inset 3px 0 0 var(--oe-color-accent); padding-left: var(--oe-space-3); }
.oe-nav__cta { display: none; }
.no-js .oe-nav-toggle { display: none; }

.js .oe-site-header__inner { flex-wrap: nowrap; }
.js .oe-nav {
	position: fixed; inset: var(--oe-header-h) 0 0 0; z-index: 99; width: auto; padding: var(--oe-space-5) var(--oe-gutter) var(--oe-space-7);
	background: var(--oe-primary-deep); overflow-y: auto; overscroll-behavior: contain;
	visibility: hidden; opacity: 0; transform: translateY(-8px);
	transition: opacity var(--oe-duration) var(--oe-ease), transform var(--oe-duration) var(--oe-ease), visibility 0s linear var(--oe-duration);
}
.admin-bar.js .oe-nav { top: calc(var(--oe-header-h) + 46px); }
.js .oe-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.js .oe-nav .oe-nav__list { flex-direction: column; gap: 0; }
.js .oe-nav .oe-nav__link { display: flex; width: 100%; min-height: 56px; font-size: var(--oe-fs-lg); border-bottom: 1px solid var(--oe-on-dark-border); }
.js .oe-nav .oe-nav__cta { display: inline-flex; width: 100%; margin-top: var(--oe-space-5); }
body.oe-nav-open { overflow: hidden; }

@media (min-width: 1024px) {
	.oe-only-desktop { display: inline; }
	.oe-only-mobile { display: none; }
	.oe-nav-toggle, .js .oe-nav-toggle { display: none; }
	.oe-nav, .js .oe-nav {
		position: static; order: 0; width: auto; padding: 0; margin-inline: auto; background: none; overflow: visible;
		visibility: visible; opacity: 1; transform: none; transition: none;
	}
	.oe-site-header__inner, .js .oe-site-header__inner { flex-wrap: nowrap; gap: var(--oe-space-6); }
	.oe-site-header__actions { margin-left: 0; }
	.oe-nav .oe-nav__list, .js .oe-nav .oe-nav__list { flex-direction: row; gap: var(--oe-space-1) clamp(1rem, 2.2vw, 2.75rem); }
	.js .oe-nav .oe-nav__link { display: inline-flex; width: auto; min-height: 44px; font-size: var(--oe-fs-sm); border: 0; }
	.oe-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--oe-color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--oe-duration) var(--oe-ease); }
	.oe-nav__link:hover::after, .oe-nav__link.is-active::after, .oe-nav__link.is-current::after { transform: scaleX(1); }
	.js .oe-nav .oe-nav__link.is-current { box-shadow: none; padding-left: 0; }
	.oe-nav .oe-nav__cta, .js .oe-nav .oe-nav__cta { display: none; }
	.oe-brand__logo { max-height: 52px; }
	.oe-brand__name { font-size: 1.75rem; }
	.oe-site-header__cta { padding-inline: 1.75rem; }
}

/* ---------- 7. Hero (Section 02) ---------- */
.oe-hero {
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
	min-height: min(88svh, 760px); color: var(--oe-on-dark); background: var(--oe-color-primary);
}
.oe-hero--no-image { background: radial-gradient(120% 90% at 85% 10%, var(--oe-primary-soft) 0%, var(--oe-color-primary) 45%, var(--oe-primary-deep) 100%); }
.oe-hero__media { position: absolute; inset: 0; z-index: -2; }
.oe-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--oe-hero-position, center); }
.oe-hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(0, 26, 41, calc(var(--oe-hero-overlay, .55) + .3)) 0%, rgba(0, 26, 41, var(--oe-hero-overlay, .55)) 40%, rgba(0, 26, 41, calc(var(--oe-hero-overlay, .55) * .25)) 75%),
		linear-gradient(0deg, rgba(0, 26, 41, .9) 0%, rgba(0, 26, 41, 0) 38%);
}
.oe-hero--center .oe-hero__shade { background: rgba(0, 26, 41, var(--oe-hero-overlay, .55)); }
.oe-hero__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--oe-space-6); padding-block: var(--oe-space-7) var(--oe-space-6); }
.oe-hero__content { max-width: 680px; }
.oe-hero--center .oe-hero__inner { align-items: center; text-align: center; }
.oe-hero--center .oe-actions { justify-content: center; }
.oe-hero__title { margin-bottom: var(--oe-space-4); color: var(--oe-on-dark); }
.oe-hero__name { display: block; font-size: var(--oe-fs-h1); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.oe-hero__subtitle { display: block; margin-top: var(--oe-space-2); max-width: 22ch; font-size: clamp(1.375rem, 1rem + 1.7vw, 2.5rem); line-height: var(--oe-lh-tight); text-transform: uppercase; text-wrap: balance; }
.oe-hero--center .oe-hero__subtitle { margin-inline: auto; }
.oe-hero__desc { max-width: var(--oe-measure-narrow); color: var(--oe-on-dark-muted); font-size: var(--oe-fs-base); }
.oe-hero--center .oe-hero__desc { margin-inline: auto; }
.oe-hero .oe-actions { margin-top: var(--oe-space-5); }
.oe-hero__play { display: inline-flex; align-items: center; gap: var(--oe-space-3); align-self: flex-start; min-height: 44px; color: var(--oe-on-dark); text-decoration: none; font-weight: 600; font-size: var(--oe-fs-sm); }
.oe-hero--center .oe-hero__play { align-self: center; }
.oe-hero__play-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px;
	border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 50%; background: rgba(255, 255, 255, .1);
	transition: background-color var(--oe-duration), transform var(--oe-duration) var(--oe-ease);
}
.oe-hero__play-icon .oe-icon { width: 24px; height: 24px; margin-left: 3px; }
.oe-hero__play:hover .oe-hero__play-icon { background: var(--oe-color-accent); color: var(--oe-color-primary); transform: scale(1.06); }
/* Flat translucent strip, no backdrop blur: the blur over the LCP image was costly to composite (Phase 5). */
.oe-hero__stats { position: relative; padding-block: var(--oe-space-4); border-top: 1px solid var(--oe-on-dark-border); background: rgba(0, 26, 41, .66); }
.oe-hero__stats .oe-note { margin-top: var(--oe-space-3); }

@media (min-width: 1024px) {
	.oe-hero__inner { flex-direction: row; align-items: center; justify-content: space-between; padding-block: var(--oe-space-8) var(--oe-space-7); }
	.oe-hero__play { flex-direction: column; text-align: center; align-self: flex-start; margin-top: var(--oe-space-6); }
	.oe-hero__play-icon { width: 76px; height: 76px; }
	.oe-hero--center .oe-hero__inner { flex-direction: column; }
}

/* ---------- 8. Stats ---------- */
.oe-stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--oe-space-4); }
.oe-stat { display: flex; align-items: center; gap: var(--oe-space-3); min-width: 0; }
.oe-stat__icon { flex: none; width: 34px; height: 34px; color: var(--oe-color-accent); stroke-width: 1.3; }
.oe-theme--light .oe-stat__icon, .oe-theme--cream .oe-stat__icon { color: var(--oe-accent-ink); }
.oe-stat__body { display: flex; flex-direction: column; min-width: 0; }
.oe-stat__value { font-family: var(--oe-font-body); font-size: var(--oe-fs-stat); line-height: 1.2; font-weight: 600; }
.oe-stat__unit { font-size: .85em; font-weight: 600; }
.oe-stat__label { margin-top: 2px; font-size: var(--oe-fs-xs); line-height: 1.4; color: var(--oe-muted); overflow-wrap: anywhere; }
.oe-theme--dark .oe-stat__label, .oe-hero .oe-stat__label { color: var(--oe-on-dark-muted); }
.oe-stats--hero .oe-stat__value { font-size: clamp(1rem, .9rem + .5vw, 1.375rem); }
.oe-stats--hero .oe-stat__icon { width: 38px; height: 38px; }
.oe-stats--hero .oe-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.oe-stats--inline { display: flex; flex-wrap: wrap; gap: var(--oe-space-4) 0; margin-top: var(--oe-space-5); }
.oe-stats--inline .oe-stat { padding-inline: var(--oe-space-5); border-left: 1px solid var(--oe-border); }
.oe-stats--inline .oe-stat:first-child { padding-left: 0; border-left: 0; }
.oe-stats--inline .oe-stat__value { color: var(--oe-color-primary); }
.oe-theme--dark .oe-stats--inline .oe-stat__value { color: var(--oe-on-dark); }
.oe-stats--band { margin-bottom: var(--oe-space-6); padding-block: var(--oe-space-4); border-block: 1px solid var(--oe-on-dark-border); }
@media (min-width: 768px) {
	.oe-stats--hero, .oe-stats--band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.oe-stats--hero .oe-stat:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1024px) {
	.oe-stats--hero, .oe-stats--band { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: 0; }
	.oe-stats--hero .oe-stat, .oe-stats--band .oe-stat { padding-inline: var(--oe-space-5); }
	.oe-stats--hero .oe-stat:first-child, .oe-stats--band .oe-stat:first-child { padding-left: 0; }
	.oe-stats--hero .oe-stat + .oe-stat, .oe-stats--band .oe-stat + .oe-stat { border-left: 1px solid var(--oe-on-dark-border); }
}

/* ---------- 9. Media helpers, sub-blocks ---------- */
.oe-split { display: grid; gap: var(--oe-space-6); align-items: center; }
.oe-media-frame { position: relative; margin: 0; overflow: hidden; border-radius: var(--oe-radius-lg); box-shadow: var(--oe-shadow); }
.oe-media-frame img { width: 100%; height: 100%; object-fit: cover; }
.oe-media-frame a { display: block; position: relative; }
.oe-zoom {
	position: absolute; right: var(--oe-space-3); top: var(--oe-space-3); display: inline-flex; padding: 8px;
	background: rgba(0, 26, 41, .62); color: #fff; border-radius: 50%;
}
.oe-zoom .oe-icon { width: 18px; height: 18px; }

.oe-subblock { display: grid; gap: var(--oe-space-5); margin-top: var(--oe-space-6); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--oe-radius-lg); background: var(--oe-color-surface); }
.oe-theme--cream .oe-subblock:not(.oe-theme--dark) { background: var(--oe-white); }
.oe-subblock.oe-theme--dark { background: var(--oe-color-primary); }
.oe-subblock__title { font-family: var(--oe-font-heading); font-weight: 500; font-size: var(--oe-fs-h3); margin-bottom: var(--oe-space-3); }
.oe-subblock__media { margin: 0; border-radius: var(--oe-radius); overflow: hidden; }
@media (min-width: 900px) {
	.oe-subblock.has-media, .oe-subblock--tod { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--oe-space-7); }
}

/* ---------- 10. Location (Section 04): text · connection diagram · distances ---------- */
/* §22/§27: the navy panel melts into the blocks above and below it (vertical eased alpha masks on the
   backdrop, ramp ends tinted with --oe-primary-soft so the half-transparent band reads as clean light navy,
   not grey; behind the ramp shows the section background or the §21 fade toward the next block). On desktop
   (§27, owner's demo) the navy runs on behind the text column, and the text column is a solid white layer
   that fades out to the right (see .oe-location__text::before), instead of two blocks side by side. */
.oe-location {
	overflow: hidden;
	--oe-loc-fade-y: calc(var(--oe-section-y) * 1.1);          /* ~62px @320 -> ~114px @1440 */
	--oe-loc-fade-x: clamp(4.75rem, -3.5rem + 13vw, 11rem);    /* §27 white fade width: 77px @1024 -> 131px @1440 -> 176px max */
	--oe-loc-pad-top: calc(var(--oe-loc-fade-y) + var(--oe-space-4));
	--oe-loc-pad-bottom: calc(var(--oe-loc-fade-y) + var(--oe-space-4));
	--oe-loc-ramp-y: rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .02) calc(var(--oe-loc-fade-y) * .1), rgba(0, 0, 0, .07) calc(var(--oe-loc-fade-y) * .2), rgba(0, 0, 0, .15) calc(var(--oe-loc-fade-y) * .3), rgba(0, 0, 0, .26) calc(var(--oe-loc-fade-y) * .4), rgba(0, 0, 0, .38) calc(var(--oe-loc-fade-y) * .5), rgba(0, 0, 0, .52) calc(var(--oe-loc-fade-y) * .6), rgba(0, 0, 0, .66) calc(var(--oe-loc-fade-y) * .7), rgba(0, 0, 0, .8) calc(var(--oe-loc-fade-y) * .8), rgba(0, 0, 0, .92) calc(var(--oe-loc-fade-y) * .9), #000 var(--oe-loc-fade-y);
	/* Vertical ramps for the desktop tint layer (.oe-location__text::after), switched like the backdrop's. */
	--oe-loc-tmask-top: linear-gradient(180deg, var(--oe-loc-ramp-y));
	--oe-loc-tmask-bottom: linear-gradient(0deg, var(--oe-loc-ramp-y));
}
.oe-location__grid { display: grid; gap: var(--oe-gap-lg); }
.oe-location__text .oe-note { margin-top: var(--oe-space-4); }
.oe-location__text .oe-heading { margin-bottom: var(--oe-space-3); }
.oe-place { display: flex; align-items: flex-start; gap: var(--oe-space-2); margin: 0 0 var(--oe-space-3); }
.oe-place__icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--oe-accent-ink); stroke-width: 1.8; }
.oe-place__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.oe-place__name { font-weight: 600; color: var(--oe-color-primary); }
.oe-place__note { font-size: var(--oe-fs-xs); color: var(--oe-muted); }
.oe-location__panel {
	position: relative; isolation: isolate; display: grid; gap: var(--oe-space-6);
	margin-inline: calc(-1 * var(--oe-gutter)); padding: var(--oe-loc-pad-top) var(--oe-gutter) var(--oe-loc-pad-bottom);
}
.oe-location__panel.oe-theme--dark { background: transparent; }
.oe-location__backdrop {
	/* Eased alpha ramps (~smoothstep), one per fading edge; a solid layer switches an edge off. */
	--oe-loc-solid: linear-gradient(#000, #000);
	--oe-loc-clear: linear-gradient(transparent, transparent);
	--oe-loc-mask-top: linear-gradient(180deg, var(--oe-loc-ramp-y));
	--oe-loc-mask-bottom: linear-gradient(0deg, var(--oe-loc-ramp-y));
	--oe-loc-tint-top: linear-gradient(180deg, var(--oe-primary-soft) 0, transparent var(--oe-loc-fade-y));
	--oe-loc-tint-bottom: linear-gradient(0deg, var(--oe-primary-soft) 0, transparent var(--oe-loc-fade-y));
	position: absolute; inset: 0; z-index: -1; overflow: hidden;
	background: radial-gradient(70% 80% at 40% 45%, var(--oe-primary-soft) 0%, var(--oe-color-primary) 55%, var(--oe-primary-deep) 100%);
	-webkit-mask-image: var(--oe-loc-mask-top), var(--oe-loc-mask-bottom);
	-webkit-mask-composite: source-in;
	mask-image: var(--oe-loc-mask-top), var(--oe-loc-mask-bottom);
	mask-composite: intersect;
}
/* Tint above the map photo (when there is one), below the panel content. */
.oe-location__backdrop::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--oe-loc-tint-top), var(--oe-loc-tint-bottom); }
.oe-location__backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
/* The panel closes the section (no TOD block after it): it reaches the section's bottom edge. */
.oe-location.has-panel-end { padding-bottom: 0; }
/* ...and when the next block is navy, it runs straight into it with no ramp. */
.oe-location.has-panel-end:is(.oe-next--dark, .oe-next--footer) { --oe-loc-pad-bottom: var(--oe-space-6); --oe-loc-tmask-bottom: linear-gradient(#000, #000); }
.oe-location.has-panel-end:is(.oe-next--dark, .oe-next--footer) .oe-location__backdrop { --oe-loc-mask-bottom: var(--oe-loc-solid); --oe-loc-tint-bottom: var(--oe-loc-clear); }

.oe-diagram { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--oe-space-4); padding-block: var(--oe-space-2); }
.oe-diagram__grid {
	position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(32deg, transparent calc(50% - 1px), rgba(233, 182, 91, .5) 50%, transparent calc(50% + 1px)),
		linear-gradient(-24deg, transparent calc(50% - 1px), rgba(255, 255, 255, .26) 50%, transparent calc(50% + 1px)),
		linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 255, 255, .16) 50%, transparent calc(50% + .5px)),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 34px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 34px);
	-webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent);
	mask-image: radial-gradient(closest-side, #000 60%, transparent);
}
.oe-diagram__pin { position: relative; z-index: 2; margin: var(--oe-space-2) 0 var(--oe-space-3); }
.oe-diagram__pin-mark {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	width: 96px; height: 96px; padding: 8px; text-align: center;
	font-family: var(--oe-font-heading); font-size: 12px; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; color: var(--oe-color-accent);
	background: var(--oe-primary-deep); border: 2px solid var(--oe-color-accent); border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(233, 182, 91, .12), 0 0 0 22px rgba(233, 182, 91, .06), 0 10px 30px rgba(0, 0, 0, .4);
}
.oe-diagram__pin-mark::after {
	content: ""; position: absolute; left: 50%; bottom: -12px; width: 0; height: 0; transform: translateX(-50%);
	border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 12px solid var(--oe-color-accent);
}
.oe-diagram__pin-mark .oe-icon { width: 22px; height: 22px; }
.oe-diagram__roads { position: relative; z-index: 1; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--oe-space-2); }
.oe-diagram__chip {
	display: inline-flex; align-items: center; gap: 6px; padding: .45rem .9rem;
	font-size: var(--oe-fs-xs); font-weight: 600; line-height: 1.3; color: var(--oe-on-dark);
	background: rgba(0, 20, 32, .82); border: 1px solid var(--oe-on-dark-line); border-radius: var(--oe-radius-pill);
}
.oe-diagram__chip .oe-icon { flex: none; width: 15px; height: 15px; color: var(--oe-color-accent); }
.oe-diagram__metro { position: relative; z-index: 1; list-style: none; display: grid; gap: var(--oe-space-2); width: 100%; max-width: 420px; }
.oe-diagram__station {
	display: flex; align-items: center; gap: var(--oe-space-3); padding: .6rem 1rem;
	font-size: var(--oe-fs-xs); font-weight: 600; line-height: 1.35;
	background: rgba(0, 20, 32, .85); border: 1px solid var(--oe-on-dark-line); border-radius: 14px;
}
.oe-diagram__station .oe-icon { flex: none; width: 26px; height: 26px; color: var(--oe-color-accent); stroke-width: 1.4; }
.oe-diagram__station .oe-badge { margin: 0 0 0 4px; }
/* §25: road status on the chip: compact, same palette as the TOD badges. */
.oe-diagram__chip .oe-badge { margin: 0 0 0 2px; padding: 0 7px; font-size: 10px; line-height: 1.6; }
.oe-diagram__zoom {
	position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 .9rem;
	font-size: var(--oe-fs-xs); font-weight: 600; color: var(--oe-on-dark); text-decoration: none;
	background: rgba(0, 20, 32, .8); border: 1px solid var(--oe-on-dark-line); border-radius: var(--oe-radius-pill);
}
.oe-diagram__zoom .oe-icon { width: 16px; height: 16px; color: var(--oe-color-accent); }

.oe-distances { padding-top: var(--oe-space-5); border-top: 1px solid var(--oe-on-dark-border); }
.oe-distances__title { margin-bottom: var(--oe-space-4); font-size: var(--oe-fs-2xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oe-on-dark); }
.oe-distances ul { list-style: none; display: grid; gap: var(--oe-space-3); }
.oe-distances li { display: flex; align-items: center; gap: var(--oe-space-3); }
.oe-distances li > .oe-icon { flex: none; width: 30px; height: 30px; color: var(--oe-color-accent); stroke-width: 1.3; }
.oe-distances__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.oe-distances__metric { font-size: var(--oe-fs-sm); font-weight: 700; }
.oe-distances__name { font-size: var(--oe-fs-xs); color: var(--oe-on-dark-muted); }
.oe-distances .oe-note { margin-top: var(--oe-space-4); }

@media (min-width: 560px) {
	.oe-distances ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.oe-diagram:not(.is-static) { display: block; min-height: 360px; }
	.oe-diagram:not(.is-static) .oe-diagram__pin { position: absolute; left: 50%; top: 46%; margin: 0; transform: translate(-50%, -50%); }
	.oe-diagram:not(.is-static) .oe-diagram__roads,
	.oe-diagram:not(.is-static) .oe-diagram__metro { position: absolute; inset: 0; display: block; max-width: none; pointer-events: none; }
	.oe-diagram:not(.is-static) .oe-diagram__chip,
	.oe-diagram:not(.is-static) .oe-diagram__station { position: absolute; pointer-events: auto; }
	.oe-diagram:not(.is-static) .oe-diagram__chip:nth-child(1) { left: 22%; top: 8%; }
	.oe-diagram:not(.is-static) .oe-diagram__chip:nth-child(2) { right: 12%; top: 8%; }
	.oe-diagram:not(.is-static) .oe-diagram__chip:nth-child(3) { right: 2%; top: 30%; }
	.oe-diagram:not(.is-static) .oe-diagram__chip:nth-child(4) { left: 2%; top: 30%; }
	.oe-diagram:not(.is-static) .oe-diagram__station { max-width: 46%; }
	.oe-diagram:not(.is-static) .oe-diagram__station:nth-child(1) { left: 0; bottom: 8%; }
	.oe-diagram:not(.is-static) .oe-diagram__station:nth-child(2) { right: 0; bottom: 8%; }
	.oe-diagram:not(.is-static) .oe-diagram__zoom { position: absolute; right: 0; top: 0; }
	/* §25: on the positioned diagram the road status hangs under its pill, so a badge never widens the pill
	   (pills are anchored left/right and would grow into each other). It aligns to the pill's outer edge
	   (left pills → left, right pills → right), away from the central pin. */
	.oe-diagram:not(.is-static) .oe-diagram__chip .oe-badge { position: absolute; left: var(--oe-space-3); top: calc(100% + 4px); margin: 0; background: var(--oe-primary-deep); }
	.oe-diagram:not(.is-static) .oe-diagram__chip:nth-child(2) .oe-badge,
	.oe-diagram:not(.is-static) .oe-diagram__chip:nth-child(3) .oe-badge { left: auto; right: var(--oe-space-3); }
}
@media (min-width: 1024px) {
	.oe-location.has-panel { padding-block: 0; }
	.oe-location__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 0; align-items: stretch; }
	/* §27: the white fade (--oe-loc-fade-x wide) starts 16px right of the text and is split across the column
	   gap: --oe-loc-split of it in the text column's right padding, the rest in the panel's left padding, so
	   chips, cards and the distance list always sit on solid navy. Below 1280px more of it goes under the text
	   column so the diagram keeps its width. The text column stretches to the row height (white top to bottom). */
	.oe-location { --oe-loc-split: .6; }
	.oe-location__text {
		position: relative; z-index: 1; /* above the panel (and its backdrop running behind this column) */
		display: flex; flex-direction: column; justify-content: center; align-self: stretch;
		padding-block: var(--oe-section-y); padding-right: calc(var(--oe-loc-fade-x) * var(--oe-loc-split) + var(--oe-space-4));
	}
	.oe-location__text > * { flex: none; }
	/* Solid section colour under the text (with the section's own §21 top/bottom fades, which it would
	   otherwise hide), masked to clear over --oe-loc-fade-x with an eased ramp (1 - the §22 curve: slow start,
	   slow finish). ::after under it tints the ramp's navy end with --oe-primary-soft so the band stays clean. */
	.oe-location__text::before, .oe-location__text::after {
		content: ""; position: absolute; pointer-events: none;
		top: 0; bottom: calc(-1 * var(--oe-loc-overlap, 0px)); left: -100vw;
		right: calc(-1 * var(--oe-loc-fade-x) * (1 - var(--oe-loc-split)));
	}
	.oe-location__text::before {
		z-index: -1;
		background:
			var(--oe-fade-top, none) left top / 100% var(--oe-fade-h) no-repeat,
			var(--oe-fade-bottom, none) left bottom var(--oe-loc-overlap, 0px) / 100% var(--oe-fade-h-bottom, var(--oe-fade-h)) no-repeat,
			var(--oe-section-bg);
		--oe-loc-ramp-w: rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .08) calc(var(--oe-loc-fade-x) * .1), rgba(0, 0, 0, .2) calc(var(--oe-loc-fade-x) * .2), rgba(0, 0, 0, .34) calc(var(--oe-loc-fade-x) * .3), rgba(0, 0, 0, .48) calc(var(--oe-loc-fade-x) * .4), rgba(0, 0, 0, .62) calc(var(--oe-loc-fade-x) * .5), rgba(0, 0, 0, .74) calc(var(--oe-loc-fade-x) * .6), rgba(0, 0, 0, .85) calc(var(--oe-loc-fade-x) * .7), rgba(0, 0, 0, .93) calc(var(--oe-loc-fade-x) * .8), rgba(0, 0, 0, .98) calc(var(--oe-loc-fade-x) * .9), #000 var(--oe-loc-fade-x);
		-webkit-mask-image: linear-gradient(270deg, var(--oe-loc-ramp-w));
		mask-image: linear-gradient(270deg, var(--oe-loc-ramp-w));
	}
	.oe-location__text::after {
		z-index: -2;
		-webkit-mask-image: var(--oe-loc-tmask-top), var(--oe-loc-tmask-bottom);
		-webkit-mask-composite: source-in;
		mask-image: var(--oe-loc-tmask-top), var(--oe-loc-tmask-bottom);
		mask-composite: intersect;
		background: linear-gradient(270deg, transparent 0, color-mix(in srgb, var(--oe-primary-soft) 70%, transparent) calc(var(--oe-loc-fade-x) * .45), var(--oe-primary-soft) var(--oe-loc-fade-x));
	}
	.oe-location__panel { margin: 0; padding: var(--oe-loc-pad-top) 0 var(--oe-loc-pad-bottom) calc(var(--oe-loc-fade-x) * (1 - var(--oe-loc-split)) + var(--oe-space-2)); align-items: center; }
	.oe-location__panel.has-distances { grid-template-columns: minmax(0, 1.9fr) minmax(210px, .8fr); }
	/* §27: the backdrop runs from the viewport's left edge (behind the text column) to its right edge; the
	   section clips it horizontally. */
	.oe-location__backdrop { inset: 0 calc(50% - 50vw - 10px) 0 -100vw; }
	/* Top edge meets the photo hero (navy on navy): keep it solid, as approved. */
	.oe-location.oe-prev--hero { --oe-loc-pad-top: var(--oe-space-6); --oe-loc-tmask-top: linear-gradient(#000, #000); }
	.oe-location.oe-prev--hero .oe-location__backdrop { --oe-loc-mask-top: var(--oe-loc-solid); --oe-loc-tint-top: var(--oe-loc-clear); }
	.oe-location__panel.has-distances .oe-location__backdrop { right: -50vw; }
	.oe-distances { padding: 0 0 0 var(--oe-space-5); border-top: 0; border-left: 1px solid var(--oe-on-dark-border); }
	.oe-distances ul { grid-template-columns: 1fr; }
	.oe-location > .oe-container + .oe-container { padding-bottom: var(--oe-section-y); }
}
@media (min-width: 1280px) {
	.oe-location { --oe-loc-split: .45; }
}
/* §23 (desktop): when the panel closes the section and melts into a light block, the faint tail of its
   bottom ramp spills over the top of the next block (--oe-loc-overlap, ~half the ramp) instead of ending
   on white first: the panel and the text column lose that much bottom padding, so the pair sits closer.
   The tail stays inside the next block's own top padding / photo, under its text (which paints above). */
@supports (overflow-x: clip) {
	@media (min-width: 1024px) {
		.oe-location.has-panel-end:not(.oe-next--dark):not(.oe-next--footer) {
			--oe-loc-overlap: calc(var(--oe-loc-fade-y) * .5);
			--oe-loc-pad-bottom: calc(var(--oe-loc-fade-y) - var(--oe-loc-overlap) + var(--oe-space-4));
			z-index: 2; /* above the next block's photo veil (z-index 1); its text container (z-index 2, later in the DOM) stays on top */
			overflow-x: clip; overflow-y: visible; /* clip the right-edge bleed only; the ramp tail passes the bottom edge */
		}
		.oe-location.has-panel-end:not(.oe-next--dark):not(.oe-next--footer) .oe-location__backdrop { bottom: calc(-1 * var(--oe-loc-overlap)); }
		.oe-location.has-panel-end:not(.oe-next--dark):not(.oe-next--footer) .oe-location__text { padding-bottom: max(var(--oe-space-6), calc(var(--oe-section-y) - var(--oe-loc-overlap))); }
		/* Overview photo right below: its top edge also melts into the section base, under the navy tail, so
		   the photo starts without a hard line. The veil runs 0.66 x section-y, longer than the overlap
		   (~0.55 x section-y), so the photo's top edge is fully hidden where the tail ends. */
		.oe-location.has-panel-end:not(.oe-next--dark):not(.oe-next--footer) + .oe-overview.has-media .oe-overview__media::before {
			background:
				linear-gradient(180deg, var(--oe-section-bg, var(--oe-white)) 0, transparent calc(var(--oe-section-y) * .66)),
				linear-gradient(90deg, var(--oe-section-bg, var(--oe-white)) 0%, transparent 42%);
		}
	}
}
.oe-tod { list-style: none; display: grid; gap: var(--oe-space-3); }
.oe-tod__item { display: flex; gap: var(--oe-space-3); padding: var(--oe-space-4); border: 1px solid var(--oe-on-dark-border); border-radius: var(--oe-radius); background: rgba(255, 255, 255, .04); }
.oe-tod__icon { flex: none; width: 32px; height: 32px; color: var(--oe-color-accent); }
.oe-tod__name { margin: 0; font-weight: 600; }
.oe-tod__desc { margin: 2px 0 0; font-size: var(--oe-fs-sm); color: var(--oe-on-dark-muted); }
.oe-subblock--tod .oe-prose { color: var(--oe-on-dark-muted); }

/* ---------- 11. Overview (Section 03): image bleeds right and fades into the background ---------- */
.oe-overview.has-media { padding-block: 0; }
.oe-overview__stage { position: relative; display: flex; flex-direction: column; }
.oe-overview__stage > .oe-container { order: 1; }
.oe-overview__media { position: relative; order: 2; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.oe-overview__media img { width: 100%; height: 100%; object-fit: cover; }
.oe-overview__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--oe-section-bg, #fff) 0%, transparent 30%); }
.oe-overview.has-media .oe-overview__text { padding-block: var(--oe-section-y) var(--oe-space-6); }
.oe-overview.has-media > .oe-container { padding-bottom: var(--oe-section-y); }
@media (min-width: 1024px) {
	.oe-overview__stage { display: block; min-height: clamp(440px, 32vw, 600px); }
	.oe-overview__media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; aspect-ratio: auto; }
	.oe-overview__media::before { background: linear-gradient(90deg, var(--oe-section-bg, #fff) 0%, rgba(255, 255, 255, 0) 42%); }
	.oe-overview__stage > .oe-container { position: relative; z-index: 2; display: flex; align-items: center; min-height: inherit; }
	.oe-overview.has-media .oe-overview__text { max-width: 44%; padding-block: var(--oe-section-y); }
	.oe-overview:not(.has-media) .oe-overview__text { max-width: 760px; }
}

/* ---------- 12. Master plan (Section 05) ---------- */
.oe-plan { margin-bottom: var(--oe-space-6); }
.oe-plan img { aspect-ratio: 16 / 9; }
.oe-zones { list-style: none; display: grid; gap: var(--oe-gap); }
.oe-zone { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--oe-radius); background: var(--oe-primary-soft); border: 1px solid rgba(233, 182, 91, .3); }
.oe-theme--light .oe-zone, .oe-theme--cream .oe-zone { background: var(--oe-white); border-color: var(--oe-border); box-shadow: var(--oe-shadow-sm); }
.oe-zone__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.oe-zone__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--oe-space-2); padding: var(--oe-space-5); flex: 1; }
.oe-zone__label { margin: 0; font-size: var(--oe-fs-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--oe-color-accent); }
.oe-theme--light .oe-zone__label, .oe-theme--cream .oe-zone__label { color: var(--oe-accent-ink); }
.oe-zone__title { margin: 0; font-family: var(--oe-font-heading); font-weight: 500; font-size: var(--oe-fs-h3); text-transform: uppercase; }
.oe-zone__tagline { margin: 0; font-style: italic; font-family: var(--oe-font-heading); color: var(--oe-color-accent); }
.oe-theme--light .oe-zone__tagline, .oe-theme--cream .oe-zone__tagline { color: var(--oe-accent-ink); }
.oe-zone__desc { margin: 0; font-size: var(--oe-fs-sm); color: var(--oe-on-dark-muted); }
.oe-theme--light .oe-zone__desc, .oe-theme--cream .oe-zone__desc { color: var(--oe-muted); }
.oe-zone__more { width: 100%; margin-top: var(--oe-space-2); font-size: var(--oe-fs-sm); }
.oe-zone__more summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; border-top: 1px solid var(--oe-on-dark-border); }
.oe-theme--light .oe-zone__more summary, .oe-theme--cream .oe-zone__more summary { border-color: var(--oe-border); }
.oe-zone__more summary::-webkit-details-marker { display: none; }
.oe-zone__more summary .oe-icon { width: 18px; transition: transform var(--oe-duration); }
.oe-zone__more[open] summary .oe-icon { transform: rotate(180deg); }
.oe-zone__more ul { padding-left: 1.1em; color: var(--oe-on-dark-muted); }
.oe-theme--light .oe-zone__more ul, .oe-theme--cream .oe-zone__more ul { color: var(--oe-muted); }
.oe-zone__more li + li { margin-top: 2px; }
@media (min-width: 640px) { .oe-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .oe-zones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.oe-landmarks { margin-top: var(--oe-space-6); }
.oe-landmarks__list { list-style: none; display: grid; gap: var(--oe-space-5); }
.oe-landmark { padding-top: var(--oe-space-4); border-top: 1px solid var(--oe-on-dark-border); }
.oe-theme--light .oe-landmark, .oe-theme--cream .oe-landmark { border-color: var(--oe-border); }
.oe-landmark__icon .oe-icon { width: 40px; height: 40px; color: var(--oe-color-accent); stroke-width: 1.2; margin-bottom: var(--oe-space-3); }
.oe-landmark__media { margin-bottom: var(--oe-space-3); border-radius: var(--oe-radius); overflow: hidden; }
.oe-landmark__title { font-size: var(--oe-fs-h4); margin-bottom: var(--oe-space-2); }
.oe-landmark__desc { margin: 0; font-size: var(--oe-fs-sm); opacity: .88; }
@media (min-width: 640px) { .oe-landmarks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .oe-landmarks__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 13. Filters, products (Section 06), chips ---------- */
.oe-filter { display: flex; gap: var(--oe-space-2); margin-bottom: var(--oe-space-5); overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.oe-filter[hidden] { display: none; }
.oe-filter__btn {
	flex: none; min-height: 44px; padding: .4rem 1rem; font-size: var(--oe-fs-sm); font-weight: 500; cursor: pointer;
	border: 1px solid var(--oe-border); border-radius: var(--oe-radius-pill); background: transparent; color: inherit;
	transition: background-color var(--oe-duration), color var(--oe-duration), border-color var(--oe-duration);
}
.oe-theme--dark .oe-filter__btn { border-color: var(--oe-on-dark-border); }
.oe-filter__btn:hover { border-color: var(--oe-color-accent); }
.oe-filter__btn.is-active { background: var(--oe-color-accent); border-color: var(--oe-color-accent); color: var(--oe-color-primary); }
.is-filtered-out, .is-collapsed { display: none !important; }

/* Category cards (display = categories). */
.oe-categories { list-style: none; display: grid; gap: var(--oe-gap); }
.oe-category {
	position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 300px; overflow: hidden;
	border-radius: var(--oe-radius); border: 1px solid rgba(233, 182, 91, .35); background: linear-gradient(160deg, var(--oe-primary-soft), var(--oe-primary-deep));
}
.oe-category__media { position: absolute; inset: 0; z-index: -2; }
.oe-category__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s var(--oe-ease); }
.oe-category:hover .oe-category__media img { transform: scale(1.04); }
.oe-category::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 20, 32, .96) 0%, rgba(0, 20, 32, .78) 38%, rgba(0, 20, 32, 0) 68%); }
.oe-category__body { display: flex; flex-direction: column; gap: var(--oe-space-1); width: 100%; padding: var(--oe-space-5) var(--oe-space-4) var(--oe-space-4); }
.oe-category__title { margin: 0; font-family: var(--oe-font-body); font-size: var(--oe-fs-lg); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--oe-on-dark); }
.oe-category__desc { margin: 0; font-size: var(--oe-fs-xs); line-height: 1.5; color: var(--oe-on-dark-muted); }
/* §28 featured product cards: product summary kept to two lines. */
.oe-category--product .oe-category__desc { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oe-category__cta {
	align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: var(--oe-space-2); padding: 0 .9rem;
	font-size: var(--oe-fs-xs); font-weight: 700; color: var(--oe-color-primary); text-decoration: none;
	background: var(--oe-color-accent); border-radius: var(--oe-radius-sm); transition: background-color var(--oe-duration);
}
.oe-category__cta:hover { background: var(--oe-accent-hover); }
.oe-category__cta .oe-icon { width: 16px; height: 16px; }
@media (min-width: 560px) { .oe-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.oe-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.oe-category { min-height: clamp(320px, 24vw, 400px); }
}

/* Product cards (grid mode and inside list dialogs). */
.oe-products { list-style: none; display: grid; gap: var(--oe-gap); }
.oe-product__link {
	display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; overflow: hidden;
	border-radius: var(--oe-radius); background: var(--oe-primary-soft); border: 1px solid var(--oe-on-dark-border);
	transition: transform var(--oe-duration) var(--oe-ease), box-shadow var(--oe-duration) var(--oe-ease), border-color var(--oe-duration);
}
.oe-theme--light .oe-product__link, .oe-theme--cream .oe-product__link { background: var(--oe-white); border-color: var(--oe-border); box-shadow: var(--oe-shadow-sm); }
.oe-product__link:hover { transform: translateY(-3px); box-shadow: var(--oe-shadow); border-color: var(--oe-color-accent); }
.oe-product__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--oe-primary-deep); }
.oe-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--oe-ease); }
.oe-product__link:hover .oe-product__media img { transform: scale(1.05); }
.oe-product__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--oe-color-accent); background: linear-gradient(135deg, var(--oe-primary-soft), var(--oe-primary-deep)); }
.oe-product__placeholder .oe-icon { width: 56px; height: 56px; stroke-width: 1; opacity: .7; }
.oe-product__body { display: flex; flex-direction: column; gap: var(--oe-space-2); padding: var(--oe-space-4) var(--oe-space-5) var(--oe-space-5); flex: 1; }
.oe-product__type { margin: 0; font-size: var(--oe-fs-2xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oe-color-accent); }
.oe-theme--light .oe-product__type, .oe-theme--cream .oe-product__type { color: var(--oe-accent-ink); }
.oe-product__title { margin: 0; font-family: var(--oe-font-heading); font-weight: 500; font-size: var(--oe-fs-h3); }
.oe-product__summary { margin: 0; font-size: var(--oe-fs-sm); opacity: .88; }
.oe-product__more { display: inline-flex; align-items: center; gap: var(--oe-space-2); margin-top: auto; padding-top: var(--oe-space-3); font-size: var(--oe-fs-sm); font-weight: 600; color: var(--oe-color-accent); }
.oe-theme--light .oe-product__more, .oe-theme--cream .oe-product__more { color: var(--oe-accent-ink); }
.oe-product__more .oe-icon { width: 18px; transition: transform var(--oe-duration) var(--oe-ease); }
.oe-product__link:hover .oe-product__more .oe-icon { transform: translateX(4px); }
@media (min-width: 640px) { .oe-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .oe-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.oe-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.oe-chips li { padding: 2px 10px; font-size: var(--oe-fs-xs); border-radius: var(--oe-radius-pill); background: rgba(255, 255, 255, .08); border: 1px solid var(--oe-on-dark-border); }
.oe-theme--light .oe-chips li, .oe-theme--cream .oe-chips li { background: var(--oe-color-surface); border-color: var(--oe-border); }

/* ---------- 14. Dialogs (product list + product detail) ---------- */
.oe-dialog { padding: 0; border: 0; background: transparent; max-width: min(1080px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); }
.oe-dialog::backdrop { background: rgba(0, 16, 26, .78); }
.oe-dialog__panel { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--oe-white); color: var(--oe-color-text); border-radius: var(--oe-radius-lg); box-shadow: var(--oe-shadow-lg); }
/* Sticky close button that overlaps the content (negative bottom margin) instead of floating beside it. */
.oe-dialog__close {
	position: sticky; top: var(--oe-space-3); z-index: 3; display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin: var(--oe-space-3) var(--oe-space-3) -56px auto; border-radius: 50%; background: var(--oe-white); color: var(--oe-color-primary); box-shadow: var(--oe-shadow-sm);
}
.oe-list-dialog { max-width: min(1240px, calc(100vw - 24px)); }
.oe-list-dialog__body { padding: var(--oe-space-5) var(--oe-space-4) var(--oe-space-5); }
.oe-list-dialog__title { padding-right: 56px; margin-bottom: var(--oe-space-5); font-family: var(--oe-font-heading); font-weight: 500; font-size: var(--oe-fs-h2-sm); text-transform: uppercase; color: var(--oe-color-primary); }
@media (min-width: 768px) { .oe-list-dialog__body { padding: var(--oe-space-6); } }
.oe-product-dialog__grid { display: grid; }
.oe-product-dialog__media { padding: var(--oe-space-4); padding-bottom: 0; }
.oe-product-dialog__main { position: relative; display: block; border-radius: var(--oe-radius); overflow: hidden; }
.oe-product-dialog__main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.oe-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: var(--oe-space-2); margin-top: var(--oe-space-2); }
.oe-thumbs a { display: block; width: 84px; height: 64px; border-radius: var(--oe-radius-sm); overflow: hidden; border: 1px solid var(--oe-border); }
.oe-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.oe-product-dialog__body { padding: var(--oe-space-5); }
.oe-product-dialog__title { font-family: var(--oe-font-heading); font-weight: 500; font-size: var(--oe-fs-h2); }
.oe-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: var(--oe-space-5) 0; background: var(--oe-border); border: 1px solid var(--oe-border); border-radius: var(--oe-radius); overflow: hidden; }
.oe-specs div { padding: var(--oe-space-3) var(--oe-space-4); background: var(--oe-white); }
.oe-specs dt { font-size: var(--oe-fs-xs); color: var(--oe-muted); }
.oe-specs dd { margin: 2px 0 0; font-weight: 600; }
.oe-checklist { list-style: none; display: grid; gap: var(--oe-space-2); margin-bottom: var(--oe-space-5); }
.oe-checklist li { display: flex; gap: var(--oe-space-2); }
.oe-checklist .oe-icon { flex: none; width: 20px; color: var(--oe-success); }
.oe-product-dialog .oe-note { margin-top: var(--oe-space-4); }
@media (min-width: 900px) {
	.oe-product-dialog__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
	.oe-product-dialog__media { padding: var(--oe-space-5); padding-right: 0; }
	.oe-product-dialog__body { padding: var(--oe-space-7) var(--oe-space-6) var(--oe-space-6); }
}
/* No-JS fallback: open via :target. */
.no-js dialog.oe-dialog:target { display: block; position: fixed; inset: 0; z-index: 1000; margin: auto; height: fit-content; }
.no-js dialog.oe-dialog:target::before { content: ""; position: fixed; inset: -100vmax; z-index: -1; background: rgba(0, 16, 26, .78); }

/* ---------- 15. Amenities (Section 07): one row of round icons ---------- */
.oe-amenities-section:not(.has-bg).oe-theme--dark {
	background-color: var(--oe-color-primary);
	background-image: var(--oe-fade-top, none), var(--oe-fade-bottom, none), radial-gradient(90% 120% at 80% 0%, var(--oe-primary-soft) 0%, var(--oe-color-primary) 50%, var(--oe-primary-deep) 100%);
	background-repeat: no-repeat; background-position: top, bottom, center; background-size: 100% var(--oe-fade-h), 100% var(--oe-fade-h), 100% 100%;
}
.oe-amenities { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--oe-space-5) var(--oe-space-2); }
.oe-amenity { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.oe-amenity__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: var(--oe-space-2);
	border: 1.5px solid var(--oe-color-accent); border-radius: 50%; color: var(--oe-color-accent); background: rgba(0, 20, 32, .35);
	transition: background-color var(--oe-duration), color var(--oe-duration);
}
.oe-theme--light .oe-amenity__icon, .oe-theme--cream .oe-amenity__icon { border-color: var(--oe-accent-ink); color: var(--oe-accent-ink); background: transparent; }
.oe-amenity:hover .oe-amenity__icon { background: var(--oe-color-accent); color: var(--oe-color-primary); }
.oe-amenity__icon .oe-icon { width: 28px; height: 28px; stroke-width: 1.3; }
.oe-amenity__title { margin: 0; font-size: var(--oe-fs-xs); font-weight: 500; line-height: 1.4; text-wrap: balance; overflow-wrap: anywhere; }
.oe-amenity__desc { margin: var(--oe-space-2) 0 0; font-size: var(--oe-fs-xs); color: var(--oe-on-dark-muted); max-width: 260px; }
.oe-theme--light .oe-amenity__desc, .oe-theme--cream .oe-amenity__desc { color: var(--oe-muted); }
@media (min-width: 640px) { .oe-amenities { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.oe-amenities { grid-template-columns: repeat(var(--oe-count, 7), minmax(0, 1fr)); gap: var(--oe-space-4); }
	.oe-amenity__icon { width: 76px; height: 76px; margin-bottom: var(--oe-space-3); }
	.oe-amenity__icon .oe-icon { width: 34px; height: 34px; }
	.oe-amenity__title { font-size: var(--oe-fs-sm); }
}

/* ---------- 16. Partners (Section 08): one strip of logos / wordmarks ---------- */
.oe-developers { list-style: none; display: grid; gap: var(--oe-space-4); margin-bottom: var(--oe-space-5); }
.oe-developer { padding: var(--oe-space-5); border: 1px solid var(--oe-border); border-radius: var(--oe-radius); background: var(--oe-color-surface); }
.oe-theme--cream .oe-developer { background: var(--oe-white); }
.oe-theme--dark .oe-developer { background: var(--oe-primary-soft); border-color: var(--oe-on-dark-border); }
.oe-developer__logo img { max-height: 56px; width: auto; margin-bottom: var(--oe-space-4); }
.oe-developer__role { margin: 0 0 var(--oe-space-1); font-size: var(--oe-fs-2xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oe-accent-ink); }
.oe-theme--dark .oe-developer__role { color: var(--oe-color-accent); }
.oe-developer__name { font-family: var(--oe-font-heading); font-weight: 500; font-size: var(--oe-fs-h3); margin-bottom: var(--oe-space-2); }
.oe-developer__desc { margin: 0; color: var(--oe-muted); font-size: var(--oe-fs-sm); }
.oe-theme--dark .oe-developer__desc { color: var(--oe-on-dark-muted); }
@media (min-width: 768px) { .oe-developers { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.oe-partners-section .oe-heading { margin-bottom: var(--oe-space-4); }
.oe-partners__title { font-family: var(--oe-font-heading); font-weight: 500; font-size: var(--oe-fs-h3); margin-bottom: var(--oe-space-4); }
/* §32: manual logo slider on the shared [data-oe-slider] component (no autoplay), Prev / Next on both sides,
   vertically centred. Logo files are framed cards ≈ 5:2 (712×286, 622×284) with a small label on top, so the
   cell is a fixed 5:2 box (CLS 0) with the logo contained — never cropped. Logos per page: 2 / 3 ≥640 /
   4 ≥1024 / 5 ≥1280 → cell ≈ 112×45, 180×72, 211×84, 236×94 px (measured). Fewer logos than a page:
   no buttons, logos centred (shared slider rule). */
.oe-slider.oe-slider--logos { --oe-per-view: 2; --oe-slide-gap: var(--oe-space-3); display: grid; grid-template-columns: 0 minmax(0, 1fr) 0; align-items: center; }
.oe-slider--logos.is-ready { grid-template-columns: 44px minmax(0, 1fr) 44px; column-gap: var(--oe-space-2); }
.oe-slider--logos > .oe-slider__track { grid-column: 2; grid-row: 1; }
.oe-slider--logos > .oe-slider__controls { display: contents; }
.oe-slider--logos > .oe-slider__controls[hidden] { display: none; }
.oe-slider--logos .oe-slider__prev { grid-column: 1; grid-row: 1; }
.oe-slider--logos .oe-slider__next { grid-column: 3; grid-row: 1; }
.oe-slider--logos .oe-slider__status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (min-width: 640px) { .oe-slider.oe-slider--logos { --oe-per-view: 3; } }
@media (min-width: 1024px) {
	.oe-slider.oe-slider--logos { --oe-per-view: 4; --oe-slide-gap: var(--oe-space-4); }
	.oe-slider--logos.is-ready { column-gap: var(--oe-space-3); }
}
@media (min-width: 1280px) { .oe-slider.oe-slider--logos { --oe-per-view: 5; --oe-slide-gap: var(--oe-space-5); } }
.oe-logo { display: flex; flex-direction: column; align-items: stretch; gap: var(--oe-space-1); text-align: center; }
.oe-logo a { display: flex; flex-direction: column; gap: var(--oe-space-1); color: inherit; text-decoration: none; border-radius: var(--oe-radius-sm); }
.oe-logo__box { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 2; padding: 2px; }
.oe-logo__box img { width: 100%; height: 100%; object-fit: contain; }
.oe-logos.is-grayscale img { filter: grayscale(1); opacity: .75; transition: filter var(--oe-duration), opacity var(--oe-duration); }
.oe-logos.is-grayscale .oe-logo:hover img, .oe-logos.is-grayscale .oe-logo a:focus-visible img { filter: none; opacity: 1; }
/* Wordmark for partners without a logo file: neutral type, never an imitation of the brand mark. */
.oe-logo__text { font-family: var(--oe-font-body); font-size: clamp(1rem, .9rem + .45vw, 1.25rem); font-weight: 600; letter-spacing: .03em; line-height: 1.2; color: var(--oe-color-primary); overflow-wrap: anywhere; }
.oe-theme--dark .oe-logo__text { color: var(--oe-on-dark); }
.oe-logo__role { font-size: var(--oe-fs-2xs); color: var(--oe-muted); }
.oe-theme--dark .oe-logo__role { color: var(--oe-on-dark-muted); }

/* ---------- 17. Gallery (Section 09) ---------- */
.oe-gallery { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--oe-space-2); }
.oe-gallery__item { position: relative; overflow: hidden; border-radius: var(--oe-radius-sm); background: var(--oe-color-surface); }
.oe-gallery__item.is-featured { grid-column: span 2; }
.oe-gallery__item a { display: block; position: relative; height: 100%; color: #fff; text-decoration: none; }
.oe-gallery__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--oe-ease); }
.oe-gallery__item a:hover img { transform: scale(1.05); }
/* Floor plans must stay fully visible (no cropping). */
.oe-gallery__item.is-plan { background: var(--oe-white); border: 1px solid var(--oe-border); }
.oe-gallery__item.is-plan img { object-fit: contain; padding: var(--oe-space-2); }
.oe-gallery__caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: var(--oe-space-6) var(--oe-space-3) var(--oe-space-3);
	font-size: var(--oe-fs-xs); background: linear-gradient(0deg, rgba(0, 16, 26, .85), transparent);
	opacity: 0; transition: opacity var(--oe-duration);
}
.oe-gallery__item a:hover .oe-gallery__caption, .oe-gallery__item a:focus-visible .oe-gallery__caption { opacity: 1; }
.oe-gallery__play {
	position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--oe-color-primary);
}
.oe-gallery__play .oe-icon { margin-left: 3px; }
@media (hover: none) { .oe-gallery__caption { opacity: 1; } }
/* Compact: one row of three; the rest only appears in the lightbox (all visible without JS). */
.oe-gallery--compact .oe-gallery__item:first-child { grid-column: span 2; }
.oe-gallery--compact .oe-gallery__item img { aspect-ratio: 16 / 10; }
.oe-gallery--compact .oe-gallery__caption { display: none; }
.js .oe-gallery--compact .is-extra { display: none; }
@media (min-width: 640px) {
	.oe-gallery--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.oe-gallery--compact .oe-gallery__item:first-child { grid-column: auto; }
}
@media (min-width: 768px) {
	/* Fixed row height so the featured tile (2×2) never grows with its image's natural size. */
	.oe-gallery:not(.oe-gallery--compact) { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 14vw, 230px); gap: var(--oe-space-3); }
	.oe-gallery:not(.oe-gallery--compact) .oe-gallery__item.is-featured { grid-row: span 2; }
	.oe-gallery:not(.oe-gallery--compact) .oe-gallery__item img { aspect-ratio: auto; }
}

/* ---------- 18. News (Section 10) ---------- */
.oe-post-grid { display: grid; gap: var(--oe-space-5); }
.oe-post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--oe-radius); background: var(--oe-white); border: 1px solid var(--oe-border); box-shadow: var(--oe-shadow-sm); transition: box-shadow var(--oe-duration), transform var(--oe-duration) var(--oe-ease); }
.oe-post-card:hover { box-shadow: var(--oe-shadow); transform: translateY(-3px); }
.oe-post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--oe-color-surface); }
.oe-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.oe-post-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--oe-accent-ink); }
.oe-post-card__placeholder .oe-icon { width: 48px; height: 48px; opacity: .5; }
.oe-post-card__body { padding: var(--oe-space-5); }
.oe-post-card__date { font-size: var(--oe-fs-xs); color: var(--oe-muted); }
.oe-post-card__title { margin: var(--oe-space-2) 0; font-size: var(--oe-fs-h4); line-height: 1.4; }
.oe-post-card__title a { text-decoration: none; }
.oe-post-card__title a:hover { color: var(--oe-accent-ink); }
.oe-post-card__excerpt { margin: 0; font-size: var(--oe-fs-sm); color: var(--oe-muted); }
@media (min-width: 640px) { .oe-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .oe-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.oe-news-list { list-style: none; display: grid; gap: var(--oe-space-3); }
.oe-news-item {
	position: relative; display: flex; flex-direction: column; gap: var(--oe-space-2); min-height: 100%; padding: var(--oe-space-4);
	background: var(--oe-white); border: 1px solid var(--oe-border); border-radius: var(--oe-radius-sm); box-shadow: var(--oe-shadow-sm);
	transition: border-color var(--oe-duration), box-shadow var(--oe-duration);
}
.oe-news-item:hover { border-color: var(--oe-color-accent); box-shadow: var(--oe-shadow); }
.oe-news-item__date { font-size: var(--oe-fs-2xs); color: var(--oe-muted); }
.oe-news-item__title { margin: 0; font-size: var(--oe-fs-sm); line-height: 1.45; color: var(--oe-color-primary); }
.oe-news-item__title a { text-decoration: none; }
.oe-news-item__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (min-width: 480px) { .oe-news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Gallery + news side by side (rendered as one row by oe_render_sections()). */
.oe-duo { padding-block: var(--oe-section-y); }
.oe-duo__grid { display: grid; gap: var(--oe-gap-lg); }
.oe-duo__grid > .oe-section { padding: 0; background: transparent; min-width: 0; }
.oe-duo__grid .oe-container, .oe-contact-row__aside .oe-container { max-width: none; padding-inline: 0; }
.is-paired .oe-heading__title { margin-bottom: 0; } /* same H2 size as every section */
.is-paired .oe-heading-row { flex-wrap: nowrap; align-items: center; margin-bottom: var(--oe-space-3); }
.is-paired .oe-heading { margin-bottom: 0; }
.is-paired .oe-heading__intro { margin-top: var(--oe-space-2); }
@media (min-width: 1024px) {
	.oe-duo__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
	.oe-duo__grid > :only-child { grid-column: 1 / -1; }
}

/* ---------- 19. Contact: consultant banner, FAQ | form row, cards layout ---------- */
/* §25: section heading above the consultant banner (left-aligned on the container, like other sections). */
.oe-contact__heading { margin-bottom: var(--oe-space-6); }
.oe-consult-banner { --oe-banner-bg: var(--oe-color-surface); display: grid; overflow: hidden; border-radius: var(--oe-radius-lg); background: var(--oe-banner-bg); border: 1px solid var(--oe-border); }
.oe-theme--cream .oe-consult-banner { --oe-banner-bg: var(--oe-white); }
/* Consultant photo: flush with the banner edge, no frame, fading into the banner background. */
.oe-consult-banner__photo { position: relative; height: 220px; overflow: hidden; }
.oe-consult-banner__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.oe-consult-banner__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, var(--oe-banner-bg) 100%); }
.oe-consult-banner__text, .oe-consult-banner__card { padding: var(--oe-space-5); }
.oe-consult-banner.has-photo .oe-consult-banner__text { padding-top: var(--oe-space-2); }
.oe-consult-banner__card { padding-top: 0; }
.oe-consult-banner__title { margin-bottom: var(--oe-space-3); font-size: var(--oe-fs-h2-sm); line-height: 1.25; color: var(--oe-color-primary); text-wrap: balance; }
.oe-consult-banner__desc { margin: 0; font-size: var(--oe-fs-sm); color: var(--oe-muted); max-width: var(--oe-measure); }
.oe-consult-banner__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: var(--oe-space-4); }
.oe-consult-banner__actions .oe-btn { width: 100%; }
@media (min-width: 1024px) {
	.oe-consult-banner { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: center; }
	.oe-consult-banner.has-photo { grid-template-columns: minmax(240px, 340px) minmax(0, 1.5fr) minmax(300px, 1fr); }
	.oe-consult-banner__photo { align-self: stretch; height: auto; min-height: 240px; }
	.oe-consult-banner__photo::after { background: linear-gradient(90deg, transparent 45%, var(--oe-banner-bg) 100%); }
	.oe-consult-banner__text, .oe-consult-banner.has-photo .oe-consult-banner__text { padding: var(--oe-space-6); }
	.oe-consult-banner.has-photo .oe-consult-banner__text { padding-left: var(--oe-space-3); }
	.oe-consult-banner__card { padding: var(--oe-space-6) var(--oe-space-6) var(--oe-space-6) 0; }
}

.oe-contact-row { display: grid; gap: var(--oe-gap-lg); margin-top: var(--oe-space-6); }
.oe-contact-row:not(.has-aside) .oe-contact__form { width: 100%; max-width: 820px; margin-inline: auto; }
.oe-contact-row__aside > .oe-section { padding: 0; background: transparent; }
@media (min-width: 1024px) {
	.oe-contact-row.has-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

.oe-contact { display: grid; gap: var(--oe-space-6); align-items: start; }
@media (min-width: 1024px) {
	.oe-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--oe-gap-lg); }
}
.oe-consultant { display: grid; gap: var(--oe-space-5); padding: var(--oe-space-5); border-radius: var(--oe-radius-lg); background: var(--oe-white); border: 1px solid var(--oe-border); box-shadow: var(--oe-shadow-sm); }
.oe-theme--light .oe-consultant { background: var(--oe-color-surface); }
.oe-consultant.has-photo { grid-template-columns: 112px minmax(0, 1fr); }
.oe-consultant__photo { border-radius: var(--oe-radius); overflow: hidden; align-self: start; }
.oe-consultant__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.oe-consultant__name { margin: 0; font-family: var(--oe-font-heading); font-size: var(--oe-fs-h3); font-weight: 600; color: var(--oe-color-primary); }
.oe-consultant__title { margin: 0 0 var(--oe-space-3); color: var(--oe-muted); font-size: var(--oe-fs-sm); }
.oe-consultant__bio { font-size: var(--oe-fs-sm); color: var(--oe-muted); }
.oe-consultant .oe-actions { margin-top: var(--oe-space-4); }
@media (max-width: 479px) { .oe-consultant.has-photo { grid-template-columns: 88px minmax(0, 1fr); } }

.oe-contact-list { list-style: none; display: grid; gap: var(--oe-space-1); }
.oe-contact-list li { display: flex; align-items: center; gap: var(--oe-space-3); min-height: 36px; overflow-wrap: anywhere; }
.oe-contact-list .oe-icon { flex: none; width: 20px; height: 20px; color: var(--oe-color-primary); }
.oe-theme--dark .oe-contact-list .oe-icon { color: var(--oe-color-accent); }
.oe-contact-list a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-weight: 600; }
.oe-contact-list a:hover { text-decoration: underline; }
.oe-contact-list--inline { display: flex; flex-wrap: wrap; gap: var(--oe-space-1) var(--oe-space-6); }

/* Lead form card. */
.oe-contact__form { padding: clamp(1.25rem, .9rem + 1.5vw, 2.25rem); border-radius: var(--oe-radius-lg); box-shadow: var(--oe-shadow-lg); }
.oe-lead__title { font-family: var(--oe-font-heading); font-weight: 500; font-size: var(--oe-fs-h3); text-transform: uppercase; margin-bottom: var(--oe-space-2); }
.oe-lead__intro { color: var(--oe-on-dark-muted); font-size: var(--oe-fs-sm); margin-bottom: var(--oe-space-5); }
.oe-form-grid { display: grid; gap: var(--oe-space-3); margin-bottom: var(--oe-space-4); }
@media (min-width: 480px) { .oe-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .oe-field--full { grid-column: 1 / -1; } }
.oe-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oe-field > label { font-size: var(--oe-fs-xs); font-weight: 500; }
.oe-theme--dark .oe-field > label { color: var(--oe-on-dark-muted); }
.oe-required { color: var(--oe-color-accent); }
.oe-field input[type="text"], .oe-field input[type="tel"], .oe-field input[type="email"], .oe-field select, .oe-field textarea {
	width: 100%; min-height: 46px; padding: .6rem .85rem; font-size: 16px; /* 16px avoids iOS zoom */
	color: var(--oe-color-text); background: var(--oe-white); border: 1.5px solid var(--oe-border); border-radius: var(--oe-radius-sm);
	transition: border-color var(--oe-duration), box-shadow var(--oe-duration);
}
.oe-field textarea { resize: vertical; min-height: 96px; }
.oe-field input:focus, .oe-field select:focus, .oe-field textarea:focus { outline: none; border-color: var(--oe-color-accent); box-shadow: 0 0 0 3px rgba(233, 182, 91, .45); }
.oe-field [aria-invalid="true"] { border-color: var(--oe-error); }
.oe-field__error { margin: 0; font-size: var(--oe-fs-xs); font-weight: 500; color: var(--oe-error); }
.oe-theme--dark .oe-field__error { color: var(--oe-error-on-dark); }
.oe-select { position: relative; }
.oe-select select { appearance: none; padding-right: 2.5rem; }
.oe-select .oe-icon { position: absolute; right: .8rem; top: 50%; width: 18px; transform: translateY(-50%); pointer-events: none; color: var(--oe-muted); }
.oe-checkbox { display: flex; gap: var(--oe-space-3); align-items: flex-start; font-size: var(--oe-fs-xs); line-height: 1.5; cursor: pointer; }
.oe-checkbox input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--oe-color-accent); }
.oe-theme--dark .oe-checkbox { color: var(--oe-on-dark-muted); }
.oe-checkbox a { color: var(--oe-color-accent); }
.oe-lead__privacy { display: flex; align-items: flex-start; gap: var(--oe-space-2); margin: var(--oe-space-3) 0 0; font-size: var(--oe-fs-2xs); line-height: 1.5; color: var(--oe-on-dark-muted); }
.oe-lead__privacy .oe-icon { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.oe-contact__form:not(.oe-theme--dark) .oe-lead__privacy { color: var(--oe-muted); }
.oe-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oe-alert { padding: var(--oe-space-3) var(--oe-space-4); margin-bottom: var(--oe-space-4); border-radius: var(--oe-radius-sm); font-size: var(--oe-fs-sm); }
.oe-alert--error { background: #FDECEA; color: var(--oe-error); border: 1px solid #F5C2BC; }
.oe-lead__success { text-align: center; padding: var(--oe-space-6) var(--oe-space-3); }
.oe-lead__success:focus { outline: none; }
.oe-lead__success-icon { width: 56px; height: 56px; margin: 0 auto var(--oe-space-4); padding: 12px; border-radius: 50%; background: var(--oe-color-accent); color: var(--oe-color-primary); stroke-width: 2.2; }
.oe-lead__success h3 { font-family: var(--oe-font-heading); font-weight: 500; font-size: var(--oe-fs-h3); }
.oe-theme--dark .oe-lead__success p { color: var(--oe-on-dark-muted); }

/* ---------- 20. FAQ (Section 12) ---------- */
.oe-faq-layout { display: grid; gap: var(--oe-space-5); }
@media (min-width: 1024px) { .oe-faq-layout:not(.oe-faq-layout--stacked) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--oe-space-8); } }
.oe-faq-layout--stacked { gap: var(--oe-space-3); }
.oe-faq-layout--stacked .oe-heading { margin-bottom: 0; }
.oe-faq-layout--stacked .oe-heading__title { margin-bottom: 0; }
.oe-faq-layout--stacked .oe-actions { margin-top: 0; }
.oe-faq { display: grid; gap: var(--oe-space-2); }
.oe-faq__item { border: 1px solid var(--oe-border); border-radius: var(--oe-radius-sm); background: var(--oe-white); transition: border-color var(--oe-duration), box-shadow var(--oe-duration); }
.oe-theme--dark .oe-faq__item { background: var(--oe-primary-soft); border-color: var(--oe-on-dark-border); }
.oe-faq__item[open] { border-color: var(--oe-color-accent); box-shadow: var(--oe-shadow-sm); }
.oe-faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--oe-space-4); min-height: 48px; padding: var(--oe-space-2) var(--oe-space-4); cursor: pointer; list-style: none; }
.oe-faq__q::-webkit-details-marker { display: none; }
.oe-faq__q h3 { margin: 0; font-size: var(--oe-fs-sm); font-weight: 500; line-height: 1.45; }
.oe-faq__icon { flex: none; width: 18px; color: var(--oe-color-primary); transition: transform var(--oe-duration) var(--oe-ease); }
.oe-theme--dark .oe-faq__icon { color: var(--oe-color-accent); }
.oe-faq__item[open] .oe-faq__icon { transform: rotate(180deg); }
.oe-faq__a { padding: 0 var(--oe-space-4) var(--oe-space-4); font-size: var(--oe-fs-sm); color: var(--oe-muted); }
.oe-theme--dark .oe-faq__a { color: var(--oe-on-dark-muted); }
/* ADR-P21: "Xem tất cả câu hỏi" under the landing list (wins over the stacked layout's zero margin). */
.oe-faq-layout .oe-actions.oe-faq__more { margin-top: var(--oe-space-5); }

/* ---------- 20b. Trang FAQ (ADR-P21, UI_CONTRACT_FAQ_PAGE §4) ----------
   Hero (navy, like the landing hero without a photo): text | 16:9 video from 1024px; without a video one centred
   column. Questions: the landing accordion in the §29 article frame (--oe-measure-article), centred, with
   server-side pagination. News + contact reuse the landing blocks. */
/* The radial glow is the last background layer, under the section-transition fades (§21), which the theme
   sets as background-image on the same element — so the whole list is declared here. */
.oe-section.oe-faq-hero {
	background-color: var(--oe-color-primary);
	background-image: var(--oe-fade-top, none), var(--oe-fade-bottom, none), radial-gradient(120% 90% at 85% 10%, var(--oe-primary-soft) 0%, var(--oe-color-primary) 45%, var(--oe-primary-deep) 100%);
	background-repeat: no-repeat;
	background-position: top, left 0 bottom -1px, center;
	background-size: 100% var(--oe-fade-h), 100% calc(var(--oe-fade-h-bottom, var(--oe-fade-h)) + 1px), 100% 100%;
}
.oe-faq-hero__grid { display: grid; gap: var(--oe-gap-lg); align-items: center; }
.oe-faq-hero__text { min-width: 0; }
.oe-faq-hero:not(.has-video) .oe-faq-hero__text { max-width: 760px; margin-inline: auto; text-align: center; }
.oe-faq-hero:not(.has-video) .oe-faq-hero__desc { margin-inline: auto; }
.oe-faq-hero__title { margin-bottom: var(--oe-space-4); font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem); line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; color: var(--oe-on-dark); text-wrap: balance; }
.oe-faq-hero__desc { max-width: var(--oe-measure-narrow); font-size: var(--oe-fs-lg); color: var(--oe-on-dark-muted); }
.oe-faq-hero__media { min-width: 0; }
@media (min-width: 1024px) {
	.oe-faq-hero.has-video .oe-faq-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

/* Click-to-load video: poster + play button; main.js swaps in the player only after a click (no third-party request before). */
.oe-video-embed {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--oe-radius-lg);
	background: radial-gradient(90% 90% at 30% 20%, var(--oe-primary-soft) 0%, var(--oe-primary-deep) 100%);
	border: 1px solid var(--oe-on-dark-border); box-shadow: var(--oe-shadow-lg); color: var(--oe-on-dark);
}
.oe-video-embed__poster, .oe-video-embed__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oe-video-embed__poster { object-fit: cover; }
a.oe-video-embed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 26, 41, .45), rgba(0, 26, 41, .05) 60%); transition: background-color var(--oe-duration); }
.oe-video-embed__play {
	position: absolute; top: 50%; left: 50%; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
	width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
	background: var(--oe-color-accent); color: var(--oe-color-primary); box-shadow: 0 8px 24px rgba(0, 26, 41, .35);
	transition: transform var(--oe-duration) var(--oe-ease), background-color var(--oe-duration);
}
.oe-video-embed__play .oe-icon { width: 28px; height: 28px; margin-left: 4px; }
a.oe-video-embed:hover .oe-video-embed__play, a.oe-video-embed:focus-visible .oe-video-embed__play { transform: scale(1.06); background: var(--oe-accent-hover); }
@media (min-width: 1024px) { .oe-video-embed__play { width: 88px; height: 88px; margin: -44px 0 0 -44px; } }

.oe-faq-page__frame { max-width: var(--oe-measure-article); margin-inline: auto; }
/* §11: the Page's editor content above the questions (page 1 only), long-read prose, divided from the list. */
.oe-prose.oe-faq-page__content { margin-bottom: var(--oe-space-7); padding-bottom: var(--oe-space-6); border-bottom: 1px solid var(--oe-border); font-size: var(--oe-fs-prose); }
.oe-faq-page__status { margin-bottom: var(--oe-space-4); font-size: var(--oe-fs-sm); color: var(--oe-muted); }
.oe-faq-page__empty { padding: var(--oe-space-6) 0; text-align: center; color: var(--oe-muted); }
.oe-faq-page__pagination .nav-links { justify-content: center; }
.oe-pagination .page-numbers .oe-icon { width: 18px; height: 18px; }
.oe-pagination a.page-numbers:hover { border-color: var(--oe-color-accent); }
.oe-pagination .page-numbers.dots { border-color: transparent; min-width: 24px; padding: 0; }

/* ---------- 21. Footer (Section 13) ---------- */
.oe-site-footer { padding-block: var(--oe-space-6) var(--oe-space-4); background: var(--oe-primary-deep); }
.oe-site-footer__top { display: grid; gap: var(--oe-space-5); padding-bottom: var(--oe-space-5); border-bottom: 1px solid var(--oe-on-dark-border); }
.oe-site-footer__about { margin: var(--oe-space-3) 0 0; color: var(--oe-on-dark-muted); font-size: var(--oe-fs-sm); max-width: 360px; }
.oe-site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--oe-space-4); }
.oe-site-footer__links li { display: flex; align-items: center; }
.oe-site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--oe-on-dark-muted); text-decoration: none; font-size: var(--oe-fs-sm); }
.oe-site-footer__links a:hover, .oe-site-footer__links a.is-current { color: var(--oe-on-dark); }
.oe-site-footer__links a.is-current { text-decoration: underline; text-decoration-color: var(--oe-color-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.oe-social { list-style: none; display: flex; gap: var(--oe-space-2); }
.oe-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--oe-on-dark-line); border-radius: 50%; color: var(--oe-on-dark); transition: background-color var(--oe-duration), color var(--oe-duration), border-color var(--oe-duration); }
.oe-social a:hover { background: var(--oe-color-accent); color: var(--oe-color-primary); border-color: var(--oe-color-accent); }
.oe-social .oe-icon { width: 20px; height: 20px; }
/* Contact row: phone · email · address on the left, social icons on the right (§22). Mobile: icons wrap
   under the contact list, left-aligned with it; a social-only row keeps the icons on the right. */
.oe-site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--oe-space-3); padding-block: var(--oe-space-3); border-bottom: 1px solid var(--oe-on-dark-border); font-size: var(--oe-fs-sm); }
.oe-site-footer__contact.is-social-only { align-items: flex-end; }
.oe-site-footer__contact-main { min-width: 0; }
@media (min-width: 768px) {
	.oe-site-footer__contact { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--oe-space-3) var(--oe-space-6); }
	.oe-site-footer__contact .oe-social { margin-left: auto; }
}
.oe-site-footer__operator { margin: var(--oe-space-2) 0 0; font-size: var(--oe-fs-xs); color: var(--oe-on-dark-muted); }
.oe-site-footer__disclaimer { margin: var(--oe-space-4) 0 0; font-size: var(--oe-fs-2xs); line-height: 1.5; color: var(--oe-on-dark-muted); font-style: italic; }
.oe-site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--oe-space-2) var(--oe-space-4); margin-top: var(--oe-space-3); font-size: var(--oe-fs-xs); color: var(--oe-on-dark-muted); }
.oe-site-footer__copy { margin: 0; }
.oe-site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.oe-site-footer__legal li { display: flex; align-items: center; }
.oe-site-footer__legal li + li::before { content: ""; width: 1px; height: 12px; background: var(--oe-on-dark-line); }
.oe-site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--oe-space-3); color: inherit; }
.oe-site-footer__legal li:last-child a { padding-right: 0; }
@media (min-width: 1024px) {
	.oe-site-footer__top { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--oe-space-6); }
	.oe-site-footer__links { justify-content: center; gap: 0; }
	.oe-site-footer__links li + li::before { content: ""; width: 1px; height: 14px; background: var(--oe-on-dark-line); }
	.oe-site-footer__links a { padding-inline: var(--oe-space-3); }
}

/* ---------- 22. Inner pages / prose ---------- */
.oe-page { min-height: 50vh; }
/* §29 single post & static pages: one centred frame (--oe-measure-article); text, featured image, CTA and
   "Tin khác" run its full width; images inside the body are --oe-article-media wide, centred. */
.oe-article .oe-narrow { max-width: calc(var(--oe-measure-article) + 2 * var(--oe-gutter)); }
.oe-article__header { margin-bottom: var(--oe-space-6); }
.oe-article__eyebrow a { text-decoration: none; }
.oe-article__eyebrow a:hover { text-decoration: underline; }
.oe-article__sep { margin-inline: .5em; }
.oe-article__title { margin-bottom: var(--oe-space-3); font-size: var(--oe-fs-h2); color: var(--oe-color-primary); text-transform: none; text-wrap: pretty; } /* pretty, not balance: lines fill the frame (owner 2026-10-31) */
.oe-article__meta { margin: 0; color: var(--oe-muted); font-size: var(--oe-fs-sm); }
.oe-article__media { margin: 0 0 var(--oe-space-6); }
.oe-article__media img { width: 100%; border-radius: var(--oe-radius-lg); }
.oe-article__media figcaption { margin-top: var(--oe-space-2); font-size: var(--oe-fs-xs); line-height: 1.5; color: var(--oe-muted); }
.oe-article__lead { margin-bottom: var(--oe-space-6); font-size: var(--oe-fs-lg); font-weight: 500; line-height: var(--oe-lh-prose); }
.oe-article__cta { margin-top: var(--oe-space-7); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--oe-radius-lg); background: var(--oe-color-surface); }
.oe-article__cta-title { margin-bottom: var(--oe-space-2); font-family: var(--oe-font-heading); font-size: var(--oe-fs-h3); font-weight: 500; line-height: var(--oe-lh-tight); color: var(--oe-color-primary); }
.oe-article__cta-text { margin-bottom: var(--oe-space-4); color: var(--oe-muted); }
.oe-article__more { margin-top: var(--oe-space-8); }
.oe-article__more-title { font-size: var(--oe-fs-h3); color: var(--oe-color-primary); }
.oe-article__more .oe-post-grid { grid-template-columns: minmax(0, 1fr); gap: var(--oe-space-4); }
.oe-article__more .oe-post-card__body { padding: var(--oe-space-4); }
@media (min-width: 768px) { .oe-article__more .oe-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.oe-prose { font-size: var(--oe-fs-lg); }
.oe-prose--compact { font-size: var(--oe-fs-sm); }
.oe-prose h2 { font-size: var(--oe-fs-h3); margin-top: var(--oe-space-6); }
.oe-prose h3 { font-size: var(--oe-fs-h4); margin-top: var(--oe-space-5); }
.oe-prose ul, .oe-prose ol { padding-left: 1.3em; margin-bottom: var(--oe-space-4); }
.oe-prose li + li { margin-top: var(--oe-space-1); }
.oe-prose a { color: var(--oe-accent-ink); }
.oe-theme--dark .oe-prose a { color: var(--oe-color-accent); }
.oe-prose img { border-radius: var(--oe-radius); }

/* §29 long-read prose (posts + pages; the landing's compact prose is untouched). Tokens only, 5 font weights
   (ADR-P15): strong = 600, em keeps the browser's synthetic oblique, blockquote is not italic. Selectors are
   specific enough to win over the WP block-library defaults (table borders, separator, captions). */
.oe-prose:not(.oe-prose--compact) { line-height: var(--oe-lh-prose); overflow-wrap: break-word; }
.oe-prose:not(.oe-prose--compact) :is(p, ul, ol, blockquote, pre, table, dl) { margin-block: 0 var(--oe-space-5); }
.oe-prose:not(.oe-prose--compact) > :first-child { margin-top: 0; }
.oe-prose:not(.oe-prose--compact) > :last-child { margin-bottom: 0; }
.oe-prose:not(.oe-prose--compact) :is(h2, h3, h4) { color: var(--oe-color-primary); text-transform: none; line-height: 1.3; }
.oe-prose:not(.oe-prose--compact) h2 { margin: var(--oe-space-7) 0 var(--oe-space-3); font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem); } /* 20px @320 → 28px @1440: above the 17–19px body, below the page H1 */
.oe-prose:not(.oe-prose--compact) h3 { margin: var(--oe-space-6) 0 var(--oe-space-2); font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); } /* 18px → 21px, never smaller than the body (19px from 1024px) */
.oe-prose:not(.oe-prose--compact) h4 { margin: var(--oe-space-5) 0 var(--oe-space-2); font-family: var(--oe-font-body); font-size: 1em; font-weight: 600; }
.oe-prose:not(.oe-prose--compact) :is(strong, b) { font-weight: 600; }
.oe-prose:not(.oe-prose--compact) li::marker { color: var(--oe-accent-ink); }
.oe-prose:not(.oe-prose--compact) li > :is(ul, ol) { margin: var(--oe-space-1) 0 0; }
.oe-prose:not(.oe-prose--compact) a:hover { color: var(--oe-color-primary); }
.oe-prose:not(.oe-prose--compact) blockquote { margin-inline: 0; padding: var(--oe-space-1) 0 var(--oe-space-1) var(--oe-space-5); border-left: 3px solid var(--oe-color-accent); color: var(--oe-color-text); font-style: normal; }
.oe-prose:not(.oe-prose--compact) blockquote p:last-child { margin-bottom: 0; }
.oe-prose:not(.oe-prose--compact) blockquote cite { display: block; margin-top: var(--oe-space-2); font-size: var(--oe-fs-sm); font-style: normal; color: var(--oe-muted); }
.oe-prose:not(.oe-prose--compact) figure { margin: var(--oe-space-6) 0; }
.oe-prose:not(.oe-prose--compact) :is(figcaption, .wp-element-caption) { margin: var(--oe-space-2) 0 0; font-size: var(--oe-fs-xs); line-height: 1.5; color: var(--oe-muted); text-align: left; }
.oe-prose:not(.oe-prose--compact) hr { margin: var(--oe-space-7) 0; border: 0; border-top: 1px solid var(--oe-border); opacity: 1; }
.oe-prose:not(.oe-prose--compact) :is(.wp-block-embed, .wp-block-video, iframe, video) { margin-block: var(--oe-space-6); max-width: 100%; }
/* Tables: the block editor wraps them in figure.wp-block-table, which scrolls sideways on narrow screens.
   <table> keeps display: table (screen readers keep the table role); a bare classic table wraps its text. */
.oe-prose:not(.oe-prose--compact) figure.wp-block-table { overflow-x: auto; }
.oe-prose:not(.oe-prose--compact) table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: var(--oe-fs-sm); line-height: 1.5; }
.oe-prose:not(.oe-prose--compact) :is(th, td) { padding: var(--oe-space-2) var(--oe-space-3); border: 1px solid var(--oe-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.oe-prose:not(.oe-prose--compact) figure.wp-block-table :is(th, td) { overflow-wrap: normal; }
.oe-prose:not(.oe-prose--compact) th { background: var(--oe-color-surface); font-weight: 600; }
.oe-prose:not(.oe-prose--compact) :is(thead, tfoot) { border: 0; }
.oe-prose:not(.oe-prose--compact) .aligncenter { margin-inline: auto; }
@media (min-width: 768px) {
	.oe-prose:not(.oe-prose--compact) .alignleft { float: left; max-width: 50%; margin: var(--oe-space-1) var(--oe-space-5) var(--oe-space-4) 0; }
	.oe-prose:not(.oe-prose--compact) .alignright { float: right; max-width: 50%; margin: var(--oe-space-1) 0 var(--oe-space-4) var(--oe-space-5); }
}
.oe-prose:not(.oe-prose--compact)::after { content: ""; display: table; clear: both; }
/* §29 article: body images, galleries and embeds are narrower than the text (owner, 2026-10-31); tables stay 100%. */
@media (min-width: 768px) { :root { --oe-article-media: 82%; } }
.oe-article .oe-prose:not(.oe-prose--compact) { font-size: var(--oe-fs-prose); }
.oe-article .oe-prose:not(.oe-prose--compact) > :is(.wp-block-image, .wp-block-embed, .wp-block-video, figure:not(.wp-block-table, .wp-block-gallery), iframe, video):not(.alignleft, .alignright) { max-width: var(--oe-article-media); margin-inline: auto; }
.oe-article .oe-prose:not(.oe-prose--compact) > .wp-block-gallery { width: var(--oe-article-media); margin-inline: auto; }
.oe-article .oe-prose:not(.oe-prose--compact) > .wp-block-image:not(.alignleft, .alignright) img { margin-inline: auto; }
/* wp_link_pages() (paged posts) styled like the archive pagination. */
.oe-page-links { display: flex; flex-wrap: wrap; gap: var(--oe-space-2); margin-top: var(--oe-space-6); }
.oe-page-links .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--oe-space-3); border: 1px solid var(--oe-border); border-radius: var(--oe-radius-sm); text-decoration: none; }
.oe-page-links .post-page-numbers.current { background: var(--oe-color-primary); color: var(--oe-on-dark); border-color: var(--oe-color-primary); }
.oe-pagination { margin-top: var(--oe-space-6); }
.oe-pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--oe-space-2); }
.oe-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--oe-space-3); border: 1px solid var(--oe-border); border-radius: var(--oe-radius-sm); text-decoration: none; }
.oe-pagination .page-numbers.current { background: var(--oe-color-primary); color: var(--oe-on-dark); border-color: var(--oe-color-primary); }

/* ---------- 22b. Slider component, Legal (WF-14), Offers (WF-15) — UI contract §30 ----------
   [data-oe-slider]: a native scroll-snap strip (swipe / scroll without JS); main.js adds paging buttons,
   the "1 / n" status, autoplay and pause. Slides per page come from --oe-per-view (fractions show the next
   slide's edge); the JS reads the real geometry, so CSS alone decides the layout per breakpoint. */
.oe-slider { --oe-per-view: 1; --oe-slide-gap: var(--oe-gap); --oe-slider-pad: 6px; position: relative; }
.oe-slider__track {
	list-style: none; display: flex; gap: var(--oe-slide-gap);
	/* The padding keeps focus rings inside the scroll box (overflow would clip them). */
	margin: calc(-1 * var(--oe-slider-pad)); padding: var(--oe-slider-pad);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--oe-slider-pad);
	scrollbar-width: thin; scrollbar-color: var(--oe-border) transparent;
}
.oe-slider__slide { flex: 0 0 calc((100% - (var(--oe-per-view) - 1) * var(--oe-slide-gap)) / var(--oe-per-view)); min-width: 0; scroll-snap-align: start; }
/* Fewer slides than a page (e.g. 1–2 documents on desktop): centre them in the frame instead of leaving them
   on the left. Auto margins collapse to 0 as soon as the strip overflows, so scrolling is unaffected. */
.oe-slider__slide:first-child { margin-left: auto; }
.oe-slider__slide:last-child { margin-right: auto; }
.oe-slider.is-ready .oe-slider__track { scrollbar-width: none; }
.oe-slider.is-ready .oe-slider__track::-webkit-scrollbar { display: none; }
.oe-slider__controls { display: flex; align-items: center; justify-content: center; gap: var(--oe-space-3); margin-top: var(--oe-space-5); }
.oe-slider__controls[hidden], .oe-slider__toggle[hidden] { display: none; }
.oe-slider__btn {
	display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0;
	border: 1.5px solid var(--oe-border); border-radius: 50%; background: var(--oe-white); color: var(--oe-color-primary); cursor: pointer;
	transition: background-color var(--oe-duration) var(--oe-ease), color var(--oe-duration) var(--oe-ease), border-color var(--oe-duration) var(--oe-ease);
}
.oe-slider__btn:hover { background: var(--oe-color-primary); border-color: var(--oe-color-primary); color: var(--oe-on-dark); }
.oe-slider__btn .oe-icon { width: 20px; height: 20px; }
.oe-slider__toggle { margin-left: var(--oe-space-2); }
.oe-slider__toggle .oe-slider__icon-play, .oe-slider__toggle.is-paused .oe-slider__icon-pause { display: none; }
.oe-slider__toggle.is-paused .oe-slider__icon-play { display: block; width: 16px; height: 16px; margin-left: 2px; }
.oe-slider__status { min-width: 4.5em; margin: 0; text-align: center; font-size: var(--oe-fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--oe-muted); }
.oe-theme--dark .oe-slider__btn { background: transparent; border-color: var(--oe-on-dark-line); color: var(--oe-on-dark); }
.oe-theme--dark .oe-slider__btn:hover { background: var(--oe-on-dark); color: var(--oe-color-primary); }
.oe-theme--dark .oe-slider__status { color: var(--oe-on-dark-muted); }

/* Legal documents: A4 frame (1 : 1.414), the whole page visible (contain), title + reference below. */
.oe-slider--legal { --oe-per-view: 1.25; }
@media (min-width: 640px) { .oe-slider--legal { --oe-per-view: 2; } }
@media (min-width: 1024px) { .oe-slider--legal { --oe-per-view: 3; --oe-slide-gap: var(--oe-space-5); } }
.oe-doc { display: flex; flex-direction: column; gap: var(--oe-space-1); height: 100%; color: inherit; text-decoration: none; }
.oe-doc__frame {
	display: block; aspect-ratio: 1 / 1.414; padding: var(--oe-space-3); margin-bottom: var(--oe-space-2); overflow: hidden;
	background: var(--oe-color-surface); border: 1px solid var(--oe-border); border-radius: var(--oe-radius-sm);
	transition: box-shadow var(--oe-duration) var(--oe-ease), border-color var(--oe-duration) var(--oe-ease);
}
.oe-theme--cream .oe-doc__frame { background: var(--oe-white); }
.oe-doc__frame img { width: 100%; height: 100%; object-fit: contain; box-shadow: var(--oe-shadow-sm); }
.oe-doc:hover .oe-doc__frame { border-color: var(--oe-accent-ink); box-shadow: var(--oe-shadow); }
.oe-doc__title { font-weight: 600; line-height: 1.4; color: var(--oe-color-primary); }
.oe-doc__meta { font-size: var(--oe-fs-xs); color: var(--oe-muted); }
.oe-theme--dark .oe-doc__frame { background: var(--oe-primary-soft); border-color: var(--oe-on-dark-border); }
.oe-theme--dark .oe-doc__title { color: var(--oe-on-dark); }
.oe-theme--dark .oe-doc__meta { color: var(--oe-on-dark-muted); }
.oe-doc-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--oe-space-5) var(--oe-space-4); }
@media (min-width: 768px) { .oe-doc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--oe-space-6) var(--oe-space-5); } }
.oe-doc-grid .oe-doc__title { font-size: var(--oe-fs-sm); }

/* Offers: one banner ratio for every count and screen — 2:1 (image_mobile is phone artwork in the same 2:1
   frame, so heights never mix inside the slider and nothing shifts); never cropped (contain).
   1 → full frame · 2 → two columns from 1024px · 3+ → slider, 2 per page from 1024px, 1 + next edge below. */
.oe-offers { list-style: none; display: grid; gap: var(--oe-space-5); }
@media (min-width: 1024px) { .oe-offers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.oe-slider--offers { --oe-per-view: 1.12; }
@media (min-width: 1024px) { .oe-slider--offers { --oe-per-view: 2; --oe-slide-gap: var(--oe-space-5); } }
.oe-offer { display: block; border-radius: var(--oe-radius); overflow: hidden; box-shadow: var(--oe-shadow-sm); transition: box-shadow var(--oe-duration) var(--oe-ease), transform var(--oe-duration) var(--oe-ease); }
.oe-offer:hover { box-shadow: var(--oe-shadow); transform: translateY(-2px); }
.oe-offer__frame { display: block; aspect-ratio: 2 / 1; background: var(--oe-white); }
.oe-theme--light .oe-offer__frame { background: var(--oe-color-surface); }
.oe-offer__frame img { width: 100%; height: 100%; object-fit: contain; }
.oe-offers-section .oe-actions { margin-top: var(--oe-space-6); }

/* ---------- 23. Lightbox (created by main.js) ---------- */
.oe-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 12, 20, .94); color: #fff; }
.oe-lightbox::backdrop { background: rgba(0, 12, 20, .94); }
.oe-lightbox__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 64px 16px 24px; }
.oe-lightbox__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: var(--oe-radius-sm); }
.oe-lightbox__frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: calc(100dvh - 140px); border: 0; background: #000; }
.oe-lightbox__caption { margin-top: var(--oe-space-3); font-size: var(--oe-fs-sm); color: rgba(255, 255, 255, .85); text-align: center; }
.oe-lightbox__btn {
	position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
	border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer;
}
.oe-lightbox__btn:hover { background: rgba(255, 255, 255, .15); }
.oe-lightbox__close { top: 12px; right: 12px; }
.oe-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%) rotate(90deg); }
.oe-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.oe-lightbox__counter { position: absolute; top: 24px; left: 20px; font-size: var(--oe-fs-sm); color: rgba(255, 255, 255, .8); }

/* ---------- 24. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 25. Print ---------- */
@media print {
	.oe-site-header, .oe-nav, .oe-lead, .oe-hero__play, .oe-filter, .oe-diagram { display: none !important; }
	.oe-theme--dark, .oe-hero { background: #fff !important; color: #000 !important; }
}
