/* ==========================================================================
   PhayaoTV Kofi — design system
   พื้นมิ้นต์ การ์ดขาวมุมมน เขียวเข้มเป็นหลัก ส้มอ่อนเป็นจังหวะ
   การ์ตูน บก. พร้อมกล่องคำพูดเป็นลายเซ็นของแต่ละส่วน
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--paper: #EEF6F2;
	--paper-2: #E2EFE9;
	--paper-3: #D3E6DD;
	--card: #FFFFFF;
	--ink: #15302A;
	--ink-2: #3B5953;
	--ink-3: #6A857F;
	--rule: #D5E4DD;
	--rule-strong: #15302A;
	--green: #12806B;
	--green-deep: #0D5A4B;
	--green-tint: #DDF0E8;
	--orange: #F4875A;
	--orange-deep: #D5643A;
	--orange-soft: #FFE6D8;
	--note: #FBEFB6;
	--red: #E5484D;
	--red-ink: #FFFFFF;
	--focus: #12806B;
	--bubble: #FFFFFF;
	--toon-bg: #FFFFFF;

	--pc: var(--green);
	--pi: #FFFFFF;
	--pt: var(--green);

	--f-display: "Anuphan", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
	--f-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
	--f-serif: "Noto Serif Thai", "Noto Serif", Georgia, serif;

	--max: 1240px;
	--narrow: 760px;
	--gutter: clamp(16px, 3vw, 32px);
	--gap: clamp(16px, 2vw, 26px);
	--radius: 18px;
	--radius-lg: 26px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(21, 48, 42, .05), 0 12px 30px -14px rgba(21, 48, 42, .22);
	--shadow-hi: 0 2px 4px rgba(21, 48, 42, .06), 0 22px 44px -18px rgba(21, 48, 42, .32);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--swish: linear-gradient(90deg, var(--green), var(--orange));
}

[data-theme="dark"] {
	--paper: #0C1613;
	--paper-2: #12201C;
	--paper-3: #1A2B26;
	--card: #15241F;
	--ink: #E6F1ED;
	--ink-2: #B8CDC6;
	--ink-3: #829E97;
	--rule: #233832;
	--rule-strong: #E6F1ED;
	--green: #3CC3A4;
	--green-deep: #1C8C73;
	--green-tint: #163A31;
	--orange: #FF9A6E;
	--orange-deep: #FF8A57;
	--orange-soft: #3A2419;
	--note: #3A3418;
	--focus: #3CC3A4;
	--bubble: #1E302A;
	--toon-bg: #E8F3EE;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
	--shadow-hi: 0 22px 44px -18px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 99px; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.icon { flex: none; }
.empty { padding: 28px 0; color: var(--ink-3); font-size: 15px; }

.kicker b, .sec-head__en, .ptile__en, .ahead__en, .latest__head b, .pnav b, .card__flag, .ticker__label, .eyebrow {
	font-family: var(--f-display);
	text-transform: uppercase;
	letter-spacing: .08em;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--orange-deep); }

/* ---------- 3. Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.2; border-radius: 99px; border: 1.5px solid transparent; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }
.btn--orange, .kofi-btn { background: var(--orange); color: #fff; box-shadow: 0 8px 18px -8px rgba(244, 135, 90, .8); }
.btn--orange:hover, .kofi-btn:hover { background: var(--orange-deep); }
.btn--green { background: var(--green); color: #fff; }
.btn--ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--fb { background: #1877F2; color: #fff; }
.btn--fb:hover { background: #0F65D8; }
.kofi-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; font-family: var(--f-display); font-weight: 600; font-size: 15px; transition: transform .2s var(--ease), background .2s; }
.kofi-btn:hover { transform: translateY(-1px); }
.kofi-btn .icon { width: 19px; height: 19px; }

/* ---------- 4. Cartoon + speech bubble ---------- */
.toon { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 1; }
.toon img { position: relative; width: auto; height: 150px; max-width: 100%; object-fit: contain; z-index: 1; }
.toon::before { content: ""; position: absolute; left: 50%; bottom: 2px; width: 76%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--toon-bg); opacity: .75; z-index: 0; }
.toon__say { position: relative; align-self: flex-start; max-width: 190px; margin: 0 0 8px; padding: 8px 12px; background: var(--bubble); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; font: 500 13px/1.45 var(--f-body); box-shadow: 3px 3px 0 rgba(21, 48, 42, .12); z-index: 2; }
.toon__say::after { content: ""; position: absolute; left: 22px; bottom: -8px; width: 13px; height: 13px; background: var(--bubble); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
[data-theme="dark"] .toon__say { border-color: var(--ink-2); }
[data-theme="dark"] .toon__say::after { border-color: var(--ink-2); }
.toon--big img { height: 230px; }
.toon--walk img, .toon--cam img { height: 170px; }
.toon--big.toon--walk img, .toon--big.toon--cam img { height: 260px; }

/* ---------- 5. Header ---------- */
.topbar { background: var(--green-deep); color: #D7EEE6; font-size: 13px; }
[data-theme="dark"] .topbar { background: #08110F; }
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.topbar__date { white-space: nowrap; }
.topbar__menu { display: flex; gap: 18px; }
.topbar__menu a:hover { color: #fff; }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.social { display: flex; gap: 10px; align-items: center; }
.social a { opacity: .85; transition: opacity .2s, transform .2s; }
.social a:hover { opacity: 1; transform: translateY(-1px); }
.social--top .icon { width: 16px; height: 16px; }
.mode-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.mode-btn .icon { width: 15px; height: 15px; }
.mode-btn .icon-sun { display: none; }
[data-theme="dark"] .mode-btn .icon-sun { display: block; }
[data-theme="dark"] .mode-btn .icon-moon { display: none; }

.masthead { background: var(--paper); }
.masthead__in { display: flex; align-items: center; gap: 18px; min-height: 86px; transition: min-height .25s var(--ease); }
.masthead__logo { flex: none; }
.masthead__tagline { margin: 0; padding-left: 18px; border-left: 2px solid var(--rule); color: var(--ink-3); font-size: 14px; line-height: 1.4; max-width: 230px; }
.masthead__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.masthead__menu { display: none; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); transition: transform .2s var(--ease), color .2s; }
.icon-btn:hover { transform: translateY(-1px); color: var(--green); }
.masthead__kofi { margin-left: 4px; }

.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.wordmark__badge { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #C8213F; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-family: var(--f-display); box-shadow: 0 6px 16px -6px rgba(200, 33, 63, .7); flex: none; }
.wordmark__badge span { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.wordmark__badge b { font-size: 17px; font-weight: 800; letter-spacing: .02em; margin-top: 1px; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1.2; }
.wordmark__text b { font-family: var(--f-display); font-size: 22px; font-weight: 800; }
.wordmark__text small { font-size: 12.5px; color: var(--ink-3); }
.custom-logo { max-height: 58px; width: auto; }

/* Pillar navigation — sticky row of pills */
.pnav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--rule); }
.admin-bar .pnav { top: 32px; }
@media (max-width: 782px) { .admin-bar .pnav { top: 0; } }
.pnav__in { overflow-x: auto; scrollbar-width: none; }
.pnav__in::-webkit-scrollbar { display: none; }
.pnav__list { display: flex; gap: 6px; white-space: nowrap; padding-block: 10px; }
.pnav__list > li > a { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 15px; color: var(--ink-2); border-radius: 99px; transition: background .2s, color .2s; }
.pnav b { font-size: 11.5px; font-weight: 700; color: var(--pt, var(--green)); display: inline-flex; align-items: center; gap: 6px; }
.pnav b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc, var(--green)); }
.pnav__list > li > a:hover { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.pnav__list > li > a[aria-current="page"] { background: var(--pc, var(--green)); color: var(--pi, #fff); }
.pnav__list > li > a[aria-current="page"] b { color: inherit; }
.pnav__list > li > a[aria-current="page"] b::before { background: currentColor; }
.pnav__home a { font-weight: 600; color: var(--ink) !important; }
.pnav__home a[aria-current="page"] { background: var(--ink) !important; color: var(--paper) !important; }
.pnav__list--menu > li > a { font-weight: 600; }

/* Ticker */
.ticker { display: flex; align-items: stretch; background: #123B33; color: #fff; font-size: 15px; overflow: hidden; }
[data-theme="dark"] .ticker { background: #0A1F1A; }
.ticker__label { flex: none; display: flex; align-items: center; gap: 8px; margin: 7px 0 7px var(--gutter); padding: 0 14px; background: var(--orange); border-radius: 99px; font-weight: 700; font-size: 12.5px; position: relative; z-index: 2; }
.ticker__track { display: flex; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.ticker__run { display: flex; flex: none; gap: 40px; padding: 10px 20px; animation: ptv-tick 52s linear infinite; white-space: nowrap; }
.ticker:hover .ticker__run { animation-play-state: paused; }
.ticker__run a, .ticker__run span { display: inline-flex; gap: 10px; align-items: baseline; }
.ticker__run a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ticker__run time { font-weight: 700; font-size: 13px; color: #FFD3BE; }
.ticker__run > *::before { content: "●"; font-size: 8px; margin-right: 2px; color: var(--orange); align-self: center; }
@keyframes ptv-tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229,72,77,.7); animation: ptv-pulse 1.6s infinite; flex: none; }
.ticker .live-dot { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
@keyframes ptv-pulse { 70% { box-shadow: 0 0 0 8px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }

/* Drawer + search overlay */
.drawer, .search-ov { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden], .search-ov[hidden] { display: none; }
.drawer { background: rgba(10, 30, 26, .45); }
.drawer__panel { width: min(380px, 88vw); height: 100%; background: var(--paper); overflow-y: auto; padding: 16px 20px 40px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; animation: ptv-slide .3s var(--ease); }
@keyframes ptv-slide { from { transform: translateX(-100%); } }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer .sform { background: var(--card); }
.drawer__pillars { margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.drawer__pillars a { display: grid; grid-template-columns: 38px 1fr; align-items: center; padding: 10px 14px 10px 10px; column-gap: 10px; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.drawer__pillars .no { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pc); color: var(--pi); font-family: var(--f-display); font-weight: 700; font-size: 13px; }
.drawer__pillars b { font-family: var(--f-display); letter-spacing: .08em; font-size: 14px; color: var(--pt); }
.drawer__pillars .th { color: var(--ink-2); font-size: 15px; }
.drawer__menu a { display: block; padding: 8px 0; color: var(--ink-2); }
.social--drawer { margin-top: 20px; color: var(--green); }
.social--drawer .icon { width: 22px; height: 22px; }

.search-ov { background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; align-items: flex-start; overflow-y: auto; }
.search-ov__in { position: relative; padding-top: 14vh; padding-bottom: 48px; max-width: 880px; }
.search-ov__label { font-family: var(--f-display); font-size: 14px; letter-spacing: .04em; color: var(--ink-3); }
.search-ov .sform { padding: 6px 8px 6px 22px; }
.search-ov .sform__input { font-size: clamp(22px, 3.6vw, 36px); padding: 8px 0; }
.search-ov__close { position: absolute; top: 24px; right: var(--gutter); }

.sform { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--rule); border-radius: 99px; padding: 2px 6px 2px 18px; box-shadow: var(--shadow); transition: border-color .2s; }
.sform:focus-within { border-color: var(--green); }
.sform__input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 17px; padding: 10px 0; outline: none; }
.sform__input:focus-visible { outline: none; }
.sform__input::placeholder { color: var(--ink-3); }
.sform__btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; flex: none; }

/* ---------- 6. Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card--std, .card--lead, .card--explain, .card--story, .card--future { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card--std:hover, .card--lead:hover, .card--explain:hover, .card--future:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.card__media { display: block; overflow: hidden; background: var(--paper-2); }
.media { position: relative; width: 100%; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .media img { transform: scale(1.04); }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.media--ph { display: grid; place-items: center; background: color-mix(in srgb, var(--pc, var(--green)) 18%, var(--card)); color: var(--pt, var(--green)); background-image: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--pc, var(--green)) 22%, transparent) 0 18%, transparent 19%), radial-gradient(circle at 80% 75%, color-mix(in srgb, var(--orange) 26%, transparent) 0 14%, transparent 15%); container-type: inline-size; }
.media--ph span { font-family: var(--f-display); font-weight: 800; letter-spacing: .12em; font-size: clamp(9px, 9cqi, 28px); opacity: .9; }

.card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 18px 18px; }
.card__title { font-size: 18.5px; font-weight: 700; line-height: 1.45; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { color: var(--green); }
.kicker, .card__cta, .chips a, .share__btn { position: relative; z-index: 1; }
.card__dek { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--lead .card__dek, .card--story.card--big .card__dek { -webkit-line-clamp: 4; }

.kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; color: var(--ink-3); }
.kicker b { display: inline-flex; align-items: center; gap: 6px; color: var(--pt); background: color-mix(in srgb, var(--pc) 14%, transparent); font-weight: 700; font-size: 11.5px; padding: 4px 10px; border-radius: 99px; }
.kicker b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pc); }
.kicker i { font-style: normal; }
.kicker em { font-style: normal; color: var(--ink); font-weight: 600; }
.kicker em::before { content: "·"; margin-right: 6px; color: var(--ink-3); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.4; margin-top: auto; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.meta .by { color: var(--ink-2); font-weight: 500; }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 7. Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: var(--gap); padding-top: 26px; padding-bottom: 40px; }
.hero__main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.hero__seconds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.card--lead { border-radius: var(--radius-lg); }
.card--lead .card__media .media { aspect-ratio: 16 / 9; }
.card--lead .card__title { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.3; font-weight: 800; }
.card--lead .card__dek { font-size: clamp(16px, 1.3vw, 18px); max-width: 62ch; }
.card--lead .card__body { gap: 12px; padding: 20px 26px 24px; }
@media (min-width: 861px) {
	.hero__main > .card--lead { display: grid; }
	.hero__main > .card--lead > * { grid-area: 1 / 1; }
	.hero__main > .card--lead .card__media .media { aspect-ratio: 16 / 8.6; }
	.hero__main > .card--lead .card__body { align-self: end; z-index: 1; padding: 90px 32px 28px; color: #fff; background: linear-gradient(180deg, transparent, rgba(8, 28, 23, .55) 32%, rgba(8, 28, 23, .9)); }
	.hero__main > .card--lead .card__dek { color: rgba(255, 255, 255, .88); }
	.hero__main > .card--lead .meta, .hero__main > .card--lead .meta .by, .hero__main > .card--lead .kicker { color: rgba(255, 255, 255, .82); }
	.hero__main > .card--lead .kicker b { background: var(--orange); color: #fff; }
	.hero__main > .card--lead .kicker b::before { background: #fff; }
	.hero__main > .card--lead .kicker em { color: #fff; }
	.hero__main > .card--lead .card__title a:hover { color: #FFD3BE; }
	.hero__main > .card--lead .card__media { pointer-events: auto; }
	.hero__main > .card--lead .playbadge { top: 16px; left: 16px; bottom: auto; }
}

.latest { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 6px 20px 10px; align-self: start; position: sticky; top: 76px; }
.admin-bar .latest { top: 108px; }
.latest__head { display: flex; align-items: center; gap: 10px; padding: 14px 0 12px; font-size: 14px; border-bottom: 1px solid var(--rule); }
.latest__head b { font-size: 12.5px; color: #fff; background: var(--red); padding: 3px 10px; border-radius: 99px; }
.latest__head span:last-child { color: var(--ink-2); font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.latest__list > li { position: relative; padding: 13px 0 13px 20px; border-bottom: 1px dashed var(--rule); }
.latest__list > li:last-child { border-bottom: 0; }
.latest__list > li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--green); }
.latest__list > li:first-child::before { border-color: var(--orange); background: var(--orange); }
.card--list { gap: 3px; }
.card--list .card__clock { font-size: 12.5px; font-weight: 600; color: var(--orange-deep); }
.card--list .kicker { font-size: 12px; }
.card--list .kicker b { padding: 2px 8px; font-size: 10.5px; }
.card--list .card__title { font-size: 15.5px; font-weight: 600; line-height: 1.5; }

/* ---------- 8. Pillar tiles ---------- */
.pillars { padding-block: 30px 46px; }
.pillars__title { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 22px; }
.pillars__title span { position: relative; display: inline-block; padding-bottom: 12px; }
.pillars__title span::after, .sec-head__th::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 99px; background: var(--swish); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ptile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 20px; min-height: 200px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), color .3s; }
.ptile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--pc) 18%, transparent); z-index: -1; transition: transform .5s var(--ease), background .3s; }
.ptile:hover { transform: translateY(-3px); color: var(--pi); }
.ptile:hover::before { transform: scale(7); background: var(--pc); }
.ptile:hover .ptile__tag, .ptile:hover .ptile__th, .ptile:hover .ptile__count, .ptile:hover .ptile__no, .ptile:hover .ptile__en { color: inherit; }
.ptile__no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pc); color: var(--pi); font-family: var(--f-display); font-weight: 700; font-size: 13px; transition: background .3s; }
.ptile:hover .ptile__no { background: rgba(255, 255, 255, .25); }
.ptile__en { font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; margin-top: 14px; letter-spacing: .03em; color: var(--pt); transition: color .3s; }
.ptile__th { font-family: var(--f-display); font-size: 19px; font-weight: 700; }
.ptile__tag { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; max-width: 32ch; transition: color .3s; }
.ptile__count { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ptile__count .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.ptile:hover .ptile__count .icon { transform: translateX(4px); }

/* ---------- 9. Section heads ---------- */
.psec { padding-block: 44px; }
.sec-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 26px; padding-right: 220px; min-height: 120px; align-content: end; }
.sec-head__toon { position: absolute; right: 0; bottom: -14px; width: 210px; align-items: flex-end; }
.sec-head__toon .toon__say { align-self: flex-start; }
.sec-head__toon img { height: 140px; }
.sec-head__id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sec-head__id .sec-head__no { order: 1; }
.sec-head__en { order: 1; }
.sec-head__th { order: 2; }
.sec-head__no, .sec-head__en { display: inline-flex; }
.sec-head__id { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; }
.sec-head__no { font-family: var(--f-display); font-weight: 700; font-size: 12px; color: var(--pi); background: var(--pc); padding: 4px 9px; border-radius: 99px 0 0 99px; }
.sec-head__en { font-size: 12px; line-height: 1; letter-spacing: .1em; color: var(--pt); background: color-mix(in srgb, var(--pc) 14%, var(--card)); padding: 6px 12px 5px 9px; border-radius: 0 99px 99px 0; font-weight: 700; }
.sec-head__en a { color: inherit; }
.sec-head__th { position: relative; flex-basis: 100%; margin-top: 10px; padding-bottom: 14px; font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.2; color: var(--ink); }
.sec-head__th::before { content: ""; position: absolute; left: 72px; bottom: 0; width: 14px; height: 5px; border-radius: 99px; background: var(--orange); opacity: .55; }
.sec-head__tag { margin: 4px 0 0; color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.sec-head__more { justify-self: start; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 7px 14px; border: 1.5px solid var(--green); color: var(--green); border-radius: 99px; white-space: nowrap; transition: background .2s, color .2s; }
.sec-head__more:hover { background: var(--green); color: #fff; }
.sec-head__more .icon { width: 16px; height: 16px; }

/* NEWS */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.news-grid__a .card { height: 100%; }
.news-grid__a .card__title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.36; font-weight: 800; }
.news-grid__b { display: flex; flex-direction: column; gap: var(--gap); }
.news-grid__c { align-self: start; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px; }
.news-grid__c > li { border-bottom: 1px dashed var(--rule); padding: 12px 0; }
.news-grid__c > li:last-child { border-bottom: 0; }
.card--mini { flex-direction: row; align-items: flex-start; gap: 12px; }
.card--mini .card__body { flex: 1; gap: 6px; padding: 0; }
.card--mini .card__title { font-size: 15.5px; line-height: 1.5; font-weight: 600; }
.card--mini .card__media { flex: none; width: 76px; border-radius: var(--radius-sm); }

/* Bands: colored islands with rounded corners */
.psec.is-band { padding-block: 22px; }
.psec.is-band > .wrap { border-radius: var(--radius-lg); padding-block: 36px 40px; padding-inline: clamp(18px, 3vw, 40px); max-width: calc(var(--max) - var(--gutter) * 2 + clamp(36px, 6vw, 80px)); }

/* EXPLAIN */
.psec--explain.is-band > .wrap { background: var(--pc); color: #fff; background-image: radial-gradient(circle at 92% 8%, rgba(255,255,255,.14) 0 120px, transparent 121px), radial-gradient(circle at 4% 100%, rgba(255,255,255,.08) 0 160px, transparent 161px); }
.psec--explain .sec-head__th, .psec--explain .sec-head__tag { color: #fff; }
.psec--explain .card { color: var(--ink); }
.psec--explain .sec-head__tag { opacity: .85; }
.psec--explain .sec-head__no { background: #fff; color: var(--pc); }
.psec--explain .sec-head__en { background: rgba(255,255,255,.18); color: #fff; }
.psec--explain .sec-head__more { border-color: #fff; color: #fff; }
.psec--explain .sec-head__more:hover { background: #fff; color: var(--pc); }
.psec--explain .toon__say { border-color: var(--ink); }
.psec--explain .empty { color: rgba(255,255,255,.85); }
.card--explain .card__body { gap: 12px; padding: 16px 20px 20px; }
.card__flag { align-self: flex-start; background: var(--pc); color: var(--pi); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.card--explain .card__title { font-size: 20px; font-weight: 800; }
.points { counter-reset: pt; display: flex; flex-direction: column; gap: 10px; }
.points li { counter-increment: pt; position: relative; padding-left: 36px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.points li::before { content: counter(pt); position: absolute; left: 0; top: 1px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 13px; line-height: 1; }
.card__cta { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--pt); }
.card__cta .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card__cta .icon { transform: translateX(3px); }

/* PEOPLE */
.card--people { gap: 10px; }
.card--people .card__media { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); }
.card--people .media img { filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), transform .7s var(--ease); }
.card--people:hover .media img { filter: none; }
.card__quote { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 56px 18px 18px; background: linear-gradient(transparent, rgba(8, 28, 23, .88)); color: #fff; font-family: var(--f-serif); font-size: 15.5px; line-height: 1.6; font-weight: 500; }
.card--people .card__body { padding: 2px 4px; gap: 4px; }
.card__who { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--pt); background: color-mix(in srgb, var(--pc) 16%, transparent); padding: 2px 10px; border-radius: 99px; }
.card--people .card__title { font-size: 17.5px; }

/* DATA */
.psec--data.is-band > .wrap { background: var(--card); box-shadow: var(--shadow); }
.data-grid { gap: 14px; }
.card--data { background: color-mix(in srgb, var(--pc) 7%, var(--card)); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--pc) 22%, transparent); transition: transform .3s var(--ease), background .3s; }
.card--data:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--pc) 12%, var(--card)); }
.card__link { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 20px 20px; }
.card--data .media { border-radius: var(--radius-sm); }
.card__stat { font-family: var(--f-display); font-weight: 800; font-size: clamp(42px, 4.8vw, 66px); line-height: 1; color: var(--pt); font-variant-numeric: tabular-nums; letter-spacing: -.01em; word-break: break-word; }
.card__stat small { font-size: .3em; margin-left: 6px; letter-spacing: 0; color: var(--ink-2); font-weight: 600; }
.card__statlabel { font-size: 14px; color: var(--ink-3); line-height: 1.5; padding-bottom: 12px; border-bottom: 2px dotted color-mix(in srgb, var(--pc) 30%, transparent); }
.card--data .card__title { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.card--data .card__cta { margin-top: auto; }

/* STORIES */
.psec--stories.is-band > .wrap { background: #2A2238; color: #F4EEFA; background-image: radial-gradient(circle at 100% 0, rgba(138, 92, 192, .45) 0 220px, transparent 221px); --rule: rgba(255,255,255,.14); --ink: #F4EEFA; --ink-2: #D8CDE6; --ink-3: #ABA0BC; --card: #352C46; --paper-2: #3D3350; --pt: #D2B6FF; }
.psec--stories .sec-head__th { color: #fff; }
.psec--stories .sec-head__no { background: #D2B6FF; color: #2A2238; }
.psec--stories .sec-head__en { background: rgba(210, 182, 255, .16); }
.psec--stories .sec-head__more { border-color: #D2B6FF; color: #D2B6FF; }
.psec--stories .sec-head__more:hover { background: #D2B6FF; color: #2A2238; }
.psec--stories .toon__say { --bubble: #fff; color: #15302A; border-color: #15302A; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--gap); }
.story-grid__b { display: flex; flex-direction: column; gap: 14px; }
.story-grid__b .card--story { flex-direction: row; gap: 0; }
.story-grid__b .card--story .card__media { width: 38%; flex: none; }
.story-grid__b .card--story .card__body { padding: 12px 16px; }
.card--story { box-shadow: none; }
.card--story .card__title { font-family: var(--f-serif); font-weight: 700; font-size: 18px; line-height: 1.55; }
.card--story .card__title a:hover { color: var(--pt); }
.card--story.card--big .card__title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; }
.card--story.card--big .card__body { padding: 20px 24px 24px; }
.card--story.card--big .card__dek { font-family: var(--f-serif); font-size: 16.5px; line-height: 1.8; }
.card--story .kicker b { display: none; }
.card--story .kicker i { color: var(--pt); font-weight: 600; }

/* FUTURE */
.psec--future.is-band > .wrap { background: color-mix(in srgb, var(--pc) 16%, var(--card)); }
.future-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card--future { flex-direction: row; gap: 0; }
.card--future .card__media { width: 34%; flex: none; }
.card--future .card__media .media { height: 100%; }
.card--future .card__title { font-size: 17.5px; font-weight: 700; }
.tracker { display: flex; flex-direction: column; gap: 8px; }
.tracker__label { align-self: flex-start; font-size: 11.5px; font-weight: 700; background: var(--pc); color: var(--pi); padding: 3px 10px; border-radius: 99px; }
.tracker.is-stuck .tracker__label { background: var(--red); color: #fff; }
.tracker__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tracker__steps li { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; padding-top: 6px; position: relative; }
.tracker__steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 99px; background: var(--paper-3); }
.tracker__steps li.on { color: var(--ink); font-weight: 600; }
.tracker__steps li.on::before { background: var(--pc); }

/* Big number */
.bignum { padding: 26px 28px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 6px solid var(--pc); }
.bignum__value { font-family: var(--f-display); font-weight: 800; font-size: clamp(54px, 8.5vw, 112px); line-height: 1; color: var(--pt); font-variant-numeric: tabular-nums; }
.bignum__value small { font-size: .28em; margin-left: 8px; color: var(--ink-2); }
.bignum__label { font-family: var(--f-display); font-size: clamp(18px, 2vw, 24px); font-weight: 700; margin-top: 12px; line-height: 1.45; }
.bignum__src { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 10. Kofi band (หน้าแรก) ---------- */
.kofi-band { padding-block: 26px; }
.kofi-band__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; max-width: calc(var(--max) - var(--gutter) * 2 + clamp(36px, 6vw, 80px)); border-radius: var(--radius-lg); padding-block: 40px 0; padding-inline: clamp(20px, 4vw, 52px); background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #fff; overflow: hidden; }
.kofi-band__in::before { content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.kofi-band__text { position: relative; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.kofi-band .eyebrow { color: #FFD3BE; }
.kofi-band__title { font-size: clamp(30px, 4vw, 50px); font-weight: 800; line-height: 1.15; }
.kofi-band__text p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 17px; }
.kofi-band__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.kofi-band .btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.kofi-band .btn--ghost:hover { background: #fff; color: var(--green-deep); }
.kofi-band__perks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.9); }
.kofi-band__perks b { margin-right: 4px; }
.kofi-band .toon { align-self: end; }
.kofi-band .toon::before { background: #FFF6E6; opacity: .95; width: 82%; }
.kofi-band .toon__say { --bubble: #fff; color: #15302A; border-color: #15302A; }


/* ---------- 10b. บล็อกจากหน้า “จัดหน้าแรก” ---------- */
.p-topic { --pc: var(--green); --pi: #fff; --pt: var(--green); }
.psec--topic .sec-head__no { font-size: 13px; }
.psec--topicband.is-band > .wrap { background: color-mix(in srgb, var(--pc) 13%, var(--card)); }
.topic-list { gap: 12px; }
.topic-list__item { padding: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper); }

.pbanner { position: relative; padding-block: 18px; }
.pbanner__label { position: absolute; right: calc(var(--gutter) + 12px); top: 28px; z-index: 1; padding: 3px 10px; border-radius: 99px; background: rgba(8, 28, 23, .6); color: #fff; font-size: 11.5px; letter-spacing: .02em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pbanner__link { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.pbanner__link img { width: 100%; height: auto; transition: transform .6s var(--ease); }
a.pbanner__link:hover img { transform: scale(1.015); }
.pbanner__ph { display: grid; place-items: center; height: 160px; border-radius: var(--radius-lg); border: 2px dashed var(--rule); color: var(--ink-3); background: var(--card); }

.pnotice-wrap { padding-block: 18px; }
.pnotice { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 24px 26px 0 28px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--green); min-height: 120px; }
.pnotice--orange { background: linear-gradient(120deg, var(--orange-deep), var(--orange)); }
.pnotice--red { background: linear-gradient(120deg, #B4232A, var(--red)); }
.pnotice--green { background: linear-gradient(120deg, var(--green-deep), var(--green)); }
.pnotice--mint { background: var(--green-tint); color: var(--ink); }
.pnotice__text { padding-bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pnotice__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.pnotice__text p { margin: 0 0 6px; opacity: .95; max-width: 62ch; }
.pnotice__live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.2); font: 700 12px/1.3 var(--f-display); letter-spacing: .08em; }
.pnotice__live .live-dot { background: #fff; }
.pnotice .pnotice__toon img { height: 140px; }
.pnotice__toon::before { background: rgba(255,255,255,.85); }

.phtml { padding-block: 22px; }
@media (max-width: 560px) {
	.pnotice { grid-template-columns: 1fr; padding: 20px 20px 0; }
	.pnotice__toon { justify-self: end; margin-top: -30px; }
	.pnotice .pnotice__toon img { height: 110px; }
}

/* ---------- 11. Archive ---------- */
.ahead { padding-top: 24px; }
.ahead__in { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding-top: 40px; padding-bottom: 38px; padding-inline: clamp(20px, 4vw, 48px); max-width: calc(var(--max) - var(--gutter) * 2 + clamp(40px, 8vw, 96px)); background: var(--pc); color: var(--pi); background-image: radial-gradient(circle at 96% 12%, rgba(255,255,255,.16) 0 140px, transparent 141px), radial-gradient(circle at 70% 120%, rgba(255,255,255,.1) 0 180px, transparent 181px); }
.ahead__no { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .1em; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.22); }
.ahead__en { font-size: clamp(50px, 9vw, 120px); line-height: .95; letter-spacing: .02em; margin: 14px 0 6px; font-weight: 800; }
.ahead__th { font-family: var(--f-display); font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin: 0; }
.ahead__th span { opacity: .8; }
.ahead__tag { margin: 8px 0 0; max-width: 60ch; opacity: .9; }
.ahead--plain .ahead__in { background: var(--card); color: var(--ink); box-shadow: var(--shadow); background-image: radial-gradient(circle at 96% 12%, var(--green-tint) 0 140px, transparent 141px); }
.ahead--plain .ahead__no { background: var(--green-tint); color: var(--green); }
.ahead__title { font-size: clamp(28px, 4.2vw, 52px); margin-top: 10px; font-weight: 800; }
.ahead--plain .sform { max-width: 560px; margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { display: inline-block; padding: 5px 14px; border: 1.5px solid currentColor; border-radius: 99px; font-size: 14px; opacity: .92; transition: background .2s, color .2s; }
.chips a[aria-current="page"], .chips a:hover { background: var(--pi); color: var(--pc); border-color: var(--pi); opacity: 1; }
.chips--tags a { border-color: transparent; background: var(--green-tint); color: var(--green); }
.chips--tags a:hover { background: var(--green); color: #fff; border-color: var(--green); }

.alist { padding-top: 32px; padding-bottom: 60px; }
.alist__lead { margin-bottom: 30px; }
.alist__lead .card--lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.alist__lead .card--lead .card__media { height: 100%; }
.alist__lead .card--lead .card__media .media { height: 100%; aspect-ratio: auto; min-height: 280px; }
.alist__lead .card--lead .card__title { font-size: clamp(24px, 2.8vw, 36px); }
.alist--all .grid > .card--mini { padding: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.story-cards .card--story { box-shadow: var(--shadow); }
.story-cards .card--story .card__title { font-size: 20px; }

.pager { margin-top: 44px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 16px; background: var(--card); border-radius: 99px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); }
.pager .current { background: var(--green); color: #fff; }
.pager a:hover { color: var(--green); }

/* ---------- 12. Article ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 300; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pc, var(--green)), var(--orange)); transform: scaleX(0); transform-origin: left; border-radius: 0 99px 99px 0; }
.admin-bar .progress { top: 32px; }
.art__head { max-width: calc(940px + var(--gutter) * 2); padding-top: 38px; }
.art__kicker .kicker { font-size: 14px; }
.art__kicker .kicker b { font-size: 12px; padding: 5px 12px; }
.art__title { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.26; margin: 16px 0 16px; font-weight: 800; }
.art__dek { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.65; color: var(--ink-2); max-width: 46em; background: var(--card); border-left: 5px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 20px; margin: 0 0 22px; box-shadow: var(--shadow); }
.art__byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.art__who { display: flex; align-items: center; gap: 12px; }
.art__who b { font-size: 15px; font-family: var(--f-display); }
.art__avatar { border-radius: 50%; box-shadow: 0 0 0 3px var(--green-tint); }
.art__hero { margin: 26px auto 0; max-width: calc(1140px + var(--gutter) * 2); }
.art__hero img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.art__hero figcaption { font-size: 13.5px; color: var(--ink-3); padding-top: 10px; text-align: center; }

.share { display: flex; align-items: center; gap: 6px; }
.share__label { font-size: 13px; color: var(--ink-3); margin-right: 4px; }
.share__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-tint); color: var(--green); transition: background .2s, color .2s, transform .2s; }
.share__btn .icon { width: 17px; height: 17px; }
.share__btn:hover { background: var(--green); color: #fff; transform: translateY(-1px); }
.share__btn.is-copied { background: var(--orange); color: #fff; }

.xbox { margin-top: 30px; }
.xbox__label { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--pt); margin-bottom: 14px; }
.xbox--explain { position: relative; padding-top: 24px; padding-bottom: 24px; background: var(--note); border-radius: 6px var(--radius) var(--radius) var(--radius); box-shadow: 0 14px 28px -18px rgba(90, 70, 10, .5); transform: rotate(-.4deg); }
.xbox--explain::before { content: ""; position: absolute; left: 50%; top: -10px; width: 90px; height: 22px; margin-left: -45px; background: rgba(255,255,255,.6); border-radius: 3px; transform: rotate(-3deg); }
[data-theme="dark"] .xbox--explain::before { background: rgba(255,255,255,.12); }
.points--big li { font-size: 17px; color: var(--ink); padding-left: 42px; }
.points--big li::before { width: 29px; height: 29px; font-size: 14px; top: 0; }
.xbox--people blockquote { position: relative; margin: 0; padding: 22px 26px 22px 70px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.xbox--people blockquote::before { content: "“"; position: absolute; left: 18px; top: 4px; font: 800 72px/1 var(--f-serif); color: var(--orange); }
.xbox--people p { font-family: var(--f-serif); font-weight: 700; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.6; margin: 0; }
.xbox--people cite { display: block; font-style: normal; color: var(--ink-3); margin-top: 10px; font-size: 15px; }
.xbox--future, .xbox--data { padding: 18px 22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.xbox--future .tracker__steps li { font-size: 13px; }

.art__body { padding-top: 34px; }
.prose { font-size: 19px; line-height: 1.9; }
.prose > * { margin-block: 0 1.15em; }
.prose h2 { font-size: 27px; margin-top: 1.8em; line-height: 1.4; font-weight: 800; }
.prose h3 { font-size: 22px; margin-top: 1.5em; line-height: 1.45; }
.prose a { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--green) 35%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--orange); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--orange); }
.prose blockquote { margin-inline: 0; padding: 16px 22px; background: var(--green-tint); border-left: 5px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--f-serif); font-size: 1.08em; color: var(--ink); }
.prose figure { margin-inline: 0; }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.prose .alignwide { width: min(1080px, 100vw - var(--gutter) * 2); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull img { border-radius: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.prose th { background: var(--green-tint); color: var(--green); font-family: var(--f-display); }
.prose hr { border: 0; height: 5px; width: 80px; border-radius: 99px; background: var(--swish); margin: 2.2em auto; }
.prose--serif { font-family: var(--f-serif); font-size: 19.5px; line-height: 2; }
.prose--serif > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .9; padding: 8px 10px 0 0; font-weight: 800; color: var(--pt); }

.art__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 34px; border-top: 2px dashed var(--rule); margin-top: 24px; }
.art__foot .chips { margin-top: 0; }

.support { padding-bottom: 40px; }
.support__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 26px 26px 0 28px; background: var(--orange-soft); border-radius: var(--radius-lg); overflow: hidden; }
.support__text { padding-bottom: 26px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.support__text b { font-family: var(--f-display); font-size: 24px; font-weight: 800; }
.support__text p { margin: 0 0 6px; color: var(--ink-2); }
.support .toon img { height: 150px; }

.related { padding-block: 26px 48px; }
.related > .wrap { background: var(--paper-2); border-radius: var(--radius-lg); padding-block: 34px 40px; padding-inline: clamp(18px, 3vw, 36px); max-width: calc(var(--max) - var(--gutter) * 2 + clamp(36px, 6vw, 72px)); }

.page-art__head { padding-top: 44px; padding-bottom: 8px; }
.page-art__title { position: relative; font-size: clamp(32px, 4.4vw, 54px); padding-bottom: 18px; font-weight: 800; }
.page-art__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 80px; height: 6px; border-radius: 99px; background: var(--swish); }
.page-art .prose { padding-top: 24px; padding-bottom: 64px; }

.comments-wrap { position: relative; padding-bottom: 56px; }
.comments-wrap__toon { position: absolute; right: var(--gutter); top: -6px; width: 170px; }
.comments-wrap__toon img { height: 110px; }
.comments { padding-top: 24px; }
.comments__title, .comment-reply-title { font-size: 24px; margin-bottom: 16px; font-weight: 800; }
.comments__list li { padding: 14px 16px; margin-bottom: 10px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); background: var(--card); color: var(--ink); font: inherit; border-radius: var(--radius-sm); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--green); outline: none; }
.comment-form .submit { align-self: flex-start; background: var(--green); color: #fff; border: 0; padding: 12px 26px; font: inherit; font-weight: 600; cursor: pointer; border-radius: 99px; }
.comment-form .submit:hover { background: var(--green-deep); }

/* 404 */
.notfound { position: relative; padding-block: 64px 28px; max-width: calc(760px + var(--gutter) * 2); }
.notfound__toon { float: right; margin: 0 0 10px 20px; width: 170px; }
.notfound__code { font-family: var(--f-display); font-weight: 800; font-size: clamp(90px, 18vw, 190px); line-height: .9; margin: 0; background: var(--swish); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound__title { font-size: clamp(28px, 4vw, 42px); margin: 12px 0; }
.notfound__text { color: var(--ink-2); }
.notfound .sform { clear: both; }

/* ---------- 13. Footer ---------- */
.site-footer { margin-top: 30px; background: var(--paper-2); color: var(--ink-2); padding-top: 54px; font-size: 15px; border-top: 1px solid var(--rule); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 48px; padding-bottom: 36px; }
.site-footer__brand { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-right: 180px; min-height: 230px; }
.site-footer__about { margin: 0; max-width: 46ch; }
.site-footer__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer__toon { position: absolute; right: 0; bottom: 0; width: 180px; }
.site-footer__toon img { height: 180px; }
.f-title { font-size: 16px; color: var(--ink); margin-bottom: 12px; font-weight: 700; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ccard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s var(--ease); min-width: 0; }
.ccard:hover { transform: translateY(-2px); }
.ccard__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; flex: none; background: var(--green); }
.ccard--fb .ccard__ic { background: #1877F2; }
.ccard--line .ccard__ic { background: #06C755; }
.ccard--yt .ccard__ic { background: #E33B2E; }
.ccard--tt .ccard__ic { background: #111; }
.ccard__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ccard__t b { font-family: var(--f-display); color: var(--ink); font-size: 15px; }
.ccard__t small { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-footer__pillars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-block: 22px; border-top: 2px dashed var(--rule); }
.site-footer__pillars a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--card); border-radius: var(--radius-sm); border-top: 4px solid var(--pc); transition: transform .2s var(--ease); }
.site-footer__pillars a:hover { transform: translateY(-2px); }
.site-footer__pillars .no { font-family: var(--f-display); font-size: 12px; color: var(--pt); font-weight: 700; }
.site-footer__pillars b { font-family: var(--f-display); letter-spacing: .08em; color: var(--ink); font-size: 14.5px; }
.site-footer__pillars .th { font-size: 13.5px; color: var(--ink-3); }
.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 28px 0; border-top: 2px dashed var(--rule); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 0 28px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--rule); }
.site-footer__menu { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer__menu a:hover, .totop:hover { color: var(--green); }
.totop { margin-left: auto; }
.footmark { font-family: var(--f-display); font-weight: 800; }

/* ---------- 14. Bottom nav (มือถือ) ---------- */
.bnav { display: none; }
@media (max-width: 860px) {
	.bnav { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-radius: 24px; box-shadow: 0 10px 30px -10px rgba(10, 40, 34, .35); border: 1px solid var(--rule); }
	.bnav a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); border-radius: 18px; }
	.bnav a .icon { width: 22px; height: 22px; }
	.bnav a[aria-current="page"] { color: var(--green); background: var(--green-tint); }
	.bnav a.is-kofi { color: #fff; background: var(--orange); }
	body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 15. Elementor ---------- */
.page-canvas { width: 100%; }
.ptv-el .wrap { max-width: none; padding-inline: 0; }
.ptv-el .hero { padding-top: 0; }
.ptv-el .psec.is-band { padding-inline: 0; }
.elementor-widget-container > .bignum { margin: 0; }
.is-elementor .art__body { display: none; }

/* ---------- 16. Scroll state ---------- */
.is-scrolled .masthead__in { min-height: 68px; }

/* ---------- 17. Video ---------- */
.playbadge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; background: rgba(8, 28, 23, .82); color: #fff; font-family: var(--f-display); font-size: 12px; font-weight: 600; line-height: 1; border-radius: 99px; pointer-events: none; }
.playbadge svg { color: var(--orange); }
.card--mini .playbadge span, .vitem .playbadge span { display: none; }
.card--mini .playbadge { left: 4px; bottom: 4px; padding: 4px; }

.vplayer { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.vplayer.is-vertical { aspect-ratio: 9 / 16; max-width: 400px; margin-inline: auto; }
.vplayer iframe, .vplayer__btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplayer__btn { display: block; cursor: pointer; }
.vplayer__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s, transform .7s var(--ease); }
.vplayer__btn:hover img { opacity: 1; transform: scale(1.02); }
.vplayer__play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 0 0 10px rgba(244, 135, 90, .28), 0 8px 30px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.vplayer__play svg { margin-left: 4px; }
.vplayer__btn:hover .vplayer__play, .vplayer__btn:focus-visible .vplayer__play { transform: scale(1.08); }
.vplayer__tag { position: absolute; left: 14px; top: 14px; padding: 4px 10px; background: rgba(8, 28, 23, .78); color: #fff; font: 600 12px/1.3 var(--f-display); letter-spacing: .06em; border-radius: 99px; }
.art__hero--video { margin-top: 26px; }
.vlink a { color: var(--orange-deep); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

.vsec { padding-block: 22px; }
.vsec > .wrap { border-radius: var(--radius-lg); padding-block: 34px 40px; padding-inline: clamp(18px, 3vw, 40px); max-width: calc(var(--max) - var(--gutter) * 2 + clamp(36px, 6vw, 80px)); background: #102E28; color: #EAF5F1; background-image: radial-gradient(circle at 100% 0, rgba(244, 135, 90, .22) 0 200px, transparent 201px);
	--ink: #EAF5F1; --ink-2: #C3D9D2; --ink-3: #8FB0A7; --rule: rgba(255,255,255,.12); --card: #17382F; --paper-2: #17382F; }
[data-theme="dark"] .vsec > .wrap { background-color: #0A201B; }
.vsec__head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-right: 200px; min-height: 100px; margin-bottom: 26px; }
.vsec__head .sec-head__toon { bottom: -20px; }
.vsec__head .toon__say { --bubble: #fff; color: #15302A; border-color: #15302A; }
.vsec__live { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; padding: 6px 13px; font: 700 12.5px/1 var(--f-display); letter-spacing: .1em; border-radius: 99px; }
.vsec__live .live-dot { background: #fff; box-shadow: none; }
.vsec__title { flex-basis: 100%; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.vsec__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 7px 14px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 99px; }
.vsec__more:hover { background: #fff; color: #102E28; }
.vsec__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.vsec__now { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.vsec__nowtitle { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.38; }
.vsec__nowtitle a:hover { color: #FFD3BE; }
.vsec__list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.vitem { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; width: 100%; padding: 10px; text-align: left; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); transition: background .2s; }
.vitem:hover { background: rgba(255,255,255,.09); }
.vitem.is-on { background: rgba(244, 135, 90, .18); box-shadow: inset 0 0 0 1.5px var(--orange); }
.vitem__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0A1F1A; overflow: hidden; border-radius: 10px; }
.vitem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vitem__play { position: absolute; left: 6px; bottom: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; }
.vitem.is-on .vitem__play::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); animation: ptv-pulse 1.6s infinite; }
.vitem__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vitem__title { font: 600 15px/1.5 var(--f-display); color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vitem__meta { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 18. Facebook ---------- */
.fbsec { padding-block: 44px; }
.fbsec__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: calc(var(--gap) * 2); align-items: start; }
.fbsec__intro { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.fbsec__toon { align-self: flex-start; width: 200px; margin-bottom: 4px; }
.fbsec__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: #fff; background: #1877F2; padding: 5px 12px; border-radius: 99px; font: 700 12.5px/1 var(--f-display); letter-spacing: .1em; }
.fbsec__badge .icon { width: 16px; height: 16px; }
.fbsec__title { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.22; font-weight: 800; }
.fbsec__text { font-size: 17.5px; color: var(--ink-2); max-width: 38ch; margin: 0; }
.fbsec__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fbbox { width: 100%; max-width: 500px; margin-inline: auto; }
.fbbox__frame { display: block; width: 100%; height: var(--fbh, 640px); border: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.fbbox__fallback { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.fbbox__fallback a { color: #1877F2; text-decoration: underline; }
.aside-widget .fbbox, .f-widget .fbbox { max-width: 100%; }

.fbsec--cards { padding-block: 44px 52px; }
.fbsec__head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 40px; margin-bottom: 28px; padding-right: 220px; min-height: 120px; }
.fbsec__head .sec-head__toon { bottom: -10px; }
.fbsec__headtext { display: flex; flex-direction: column; gap: 10px; }
.fbsec--cards .fbsec__title { font-size: clamp(28px, 3.2vw, 42px); }
.fbsec--cards .fbsec__text { font-size: 16.5px; max-width: 52ch; }
.fbpage { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; background: var(--card); border-radius: 99px; box-shadow: var(--shadow); }
.fbpage__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.fbpage__avatar--ph { display: grid; place-items: center; background: #1877F2; color: #fff; }
.fbpage__who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.fbpage__who b { font-family: var(--f-display); font-size: 15.5px; }
.fbpage__who span { font-size: 13px; color: var(--ink-3); }
.fbpage .btn { padding: 10px 16px; font-size: 14px; }
.fbc { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; min-width: 0; box-shadow: var(--shadow); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.fbc:hover { box-shadow: var(--shadow-hi); transform: translateY(-3px); }
.fbc__media { position: relative; display: block; background: var(--paper-3); overflow: hidden; }
.fbc__media img { width: 100%; max-height: 520px; object-fit: cover; transition: transform .7s var(--ease); }
.fbc:hover .fbc__media img { transform: scale(1.03); }
.fbc__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.fbc__play svg { margin-left: 3px; }
.fbc__count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; background: rgba(8, 28, 23, .8); color: #fff; font: 700 14px/1.2 var(--f-display); border-radius: 99px; }
.fbc__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 14px; }
.fbc__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.fbc__type { font: 700 11px/1 var(--f-display); letter-spacing: .08em; color: #1877F2; text-transform: uppercase; padding: 5px 9px; background: rgba(24,119,242,.1); border-radius: 99px; }
[data-theme="dark"] .fbc__type { color: #7DB0FF; background: rgba(24,119,242,.2); }
.fbc--video .fbc__type { color: var(--orange-deep); background: var(--orange-soft); }
.fbc__msg { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.fbc__msg a { color: #1877F2; }
[data-theme="dark"] .fbc__msg a { color: #7DB0FF; }
.fbc--noimg { background: var(--note); }
.fbc--noimg .fbc__msg { font-family: var(--f-display); font-size: 18px; line-height: 1.65; font-weight: 500; }
.fbc--noimg .fbc__body { padding-top: 20px; }
.fbc--noimg .fbc__msg::before { content: "“"; display: block; font: 800 54px/0.6 var(--f-serif); color: var(--orange); margin: 12px 0 6px; }
.fbc__link { display: block; padding: 10px 12px; background: var(--paper-2); border-left: 3px solid #1877F2; border-radius: 0 10px 10px 0; font: 600 14.5px/1.5 var(--f-display); color: var(--ink); }
.fbc__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.fbc__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.fbc__stats { display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fbc__stats span { display: inline-flex; align-items: center; gap: 5px; }
.fbc__stats span:first-child svg { color: var(--red); }
.fbc__open { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #1877F2; white-space: nowrap; }
[data-theme="dark"] .fbc__open { color: #7DB0FF; }
.fbc__open .icon { width: 15px; height: 15px; }
.fbc__tag { font-weight: 600; }
.fbcards--grid { columns: 3 300px; column-gap: var(--gap); }
.fbcards--grid .fbc { break-inside: avoid; margin-bottom: var(--gap); }
.fbcards--rail { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.fbcards--rail .fbc { flex: 0 0 min(320px, 82%); scroll-snap-align: start; }
.fbcards--list { display: flex; flex-direction: column; gap: 14px; }
.fbc--compact .fbc__media img { max-height: 190px; }
.fbc--compact .fbc__body { padding: 12px 14px 10px; gap: 8px; }
.fbc--compact .fbc__msg { font-size: 14.5px; line-height: 1.65; }
.fbc--compact.fbc--noimg .fbc__msg { font-size: 15.5px; }
.fbc--compact .fbc__stats { gap: 10px; }
.fbc__follow { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; padding: 10px; background: #1877F2; color: #fff; font-weight: 600; border-radius: 99px; }
.fbc__follow .icon { width: 18px; height: 18px; }

/* ---------- 19. Instant search ---------- */
.lsearch { margin-top: 20px; }
.lsearch__label { font: 600 13px/1.4 var(--f-display); color: var(--ink-3); letter-spacing: .04em; margin: 18px 0 10px; }
.lsearch__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lsearch__chip { padding: 6px 14px; background: var(--card); border-radius: 99px; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow); transition: background .2s, color .2s; }
.lsearch__chip:hover { color: var(--green); }
.lsearch__chip b { font-family: var(--f-display); font-size: 11px; letter-spacing: .08em; color: var(--pt, var(--green)); margin-right: 4px; }
.lsearch__chip[aria-pressed="true"] { background: var(--pc, var(--green)); color: var(--pi, #fff); }
.lsearch__chip[aria-pressed="true"] b { color: inherit; }
.lsearch__list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.lsearch__item a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.lsearch__item a:hover, .lsearch__item a:focus-visible, .lsearch__item.is-active a { transform: translateX(3px); box-shadow: inset 0 0 0 2px var(--green), var(--shadow); }
.lsearch__thumb { position: relative; width: 64px; aspect-ratio: 1; background: color-mix(in srgb, var(--pc, var(--green)) 20%, var(--card)); overflow: hidden; border-radius: 10px; }
.lsearch__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lsearch__thumb .playbadge { left: 3px; bottom: 3px; padding: 3px; }
.lsearch__thumb .playbadge span { display: none; }
.lsearch__kick { font: 700 11px/1.3 var(--f-display); letter-spacing: .08em; color: var(--pt, var(--ink-3)); }
.lsearch__title { display: block; font: 600 16px/1.5 var(--f-display); color: var(--ink); }
.lsearch__title mark { background: #FFD9C6; color: #15302A; padding: 0 3px; border-radius: 4px; }
.lsearch__time { font-size: 12.5px; color: var(--ink-3); }
.lsearch__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--green); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.lsearch__more .icon { width: 16px; height: 16px; }
.lsearch__empty { color: var(--ink-3); padding: 18px 0; }
.lsearch__loading { height: 4px; margin-top: 12px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--orange), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: ptv-load 1s linear infinite; }
@keyframes ptv-load { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.lsearch__recent-clear { font-size: 12.5px; color: var(--ink-3); text-decoration: underline; margin-left: 8px; }
.ahead__count { margin: 6px 0 0; color: var(--ink-3); }
.chips--filter { margin-top: 18px; }
.chips--filter a { color: var(--ink-2); border-color: transparent; background: var(--paper-2); }
.chips--filter b { font-family: var(--f-display); font-size: 11px; letter-spacing: .08em; color: var(--pt, var(--green)); }
.chips--filter a[aria-current="page"], .chips--filter a:hover { background: var(--pc, var(--green)); color: var(--pi, #fff); border-color: var(--pc, var(--green)); }
.chips--filter a[aria-current="page"] b, .chips--filter a:hover b { color: inherit; }

/* ---------- 20. Widgets ---------- */
.aside-widget, .f-widget { font-size: 15px; }
.aside-title { font-size: 17px; margin-bottom: 10px; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1100px) {
	.hero { grid-template-columns: minmax(0, 1fr) 310px; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
	.news-grid__c { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
	.site-footer__pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.masthead__tagline { display: none; }
}

@media (max-width: 860px) {
	body { font-size: 16.5px; }
	.topbar__menu, .social--top { display: none; }
	.masthead__menu { display: grid; }
	.masthead__in { min-height: 66px; gap: 10px; }
	.masthead__apps, .masthead__kofi { display: none; }
	.masthead__end { gap: 6px; }
	.icon-btn { width: 42px; height: 42px; }
	.wordmark__badge { width: 44px; height: 44px; }
	.wordmark__badge span { font-size: 11px; }
	.wordmark__badge b { font-size: 15px; }
	.wordmark__text b { font-size: 19px; }
	.wordmark__text small { display: none; }

	.hero { grid-template-columns: 1fr; padding-top: 14px; gap: 22px; }
	.latest { position: static; }
	.card--lead .card__title { font-size: clamp(24px, 6.6vw, 32px); }
	.card--lead .card__body { padding: 16px 18px 20px; }

	.sec-head { padding-right: 124px; min-height: 0; }
	.sec-head__toon { width: 120px; bottom: auto; top: -8px; }
	.sec-head__toon img { height: 96px; }
	.sec-head__toon .toon__say { font-size: 11.5px; padding: 6px 9px; max-width: 120px; margin-bottom: 6px; }
	.sec-head__th { font-size: clamp(26px, 7vw, 32px); }
	.vsec__head, .fbsec__head { padding-right: 124px; }

	.grid--3 { grid-template-columns: 1fr; }
	.news-grid { grid-template-columns: 1fr; }
	.news-grid__b { display: grid; grid-template-columns: 1fr 1fr; }
	.news-grid__c { display: flex; }
	.story-grid { grid-template-columns: 1fr; }
	.future-list { grid-template-columns: 1fr; }
	.pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ptile { min-height: 170px; padding: 18px 16px; }
	.ptile__tag { display: none; }
	.alist__lead .card--lead { grid-template-columns: 1fr; }
	.alist__lead .card--lead .card__media .media { min-height: 0; aspect-ratio: 16 / 9; }
	.psec.is-band > .wrap, .kofi-band__in, .vsec > .wrap, .related > .wrap, .ahead__in { width: calc(100% - 20px); border-radius: 22px; }
	.kofi-band__in { grid-template-columns: 1fr; padding-top: 28px; }
	.kofi-band__text { padding-bottom: 0; }
	.kofi-band .toon { justify-self: end; margin-top: -10px; }
	.kofi-band .toon img { height: 170px; }
	.site-footer__top { grid-template-columns: 1fr; }
	.site-footer__brand { padding-right: 130px; min-height: 0; }
	.site-footer__toon { width: 130px; }
	.site-footer__toon img { height: 130px; }
	.prose { font-size: 18px; }
	.art__head { padding-top: 24px; }
	.art__hero { padding-inline: 10px; }
	.art__hero img { border-radius: 18px; }
	.vsec__grid { grid-template-columns: 1fr; }
	.vsec__list { max-height: none; flex-direction: row; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.vsec__list > li { flex: 0 0 66%; scroll-snap-align: start; }
	.vitem { grid-template-columns: 1fr; gap: 8px; }
	.vitem__title { font-size: 14.5px; }
	.fbsec__in { grid-template-columns: 1fr; }
	.fbsec__intro { position: static; }
	.fbsec__text { font-size: 16.5px; }
	.fbsec__head { grid-template-columns: 1fr; align-items: start; }
	.fbpage { border-radius: 16px; }
	.fbpage .btn { margin-left: auto; }
	.comments-wrap__toon { display: none; }
	.notfound__toon { width: 120px; }
	.totop { display: none; }
}

@media (max-width: 560px) {
	.hero__seconds { grid-template-columns: 1fr; }
	.hero__seconds .card--std, .news-grid__b .card--std { flex-direction: row-reverse; align-items: stretch; }
	.hero__seconds .card--std .card__media, .news-grid__b .card--std .card__media { width: 118px; flex: none; }
	.hero__seconds .card--std .card__media .media, .news-grid__b .card--std .media { aspect-ratio: auto; height: 100%; min-height: 110px; }
	.hero__seconds .card--std .card__title, .news-grid__b .card--std .card__title { font-size: 16px; }
	.hero__seconds .card--std .card__body, .news-grid__b .card--std .card__body { padding: 12px 14px; }
	.grid--4 { grid-template-columns: 1fr; }
	.people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.people-grid .card__quote { display: none; }
	.people-grid .card--people .card__title { font-size: 15px; }
	.data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.card__link { padding: 16px 14px; }
	.card__stat { font-size: 38px; }
	.card--data .card__title { font-size: 14.5px; }
	.news-grid__b { grid-template-columns: 1fr; }
	.story-grid__b .card--story .card__title { font-size: 16px; }
	.card--future { flex-direction: column; }
	.card--future .card__media { width: 100%; }
	.site-footer__pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact-cards { grid-template-columns: 1fr; }
	.art__byline { flex-direction: column; align-items: flex-start; }
	.share__label { display: none; }
	.psec { padding-block: 32px; }
	.support__in { grid-template-columns: 1fr; padding: 22px 20px 0; }
	.support__text { padding-bottom: 0; }
	.support .toon { justify-self: end; margin-top: -24px; }
	.support .toon img { height: 120px; }
	.ticker { font-size: 14px; }
	.fbcards--grid { columns: 1; }
	.fbsec--cards .fbcards--grid { columns: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
	.fbsec--cards .fbcards--grid .fbc { flex: 0 0 82%; margin: 0; scroll-snap-align: start; }
	.fbsec--cards .fbc__media img { max-height: 260px; }
}
