/* ==========================================================================
   OCC Theme — main stylesheet
   Colour tokens are overridden at runtime by <style id="occ-vars"> (from OCC Settings).
   ========================================================================== */

/* ---------- Tokens (defaults, mirror occ_default_colors()) ---------- */
:root {
	color-scheme: light;
	--paper: #F3EFE7;
	--card: #FBF9F5;
	--ink: #3A2F2F;
	--night: #3E3232;
	--olive: #5F6638;
	--sun: #C9663A;
	--lake: #68A2B9;
	--sage: #A6AA86;
	--sand: #E8CDB4;
	--gold: #CFB845;
	--leaf: #ADC287;
	--mute: #7C706C;
	--brown: #574545;
	--on-night: #F3EFE7;
	--on-night-mute: #D9DCC4;
	--sun-ink: #FFFFFF;

	/* Derived tokens (follow the editable palette) */
	--paper-2: color-mix(in srgb, var(--paper) 88%, var(--brown));
	--line: color-mix(in srgb, var(--brown) 16%, transparent);
	--line-strong: color-mix(in srgb, var(--brown) 30%, transparent);
	--field-bg: var(--card);
	--danger: color-mix(in srgb, var(--sun) 70%, var(--ink));
	--wait-bg: color-mix(in srgb, var(--sun) 18%, var(--paper));
	--wait-ink: color-mix(in srgb, var(--sun) 70%, var(--ink));
	--shade: color-mix(in srgb, var(--night) 70%, transparent);
	--shade-soft: color-mix(in srgb, var(--night) 10%, transparent);
	--shadow: 0 14px 40px color-mix(in srgb, var(--ink) 18%, transparent);
	--shadow-sm: 0 6px 18px color-mix(in srgb, var(--ink) 12%, transparent);
	--white: #FFFFFF;
	--line-green: #06C755;
	--pending-dot: color-mix(in srgb, var(--sun) 60%, var(--white));

	/* Contextual (switched on dark backgrounds) */
	--text: var(--ink);
	--text-mute: var(--mute);
	--accent-ink: var(--olive);
	--rule: var(--line);

	/* Fonts: one family for the whole site (also set in functions.php → OCC_THEME_FONT) */
	--f-en: 'IBM Plex Sans Thai', 'Thonburi', 'Noto Sans Thai', sans-serif;
	--f-th: 'IBM Plex Sans Thai', 'Thonburi', 'Noto Sans Thai', sans-serif;
	--f-body: 'IBM Plex Sans Thai', 'Thonburi', 'Noto Sans Thai', sans-serif;
	--f-display: 'IBM Plex Sans Thai', 'Thonburi', 'Noto Sans Thai', sans-serif;

	/* Layout */
	--wrap: 1240px;
	--wrap-narrow: 760px;
	--gut: max(16px, env(safe-area-inset-left, 0px));
	--gut-r: max(16px, env(safe-area-inset-right, 0px));
	--radius: 14px;
	--radius-lg: 22px;
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, video, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 1.2; color: inherit; text-wrap: balance; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4, html[lang="th"] h5, html[lang="th"] h6 { font-family: var(--f-th); line-height: 1.4; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sand); color: var(--ink); }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.icon--flip { transform: scaleX(-1); }

.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 200;
	background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px;
	text-decoration: none; font-family: var(--f-th);
}
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 32px); }

/* ---------- Utilities ---------- */
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }

/* ---------- Section shell: backgrounds, padding, alignment ---------- */
.sec { position: relative; }
.bg-paper { background: var(--paper); }
.bg-card { background: var(--card); }
.bg-sand { background: var(--sand); }
.bg-none { background: transparent; }
.bg-night, .bg-olive {
	color: var(--on-night);
	--text: var(--on-night);
	--text-mute: var(--on-night-mute);
	--accent-ink: var(--sand);
	--rule: color-mix(in srgb, var(--on-night) 20%, transparent);
}
.bg-night { background: var(--night); }
.bg-olive { background: linear-gradient(180deg, var(--olive) 0%, color-mix(in srgb, var(--olive) 78%, var(--ink)) 100%); }

.pad-normal { padding-block: clamp(64px, 9vw, 120px); }
.pad-large { padding-block: clamp(88px, 12vw, 168px); }
.pad-small { padding-block: clamp(36px, 5vw, 56px); }
.pad-none { padding-block: 0; }

/* ---------- Headings ---------- */
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.align-center .sec-head { margin-inline: auto; text-align: center; justify-items: center; }
.align-center .sec-foot, .btns--center { justify-content: center; }
.eyebrow {
	font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: .28em;
	text-transform: uppercase; color: var(--accent-ink); margin: 0;
}
html[lang="th"] .eyebrow { font-family: var(--f-th); letter-spacing: .12em; font-size: 13px; }
.sec-title, .page-title {
	font-family: var(--f-display); font-weight: 300;
	font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; letter-spacing: .005em;
}
html[lang="th"] .sec-title, html[lang="th"] .page-title { font-family: var(--f-th); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.35; }
.page-title { margin-bottom: 28px; }
.sec-intro { font-size: 19px; color: var(--text-mute); max-width: 62ch; }
.sec-note { font-size: 13px; color: var(--text-mute); margin-top: 20px; }
.sub-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 20px; }
html[lang="th"] .sub-title { font-family: var(--f-th); font-weight: 500; font-size: 22px; }
.mini-title { font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); margin: 18px 0 10px; }
html[lang="th"] .mini-title { font-family: var(--f-th); letter-spacing: .06em; font-size: 14px; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 30px; }
.sec-head + .btns, .sec-foot { margin-top: clamp(28px, 4vw, 44px); }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--f-th); font-weight: 500; font-size: 16px; line-height: 1.3;
	text-decoration: none; padding: 13px 26px; border-radius: 999px;
	border: 1px solid transparent; cursor: pointer; text-align: center;
	transition: transform .2s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--sun); color: var(--sun-ink); }
.btn-primary:hover, .btn-primary:focus-visible { background: color-mix(in srgb, var(--sun) 86%, var(--ink)); color: var(--sun-ink); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn-text { padding: 0; border: 0; background: none; border-radius: 0; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.btn-text:hover { transform: none; text-decoration-color: var(--sun); }
.btn-line { background: var(--line-green); color: var(--white); }
.btn-line .icon { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.btn-line.is-icon { padding: 11px; }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

.more-link {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
	font-family: var(--f-th); font-weight: 500; font-size: 15px;
	color: var(--accent-ink); text-decoration: none;
}
.more-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.more-link:hover .icon { transform: translateX(4px); }

/* ---------- Media, placeholders, badges, chips ---------- */
.img-placeholder {
	display: block; width: 100%; aspect-ratio: 4 / 3;
	background:
		radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--lake) 45%, transparent) 0%, transparent 60%),
		linear-gradient(150deg, var(--sand) 0%, color-mix(in srgb, var(--sage) 80%, var(--sand)) 55%, var(--sage) 100%);
}
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--paper-2); isolation: isolate; }
.media-frame > img, .media-frame > .img-placeholder, .media-frame > video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto;
}
/* Arch crop: half-ellipse top on a 4:5 frame */
.media-frame--arch { aspect-ratio: 4 / 5; border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); }
.ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }

.badge {
	position: absolute; left: 12px; bottom: 12px; z-index: 2;
	font-family: var(--f-body); font-size: 11.5px; line-height: 1.5; letter-spacing: .02em;
	background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--brown);
	padding: 2px 10px; border-radius: 20px; max-width: calc(100% - 24px);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	backdrop-filter: blur(4px);
}
.badge--real { background: color-mix(in srgb, var(--olive) 90%, transparent); color: var(--on-night); }
.badge--render { background: color-mix(in srgb, var(--lake) 90%, transparent); color: var(--white); }
.badge--stock { background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--paper); }
.badge--hero { left: auto; right: calc(var(--gut-r) + 4px); bottom: 18px; }
.badge--date { left: 12px; top: 12px; bottom: auto; background: var(--card); color: var(--ink); font-weight: 500; }

.chip {
	display: inline-block; font-size: 12px; line-height: 1.6; padding: 1px 10px; border-radius: 20px;
	background: var(--paper-2); color: var(--brown); white-space: nowrap; font-family: var(--f-body); font-weight: 400;
}
.chip--wait { background: var(--wait-bg); color: var(--wait-ink); }
.chip--light { background: color-mix(in srgb, var(--white) 18%, transparent); color: var(--white); border: 1px solid color-mix(in srgb, var(--white) 35%, transparent); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

.feat { list-style: none; display: grid; gap: 10px; }
.feat li { padding-left: 22px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--accent-ink); }
.feat--sm { font-size: 14.5px; gap: 6px; }

.notice { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 26px; background: var(--card); color: var(--ink); }
.empty-note { color: var(--text-mute); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 94%, transparent);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line); color: var(--brown);
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .35s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.topbar { background: var(--olive); color: var(--on-night-mute); font-size: 12px; }
.topbar-inner { display: flex; align-items: stretch; gap: 16px; min-height: 36px; overflow-x: auto; scrollbar-width: none; }
.topbar-inner::-webkit-scrollbar { display: none; }
.topbar-menu { display: flex; list-style: none; gap: 2px; }
.topbar-menu a {
	display: flex; align-items: center; height: 100%; padding: 8px 14px; white-space: nowrap;
	font-family: var(--f-en); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
html[lang="th"] .topbar-menu a { font-family: var(--f-th); letter-spacing: .04em; font-size: 13px; }
.topbar-menu a:hover, .topbar-menu a[aria-current="page"] { background: var(--paper); color: var(--brown); }
.topbar-text { margin-left: auto; align-self: center; white-space: nowrap; font-family: var(--f-body); }

.bar-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; color: inherit; }
.logo-img { height: 40px; width: auto; }
.logo.has-light .logo-img--light { display: none; }
.logo.only-light .logo-img--light { filter: brightness(0); opacity: .82; }
.logo-text { font-family: var(--f-display); font-weight: 400; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; }
html[lang="th"] .logo-text { letter-spacing: .04em; }

.main-nav { margin-left: auto; }
.main-menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.main-menu > .menu-item { position: relative; display: flex; align-items: center; gap: 2px; }
.menu-link { font-family: var(--f-th); font-size: 15px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.menu-link:hover { border-color: currentColor; }
.menu-link[aria-current="page"], .is-current > .menu-link { border-color: var(--sun); }
.sub-toggle { background: none; border: 0; padding: 4px; cursor: pointer; display: inline-flex; border-radius: 4px; }
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.main-menu .sub-menu-wrap {
	position: absolute; top: 100%; left: -18px; min-width: 230px; padding-top: 10px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	color: var(--ink);
}
.main-menu .has-sub:hover > .sub-menu-wrap,
.main-menu .has-sub:focus-within > .sub-menu-wrap,
.main-menu .has-sub.is-open > .sub-menu-wrap { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.main-menu .sub-menu { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.main-menu .sub-menu .menu-link { display: block; padding: 9px 12px; border: 0; border-radius: 8px; font-size: 14.5px; }
.main-menu .sub-menu .menu-link:hover, .main-menu .sub-menu .menu-link[aria-current="page"] { background: var(--paper); }

.bar-tools { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav + .bar-tools { margin-left: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-en); font-size: 13px; letter-spacing: .12em; }
.lang-link { text-decoration: none; padding: 4px 2px; opacity: .7; border-bottom: 1px solid transparent; }
.lang-link:hover { opacity: 1; }
.lang-link.is-active { opacity: 1; font-weight: 500; border-color: var(--sun); }
.lang-sep { opacity: .5; }

.menu-toggle {
	display: none; align-items: center; gap: 8px; background: none; cursor: pointer;
	border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px;
	font-family: var(--f-th); font-size: 14px;
}
.menu-toggle .icon { width: 18px; height: 18px; }
@media (max-width: 980px) {
	.site-header .main-nav, .site-header .bar-tools .hide-mobile, .site-header .bar-tools .lang-switch { display: none; }
	.menu-toggle { display: inline-flex; }
	.bar-inner { min-height: 64px; }
}
@media (max-width: 400px) { .menu-toggle-label { display: none; } .menu-toggle { padding: 9px; } }

/* Transparent header over a hero */
body.has-hero .site-header { position: fixed; left: 0; right: 0; }
body.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) {
	/* no-repeat: otherwise the gradient tiles into the 1px transparent bottom border and shows a dark line over the banner */
	background: linear-gradient(180deg, color-mix(in srgb, var(--night) 45%, transparent), transparent) no-repeat;
	backdrop-filter: none; -webkit-backdrop-filter: none;
	border-color: transparent; color: var(--white);
}
body.has-hero .site-header:not(.is-scrolled) .topbar { background: color-mix(in srgb, var(--night) 35%, transparent); }
body.has-hero .site-header:not(.is-scrolled) .logo.has-light .logo-img--default { display: none; }
body.has-hero .site-header:not(.is-scrolled) .logo.has-light .logo-img--light { display: block; }
body.has-hero .site-header:not(.is-scrolled) .logo.only-light .logo-img--light { filter: none; opacity: 1; }
body.has-hero .site-header:not(.is-scrolled) .menu-toggle { border-color: color-mix(in srgb, var(--white) 50%, transparent); color: var(--white); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header.is-scrolled { transform: translateY(calc(-1 * var(--topbar-h, 0px))); }

/* Mobile panel */
.mobile-panel {
	position: fixed; inset: 0; z-index: 120; background: var(--paper); color: var(--brown);
	overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column;
	animation: panel-in .25s var(--ease);
}
.mobile-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.admin-bar .mobile-panel { top: 46px; }
@media (min-width: 783px) { .admin-bar .mobile-panel { top: 32px; } }
.mobile-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line); width: 100%; }
.mobile-panel .logo.has-light .logo-img--light { display: none; }
.menu-close { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-family: var(--f-th); font-size: 14px; }
.menu-close .icon { width: 18px; height: 18px; }
.mobile-panel-body { flex: 1; display: flex; flex-direction: column; gap: 28px; padding-top: 12px; padding-bottom: 32px; width: 100%; }
.mobile-menu { list-style: none; }
.mobile-menu > .menu-item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.mobile-menu > .menu-item > .menu-link { flex: 1; font-size: 21px; padding: 14px 0; border: 0; }
.mobile-menu > .menu-item > .btn { margin: 14px 0; }
.mobile-menu .sub-toggle { padding: 12px; }
.mobile-menu .sub-toggle .icon { width: 20px; height: 20px; }
.mobile-menu .sub-menu-wrap { flex-basis: 100%; display: none; padding-bottom: 12px; }
.mobile-menu .is-open > .sub-menu-wrap { display: block; }
.mobile-menu .sub-menu { list-style: none; padding-left: 14px; border-left: 1px solid var(--line); }
.mobile-menu .sub-menu .menu-link { display: block; padding: 8px 0; font-size: 16px; border: 0; color: var(--mute); }
.mobile-panel-foot { display: grid; gap: 18px; margin-top: auto; }
.mobile-panel-foot .lang-switch { font-size: 15px; }
body.is-menu-open { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--card); color: var(--mute); font-size: 14.5px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px 48px; padding-block: 56px 28px; }
.footer-brand { flex: 1 1 280px; max-width: 400px; display: grid; gap: 16px; align-content: start; color: var(--brown); }
.footer-tagline { color: var(--mute); }
.footer-col { flex: 1 1 160px; min-width: 0; }
.footer-head { font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--brown); margin: 0 0 14px; line-height: 1.4; }
html[lang="th"] .footer-head { font-family: var(--f-th); letter-spacing: .06em; font-size: 14px; }
.footer-head a { text-decoration: none; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links .menu-link { font-size: 14.5px; padding: 0; }
.footer-links .menu-link:hover { color: var(--brown); }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--olive); }
.contact-list a, .contact-list span { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brown); text-decoration: underline; }
.footer-legal { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: 12.5px; }

/* Social icons */
.social { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.soc {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative;
	border: 1px solid var(--line); background: var(--card); color: var(--brown); text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.soc .icon { width: 19px; height: 19px; }
a.soc:hover { background: var(--olive); color: var(--on-night); }
.soc.is-pending::after { content: ""; position: absolute; right: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--pending-dot); border: 2px solid var(--card); }

/* Floating LINE chat */
.line-fab { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; justify-items: end; gap: 10px; }
.line-btn {
	display: flex; align-items: center; gap: 10px; background: var(--line-green); color: var(--white); border: 0; border-radius: 40px;
	padding: 10px 18px 10px 12px; font-family: var(--f-th); font-weight: 500; font-size: 15px; cursor: pointer; box-shadow: var(--shadow);
}
.line-btn .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.line-card { width: min(300px, calc(100vw - 36px)); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.line-card[hidden] { display: none; }
.line-card-title { font-family: var(--f-th); font-weight: 500; color: var(--brown); font-size: 16px; }
.line-card-id { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 8px; padding: 8px 10px; font-family: var(--f-en); color: var(--brown); }
.line-card-id .icon { fill: var(--line-green); stroke: none; }
.line-card-id span { user-select: all; overflow-wrap: anywhere; }
.line-card-go { background: var(--line-green); color: var(--white); text-align: center; border-radius: 999px; padding: 10px; text-decoration: none; font-family: var(--f-th); font-weight: 500; }
@media (max-width: 520px) { .line-btn-label { display: none; } .line-btn { padding: 12px; } }

/* Edit links for logged-in editors */
.occ-edit-link {
	position: absolute; top: 12px; right: 12px; z-index: 30;
	font: 500 12px/1.4 var(--f-body); color: var(--white); background: color-mix(in srgb, var(--ink) 88%, transparent);
	padding: 5px 12px; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow-sm);
	opacity: 0; pointer-events: none; transition: opacity .2s ease;
	max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sec:hover > .occ-edit-link, .occ-edit-link:focus-visible { opacity: 1; pointer-events: auto; }
.occ-edit-link:hover { background: var(--sun); }
body.has-hero .sec-hero > .occ-edit-link { top: calc(var(--header-h) + 12px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.sec.sec-hero--full-image, .sec.sec-hero--compact, .sec.detail-hero { padding-block: 0; }
.hero-stage, .detail-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(88vh, 860px); display: flex; align-items: flex-end;
	color: var(--white);
	--text: var(--white); --text-mute: color-mix(in srgb, var(--white) 88%, transparent); --accent-ink: var(--sand);
	background: var(--night);
}
.sec-hero--compact .hero-stage, .detail-hero { min-height: min(62vh, 580px); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media > img, .hero-media > video, .hero-media > .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.hero-media > img { animation: drift 28s ease-in-out infinite alternate; }
.hero-media > .img-placeholder { background: linear-gradient(160deg, var(--sage) 0%, var(--olive) 55%, var(--night) 100%); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translateY(-1.2%); } }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--night) 18%, transparent) 15%, color-mix(in srgb, var(--night) 66%, transparent) 100%); }
.hero--overlay-light .hero-overlay { background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--night) 45%, transparent) 100%); }
.hero--overlay-strong .hero-overlay { background: linear-gradient(180deg, color-mix(in srgb, var(--night) 45%, transparent) 0%, color-mix(in srgb, var(--night) 82%, transparent) 100%); }
.hero--overlay-none .hero-overlay { display: none; }
.hero-inner { width: 100%; padding-top: calc(var(--header-h) + 56px); padding-bottom: clamp(56px, 8vw, 100px); display: grid; gap: 14px; justify-items: start; }
.align-center .hero-inner { justify-items: center; text-align: center; }
.hero-title {
	font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 6.2vw, 88px);
	line-height: 1.04; letter-spacing: .005em; max-width: 16ch;
	text-shadow: 0 2px 24px color-mix(in srgb, var(--night) 35%, transparent);
}
html[lang="th"] .hero-title { font-family: var(--f-th); font-weight: 400; font-size: clamp(34px, 5vw, 68px); line-height: 1.25; max-width: 20ch; }
.sec-hero--compact .hero-title, .detail-hero .hero-title { font-size: clamp(36px, 5vw, 68px); }
html[lang="th"] .sec-hero--compact .hero-title, html[lang="th"] .detail-hero .hero-title { font-size: clamp(30px, 4vw, 52px); }
.hero-sub { font-family: var(--f-th); font-size: clamp(18px, 2vw, 24px); line-height: 1.5; color: var(--text-mute); max-width: 46ch; text-shadow: 0 1px 14px color-mix(in srgb, var(--night) 40%, transparent); }
.hero-stage .eyebrow, .detail-hero .eyebrow { text-shadow: 0 1px 10px color-mix(in srgb, var(--night) 55%, transparent); }
.hero-btns { margin-top: 16px; }
.hero-stage .btn-ghost, .detail-hero .btn-ghost { color: var(--white); }
.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; color: var(--text-mute); margin-bottom: 10px; }
.back-link:hover { color: var(--white); }
.back-link .icon { width: 16px; height: 16px; }

.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-split-text { display: grid; gap: 16px; justify-items: start; }
.hero-split .hero-title { text-shadow: none; }
.hero-split .hero-sub { text-shadow: none; }
.hero-split-media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } .hero-split-media { aspect-ratio: 4 / 3; } }

.hero-stats .wrap { border-bottom: 1px solid var(--rule); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; padding-block: 34px; }
.stat { display: flex; flex-direction: column-reverse; min-width: 0; }
.stat-value { font-family: var(--f-en); font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .45em; margin-left: 4px; letter-spacing: .04em; }
.stat-label { font-size: 14px; color: var(--text-mute); }
.sec-hero--split .hero-stats { margin-top: clamp(32px, 5vw, 56px); }

/* ==========================================================================
   Card grid
   ========================================================================== */
.card-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1080px) { .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid, .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-body { display: grid; gap: 10px; align-content: start; }
.card-tag { font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); }
html[lang="th"] .card-tag { font-family: var(--f-th); letter-spacing: .06em; font-size: 13px; }
.card-title { font-family: var(--f-display); font-weight: 400; font-size: 23px; line-height: 1.25; }
html[lang="th"] .card-title { font-family: var(--f-th); font-weight: 500; font-size: 20px; line-height: 1.45; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.card-text { font-size: 15.5px; color: var(--text-mute); }
.card-meta { font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.card:hover .ph { transform: scale(1.04); }

/* image-top: boxed card */
.card-grid--image-top .card { background: var(--card); color: var(--ink); --text-mute: var(--mute); --accent-ink: var(--olive); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.card-grid--image-top .card-media { border-radius: 0; aspect-ratio: 4 / 3; }
.card-grid--image-top .card-body { padding: 22px 24px 26px; }

/* image-overlay: text over the image */
.card-grid--image-overlay .card { border-radius: var(--radius-lg); overflow: hidden; color: var(--white); --text-mute: color-mix(in srgb, var(--white) 86%, transparent); --accent-ink: var(--sand); min-height: 420px; background: var(--night); isolation: isolate; }
.card-grid--image-overlay .card-media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -2; }
.card-grid--image-overlay .card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, color-mix(in srgb, var(--night) 80%, transparent) 100%); pointer-events: none; }
.card-grid--image-overlay .card-body { margin-top: auto; padding: 24px; }
.card-grid--image-overlay .badge { top: 12px; bottom: auto; }
.card-grid--image-overlay .feat li::before { background: currentColor; }

/* minimal */
.card-grid--minimal .card { gap: 16px; }
.card-grid--minimal .card-media { aspect-ratio: 3 / 4; }
.card-grid--minimal.cols-2 .card-media, .card-grid--minimal.cols-4 .card-media { aspect-ratio: 4 / 3; }

/* ==========================================================================
   Split
   ========================================================================== */
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-grid--rev .split-media { order: 2; }
.split-text { display: grid; gap: 18px; justify-items: start; }
.split-text .btns { margin-top: 10px; }
@media (max-width: 860px) {
	.split-grid { grid-template-columns: 1fr; }
	.split-grid--rev .split-media { order: 0; }
	.split-media.media-frame--arch { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
}
.split-media { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .split-media { aspect-ratio: 4 / 3; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 28px; width: 100%; padding-top: 18px; border-top: 1px solid var(--rule); }
.facts dt { font-size: 13px; color: var(--text-mute); }
.facts dd { font-family: var(--f-display); font-size: 22px; line-height: 1.3; }
html[lang="th"] .facts dd { font-family: var(--f-th); font-size: 18px; font-weight: 500; }
.person { display: flex; gap: 20px; align-items: center; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--rule); width: 100%; }
.person-img { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none; background: var(--paper-2); }
.person-img img, .person-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.person-text { display: grid; gap: 4px; min-width: 0; }
.person-name { font-family: var(--f-th); font-weight: 500; font-size: 17px; }
.person-role { font-size: 14px; color: var(--accent-ink); }
.person-bio { font-size: 14.5px; color: var(--text-mute); }

/* Rich text */
.prose { font-size: 17px; line-height: 1.8; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; }
.prose h3 { font-size: 22px; }
html[lang="th"] .prose h2, html[lang="th"] .prose h3 { font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--accent-ink); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--sun); font-family: var(--f-th); font-size: 1.15em; color: var(--text-mute); }
.prose img { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--rule); }
.wrap--narrow .prose { max-width: 70ch; }

/* ==========================================================================
   Mosaic / gallery
   ========================================================================== */
.m-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); isolation: isolate; }
.m-item > img, .m-item > .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.m-item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; z-index: 1;
	font-size: 13.5px; color: var(--white);
	background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--night) 70%, transparent));
}
.m-item .badge { top: 12px; right: 12px; left: auto; bottom: auto; }
.m-item:hover .ph { transform: scale(1.04); }

.mosaic--mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 14px; }
.mosaic--mosaic .m-item > .img-placeholder { aspect-ratio: auto; position: absolute; inset: 0; }
/* Fixed repeating pattern, every 3 images: 1 large on the left (2 cols × 2 rows) + 2 stacked on the right.
   The per-image "ขนาดในกริด" setting is ignored here (it still applies to the Masonry variant). */
.mosaic--mosaic .m-item { grid-column: auto; grid-row: auto; }
.mosaic--mosaic .m-item:nth-child(3n+1) { grid-column: span 2; grid-row: span 2; }
/* Unfinished last group: 1 image left over → full width; 2 left over → the small one fills the right column */
@media (min-width: 861px) {
	.mosaic--mosaic .m-item:nth-child(3n+1):last-child { grid-column: 1 / -1; }
	.mosaic--mosaic .m-item:nth-child(3n+2):last-child { grid-row: span 2; }
}
@media (min-width: 521px) and (max-width: 860px) {
	.mosaic--mosaic .m-item:nth-child(3n+2):last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.mosaic--mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
}

.mosaic--masonry { columns: 3 260px; column-gap: 14px; }
.mosaic--masonry .m-item { break-inside: avoid; margin-bottom: 14px; display: block; }
.mosaic--masonry .m-item > img { height: auto; }
.mosaic--masonry .m-item--tall > .img-placeholder { aspect-ratio: 3 / 4; }
.mosaic--masonry .m-item--wide > .img-placeholder { aspect-ratio: 16 / 9; }
.mosaic--masonry .m-item--large > .img-placeholder { aspect-ratio: 1 / 1; }

/* Horizontal scroller (carousel + timeline) */
.scroller { position: relative; }
.scroller-track {
	display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent; padding-bottom: 10px; list-style: none; margin: 0;
}
.scroller-track > * { scroll-snap-align: start; flex: none; }
.scroller-track:focus-visible { outline-offset: 6px; }
.scroller[data-drag] .scroller-track { cursor: grab; }
.scroller-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.scroller-track.is-dragging a { pointer-events: none; }
.scroller-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.scroller-hint { font-size: 13px; color: var(--text-mute); }
.scroller-nav { display: flex; gap: 10px; }
.mosaic-track + .scroller-nav { justify-content: flex-end; margin-top: 14px; }
.scroller-btn {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
	border: 1px solid var(--rule); background: transparent; color: inherit; transition: background-color .2s ease;
}
.scroller-btn:hover:not(:disabled) { background: color-mix(in srgb, currentColor 10%, transparent); }
.scroller-btn:disabled { opacity: .35; cursor: default; }
.scroller-btn .icon { width: 18px; height: 18px; }
.mosaic-track .m-item { width: min(78vw, 440px); aspect-ratio: 4 / 5; }
.mosaic-track .m-item > .img-placeholder { aspect-ratio: auto; }

/* ==========================================================================
   Timeline
   ========================================================================== */
.tl-item {
	position: relative; isolation: isolate; overflow: hidden; color: var(--white);
	width: clamp(230px, 26vw, 290px); min-height: 380px; border-radius: var(--radius);
	display: flex; flex-direction: column; justify-content: flex-end; background: var(--night);
}
.tl-item > .tl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; aspect-ratio: auto; transition: transform .8s var(--ease); }
.tl-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 28%, color-mix(in srgb, var(--night) 85%, transparent) 100%); }
.tl-item:hover > .tl-img { transform: scale(1.05); }
.tl-item-body { padding: 20px; display: grid; gap: 6px; }
.tl-time { font-family: var(--f-en); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .92; }
.tl-title { font-family: var(--f-display); font-weight: 400; font-size: 21px; line-height: 1.2; }
html[lang="th"] .tl-title { font-family: var(--f-th); font-weight: 500; font-size: 18px; line-height: 1.4; }
.tl-title a { text-decoration: none; }
.tl-text { font-size: 13.5px; line-height: 1.55; opacity: .92; }

.tl-vertical { list-style: none; position: relative; display: grid; gap: 36px; padding-left: 34px; max-width: 980px; }
.tl-vertical::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.tl-v-item { position: relative; display: grid; gap: 20px; }
.tl-v-item::before { content: ""; position: absolute; left: -34px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--sun); }
.bg-night .tl-v-item::before, .bg-olive .tl-v-item::before { background: var(--night); }
.tl-v-item.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: start; }
.tl-v-body { display: grid; gap: 8px; }
.tl-v-body .tl-time { color: var(--accent-ink); opacity: 1; }
.tl-v-body .tl-text { font-size: 15.5px; color: var(--text-mute); opacity: 1; }
.tl-v-media { aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .tl-v-item.has-img { grid-template-columns: 1fr; } }

/* ==========================================================================
   Features
   ========================================================================== */
.features-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .features-split { grid-template-columns: 1fr; } .features-media.media-frame--arch { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); } }
.feature-list { list-style: none; display: grid; gap: 24px; }
.feature-list--columns { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px 28px; }
.feature-list--columns .feature { flex-direction: column; padding-top: 22px; border-top: 1px solid var(--rule); }
.feature { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.feature-icon { width: 32px; height: 32px; color: var(--accent-ink); }
.feature-title { font-family: var(--f-display); font-weight: 400; font-size: 20px; margin-bottom: 4px; }
html[lang="th"] .feature-title { font-family: var(--f-th); font-weight: 500; font-size: 18px; }
.feature-text { font-size: 15px; color: var(--text-mute); }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { list-style: none; display: grid; gap: 28px 24px; }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps--row.steps--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--row.steps--n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .steps--row.steps--n4, .steps--row.steps--n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps--row, .steps--row.steps--n4, .steps--row.steps--n6 { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--text); padding-top: 18px; min-width: 0; }
.bg-night .step, .bg-olive .step { border-color: var(--rule); }
.step-num { display: block; font-family: var(--f-en); font-weight: 300; font-size: 34px; line-height: 1; color: var(--accent-ink); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.step-title { font-family: var(--f-th); font-weight: 500; font-size: 19px; margin-bottom: 6px; }
.step-text { font-size: 15px; color: var(--text-mute); }
.steps--list { max-width: 860px; }
.steps--list .step { display: flex; gap: 28px; align-items: baseline; border-top-color: var(--rule); }
.steps--list .step-num { min-width: 56px; margin: 0; }

/* ==========================================================================
   Numbered list (zones)
   ========================================================================== */
.nlist-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.nlist-media { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .nlist-split { grid-template-columns: 1fr; } .nlist-media { aspect-ratio: 4 / 3; } }
.zones { list-style: none; display: grid; gap: 0 28px; }
.zones--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.zone { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); min-width: 0; font-size: 15.5px; }
.zone-num { font-family: var(--f-en); font-weight: 400; color: var(--accent-ink); min-width: 40px; font-variant-numeric: tabular-nums; }
.zone-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.zone-name { font-family: var(--f-th); font-weight: 500; }
.zone-name a { text-decoration: none; }
.zone-name a:hover { text-decoration: underline; }
.zone-note { font-size: 13.5px; color: var(--text-mute); }
.zone .chip { flex: none; }
.facilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; margin-top: 32px; padding: 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--text) 5%, transparent); }
.facility { display: flex; flex-direction: column-reverse; min-width: 0; }
.facility-value { font-family: var(--f-en); font-weight: 300; font-size: 32px; line-height: 1.1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.facility-label { font-size: 13.5px; color: var(--text-mute); }

/* ==========================================================================
   Spaces table / cards
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-btn {
	font-family: var(--f-th); font-size: 14px; border: 1px solid var(--line-strong); background: var(--card); color: var(--brown);
	padding: 7px 18px; border-radius: 999px; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.filter-btn:hover { border-color: var(--olive); }
.filter-btn[aria-pressed="true"] { background: var(--olive); color: var(--on-night); border-color: var(--olive); }

.spaces-layout { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 1200px) { .spaces-layout { grid-template-columns: 1fr; } }
.tbl-wrap { overflow-x: auto; border-top: 1.5px solid var(--text); }
.cap-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.cap-table thead th { font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-align: left; color: var(--text); padding: 14px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
html[lang="th"] .cap-table thead th { font-family: var(--f-th); letter-spacing: .02em; font-size: 13.5px; }
.cap-table td, .cap-table tbody th { padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; font-variant-numeric: tabular-nums; font-weight: 400; }
.space-row { cursor: pointer; transition: background-color .2s ease; }
.space-row:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.space-row.is-active { background: color-mix(in srgb, var(--sun) 10%, transparent); box-shadow: inset 3px 0 0 var(--sun); }
.space-open { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-family: var(--f-th); font-weight: 500; font-size: 15.5px; color: inherit; }
.space-open:hover { text-decoration: underline; }
.space-row[hidden], .space-detail[hidden], .vcard[hidden] { display: none; }
.space-details { position: sticky; top: calc(var(--header-h) + 20px); }
.space-detail { background: var(--card); color: var(--ink); --text-mute: var(--mute); --accent-ink: var(--olive); --rule: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.space-detail:focus { outline: none; }
.space-detail-media { border-radius: 0; aspect-ratio: 16 / 10; }
.space-detail-body { padding: 22px 24px 26px; display: grid; gap: 4px; justify-items: start; }
.space-detail-title { font-family: var(--f-display); font-weight: 300; font-size: 28px; }
html[lang="th"] .space-detail-title { font-family: var(--f-th); font-weight: 500; font-size: 22px; }
.space-detail-summary { font-size: 15px; color: var(--text-mute); }
.space-detail-body .btn { margin-top: 18px; }
.space-detail .feat { width: 100%; }

/* Mobile: table rows become stacked cards */
@media (max-width: 760px) {
	.tbl-wrap { overflow: visible; border-top: 0; }
	.cap-table { min-width: 0; display: block; }
	.cap-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.cap-table tbody { display: grid; gap: 10px; }
	.cap-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); }
	.cap-table tr[hidden] { display: none; }
	.cap-table tbody th { grid-column: 1 / -1; padding: 0 0 6px; border: 0; }
	.cap-table td { display: flex; flex-direction: column; padding: 0; border: 0; font-size: 14.5px; }
	.cap-table td::before { content: attr(data-label); font-size: 12px; color: var(--text-mute); }
	.space-row.is-active { box-shadow: inset 3px 0 0 var(--sun); }
}

.venue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 26px; }
.vcard { display: grid; gap: 10px; align-content: start; min-width: 0; }
.vcard-media { display: block; margin-bottom: 6px; }
.vcard:hover .ph { transform: scale(1.04); }
.vcard-title { font-family: var(--f-display); font-weight: 300; font-size: 26px; line-height: 1.15; }
html[lang="th"] .vcard-title { font-family: var(--f-th); font-weight: 500; font-size: 21px; line-height: 1.4; }
.vcard-title a { text-decoration: none; }
.vcard-summary { font-size: 14.5px; color: var(--text-mute); }
.vcard-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px 14px; padding: 12px 0; border-block: 1px solid var(--rule); }
.vcard-facts div { display: flex; flex-direction: column; min-width: 0; }
.vcard-facts dt { font-size: 12px; color: var(--text-mute); }
.vcard-facts dd { font-family: var(--f-en); font-size: 17px; font-variant-numeric: tabular-nums; }
html[lang="th"] .vcard-facts dd { font-family: var(--f-body); font-size: 15px; }

/* ==========================================================================
   Events
   ========================================================================== */
.events--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 28px; }
.events--cards .event { background: var(--card); color: var(--ink); --text-mute: var(--mute); --accent-ink: var(--olive); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.event-media { display: block; border-radius: 0; aspect-ratio: 16 / 10; }
.event:hover .ph { transform: scale(1.04); }
.event-body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.event-title { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.25; }
html[lang="th"] .event-title { font-family: var(--f-th); font-weight: 500; font-size: 19px; line-height: 1.45; }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
.event-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--text-mute); }
.event-meta li { display: inline-flex; align-items: center; gap: 6px; }
.event-meta .icon { width: 16px; height: 16px; color: var(--accent-ink); }
.event-summary { font-size: 15px; color: var(--text-mute); }
.events--list { display: grid; border-top: 1px solid var(--rule); }
.events--list .event { display: flex; gap: clamp(16px, 3vw, 32px); padding: 22px 0; border-bottom: 1px solid var(--rule); }
.events--list .event-body { padding: 0; flex: 1; min-width: 0; }
.event-date { flex: none; width: 84px; display: flex; flex-direction: column; color: var(--accent-ink); }
.event-date b { font-family: var(--f-en); font-weight: 300; font-size: 42px; line-height: 1; }
.event-date span { font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
@media (max-width: 480px) { .event-date { width: 56px; } .event-date b { font-size: 32px; } }

/* ==========================================================================
   Subnav
   ========================================================================== */
.sec.sec-subnav { padding-block: 0; z-index: 30; }
.sec-subnav:has(.subnav.is-sticky), .sec-subnav.is-sticky-host { position: sticky; top: var(--header-h); }
.sec-subnav.bg-none, .sec-subnav.bg-paper { background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(8px); }
.subnav { border-bottom: 1px solid var(--rule); }
.subnav-inner { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-block: 12px; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link { flex: none; white-space: nowrap; text-decoration: none; font-family: var(--f-th); font-size: 14.5px; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.subnav--pills .subnav-link { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--rule); }
.subnav--pills .subnav-link:hover { border-color: var(--accent-ink); }
.subnav--pills .subnav-link.is-active { background: var(--olive); border-color: var(--olive); color: var(--on-night); }
.subnav--underline .subnav-inner { gap: 26px; padding-block: 0; }
.subnav--underline .subnav-link { padding: 15px 0; border-bottom: 2px solid transparent; font-family: var(--f-en); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; }
html[lang="th"] .subnav--underline .subnav-link { font-family: var(--f-th); letter-spacing: .04em; font-size: 14.5px; }
.subnav--underline .subnav-link.is-active { border-color: var(--sun); color: var(--sun); }
.align-center .subnav-inner { justify-content: safe center; }

/* ==========================================================================
   Forms (markup rendered by occ-core)
   ========================================================================== */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.plan-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-aside .sec-head { margin-bottom: 24px; }
.form-only { max-width: 820px; }
.align-center .form-only { margin-inline: auto; }
.form-card { background: var(--card); color: var(--ink); --text-mute: var(--mute); --accent-ink: var(--olive); --rule: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 44px); min-width: 0; }
.form-card:empty { display: none; }

.contact-card { display: grid; gap: 4px; }
.contact-card-title { font-family: var(--f-th); font-weight: 500; font-size: 19px; margin-bottom: 4px; }
.contact-card-text { color: var(--text-mute); margin-bottom: 10px; }
.contact-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.contact-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--accent-ink); }
.contact-icon .icon { width: 19px; height: 19px; }
.contact-row-text { min-width: 0; display: grid; }
.contact-row-text b { font-family: var(--f-th); font-weight: 500; font-size: 14px; color: var(--text-mute); }
.contact-row-text a, .contact-row-text span { font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }
.contact-row-text a:hover { text-decoration: underline; }

.occ-form { display: grid; gap: 22px; }
.occ-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.occ-form .fld { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; align-content: start; }
.occ-form .fld--half { grid-column: auto; }
@media (max-width: 620px) { .occ-form-grid { grid-template-columns: 1fr; } .occ-form .fld--half { grid-column: 1 / -1; } }
.occ-form label, .occ-form legend { font-size: 14px; color: var(--brown); font-weight: 500; }
.occ-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.occ-form legend { padding: 0; margin-bottom: 6px; }
.occ-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.occ-form select, .occ-form textarea {
	font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--white);
	border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; width: 100%; min-width: 0;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.occ-form select { appearance: auto; }
.occ-form textarea { min-height: 120px; resize: vertical; }
.occ-form input:focus, .occ-form select:focus, .occ-form textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive) 22%, transparent); }
.occ-form [aria-invalid="true"], .occ-form .has-error input, .occ-form .has-error select, .occ-form .has-error textarea { border-color: var(--danger); }
.occ-form .fld-error { font-size: 13px; color: var(--danger); min-height: 0; }
.occ-form .fld-error:empty { display: none; }
.occ-form .fld-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.occ-form .fld-checks label { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; color: var(--ink); border: 1px solid var(--line-strong); background: var(--white); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.occ-form .fld-checks label:has(input:checked) { background: color-mix(in srgb, var(--olive) 12%, var(--white)); border-color: var(--olive); }
.occ-form .fld-checks input, .occ-form .fld-consent input { accent-color: var(--olive); margin: 0; width: 16px; height: 16px; }
.occ-form .fld-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.occ-form .fld-consent label { font-weight: 400; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.occ-form .fld-consent input { margin-top: 4px; flex: none; }
.occ-form .fld-consent a { color: var(--olive); }
.occ-form .req, .occ-form abbr[title] { color: var(--sun); text-decoration: none; }
.occ-form button.btn { justify-self: start; }
.occ-form button.btn[disabled], .occ-form.is-sending button.btn { opacity: .65; cursor: progress; }
.occ-form .occ-form-msg:empty { display: none; }
.occ-form .occ-form-msg { font-size: 14px; color: var(--danger); }
.occ-form-success { background: var(--olive); color: var(--on-night); border-radius: var(--radius); padding: 28px; }
.occ-form-success[hidden] { display: none; }
.occ-form-success p { color: var(--on-night-mute); }

/* ==========================================================================
   Newsletter + social
   ========================================================================== */
.newsletter { display: grid; gap: 28px 56px; }
.newsletter-head .sec-head { margin-bottom: 0; }
.newsletter-social { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.newsletter .occ-form { gap: 14px; }
.newsletter--inline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.newsletter--inline .newsletter-social { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--rule); }
.newsletter--inline .occ-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.newsletter--inline .occ-form > :not(.occ-form-grid):not(button) { grid-column: 1 / -1; }
@media (max-width: 860px) { .newsletter--inline { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .newsletter--inline .occ-form { grid-template-columns: 1fr; } }
.newsletter--stacked { max-width: 720px; }
.align-center .newsletter--stacked { margin-inline: auto; justify-items: center; text-align: center; }
.align-center .newsletter--stacked .newsletter-social { justify-content: center; }
.newsletter--stacked .newsletter-form { width: 100%; }
.bg-night .newsletter .soc, .bg-olive .newsletter .soc { background: transparent; color: var(--on-night); border-color: var(--rule); }
.bg-night .newsletter .soc.is-pending::after, .bg-olive .newsletter .soc.is-pending::after { border-color: var(--night); }

/* What's On (2 columns: coming up card | past-event photo) — matches prototype route #whats-on */
.whatson { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.whatson-col { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 860px) { .whatson { grid-template-columns: 1fr; } }
.whatson-card { background: linear-gradient(180deg, #F3ECF1 0%, var(--card) 60%); border-top: 4px solid #9C88B8; }
.whatson-card-title { font-family: var(--f-th); font-weight: 500; font-size: 21px; line-height: 1.4; margin: 0; }
.whatson-card-text { color: var(--text-mute); margin-top: 10px; }
.whatson-form { margin-top: 18px; }
.whatson-form .occ-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.whatson-form .occ-form > :not(.occ-form-grid):not(.occ-form-actions) { grid-column: 1 / -1; }
.whatson-form .occ-form label { font-size: 13px; font-weight: 400; }
@media (max-width: 480px) { .whatson-form .occ-form { grid-template-columns: 1fr; } }
.whatson-social { margin-top: 20px; display: grid; gap: 8px; }
.whatson-past { aspect-ratio: 4 / 3; }
.whatson-past-note { color: var(--text-mute); }
.whatson-events { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.whatson-event { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.whatson-event-date { font-size: 13px; color: var(--accent-ink); letter-spacing: .04em; }
.whatson-event-title { font-size: 18px; color: var(--ink); text-decoration: none; }
.whatson-event-title:hover { text-decoration: underline; }
.whatson-event-loc { font-size: 14px; color: var(--text-mute); }

/* ==========================================================================
   CTA
   ========================================================================== */
.sec-cta { overflow: hidden; isolation: isolate; }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media .ph, .cta-media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--night) 75%, transparent), color-mix(in srgb, var(--night) 30%, transparent)); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-end; justify-content: space-between; }
.cta-inner.has-media { color: var(--white); --text-mute: color-mix(in srgb, var(--white) 86%, transparent); --accent-ink: var(--sand); }
.cta-inner.has-media .btn-ghost { color: var(--white); }
.cta-text { display: grid; gap: 14px; max-width: 760px; }
.cta-btns { margin-top: 0; }
.sec-cta--centered .cta-inner { flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.sec-cta--centered .cta-text { justify-items: center; }

/* ==========================================================================
   Menu table
   ========================================================================== */
.menu-groups { display: grid; gap: 40px; }
.menu-groups--columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 48px; }
.menu-groups--list { max-width: 860px; }
.menu-group-title { font-family: var(--f-display); font-weight: 300; font-size: 26px; padding-bottom: 10px; border-bottom: 1.5px solid var(--text); margin-bottom: 8px; }
html[lang="th"] .menu-group-title { font-family: var(--f-th); font-weight: 500; font-size: 21px; }
.menu-group-text { font-size: 14.5px; color: var(--text-mute); margin-bottom: 8px; }
.menu-items { list-style: none; }
.menu-row { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.menu-row-main { display: flex; align-items: baseline; gap: 10px; }
.menu-row-name { font-family: var(--f-th); font-weight: 500; min-width: 0; }
.menu-row-dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); min-width: 16px; }
.menu-row-price { font-family: var(--f-en); color: var(--accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-row-desc { font-size: 14px; color: var(--text-mute); margin-top: 2px; }

/* ==========================================================================
   Detail pages (space / event)
   ========================================================================== */
.sec.detail-body { padding-top: 0; }
.facts-bar {
	display: flex; flex-wrap: wrap;
	background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg);
	margin-top: -48px; position: relative; z-index: 3; overflow: hidden; box-shadow: var(--shadow-sm);
}
.facts-bar > div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; min-width: 0; flex: 1 1 150px; display: flex; flex-direction: column; gap: 4px; }
.facts-bar dt { font-size: 13px; color: var(--mute); order: 2; }
.facts-bar dd { order: 1; }
.facts-bar dd b { font-family: var(--f-en); font-weight: 400; font-size: 26px; color: var(--olive); line-height: 1.15; font-variant-numeric: tabular-nums; }
.facts-bar .facts-bar-wide { flex-basis: 100%; flex-direction: row; gap: 14px; align-items: baseline; }
.facts-bar .facts-bar-wide dt, .facts-bar .facts-bar-wide dd { order: 0; }
.detail-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 64px; margin-top: clamp(40px, 6vw, 72px); }
.layouts { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 20px; }
.layout { display: grid; gap: 4px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.layout-name { font-family: var(--f-en); font-weight: 500; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
html[lang="th"] .layout-name { font-family: var(--f-th); letter-spacing: .02em; font-size: 14px; text-transform: none; }
.layout-val { font-family: var(--f-en); font-weight: 300; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.layouts--sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px 14px; width: 100%; }
.layouts--sm .layout-val { font-size: 20px; }
.detail-prose { margin-top: clamp(40px, 6vw, 72px); max-width: 72ch; }
.detail-back { margin-top: clamp(40px, 6vw, 64px); }
.detail-back .btn { color: var(--text); }

.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 64px); }
.gal-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gal-item > img, .gal-item > .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.gal--n1 { grid-template-columns: 1fr; }
.gal--n1 .gal-item { aspect-ratio: 21 / 9; }
.gal--n2 { grid-template-columns: 1fr 1fr; }
.gal--n3 .gal-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal--n4 .gal-item:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (max-width: 760px) {
	.gal, .gal--n2 { grid-template-columns: 1fr 1fr; }
	.gal .gal-item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
}

.event-detail { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(48px, 6vw, 80px); }
@media (max-width: 860px) { .event-detail { grid-template-columns: 1fr; } }
.event-facts { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.event-facts dl { display: grid; gap: 14px; }
.event-facts dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.event-facts dt .icon { width: 16px; height: 16px; color: var(--olive); }
.event-facts dd { font-family: var(--f-th); font-weight: 500; }
@media (max-width: 860px) { .event-facts { position: static; } }

/* ==========================================================================
   Index / search / 404
   ========================================================================== */
.post-list { display: grid; gap: 28px; }
.post-item { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.post-item:not(:has(.post-item-media)) { grid-template-columns: 1fr; }
.post-item-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-item-title { font-size: 24px; margin-bottom: 8px; }
.post-item-title a { text-decoration: none; }
.post-item-excerpt { color: var(--text-mute); }
@media (max-width: 600px) { .post-item { grid-template-columns: 1fr; } }
.search-wrap { margin-block: 28px; }
.search-form { display: flex; gap: 10px; max-width: 560px; }
.align-center .search-form { margin-inline: auto; }
.search-field { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); }
.search-field:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive) 22%, transparent); }
.search-results { list-style: none; display: grid; gap: 26px; margin-top: 20px; }
.search-result-title { font-size: 22px; }
.search-result-title a { text-decoration: none; }
.search-result-title a:hover { text-decoration: underline; }
.search-result-url { font-size: 13px; color: var(--accent-ink); overflow-wrap: anywhere; }
.search-result-excerpt { color: var(--text-mute); font-size: 15.5px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--rule); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--olive); color: var(--on-night); border-color: var(--olive); }

/* Preview page */
body.occ-preview { min-height: 100vh; }

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

/* Announcement bar (Site settings → Header) */
.site-notice { font-size: 12.5px; line-height: 1.5; text-align: center; }
.site-notice[hidden] { display: none; }
.site-notice-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 6px; }
.site-notice-text { margin: 0; }
.site-notice-link { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.site-notice-close { flex: none; background: none; border: 0; padding: 4px; color: inherit; cursor: pointer; opacity: .75; display: inline-grid; place-items: center; }
.site-notice-close:hover, .site-notice-close:focus-visible { opacity: 1; }
.site-notice-close .icon { width: 16px; height: 16px; }
.site-notice--sand { background: #E2D9CB; background: color-mix(in srgb, var(--sand) 45%, var(--paper)); color: var(--brown); }
.site-notice--olive { background: var(--olive); color: var(--on-night); }
.site-notice--sun { background: var(--sun); color: var(--sun-ink); }
.site-notice--night { background: var(--night); color: var(--on-night); }

/* ==========================================================================
   Prototype alignment (responsive + components) — matches the ONE CHICHAN prototype
   ========================================================================== */

/* Buttons: square-ish, olive primary that warms to sun on hover */
.btn { border-radius: 2px; padding: 13px 24px; }
.btn-sm { padding: 10px 18px; }
.btn-primary { background: var(--olive); color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--sun); color: var(--sun-ink); }
.line-card-go { border-radius: 4px; }

/* Header: always solid (prototype never overlays the hero) */
.site-header { position: sticky; }
.bar-inner { min-height: 72px; }

/* Mobile menu: text button + dropdown panel under the header (≤980px) */
.menu-toggle { border-radius: 2px; border: 1px solid var(--line); padding: 8px 14px; color: var(--brown); font-size: 15px; }
.menu-toggle .icon { display: none; }
.menu-toggle[aria-expanded="true"] { background: var(--paper-2); }
@media (max-width: 400px) { .menu-toggle-label { display: inline; } .menu-toggle { padding: 8px 14px; } }
@media (max-width: 980px) { .bar-inner { min-height: 64px; } }
.mobile-panel {
	position: absolute; inset: auto; left: 0; right: 0; top: 100%; z-index: 45;
	background: var(--paper); color: var(--brown); border-bottom: 1px solid var(--line);
	box-shadow: 0 14px 28px color-mix(in srgb, var(--ink) 10%, transparent);
	max-height: calc(100dvh - var(--header-h, 110px)); overflow-y: auto; overscroll-behavior: contain;
	display: block; animation: panel-drop .2s var(--ease);
}
.mobile-panel[hidden] { display: none; }
@keyframes panel-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.admin-bar .mobile-panel { top: 100%; }
@media (min-width: 981px) { .mobile-panel { display: none !important; } }
.mobile-panel-body { display: grid; gap: 14px; padding-top: 12px; padding-bottom: 20px; }
.mobile-menu > .menu-item { border-bottom: 0; }
.mobile-menu > .menu-item > .menu-link { font-size: 16px; padding: 8px 0; }
.mobile-menu .menu-link[aria-current="page"], .mobile-menu .is-current > .menu-link { color: var(--sun); }
.mobile-menu .sub-toggle { padding: 8px; }
.mobile-menu .sub-menu .menu-link { font-size: 15px; padding: 6px 0; }
.mobile-panel-foot { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.mobile-panel-foot .lang-switch { font-size: 14px; }

/* Top bar: always olive, scrolls sideways on narrow screens (prototype "doors") */
.topbar-text { padding-left: 8px; }
@media (max-width: 760px) { .topbar-menu a { padding: 9px 12px; } }

/* Hero headings: light weight in both languages */
html[lang="th"] .hero-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 6.2vw, 88px); line-height: 1.1; max-width: 16ch; }
html[lang="th"] .sec-hero--compact .hero-title, html[lang="th"] .detail-hero .hero-title,
.sec-hero--compact .hero-title, .detail-hero .hero-title { font-size: clamp(40px, 6.2vw, 88px); }
html[lang="th"] .sec-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.2; }
.sec-hero--compact .hero-stage { min-height: min(62vh, 560px); }
body:not(.has-hero) .hero-inner { padding-top: 56px; }

/* Cards "image-top": no box, image + text like the prototype door/event cards */
.card-grid--image-top .card { background: none; border: 0; border-radius: 0; overflow: visible; color: inherit; --text-mute: var(--mute); }
.bg-night .card-grid--image-top .card, .bg-olive .card-grid--image-top .card, .bg-g1 .card-grid--image-top .card { --text-mute: var(--on-night-mute); }
.card-grid--image-top .card-media { border-radius: var(--radius); }
.card-grid--image-top .card-body { padding: 16px 0 0; }

/* Grid breakpoints from the prototype */
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; } .card-grid--image-top .card-media { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .card-grid.cols-4 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .feature-list--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .mosaic--mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .mosaic--mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; } .mosaic--mosaic .m-item--large, .mosaic--mosaic .m-item--wide, .mosaic--mosaic .m-item--tall, .mosaic--mosaic .m-item:nth-child(n) { grid-column: auto; grid-row: auto; } }
/* Zones stay in two columns even on phones (prototype .zones) */
.zones:not(.zones--list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 360px) { .zones:not(.zones--list) { grid-template-columns: 1fr; } }

/* Gradient backgrounds from the brand guideline (section setting "พื้นหลัง") */
.bg-g1 { background: linear-gradient(180deg, #6C7344 0%, #B1B597 100%); color: var(--on-night); --text: var(--on-night); --text-mute: var(--on-night-mute); --accent-ink: var(--leaf); --rule: color-mix(in srgb, var(--on-night) 22%, transparent); }
.bg-g2 { background: linear-gradient(180deg, #ADC287 0%, #F0E6BF 100%); }
.bg-g3 { background: linear-gradient(180deg, #D6BC2C 0%, #F4EDB5 100%); }
.bg-g4 { background: linear-gradient(180deg, #EFD3BC 0%, #CFB09C 100%); }
.bg-g7 { background: linear-gradient(180deg, #7FAEC2 0%, #C4D8DE 100%); --text-mute: #3E4F57; }
.bg-g3, .bg-g2, .bg-g4, .bg-g7 { color: var(--brown); }
/* Card titles: light weight like the prototype */
.card-grid--image-top .card-title, .card-grid--minimal .card-title,
html[lang="th"] .card-grid--image-top .card-title, html[lang="th"] .card-grid--minimal .card-title { font-family: var(--f-display); font-weight: 300; font-size: 26px; line-height: 1.25; }
.card-grid--image-top .card-text { color: var(--text, var(--ink)); }
.step-img { aspect-ratio: 4 / 3; margin-bottom: 16px; }

/* Venue table (prototype table.cap): Day / Night group rows, nickname under the name */
.cap-table .space-grp td { font-family: var(--f-en); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; padding: 10px 12px; color: var(--olive); background: #ECEADF; }
.cap-table .space-grp--night td { color: var(--brown); background: #EBE3DF; }
.cap-table .space-grp[hidden] { display: none; }
.cap-table .space-name { text-decoration: none; font-weight: 500; color: inherit; }
.cap-table .space-name:hover { text-decoration: underline; }
.cap-table .space-nick { display: block; font-family: var(--f-en); font-size: 13px; color: var(--mute); letter-spacing: .06em; font-weight: 400; }
[data-spaces] .tbl-wrap + .venue-grid { margin-top: 56px; }

/* Venue cards (prototype .vcard) */
.venue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 26px; }
@media (max-width: 860px) { .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .venue-grid { grid-template-columns: 1fr; } }
.vcard { display: grid; gap: 10px; align-content: start; min-width: 0; }
.vcard[hidden] { display: none; }
.vcard-media { aspect-ratio: 4 / 5; }
.vcard-kick { font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--olive); margin: 6px 0 0; }
.vcard--night .vcard-kick { color: var(--brown); }
.vcard-nick { font-family: var(--f-en); font-weight: 300; font-size: 26px; line-height: 1.15; color: var(--brown); margin: 0; }
.vcard-nick a { text-decoration: none; color: inherit; }
.vcard-name { font-family: var(--f-th); font-weight: 500; font-size: 17px; margin: 0; }
.vcard-meta { font-size: 14px; color: var(--mute); margin: 0; }

/* Venue detail page */
.detail-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 64px; }
@media (max-width: 860px) { .detail-cols { grid-template-columns: 1fr; } }
.detail-about, .detail-cap { display: grid; gap: 18px; align-content: start; }
.detail-lead { font-family: var(--f-th); font-size: clamp(20px, 2vw, 26px); line-height: 1.45; margin: 0; }
.amen { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 0; padding: 0; }
.amen li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--brown); }
.amen .icon { width: 26px; height: 26px; color: var(--olive); }
.cap-layouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 620px) { .cap-layouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cap-layout { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.cap-layout .icon { width: 40px; height: 40px; color: var(--olive); }
.cap-layout-label { font-family: var(--f-en); font-weight: 500; font-size: 13px; letter-spacing: .16em; color: var(--olive); }
.cap-layout-val { font-family: var(--f-en); font-weight: 300; font-size: 26px; line-height: 1.1; color: var(--brown); font-variant-numeric: tabular-nums; }
.detail-feat-head { margin-top: 10px; }
.detail-btns { margin-top: 6px; }
.detail-more { margin-top: 44px; display: grid; gap: 14px; }
.more { display: flex; flex-wrap: wrap; gap: 10px; }
.more a { border: 1px solid var(--line); padding: 8px 16px; border-radius: 30px; text-decoration: none; font-size: 14px; background: var(--card); color: var(--brown); }
.more a:hover { border-color: var(--olive); }

/* Hero "plain": text-only page header (prototype Our Spaces) */
.sec-hero--plain { padding-block: clamp(64px, 9vw, 120px) 8px; }
.hero-plain { display: grid; gap: 16px; max-width: 900px; }
.hero-plain .hero-title { color: var(--ink); text-shadow: none; }
.hero-plain .hero-sub { color: var(--mute); text-shadow: none; font-family: var(--f-body); font-size: 19px; max-width: 62ch; }
.hero-plain .eyebrow { text-shadow: none; }
.hero-plain { max-width: var(--wrap); }
.hero-plain > * { max-width: 900px; }
.sec-hero--plain + .sec-spaces-table { padding-top: 28px; }

/* Image badges ("ภาพจริง" / "ภาพจำลอง" / "ภาพตัวอย่าง" and free-text image labels) are hidden site-wide (2026-11-20).
   Event date badges stay. Delete this rule to show the badges again. */
.badge:not(.badge--date) { display: none; }

/* Image description on card / split images (field "คำอธิบายรูปภาพ") — same pill look as .badge, bottom-left.
   Unlike .badge it may wrap to a second line for longer descriptions. */
.img-caption {
	position: absolute; left: 12px; bottom: 12px; z-index: 2;
	max-width: calc(100% - 24px);
	font-family: var(--f-body); font-size: 11.5px; line-height: 1.5; letter-spacing: .02em;
	background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--brown);
	padding: 2px 10px; border-radius: 20px;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	pointer-events: none;
}

/* Image frame shapes (field "รูปทรงกรอบรูป"): clip-paths are built by main.js into --shape-on / --shape-off.
   .media-shape          → shape always shown
   .media-shape--hover   → plain rectangle, the shape animates in on hover / keyboard focus */
.media-shape { border-radius: 0; background: transparent; }
.media-shape > .ph { clip-path: var(--shape-on, none); }
.media-shape--hover > .ph { clip-path: var(--shape-off, none); transition: transform .8s var(--ease), clip-path .5s ease; }
.media-shape--hover:hover > .ph,
.card:hover .media-shape--hover > .ph,
.card:focus-within .media-shape--hover > .ph { clip-path: var(--shape-on, none); }
@media (prefers-reduced-motion: reduce) { .media-shape--hover > .ph { transition: none; } }

/* Event calendar (section event_calendar) — layout from Archive/event-calendar.html in this theme's style */
.event-cal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; margin-bottom: clamp(32px, 4vw, 44px); }
.event-cal-head .sec-head { margin-bottom: 0; }
.event-cal-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.event-cal-filter { display: grid; gap: 6px; min-width: 210px; }
.event-cal-filter label { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.event-cal-filter select {
	font: inherit; font-size: 15px; color: var(--ink); background: var(--card);
	border: 1px solid var(--line-strong); border-radius: 2px; padding: 10px 12px; min-width: 0; width: 100%;
}
.event-cal-filter select:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive) 22%, transparent); }
.event-cal-reset { background: none; border: 0; font: inherit; font-size: 14px; color: var(--olive); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 4px; }
.event-cal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.event-cal-card { display: flex; flex-direction: column; min-width: 0; }
.event-cal-card[hidden] { display: none; }
.event-cal-thumb { aspect-ratio: 3 / 2; border-radius: var(--radius); display: block; }
.event-cal-card:hover .ph { transform: scale(1.04); }
.event-cal--past .event-cal-thumb .ph { filter: grayscale(.4); }
.event-cal-body { display: grid; gap: 4px; padding-top: 16px; }
.event-cal-date, .event-cal-zone { display: flex; align-items: center; gap: 8px; margin: 0; }
.event-cal-date { font-size: 13.5px; font-weight: 500; letter-spacing: .02em; color: var(--accent-ink); }
.event-cal-date .icon, .event-cal-zone .icon { width: 16px; height: 16px; flex: none; }
.event-cal-title { font-family: var(--f-display); font-weight: 400; font-size: 20px; line-height: 1.3; margin: 2px 0 0; }
.event-cal-title a { color: var(--ink); text-decoration: none; }
.event-cal-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.event-cal-organizer { font-size: 14px; color: var(--text-mute); margin: 0; }
.event-cal-zone { font-size: 14px; color: var(--brown); }
.event-cal-zone a { color: inherit; }
.event-cal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 14px; margin-top: auto; }
.event-cal-empty { text-align: center; color: var(--text-mute); padding: 24px 0; margin: 0; }
.event-cal-more { text-align: center; margin-top: clamp(32px, 4vw, 44px); }
.event-cal.is-filtering .event-cal-more { display: none; }
@media (max-width: 860px) { .event-cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.event-cal-grid { grid-template-columns: 1fr; }
	.event-cal-filters, .event-cal-filter { width: 100%; }
}

/* Card grid: cards after the first row as full-width horizontal cards (field "wide_rest") — image left, text right */
.card-grid .card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.card-grid .card--wide .card-media { aspect-ratio: 16 / 9; }
.card-grid .card--wide .card-body { padding-top: 0; }
@media (max-width: 860px) {
	.card-grid .card--wide { grid-template-columns: 1fr; gap: 0; }
	.card-grid .card--wide .card-media { aspect-ratio: 4 / 3; }
	.card-grid .card--wide .card-body { padding-top: 16px; }
}
