/* KSJ 2027 — Illustrated-school editorial. Static CSS, authentic school imagery. */
@font-face { font-family: Manrope; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/manrope-400.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/manrope-500.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/manrope-600.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/manrope-700.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/manrope-800.ttf') format('truetype'); }
:root {
  --navy: #12355b; --deep: #0b2846; --ink: #18354f; --muted: #536775;
  --ivory: #f8f7f2; --sage: #e8eee8; --white: #fff; --gold: #ac8545;
  --gold-light: #e7c890; --line: #d6ddd9; --width: 1340px; --space: clamp(56px, 6vw, 88px);
  --space-heading: clamp(28px, 3vw, 40px); --space-grid: clamp(20px, 2vw, 28px);
  --ease: cubic-bezier(.22, .72, .23, 1); --sans: Manrope, 'Noto Sans Thai', 'Leelawadee UI', Thonburi, Tahoma, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--ivory); }
body { position: relative; isolation: isolate; overflow-x: clip; margin: 0; color: var(--ink); background: transparent; font: 400 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
.js body { padding-right: 56px; }
body::before { content: ''; position: fixed; inset: -10vw; z-index: -1; pointer-events: none; opacity: .82; background: radial-gradient(ellipse at 13% 14%, rgb(132 177 188 / 20%), transparent 34%), radial-gradient(ellipse at 86% 42%, rgb(231 200 144 / 19%), transparent 32%), radial-gradient(ellipse at 34% 90%, rgb(180 202 184 / 22%), transparent 36%), radial-gradient(rgb(18 53 91 / 3%) .65px, transparent .8px); background-size: 125% 125%, 125% 125%, 125% 125%, 24px 24px; }
@keyframes ambient-drift { to { transform: translate3d(1.2vw, -1vh, 0) scale(1.06); } }
html.motion-on body::before { animation: ambient-drift 32s ease-in-out infinite alternate; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
img { display: block; width: 100%; height: auto; }
svg { display: block; width: 18px; height: 18px; }
[hidden] { display: none !important; }
::selection { color: var(--white); background: var(--navy); }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 500; padding: 12px 20px; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.shell { width: min(100%, var(--width)); padding-inline: 48px; margin-inline: auto; }
.section-space { position: relative; isolation: isolate; overflow: clip; padding-block: var(--space); }
.section-space > .shell, .site-footer > .shell { position: relative; z-index: 1; }
h1, h2, .quote, .footer-tagline { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 26px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; }
.eyebrow { font: 700 11px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.eyebrow::before { content: ''; display: inline-block; vertical-align: middle; width: 24px; height: 1px; background: var(--gold); margin-right: 12px; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-heading); margin-bottom: var(--space-heading); }
.section-intro h1, .section-intro h2 { max-width: 670px; }
.section-intro h1 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.section-intro > .text-link { flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding-block: 9px; border-bottom: 1px solid var(--navy); font-size: 13px; font-weight: 600; line-height: 1.55; }
.text-link > span:last-child[aria-hidden] { font-size: 19px; transition: transform .3s var(--ease); }
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.text-link:hover > span:last-child[aria-hidden] { transform: translate(3px, -3px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 52px; padding: 13px 25px; border: 1px solid transparent; border-radius: 100px; font-size: 13px; font-weight: 600; line-height: 1.5; transition: background .25s, color .25s, transform .25s var(--ease); }
.button-navy { color: var(--white); background: var(--navy); }
.button-navy:hover { background: var(--deep); transform: translateY(-2px); }
.button > [aria-hidden] { font-size: 19px; }

/* Compact navigation keeps the language switch exposed on every screen. */
.site-header { position: relative; top: 0; z-index: 100; border-bottom: 1px solid rgb(172 133 69 / 28%); background: rgb(255 255 255 / 97%); }
.js .site-header { position: sticky; }
.site-header.is-scrolled { box-shadow: 0 5px 28px rgb(11 40 70 / 7%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.header-inner.shell { width: min(100%, 1680px); padding-inline: 24px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-wordmark { font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.brand small { display: block; margin-top: 7px; font-size: 7px; letter-spacing: .1em; font-weight: 600; line-height: 1.6; }
.primary-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.primary-nav > a, .nav-dropdown > summary { display: flex; align-items: center; gap: 7px; min-height: 48px; font-size: clamp(14px, calc(1.25vw - 2px), 16px); font-weight: 600; white-space: nowrap; cursor: pointer; }
.primary-nav > a { position: relative; }
.primary-nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.primary-nav > a:hover::after, .primary-nav > a.is-active::after { transform: scaleX(1); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary::after { content: ''; width: 5px; height: 5px; border-bottom: 1px solid; border-right: 1px solid; transform: rotate(45deg); margin-top: -3px; }
.nav-dropdown[open] > summary::after { transform: rotate(225deg); margin-top: 2px; }
.dropdown-links { position: absolute; left: -20px; top: calc(100% + 9px); z-index: 120; min-width: 220px; padding: 12px; max-height: 65dvh; overflow-y: auto; background: var(--white); box-shadow: 0 15px 50px rgb(11 40 70 / 14%); border: 1px solid var(--line); border-radius: 10px; }
.dropdown-links a { display: block; padding: 10px 11px; font-size: 14px; font-weight: 500; border-radius: 5px; }
.dropdown-links a:hover { background: var(--ivory); }
.curriculum-dropdown .dropdown-links { min-width: 200px; }
.curriculum-dropdown .dropdown-links a { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 44px; }
.curriculum-dropdown > summary.is-active > span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px; }
.mobile-sections { display: none; }
.mobile-chapter-links a[aria-current='location'] { color: var(--navy); background: rgb(231 200 144 / 22%); font-weight: 700; }
.dropdown-label { padding: 8px 10px; font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.header-actions { display: flex; flex: 0 0 auto; gap: 16px; align-items: center; }
.header-apply { min-height: 48px; padding: 11px 22px; gap: 16px; font-size: 13px; }
.primary-nav > .header-apply::after { content: none; }
.primary-nav > .header-apply { color: var(--white); gap: 12px; }
.language-dock { display: none; width: 144px; padding-inline: 5px; border: 1px solid rgb(18 53 91 / 9%); border-radius: 10px; background: var(--ivory); color: var(--navy); }
.js .language-dock { display: block; }
.language-dock-heading { display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.language-dock-heading svg { width: 11px; height: 11px; margin-right: 3px; }
.language-switch { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 6px; min-height: 44px; padding: 5px 0; border: 0; background: transparent; font-size: 11px; font-weight: 700; }
.language-option { white-space: nowrap; color: var(--muted); }
.language-name-short { display: none; }
html[lang='en'] .language-option-en, html[lang='th'] .language-option-th { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.language-track { flex: 0 0 42px; width: 42px; height: 24px; padding: 3px; background: var(--navy); border-radius: 30px; }
.language-thumb { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transform: translateX(0); transition: transform .25s var(--ease); }
.language-switch[aria-checked='true'] .language-thumb { transform: translateX(18px); }
.menu-trigger { display: none; justify-content: center; align-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-lines { position: relative; width: 17px; height: 1px; background: var(--navy); }
.menu-lines::before, .menu-lines::after { position: absolute; content: ''; width: 17px; height: 1px; left: 0; background: var(--navy); transition: transform .25s, top .25s; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }
.menu-trigger[aria-expanded='true'] .menu-lines { background: transparent; }
.menu-trigger[aria-expanded='true'] .menu-lines::before { top: 0; transform: rotate(45deg); }
.menu-trigger[aria-expanded='true'] .menu-lines::after { top: 0; transform: rotate(-45deg); }
.reading-progress { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 3px; z-index: 101; pointer-events: none; overflow: hidden; background: rgb(18 53 91 / 10%); }
.js .reading-progress { display: block; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--gold); transform-origin: top; transform: scaleY(0); }

/* The rail lives in the body's reserved 56px viewport gutter, never over the content shell. */
.journey-rail { display: none; }
.js .journey-rail { position: fixed; top: 50%; right: 6px; z-index: 85; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 44px; padding-block: 10px; border: 1px solid rgb(18 53 91 / 10%); border-radius: 30px; background: rgb(248 247 242 / 97%); transform: translateY(-50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s, visibility .35s; }
.js .journey-rail.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.journey-track { position: absolute; z-index: -1; top: 11px; bottom: 11px; left: 50%; width: 1px; transform: translateX(-50%); background: rgb(18 53 91 / 18%); }
.journey-fill { display: block; width: 1px; height: 100%; transform: scaleY(0); transform-origin: top; background: var(--gold); }
.journey-rail a { position: relative; display: grid; place-items: center; width: 42px; height: 44px; border-radius: 50%; }
.journey-dot { width: 7px; height: 7px; border: 1px solid var(--navy); border-radius: 50%; background: var(--ivory); transition: width .25s, height .25s, border .25s, background .25s; }
.journey-rail a[aria-current='location'] .journey-dot { width: 12px; height: 12px; border: 3px solid var(--white); background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.journey-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* The supplied KSJ welcome banner leads directly into the bilingual introduction. */
.hero, .hero-banner-region { position: relative; isolation: isolate; background: radial-gradient(circle at 8% 85%, #e7cd9b 0, transparent 26%), linear-gradient(118deg, #f7f3e8 0%, #e3ece8 52%, #f4e8cf 100%); overflow: clip; }
.hero-banner { position: relative; width: min(calc(100% - 32px), 1568px); margin: 16px auto 0; padding: 10px; border: 1px solid rgb(172 133 69 / 45%); border-radius: 8px; background: var(--white); box-shadow: 0 14px 40px rgb(18 53 91 / 12%); overflow: hidden; }
.hero-banner::after { content: ''; position: absolute; inset: 5px; border: 1px solid rgb(172 133 69 / 35%); border-radius: 4px; pointer-events: none; }
.hero-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1845 / 702; object-fit: contain; }
.hero-banner-caption { padding: 10px 14px 0; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.hero-intro { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; padding-block: 74px 60px; }
.hero-title, .hero-copy { position: relative; min-width: 0; }
.hero-title { padding-bottom: 30px; }
.hero-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100px; height: 6px; background: var(--gold); box-shadow: 20px 10px 0 rgb(172 133 69 / 20%); }
.hero-title > .eyebrow { display: inline-block; padding: 8px 13px; border: 1px solid rgb(18 53 91 / 15%); border-radius: 100px; background: rgb(255 255 255 / 60%); }
.hero-copy { padding: 34px; border: 1px solid rgb(255 255 255 / 50%); border-radius: 8px 30px 8px 8px; color: var(--white); background: linear-gradient(145deg, #12355b, #214b69); box-shadow: 9px 10px 0 rgb(172 133 69 / 24%), 0 22px 46px rgb(18 53 91 / 15%); }
.hero-copy::before { content: ''; position: absolute; top: 13px; right: 15px; width: 32px; height: 5px; background: radial-gradient(circle, var(--gold-light) 2px, transparent 2.5px) 0 0 / 11px 5px; }
.display-title { font-size: clamp(44px, 5.1vw, 72px); line-height: 1.04; letter-spacing: -.045em; max-width: 620px; text-wrap: balance; }
.hero-description { color: #edf2f5; font-size: 15px; line-height: 1.9; max-width: 610px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 25px; align-items: center; margin-top: 25px; }
.hero-actions .text-link { color: #f2d7a5; border-color: #a5baca; font-size: 12px; }
.hero-actions .text-link:hover { color: var(--white); border-color: var(--white); }
.hero-actions .button-navy { color: var(--navy); background: var(--white); }
.hero-actions .button-navy:hover { background: var(--gold-light); }
.hero-tagline { margin-top: 21px; color: var(--gold-light); font: italic 16px/1.45 var(--serif); }
.hero-school-name { margin-top: 18px; padding-top: 15px; border-top: 1px solid rgb(255 255 255 / 20%); max-width: 420px; font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #d7e2e8; text-transform: uppercase; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; border-top: 1px solid rgb(172 133 69 / 35%); background: linear-gradient(90deg, rgb(255 255 255 / 48%), transparent); }
.scroll-cue { display: inline-flex; gap: 30px; align-items: center; font-size: 11px; font-weight: 600; }
.scroll-cue > [aria-hidden] { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; }
.motion-toggle { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: transparent; font-size: 10px; color: var(--muted); }
.motion-toggle:hover { color: var(--navy); }
.motion-symbol { font-size: 15px; }

/* Four learning levels are displayed together; this grid simply reflows on phones. */
.programme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: var(--space-grid); margin-top: 0; padding-bottom: 12px; }
.programme-card { --card-accent: #12355b; display: flex; position: relative; min-width: 0; flex-direction: column; padding: 10px; border: 1px solid rgb(18 53 91 / 13%); border-bottom: 4px solid var(--card-accent); border-radius: 22px 22px 8px 8px; background: var(--white); box-shadow: 0 12px 28px rgb(18 53 91 / 9%); transition: transform .4s var(--ease), box-shadow .4s; }
.programme-card:nth-child(2) { --card-accent: #937239; }
.programme-card:nth-child(3) { --card-accent: #3c766b; }
.programme-card:nth-child(4) { --card-accent: #496985; }
.programme-card:focus-within { box-shadow: 0 18px 40px rgb(18 53 91 / 17%); }
.programme-card:nth-child(even) { margin-top: 26px; }
.programme-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 1.14; border-radius: 14px 14px 4px 4px; background: var(--sage); }
.programme-card:nth-child(even) .programme-photo { border-radius: 14px 48px 4px 4px; }
.programme-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.programme-photo:hover img { transform: scale(1.035); }
.photo-index { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 46px; height: 46px; border: 3px double var(--gold-light); border-radius: 50%; background: var(--card-accent); font: 400 23px/1 var(--serif); color: var(--white); }
.programme-copy { display: flex; flex: 1; flex-direction: column; padding: 22px 12px 14px; }
.programme-copy .eyebrow { color: var(--muted); font-size: 9px; margin-bottom: 8px; }
.programme-copy .eyebrow::before { width: 16px; margin-right: 8px; }
.programme-copy h3 { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.body-copy { font-size: 12px; color: var(--muted); line-height: 1.82; margin-block: 13px 17px; }
.programme-copy .text-link { align-self: flex-start; margin-top: auto; min-height: 44px; font-size: 11px; gap: 15px; }
.programme-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.programme-pathway { display: inline-flex; flex: 1 1 105px; min-width: 0; min-height: 44px; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 9px; border: 1px solid #c5d4dc; border-radius: 7px; background: #f1f5f6; color: var(--navy); font-size: 10px; font-weight: 700; line-height: 1.5; transition: color .2s, background .2s, border-color .2s; }
.programme-pathway > span:first-child { min-width: 0; }
.programme-pathway > [aria-hidden] { flex: 0 0 auto; font-size: 15px; }
.programme-pathway--icep { border-color: #ddccab; background: #fbf4e7; }
.programme-pathway:hover, .programme-pathway:focus-visible { border-color: var(--navy); background: var(--navy); color: var(--white); }
@keyframes programme-in { from { opacity: .3; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

/* The welcome image lives at the top; these are the two separate student-life notices. */
.school-life { position: relative; isolation: isolate; overflow: clip; color: var(--white); background: radial-gradient(ellipse at 85% 20%, rgb(95 144 143 / 40%), transparent 38%), linear-gradient(125deg, #12355b, #244b62 62%, #102f4d); }
.school-life .eyebrow { color: #ecdbb8; }
.school-life .text-link { color: #edf2f5; border-color: #a0b4c4; }
.school-life .text-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
.school-life::before, .school-life::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.school-life::before { top: 8%; left: -225px; width: 570px; height: 570px; border: 1px solid rgb(231 200 144 / 30%); box-shadow: 0 0 0 42px rgb(255 255 255 / 5%), 0 0 0 92px rgb(231 200 144 / 4%); }
.school-life::after { right: -135px; bottom: 8%; width: 410px; height: 410px; background: radial-gradient(circle, rgb(231 200 144 / 28%), rgb(132 177 188 / 8%) 54%, transparent 72%); }
.motion-on .school-life::before { animation: orbit-drift 34s ease-in-out infinite alternate; }
.motion-on .school-life::after { animation: ambient-drift 24s ease-in-out infinite alternate-reverse; }
@keyframes orbit-drift { to { transform: translate3d(28px, 18px, 0) rotate(8deg); } }
.school-life > .shell { position: relative; z-index: 1; }
.newsroom { width: 100%; }
.news-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; border-bottom: 1px solid rgb(255 255 255 / 22%); padding-bottom: 14px; }
.news-edition { color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-result { color: #d7e2e9; font-size: 11px; white-space: nowrap; }
.news-filters { display: none; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.js .news-filters { display: flex; }
.news-filter { min-height: 44px; border: 1px solid rgb(255 255 255 / 26%); border-radius: 100px; padding: 8px 18px; color: #fff; background: transparent; font-size: 11px; transition: color .2s, background .2s; }
.news-filter:hover, .news-filter[aria-pressed='true'] { color: var(--deep); background: var(--gold-light); border-color: var(--gold-light); }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-grid); align-items: stretch; }
.news-card { min-width: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / 15%); border-radius: 14px; color: var(--ink); background: var(--white); box-shadow: 0 9px 28px rgb(0 0 0 / 13%); }
.news-link { display: flex; position: relative; flex-direction: column; height: 100%; min-height: 290px; }
.news-cover { display: block; position: relative; overflow: hidden; aspect-ratio: 2 / 1; background: #dee8e5; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.motion-on .news-cover img { transition: transform .7s var(--ease); }
.motion-on .news-link:hover .news-cover img { transform: scale(1.045); }
.news-content { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; }
.news-category { align-self: flex-start; color: #7b5926; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.news-content h3 { font-family: var(--sans); font-size: clamp(16px, 1.45vw, 21px); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; text-wrap: balance; }
.news-summary { color: var(--muted); font-size: 12px; line-height: 1.7; }
.news-action { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 7px; margin-top: auto; color: var(--navy); font-size: 10px; font-weight: 700; }
.news-action > [aria-hidden] { font-size: 18px; }
.news-link:focus-visible { outline-offset: -5px; }
.news-card--feature { grid-column: span 2; grid-row: span 2; }
.news-card--feature .news-link { min-height: 610px; justify-content: flex-end; }
.news-card--feature .news-cover { position: absolute; inset: 0; aspect-ratio: auto; }
.news-card--feature .news-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 12%, rgb(8 29 48 / 12%) 38%, rgb(8 29 48 / 97%) 100%); }
.news-card--feature .news-content { position: relative; flex: 0 0 auto; padding: 30px; gap: 15px; }
.news-card--feature h3 { color: #fff; font-family: var(--serif); font-size: clamp(32px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -.035em; }
.news-card--feature .news-category { padding: 4px 10px; border-radius: 100px; color: var(--deep); background: var(--gold-light); }
.news-card--feature .news-summary, .news-card--feature .news-action { color: #e8f0f4; font-size: 12px; }
.news-card--film .news-cover::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 36px; text-shadow: 0 2px 12px rgb(0 0 0 / 70%); background: rgb(11 40 70 / 12%); }
.news-grid.is-filtered { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-grid.is-filtered .news-card--feature { grid-column: auto; grid-row: auto; }
.news-grid.is-filtered .news-card--feature .news-link { min-height: 380px; }
html[lang='th'] .news-content h3 { font-family: var(--sans); font-weight: 700; letter-spacing: 0; line-height: 1.45; }
html[lang='th'] .news-card--feature h3 { font-size: clamp(28px, 2.7vw, 38px); }
.media-open { position: relative; display: block; overflow: hidden; background: #f0f3ef; border-radius: 5px; cursor: zoom-in; }
.media-open img { transition: opacity .25s; }
.media-open:hover img { opacity: .91; }
.expand-icon { position: absolute; display: grid; place-items: center; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--white); font-size: 20px; box-shadow: 0 2px 10px rgb(0 0 0 / 8%); }

/* Leadership is a typographic feature with a quiet signature portrait. */
.leadership-layout { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); }
.leadership-main { flex: 1; min-width: 0; }
.leadership h2 { max-width: 720px; font-size: clamp(36px, 4vw, 54px); }
.quote-region { position: relative; margin-top: 35px; padding: 32px; border: 1px solid rgb(172 133 69 / 24%); border-bottom: 4px solid var(--gold); border-radius: 5px 30px 5px 5px; background: #fffdf8; box-shadow: 8px 10px 0 #dfe8e4, 0 16px 38px rgb(18 53 91 / 6%); }
.quote-region::before { content: ''; position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); border-radius: 0 20px 0 0; pointer-events: none; }
.quote-mark { display: block; font: 80px/.8 var(--serif); color: var(--gold); }
.quote-stack { display: grid; align-items: start; margin-top: 5px; }
.quote { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.5; letter-spacing: -.018em; }
.quote + .quote { margin-top: 25px; }
.js .quote { grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none; margin: 0; }
.js .quote.active { visibility: visible; opacity: 1; pointer-events: auto; }
.motion-on .quote.active { animation: programme-in .5s var(--ease); }
.quote-controls { display: none; gap: 10px; align-items: center; margin-top: 28px; }
.js .quote-controls { display: flex; }
.quote-dot { width: 40px; min-height: 44px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: 11px; }
.quote-dot[aria-pressed='true'] { color: var(--navy); border-color: var(--gold); }
.quote-pause { margin-left: auto; padding: 8px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 100px; background: transparent; font-size: 11px; }
.leader-portrait { position: relative; flex: 0 0 245px; align-self: center; padding: 12px 12px 21px; border: 3px double rgb(172 133 69 / 55%); border-radius: 160px 160px 8px 8px; background: var(--white); box-shadow: 9px 10px 0 #dae5e5, 0 20px 40px rgb(18 53 91 / 8%); }
.leader-portrait img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 160px 160px 4px 4px; }
.leader-portrait figcaption { margin-top: 23px; text-align: center; }
.leader-portrait strong { display: block; font-size: 15px; font-weight: 600; }
.leader-portrait figcaption > span { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.leader-portrait figcaption > span { overflow-wrap: anywhere; }

/* A broad school film anchors the factual story. */
.school-story { background: var(--deep); color: var(--white); }
.school-story .eyebrow { color: #d0dce1; }
.story-caption { color: #cbd5de; font-size: 12px; max-width: 240px; }
.school-video { width: 100%; padding: 8px; border: 3px double rgb(231 200 144 / 50%); background: #081d32; aspect-ratio: 2 / 1; border-radius: 14px; box-shadow: 0 24px 54px rgb(0 0 0 / 23%); overflow: hidden; }
.school-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #081d32; }
.school-stats { display: flex; gap: var(--space-grid); margin-top: 40px; }
.school-stat { flex: 1; min-width: 0; padding: 24px; border: 1px solid rgb(255 255 255 / 18%); border-top: 3px solid var(--gold-light); border-radius: 4px 18px 4px 4px; background: rgb(255 255 255 / 6%); box-shadow: 0 10px 22px rgb(0 0 0 / 8%); }
.fact-value { display: block; color: var(--gold-light); font: 400 66px/1.1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.fact-value small { font-size: .55em; }
.school-stat p { color: #d8e1e6; font-size: 12px; line-height: 1.8; margin-top: 14px; }
.facts-note { margin-top: 28px; font-size: 10px; color: #c3cfd9; }

/* Swipeable editorial galleries, full posters remain available in the dialog. */
.editorial-index { font-size: 9px; letter-spacing: .15em; color: var(--muted); flex: 0 0 auto; }
.gallery-track { display: flex; align-items: flex-start; gap: 26px; overflow-x: auto; padding: 12px 3px 28px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #b7c6bf transparent; overscroll-behavior-x: contain; }
.gallery-item { flex: 0 0 calc((100% - 52px) / 3); min-width: 0; padding: 10px; border: 1px solid rgb(18 53 91 / 14%); border-radius: 12px 12px 4px 4px; background: var(--white); box-shadow: 5px 7px 0 rgb(172 133 69 / 16%); scroll-snap-align: start; }
.gallery-item:nth-child(even) { margin-top: 28px; }
.gallery-item .media-open img { aspect-ratio: 1 / 1; object-fit: contain; }
.gallery-caption { padding: 14px 4px 6px; font-size: 11px; color: var(--muted); }
.gallery-controls { display: none; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; }
.js .gallery-controls { display: flex; }
.gallery-position { color: var(--muted); font-size: 10px; }
.gallery-meter { flex: 1; max-width: 190px; height: 1px; background: var(--line); margin-left: auto; overflow: hidden; }
.gallery-meter span { display: block; width: 100%; height: 100%; transform-origin: left; background: var(--navy); }
.gallery-buttons { display: flex; gap: 10px; }
.gallery-buttons button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 20px; transition: background .2s, color .2s; }
.gallery-buttons button:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.gallery-buttons button:disabled { opacity: .4; }
.sponsors { border-top: 1px solid var(--line); }
.sponsors .gallery-item { flex-basis: calc((100% - 78px) / 4); }
.sponsors .gallery-item:nth-child(even) { margin-top: 0; }
.sponsors .gallery-item .media-open img { aspect-ratio: 1.42; }

/* Layered school-color surfaces make the long editorial story feel connected. */
#programmes { background: radial-gradient(rgb(18 53 91 / 7%) 1px, transparent 1.5px) 0 0 / 22px 22px, linear-gradient(118deg, #f5f1e6, #e3ece6 62%, #f3ead6); }
#headmaster { background: radial-gradient(ellipse at 82% 25%, rgb(231 200 144 / 36%), transparent 34%), linear-gradient(116deg, #fbf6e9, #f6f6ef 56%, #dfeae8); }
.school-story { background: radial-gradient(ellipse at 91% 0%, rgb(231 200 144 / 17%), transparent 33%), linear-gradient(118deg, #0b2846 0%, #173c5b 54%, #102e4b 100%); }
#achievements { background: repeating-linear-gradient(-45deg, transparent 0 22px, rgb(18 53 91 / 3%) 22px 23px), linear-gradient(122deg, #e3ede7, #f9f4e9 48%, #dfe9ee); }

#questions { background: linear-gradient(118deg, #eff3eb, #e4ede9); }
.sponsors { background: radial-gradient(rgb(172 133 69 / 12%) 1px, transparent 1.5px) 0 0 / 24px 24px, linear-gradient(118deg, #f5f0e1, #f5f3e9 58%, #e4edef); }


/* Admissions and an open FAQ form one logical family-facing journey. */
.admissions { background: radial-gradient(ellipse at 4% 85%, rgb(172 133 69 / 26%), transparent 38%), linear-gradient(122deg, #f0dfb9, #f3ead3 55%, #d9e6df); }
.admission-layout { display: flex; gap: 40px; align-items: center; width: min(calc(100% - 64px), 1244px); padding: 36px; border: 1px solid rgb(255 255 255 / 95%); border-radius: 6px 38px 6px 6px; background: rgb(255 253 245 / 89%); box-shadow: 10px 12px 0 rgb(172 133 69 / 14%), 0 24px 58px rgb(18 53 91 / 9%); }
.admission-copy { flex: 1.1; }
.admission-copy h2 { max-width: 650px; font-size: clamp(46px, 5.6vw, 76px); }
.large-copy { margin-block: 27px 30px; color: var(--muted); font-size: 16px; max-width: 400px; }
.admission-note { margin-top: 24px; font-size: 10px; color: var(--muted); }
.open-day { flex: .85; min-width: 0; padding: 18px; border: 1px solid rgb(18 53 91 / 15%); border-radius: 22px 4px 22px 4px; background: var(--white); box-shadow: 6px 8px 0 #dbe6e1; }
.open-day-photo { overflow: hidden; border-radius: 14px 4px 48px 4px; margin-bottom: 25px; }
.open-day-photo img { aspect-ratio: 1.65; object-fit: cover; }
.open-day h3 { font: 400 32px/1.2 var(--serif); letter-spacing: -.025em; }
.open-day p { margin-block: 15px 20px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.35fr; gap: clamp(36px, 5vw, 64px); }
.faq-layout h2 { max-width: 400px; }
.faq-item { margin-bottom: 12px; border: 1px solid rgb(18 53 91 / 17%); border-radius: 12px; background: rgb(255 255 255 / 84%); }
.faq-item[open] { border-color: rgb(172 133 69 / 55%); box-shadow: 5px 7px 0 rgb(172 133 69 / 13%); }
.faq-item:last-child { margin-bottom: 0; }
.faq-item summary { display: flex; align-items: center; gap: 18px; min-height: 82px; padding: 19px 20px; font-size: 15px; font-weight: 600; cursor: pointer; }
.faq-number { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid rgb(172 133 69 / 40%); border-radius: 50%; color: var(--navy); background: #f4ead6; font-size: 10px; font-weight: 600; }
.faq-symbol { position: relative; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; margin-left: auto; }
.faq-symbol::before, .faq-symbol::after { content: ''; position: absolute; left: 7px; top: 11px; width: 9px; height: 1px; background: var(--navy); }
.faq-symbol::after { transform: rotate(90deg); }
.faq-item[open] .faq-symbol { background: var(--navy); border-color: var(--navy); }
.faq-item[open] .faq-symbol::before { background: var(--white); }
.faq-item[open] .faq-symbol::after { display: none; }
.faq-answer { padding: 0 28px 27px 66px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.motion-on .faq-item[open] .faq-answer { animation: programme-in .35s var(--ease); }

/* Contacts have their own clear destination; nothing is obscured by overlays. */
.site-footer { position: relative; isolation: isolate; overflow: clip; padding-top: var(--space); padding-bottom: 26px; border-top: 6px solid var(--gold); color: var(--white); background: radial-gradient(ellipse at 92% 0%, rgb(67 108 133 / 42%), transparent 40%), linear-gradient(125deg, #0b2846, #12355b 64%, #0a243f); }
.contact-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 42px; border-bottom: 1px solid rgb(255 255 255 / 20%); }
.contact-heading .eyebrow { width: 100%; margin-bottom: 0; color: #c8d5dd; }
.contact-heading h2 { font-size: clamp(60px, 7vw, 104px); }
.light-link { border-color: #8fabbf; color: var(--white); }
.light-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
.contact-layout { display: grid; grid-template-columns: 1fr .9fr 1.15fr; gap: clamp(28px, 3vw, 44px); padding-block: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-brand img { width: 50px; height: 50px; object-fit: contain; }
.footer-brand strong { font-size: 29px; font-weight: 700; letter-spacing: -.04em; }
.footer-intro { color: #c9d7e0; font-size: 11px; line-height: 1.9; }
.footer-tagline { font-size: 26px; line-height: 1.2; margin-top: 26px; }
.footer-tagline em { color: var(--gold-light); font-weight: 400; }
.social-links { display: flex; gap: 10px; margin-top: 24px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; transition: color .2s, background .2s; }
.social-link:hover { color: var(--deep); background: var(--gold-light); }
.social-link svg { width: 14px; height: 14px; }
.contact-block { margin-bottom: 24px; }
.contact-block h3 { color: #b2c5d2; font: 500 10px/1.7 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.contact-block a, .contact-block address { font-size: 12px; font-style: normal; overflow-wrap: anywhere; }
.contact-block .text-link { font-size: 11px; gap: 10px; }
.contact-map { min-width: 0; padding: 8px; border: 1px solid rgb(231 200 144 / 45%); overflow: hidden; border-radius: 12px; background: rgb(255 255 255 / 7%); }
.contact-details { padding: 23px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 12px; background: rgb(255 255 255 / 5%); }
.contact-map iframe { border: 0; display: block; width: 100%; height: 100%; min-height: 330px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgb(255 255 255 / 20%); padding-top: 22px; font-size: 10px; color: #c0d0db; }
.footer-shortcuts { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-shortcuts a { display: inline-flex; min-height: 44px; align-items: center; }


/* Graphic chapter landmarks. Decoration is separate from content and hit targets. */
.section-heading-group { position: relative; padding-left: 78px; }
.chapter-medallion { display: grid; place-items: center; position: absolute; left: 0; top: 3px; width: 55px; height: 55px; border: 1px solid var(--navy); border-radius: 50%; background: #fbf8ee; color: var(--navy); box-shadow: 4px 5px 0 rgb(172 133 69 / 24%); font: 400 23px/1 var(--serif); }
.section-heading-group > .eyebrow { margin-bottom: 13px; }
.school-life .chapter-medallion, .school-story .chapter-medallion { background: rgb(255 255 255 / 7%); color: var(--gold-light); border-color: var(--gold-light); box-shadow: 4px 5px 0 rgb(231 200 144 / 12%); }
.section-decoration { --deco-color: #ac8545; position: absolute; z-index: 0; top: 30px; right: -30px; width: 190px; height: 190px; opacity: .4; pointer-events: none; user-select: none; }
.decoration-ring { position: absolute; inset: 25px; border: 1px solid var(--deco-color); border-radius: 50%; }
.decoration-ring::before { content: ''; position: absolute; inset: 10px; border: 1px dashed var(--deco-color); border-radius: 50%; }
.decoration-ring::after { content: ''; position: absolute; top: 20px; left: 10px; width: 12px; height: 12px; border: 3px solid #f5eddd; background: var(--deco-color); border-radius: 50%; }
.decoration-dots { position: absolute; right: -22px; top: 20px; width: 110px; height: 110px; background: radial-gradient(circle, var(--deco-color) 1.8px, transparent 2px) 0 0 / 14px 14px; transform: rotate(12deg); }
.decoration-spark { position: absolute; left: 12px; bottom: 12px; width: 45px; height: 45px; background: var(--deco-color); clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%); }
.school-life .section-decoration, .school-story .section-decoration, .site-footer .section-decoration { --deco-color: #e7c890; }
.hero-intro .section-decoration { top: auto; bottom: 10px; left: -80px; right: auto; opacity: .25; }
#programmes > .section-decoration { top: auto; bottom: 24px; left: -65px; right: auto; }
#headmaster > .section-decoration { top: 45px; right: 25px; opacity: .3; }
#achievements > .section-decoration, #sponsors > .section-decoration { top: -45px; right: 4%; }
#admissions > .section-decoration { top: auto; bottom: 8px; left: -20px; right: auto; }
#questions > .section-decoration { top: auto; bottom: 4px; right: -20px; }
.site-footer > .section-decoration { top: 25px; right: 9%; width: 240px; height: 240px; opacity: .24; }
@keyframes graphic-orbit { to { rotate: 360deg; } }
@keyframes graphic-breathe { to { scale: 1.12; rotate: 10deg; } }
.motion-on .decoration-ring { animation: graphic-orbit 48s linear infinite; }
.motion-on .decoration-spark { animation: graphic-breathe 9s ease-in-out infinite alternate; }
.motion-on .section-decoration .decoration-dots { animation: ambient-drift 26s ease-in-out infinite alternate; }
.js .journey-rail { box-shadow: 0 8px 30px rgb(18 53 91 / 12%); }
.journey-rail a { min-height: 36px; }
.journey-track { top: 23px; bottom: 23px; }
.journey-name { right: 43px; }
@media (hover: hover) and (pointer: fine) {
  .motion-on .programme-card:hover { transform: translateY(-7px) rotate(-.5deg); box-shadow: 0 24px 45px rgb(18 53 91 / 16%); }
  .motion-on .programme-card:nth-child(even):hover { transform: translateY(-7px) rotate(.5deg); }
}
@media (max-width: 900px) {
  .section-heading-group { padding-left: 64px; }
  .chapter-medallion { width: 45px; height: 45px; font-size: 20px; }
  .section-decoration { width: 145px; height: 145px; opacity: .25; }
}
@media (max-width: 600px) {
  .hero-banner { width: calc(100% - 16px); margin-top: 8px; padding: 5px; }
  .hero-banner::after { inset: 2px; }
  .hero-banner-caption { padding: 8px 6px 2px; font-size: 8px; }
  .hero-copy { padding: 27px 24px; }
  .hero-title { padding-bottom: 23px; }
  .section-heading-group { padding-left: 52px; }
  .chapter-medallion { width: 36px; height: 36px; font-size: 17px; }
  .section-heading-group > .eyebrow { margin-bottom: 12px; }
  .section-decoration { width: 125px; height: 125px; opacity: .22; }
  .decoration-dots { width: 80px; height: 80px; }
  #headmaster > .section-decoration { right: -35px; }
  .faq-layout .section-heading-group { padding-right: 0; }
  .school-video { padding: 4px; }
  .contact-details { padding: 22px; }
}
.motion-paused .programme-card:hover { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .motion-on .programme-card:hover { transform: none !important; }
}

/* Native modal and progressive motion. */
.image-dialog { max-width: 1050px; width: 92vw; max-height: 92dvh; border: 0; border-radius: 10px; padding: 45px 22px 20px; background: var(--white); color: var(--ink); }
.image-dialog::backdrop { background: rgb(5 23 40 / 87%); }
.image-dialog img { height: auto; max-height: 75dvh; width: auto; max-width: 100%; object-fit: contain; margin-inline: auto; }
.image-dialog figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; }
.dialog-close { position: absolute; right: 9px; top: 7px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 25px; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; z-index: 80; width: 42px; height: 42px; border: 1px solid #869bad; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 20px; }
.reveal-ready [data-reveal] { transition: opacity .7s var(--ease), translate .8s var(--ease); }
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; translate: 0 28px; }
.reveal-ready [data-reveal].is-visible, .reveal-ready [data-reveal]:focus-within { opacity: 1; translate: 0 0; }
.motion-on [data-drift] img { transform: translateY(var(--drift, 0px)) scale(1.035); }
.motion-on .programme-photo:hover img { transform: translateY(var(--drift, 0px)) scale(1.055); }
html[lang='th'] { --serif: 'Noto Sans Thai', 'Leelawadee UI', Thonburi, Tahoma, sans-serif; }
html[lang='th'] h1, html[lang='th'] h2, html[lang='th'] .quote { line-height: 1.35; letter-spacing: -.02em; }
html[lang='th'] .eyebrow { letter-spacing: .02em; }
html[lang='th'] .display-title { font-size: clamp(42px, 4.3vw, 64px); }
html[lang='th'] .programme-copy h3 { font-size: clamp(20px, 1.7vw, 25px); }
html[lang='th'] .quote { font-size: clamp(24px, 2.3vw, 32px); }
html[lang='th'] .primary-nav { gap: 14px; }
.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused [data-reveal] { opacity: 1 !important; translate: none !important; }
.motion-paused [data-drift] img, .motion-paused .programme-photo:hover img { transform: none; }
.motion-paused .notice-link, .motion-paused .notice-link:hover, .motion-paused .notice-link:nth-child(even) { transform: none !important; translate: none !important; }
.motion-paused .button:hover, .motion-paused .text-link:hover > [aria-hidden] { transform: none; }

/* The layout is rebuilt around content fit, not a legacy column framework. */
@media (max-width: 1250px) {
  .header-inner { gap: 18px; }
  .primary-nav, html[lang='th'] .primary-nav { gap: 16px; }
  .primary-nav > a, .nav-dropdown > summary { font-size: 14px; }
  .header-actions { gap: 13px; }
  .header-apply { padding-inline: 16px; }
  .hero-intro { gap: 48px; }
  .programme-grid { gap: 20px; }
  .contact-layout { gap: 35px; }
}
@media (max-width: 1280px) {
  .js body { padding-right: 6px; }
  .js .journey-rail { display: none; }
  .hero-intro { padding-block: 50px 44px; gap: 32px; }
  .hero-copy { padding: 26px; }
  .admission-layout { width: calc(100% - 48px); padding: 32px; }
  .display-title { font-size: 59px; }
  .leadership-layout { gap: 65px; }
  .leader-portrait { flex-basis: 215px; }
  .admission-layout { gap: 40px; }
  .faq-layout { gap: 40px; }
  .school-stats { gap: 26px; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .contact-map { grid-column: 1 / -1; }
  .contact-map iframe { min-height: 280px; }
}

/* Overflow links live in a disclosure, never a second sticky header row. */
.nav-overflow-panel { left: auto; right: 0; width: min(320px, calc(100vw - 48px)); }
.nav-overflow-panel > a { display: flex; align-items: center; min-height: 44px; }
.nav-overflow-panel > .nav-dropdown > summary { padding: 10px 11px; min-height: 44px; justify-content: space-between; font-size: 14px; border-radius: 5px; }
.nav-overflow-panel > .nav-dropdown > summary:hover { background: var(--ivory); }
.nav-overflow-panel > .nav-dropdown > .dropdown-links { position: static; min-width: 0; margin: 0 0 8px; box-shadow: none; border: 0; background: var(--ivory); }
.js .primary-nav { min-width: 0; flex: 1 1 0; }
.js .primary-nav > a, .js .primary-nav > .nav-dropdown { flex: 0 0 auto; }
.js .primary-nav { flex-wrap: nowrap; }
.js .primary-nav .nav-overflow { margin-left: auto; }
@media (min-width: 769px) and (max-width: 1280px) {
  html { scroll-padding-top: 102px; }
  .header-inner { display: flex; gap: 16px; min-height: 78px; padding-block: 8px; }
  .js .brand-wordmark { display: none; }
  .primary-nav, html[lang='th'] .primary-nav { min-width: 0; margin: 0; padding: 0; border: 0; gap: 12px; }
  .primary-nav > a, .nav-dropdown > summary { font-size: 14px; }
  .primary-nav > .header-apply { padding-inline: 16px; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .primary-nav { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; min-height: 82px; gap: 0; padding-block: 10px; }
  .mobile-sections { display: block; }
  .header-actions { margin-left: auto; }
  .primary-nav, html[lang='th'] .primary-nav { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding-top: 15px; }
  .js .primary-nav { display: none; flex: 0 0 100%; }
  .js .primary-nav.is-open { display: flex; max-height: calc(100dvh - 85px); overflow-y: auto; }
  .primary-nav > a, .nav-dropdown > summary { padding-block: 8px; min-height: 48px; font-size: 16px; border-top: 1px solid var(--line); }
  .dropdown-links { position: static; box-shadow: none; border: 0; max-height: none; background: var(--ivory); margin-bottom: 12px; }
  .nav-dropdown > summary { justify-content: space-between; }
  .js .menu-trigger { display: flex; }
  .primary-nav > .header-apply { align-self: flex-start; margin-block: 10px; border-top: 0; padding-inline: 22px; }
}
@media (max-width: 900px) {
  .shell { padding-inline: 32px; }
  .hero-intro { grid-template-columns: 1fr 1fr; gap: 32px; padding-block: 44px 38px; }
  .display-title { max-width: 650px; font-size: 54px; }
  .hero-description { max-width: 620px; }
  .hero-actions { gap: 18px; }
  .programme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .programme-card:nth-child(even) { margin-top: 0; }
  .programme-copy h3 { font-size: 32px; }
  .body-copy { font-size: 13px; }
  .news-grid, .news-grid.is-filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card--feature { grid-row: auto; }
  .news-card--feature .news-link { min-height: 420px; }
  .news-content h3 { font-size: 20px; }
  .leader-portrait { flex-basis: 175px; }
  .leadership-layout { gap: 45px; }
  .leadership h2 { font-size: 43px; }
  .quote { font-size: 28px; }
  .admission-layout { gap: 45px; }
  .admission-copy h2 { font-size: 52px; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-layout h2 { max-width: none; }
  .school-video { aspect-ratio: 16 / 9; }
  .sponsors .gallery-item { flex-basis: calc((100% - 52px) / 3); }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 95px; }
  .shell { padding-inline: 22px; }
  h2 { font-size: 38px; }
  .eyebrow { font-size: 9px; margin-bottom: 17px; }
  .eyebrow::before { width: 18px; margin-right: 9px; }
  .header-inner { min-height: 78px; }
  .brand img { width: 35px; height: 35px; }
  .brand { gap: 7px; }
  .brand-wordmark { font-size: 25px; }
  .brand small { display: none; }
  .primary-nav > .header-apply { display: flex; }
  .header-actions { gap: 13px; }
  .language-dock { width: 108px; }
  .language-dock-heading { font-size: 8px; }
  .language-switch { font-size: 10px; gap: 5px; }
  .language-name-full { display: none; }
  .language-name-short { display: inline; }
  .hero-intro { grid-template-columns: 1fr; gap: 28px; padding-block: 34px 30px; }
  .display-title { font-size: 52px; line-height: 1.06; }
  .hero-description { font-size: 14px; margin-top: 0; line-height: 1.85; }
  .hero-actions { gap: 15px 23px; margin-top: 27px; }
  .hero-actions .button { padding-inline: 20px; gap: 22px; }
  .hero-actions .text-link { font-size: 11px; }
  .hero-school-name { font-size: 9px; margin-top: 16px; }
  .hero-bottom { padding-block: 13px; }
  .scroll-cue { font-size: 10px; gap: 13px; }
  .motion-toggle { font-size: 9px; }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .section-intro > .text-link { font-size: 12px; }
  .programme-grid { gap: 24px 18px; margin-top: 0; }
  .programme-card { padding: 7px; border-radius: 15px 15px 5px 5px; }
  .programme-photo { aspect-ratio: 1.03; border-radius: 9px 9px 3px 3px; }
  .programme-card:nth-child(even) .programme-photo { border-radius: 9px 30px 3px 3px; }
  .programme-copy { padding: 18px 10px 12px; }
  .programme-copy .eyebrow { margin-bottom: 8px; font-size: 8px; }
  .programme-copy .eyebrow::before { width: 12px; margin-right: 5px; }
  .programme-copy h3 { font-size: clamp(21px, 5vw, 25px); }
  .body-copy { font-size: 12px; margin-block: 14px 18px; }
  .programme-copy .text-link { gap: 8px; font-size: 10px; }
  .photo-index { width: 34px; height: 34px; font-size: 17px; left: 8px; bottom: 8px; }
  .news-grid, .news-grid.is-filtered { gap: 18px; }
  .news-card { border-radius: 10px; }
  .news-card--feature .news-link { min-height: 360px; }
  .news-card--feature .news-content { padding: 23px; }
  .news-card--feature h3 { font-size: 36px; }
  .news-grid.is-filtered .news-card--feature .news-content { padding: 16px; }
  .news-grid.is-filtered .news-card--feature h3 { font-size: 26px; }
  .news-link { min-height: 270px; }
  .news-content { padding: 18px; gap: 11px; }
  .news-content h3 { font-size: 17px; }
  .news-summary { font-size: 12px; }
  .news-action { font-size: 9px; }
  .news-filter { padding: 8px 12px; font-size: 10px; }
  .news-edition { font-size: 10px; letter-spacing: .04em; }
  .news-grid.is-filtered .news-card--feature .news-link { min-height: 340px; }
  .leadership-layout { display: flex; flex-direction: column; align-items: stretch; gap: 38px; }
  .leadership h2 { font-size: 38px; }
  .quote { font-size: 29px; }
  .quote-mark { font-size: 65px; }
  .quote-region { margin-top: 27px; padding: 24px; }
  .leader-portrait { flex: none; align-self: stretch; display: flex; align-items: center; gap: 20px; padding: 14px; border-radius: 14px; }
  .leader-portrait img { width: 105px; aspect-ratio: 3 / 4; border-radius: 80px 80px 4px 4px; }
  .leader-portrait figcaption { text-align: left; margin: 0; }
  .leader-portrait strong { font-size: 13px; }
  .leader-portrait figcaption > span { font-size: 10px; }
  .story-caption { font-size: 11px; }
  .school-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 22px; margin-top: 30px; }
  .school-stat { padding: 18px 14px; }
  .fact-value { font-size: 53px; }
  .school-stat p { font-size: 11px; margin-top: 10px; }
  .facts-note { font-size: 9px; }
  .gallery-track { gap: 18px; }
  .gallery-item, .sponsors .gallery-item { flex-basis: 84%; }
  .gallery-item:nth-child(even) { margin-top: 0; }
  .gallery-controls { gap: 20px; }
  .gallery-meter { max-width: 110px; }
  .gallery-buttons button { width: 44px; height: 44px; }
  .editorial-index { display: none; }
  .admission-layout { display: flex; flex-direction: column; align-items: stretch; gap: 28px; width: calc(100% - 32px); padding: 24px 20px; }
  .admission-copy h2 { font-size: 52px; }
  .large-copy { font-size: 14px; }
  .admission-note { margin-top: 19px; }
  .open-day h3 { font-size: 31px; }
  .faq-item summary { font-size: 13px; gap: 12px; min-height: 76px; }
  .faq-item summary { padding-inline: 15px; }
  .faq-answer { padding: 0 18px 24px; font-size: 12px; }
  .site-footer { padding-top: var(--space); }
  .contact-heading { gap: 23px; padding-bottom: 32px; }
  .contact-heading h2 { font-size: 75px; }
  .contact-heading .eyebrow { font-size: 9px; }
  .contact-heading .text-link { font-size: 11px; }
  .contact-layout { display: flex; flex-direction: column; gap: 28px; padding-block: 32px; }
  .footer-intro { font-size: 12px; }
  .footer-tagline { max-width: 290px; font-size: 30px; }
  .contact-details { display: grid; grid-template-columns: 1fr; }
  .contact-block { margin-bottom: 23px; }
  .contact-block h3 { font-size: 10px; }
  .contact-block a, .contact-block address { font-size: 13px; }
  .contact-map iframe { min-height: 250px; }
  .footer-bottom { align-items: flex-start; font-size: 9px; gap: 20px; }
  .footer-bottom > span { max-width: 200px; }
  .back-to-top { bottom: 15px; right: 15px; }
  html[lang='th'] .display-title { font-size: 43px; }
  html[lang='th'] .admission-copy h2 { font-size: 42px; }
  html[lang='th'] .quote { font-size: 26px; }
}
@media (max-width: 360px) {
  .shell { padding-inline: 18px; }
  .header-actions { gap: 8px; }
  .language-dock { width: 100px; }
  .display-title { font-size: 46px; }
  .button { padding-inline: 20px; }
  .hero-actions { gap: 15px; }
  .hero-copy { padding: 23px 20px; }
  .admission-layout { width: calc(100% - 28px); padding: 22px 18px; }
  .hero-actions .text-link { gap: 12px; }
  .news-content h3 { font-size: 16px; }
  .news-summary { font-size: 12px; }
  .news-action { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
  .motion-on [data-drift] img { transform: none; }
  .programme-photo:hover img { transform: none; }
  .notice-link, .notice-link:nth-child(even), .notice-link:hover { transform: none !important; translate: none !important; }
  .button:hover, .text-link:hover > [aria-hidden] { transform: none; }
}

/* Curriculum At a Glance — shares KSJ's illustrated-school editorial system.
   All page-specific layouts are scoped so the homepage stays unchanged. */
.curriculum-page .curriculum-dropdown a[aria-current='page'] { background: #f5eddb; color: var(--navy); font-weight: 700; }
.curriculum-page .curriculum-hero { background: radial-gradient(ellipse at 91% 5%, rgb(231 200 144 / 52%), transparent 36%), linear-gradient(120deg, #f7f3e8, #e3ece8 58%, #f0e4ca); }
.curriculum-page .curriculum-hero > .section-decoration { top: auto; bottom: 50px; right: -25px; width: 260px; height: 260px; opacity: .22; }
.curriculum-page .curriculum-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; padding-block: 24px; color: var(--muted); font-size: 11px; }
.curriculum-page .curriculum-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; border-bottom: 1px solid #a4b6b7; color: var(--navy); }
.curriculum-page .curriculum-breadcrumb > [aria-hidden] { color: var(--gold); }
.curriculum-page .curriculum-hero-layout { position: relative; display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: clamp(36px, 4vw, 64px); padding-block: 20px 56px; }
.curriculum-page .curriculum-hero-copy { min-width: 0; }
.curriculum-page .curriculum-hero .display-title { max-width: 630px; font-size: clamp(50px, 5.8vw, 82px); }
.curriculum-page .curriculum-lead { max-width: 550px; margin-top: 25px; font-size: 15px; line-height: 1.9; color: #435d6d; }
.curriculum-page .curriculum-hero-actions { display: flex; flex-wrap: wrap; gap: 20px 27px; align-items: center; margin-top: 30px; }
.curriculum-page .curriculum-hero-photo { position: relative; min-width: 0; padding: 12px 12px 0; border: 1px solid rgb(172 133 69 / 45%); border-radius: 110px 12px 12px 12px; background: #fffdf7; box-shadow: 10px 13px 0 rgb(18 53 91 / 10%), 0 25px 55px rgb(18 53 91 / 12%); }
.curriculum-page .curriculum-hero-photo::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgb(172 133 69 / 28%); border-radius: 105px 7px 7px 7px; pointer-events: none; }
.curriculum-page .curriculum-photo-window { position: relative; overflow: hidden; border-radius: 99px 6px 6px 6px; }
.curriculum-page .curriculum-photo-window img { aspect-ratio: 1.14; width: 100%; height: auto; object-fit: cover; }
.curriculum-page .curriculum-hero-photo figcaption { position: relative; padding: 17px 10px 18px; max-width: calc(100% - 58px); font: italic 18px/1.5 var(--serif); color: var(--navy); }
.curriculum-page .curriculum-photo-seal { position: absolute; right: -20px; bottom: 23px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 95px; height: 95px; border: 4px double var(--gold-light); border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 10px 24px rgb(18 53 91 / 14%); font: 400 29px/1.2 var(--serif); }
.curriculum-page .curriculum-photo-seal small { margin-top: 6px; font: 600 6px/1.5 var(--sans); letter-spacing: .15em; }
.curriculum-page .curriculum-pathways { background: radial-gradient(rgb(172 133 69 / 13%) 1px, transparent 1.4px) 0 0 / 25px 25px, linear-gradient(117deg, #f5f1e6, #e6eeea); }
.curriculum-page .curriculum-pathway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-grid); }
.curriculum-page .curriculum-pathway { display: flex; flex-direction: column; min-width: 0; padding: 34px 35px 29px; border: 1px solid #bcced4; border-top: 4px solid var(--navy); border-radius: 5px 28px 5px 5px; background: #fffdf9; box-shadow: 7px 9px 0 rgb(18 53 91 / 8%); transition: transform .4s var(--ease), box-shadow .4s; }
.curriculum-page .curriculum-pathway--icep { border-color: #d8c599; border-top-color: var(--gold); background: #fbf5e8; }
.curriculum-page .curriculum-pathway-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.curriculum-page .curriculum-programme-code { font: 400 43px/1 var(--serif); letter-spacing: -.04em; color: var(--navy); }
.curriculum-page .curriculum-pathway-number { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.curriculum-page .curriculum-pathway h3 { font: 400 27px/1.3 var(--serif); max-width: 430px; }
.curriculum-page .curriculum-pathway > p { margin-top: 17px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.curriculum-page .curriculum-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 25px 24px; }
.curriculum-page .curriculum-tags li { padding: 7px 11px; border: 1px solid #d1dddf; border-radius: 100px; background: #f0f4f2; font-size: 9px; font-weight: 600; line-height: 1.6; }
.curriculum-page .curriculum-pathway--icep .curriculum-tags li { border-color: #ded0af; background: #f7edd8; }
.curriculum-page .curriculum-pathway > .text-link { align-self: flex-start; margin-top: auto; }
.curriculum-page .curriculum-tep { background: radial-gradient(ellipse at 0 5%, rgb(193 214 211 / 32%), transparent 32%), linear-gradient(116deg, #faf7ed, #f4f5ed 72%, #e8eeea); }
.curriculum-page .curriculum-detail-layout { display: grid; grid-template-columns: 1fr 1.13fr; gap: clamp(55px, 7vw, 105px); align-items: start; }
.curriculum-page .curriculum-detail-title, .curriculum-page .curriculum-detail-copy { min-width: 0; }
.curriculum-page .curriculum-section-code { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; color: var(--gold); font: 400 57px/1 var(--serif); letter-spacing: -.035em; }
.curriculum-page .curriculum-section-code > span { font: 500 10px/1.5 var(--sans); color: var(--muted); letter-spacing: .06em; }
.curriculum-page .curriculum-detail-title > .eyebrow { font-size: 9px; line-height: 1.7; margin-bottom: 17px; }
.curriculum-page .curriculum-detail h2 { font-size: clamp(37px, 4.3vw, 60px); max-width: 580px; }
.curriculum-page .curriculum-detail-photo { margin-top: 38px; padding: 8px; border: 3px double #c8bd9e; border-radius: 10px 42px 10px 10px; background: var(--white); box-shadow: 7px 9px 0 rgb(172 133 69 / 13%); }
.curriculum-page .curriculum-detail-photo > div { overflow: hidden; border-radius: 4px 35px 4px 4px; }
.curriculum-page .curriculum-detail-photo img { aspect-ratio: 1.65; object-fit: cover; }
.curriculum-page .curriculum-detail-copy { padding-top: 26px; }
.curriculum-page .curriculum-body { font-size: 15px; line-height: 1.95; }
.curriculum-page .curriculum-body + .curriculum-body { margin-top: 28px; }
.curriculum-page .curriculum-focus-box { padding: 28px; margin-block: 28px; border: 1px solid #c9d8d4; border-left: 3px solid var(--gold); border-radius: 4px 20px 4px 4px; background: rgb(255 255 255 / 70%); }
.curriculum-page .curriculum-focus-box h3 { font-size: 17px; margin-bottom: 20px; line-height: 1.5; }
.curriculum-page .curriculum-feature-list li { position: relative; padding-left: 24px; font-size: 12px; line-height: 1.85; }
.curriculum-page .curriculum-feature-list li + li { margin-top: 14px; }
.curriculum-page .curriculum-feature-list li::before { position: absolute; left: 0; top: .7em; content: ''; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.curriculum-page .curriculum-identity { margin-top: 40px; padding-top: 24px; border-top: 1px solid #c8d3ca; }
.curriculum-page .curriculum-identity > .eyebrow { margin-bottom: 22px; }
.curriculum-page .curriculum-identity ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.curriculum-page .curriculum-identity li { min-width: 0; display: flex; align-items: flex-start; gap: 15px; font: 400 21px/1.45 var(--serif); }
.curriculum-page .curriculum-identity li > [aria-hidden] { flex-shrink: 0; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #b8c7c4; border-radius: 50%; font: 600 9px/1 var(--sans); background: #f9f7ee; }
.curriculum-page .curriculum-icep { color: var(--white); background: radial-gradient(ellipse at 84% 8%, rgb(73 122 134 / 45%), transparent 40%), linear-gradient(120deg, #0b2846, #214b63 70%, #102e49); }
.curriculum-page .curriculum-icep > .section-decoration { --deco-color: #e7c890; opacity: .2; top: auto; bottom: 10px; }
.curriculum-page .curriculum-icep .curriculum-section-code { color: var(--gold-light); }
.curriculum-page .curriculum-icep .curriculum-section-code > span, .curriculum-page .curriculum-icep .eyebrow { color: #d2dde5; }
.curriculum-page .curriculum-icep .curriculum-body { color: #e6edf1; }
.curriculum-page .curriculum-icep .curriculum-focus-box { border-color: rgb(231 200 144 / 35%); border-left-color: var(--gold-light); background: rgb(255 255 255 / 6%); }
.curriculum-page .curriculum-icep .curriculum-feature-list li::before { border-color: var(--gold-light); }
.curriculum-page .curriculum-icep .curriculum-detail-photo { box-shadow: 7px 9px 0 rgb(231 200 144 / 16%); }
.curriculum-page .curriculum-guide { background: repeating-linear-gradient(-45deg, transparent 0 24px, rgb(18 53 91 / 3%) 24px 25px), linear-gradient(112deg, #e3ece5, #faf5e8 57%, #e3edef); }
.curriculum-page .curriculum-guide-note { font-size: 13px; color: var(--muted); max-width: 720px; margin-bottom: 35px; }
.curriculum-page .curriculum-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; align-items: start; justify-items: center; max-width: 849px; margin-inline: auto; }
.curriculum-page .curriculum-guide-card { width: 100%; max-width: 849px; min-width: 0; margin-inline: auto; justify-self: center; padding: 12px 12px 0; border: 1px solid #cad4cd; border-radius: 9px 9px 4px 4px; background: #fffdf8; box-shadow: 8px 10px 0 rgb(172 133 69 / 15%), 0 16px 38px rgb(18 53 91 / 8%); }
.curriculum-page .curriculum-guide-card .media-open { width: 100%; margin-inline: auto; }
.curriculum-page .curriculum-guide-card:nth-child(even) { margin-top: 0; }
.curriculum-page .curriculum-guide-card .media-open img { display: block; width: 100%; max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; }
.curriculum-page .curriculum-guide-card figcaption { display: flex; align-items: flex-start; gap: 16px; padding: 20px 6px; font-size: 12px; line-height: 1.65; }
.curriculum-page .curriculum-guide-index { color: var(--gold); font-size: 10px; white-space: nowrap; margin-top: 2px; }
.curriculum-page .curriculum-enquiry-layout { display: grid; grid-template-columns: 1.4fr .65fr; align-items: center; gap: clamp(32px, 4vw, 56px); padding-block: 0; }
.curriculum-page .curriculum-enquiry-code { display: block; margin-bottom: 24px; font: 400 48px/1 var(--serif); color: #967338; }
.curriculum-page .curriculum-enquiry h2 { max-width: 680px; font-size: clamp(44px, 5.5vw, 76px); }
.curriculum-page .curriculum-enquiry .curriculum-lead { max-width: 600px; }
.curriculum-page .curriculum-enquiry-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 30px; border: 1px solid #d9c8a4; border-radius: 5px 30px 5px 5px; background: rgb(255 253 245 / 82%); box-shadow: 7px 9px 0 rgb(172 133 69 / 15%); }
.curriculum-page .curriculum-enquiry-actions .button { width: 100%; padding-inline: 20px; gap: 16px; }
.curriculum-page .curriculum-enquiry-actions .text-link { max-width: 100%; }
html[lang='th'] .curriculum-page .curriculum-hero .display-title { font-size: clamp(45px, 5.4vw, 74px); }
html[lang='th'] .curriculum-page .curriculum-pathway h3 { font-size: 24px; line-height: 1.5; }
html[lang='th'] .curriculum-page .curriculum-detail-title .eyebrow { letter-spacing: .02em; }
html[lang='th'] .curriculum-page .curriculum-identity li { font-size: 20px; }
@media (hover: hover) and (pointer: fine) {
  .motion-on .curriculum-page .curriculum-pathway:hover { transform: translateY(-5px); box-shadow: 7px 14px 0 rgb(18 53 91 / 8%); }
}
@media (max-width: 1100px) {
  .curriculum-page .curriculum-hero-layout { gap: 40px; }
  .curriculum-page .curriculum-hero .display-title { font-size: 65px; }
  .curriculum-page .curriculum-detail-layout { gap: 50px; }
  .curriculum-page .curriculum-enquiry-layout { gap: 40px; }
  .curriculum-page .curriculum-enquiry-actions { padding: 25px; }
}
@media (max-width: 900px) {
  .curriculum-page .curriculum-hero-layout { grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 15px 55px; }
  .curriculum-page .curriculum-hero .display-title { font-size: 54px; }
  .curriculum-page .curriculum-lead { font-size: 14px; }
  .curriculum-page .curriculum-hero-photo { border-top-left-radius: 70px; }
  .curriculum-page .curriculum-photo-window { border-top-left-radius: 59px; }
  .curriculum-page .curriculum-hero-photo::before { border-top-left-radius: 65px; }
  .curriculum-page .curriculum-photo-seal { width: 75px; height: 75px; right: -12px; font-size: 23px; }
  .curriculum-page .curriculum-hero-photo figcaption { font-size: 16px; }
  .curriculum-page .curriculum-pathway-grid { gap: 24px; }
  .curriculum-page .curriculum-pathway { padding: 25px; }
  .curriculum-page .curriculum-pathway h3 { font-size: 24px; }
  .curriculum-page .curriculum-detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .curriculum-page .curriculum-detail-title { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 35px; align-items: start; }
  .curriculum-page .curriculum-detail-title .curriculum-section-code, .curriculum-page .curriculum-detail-title .eyebrow, .curriculum-page .curriculum-detail-title h2 { grid-column: 1; }
  .curriculum-page .curriculum-detail-title h2 { font-size: 41px; }
  .curriculum-page .curriculum-detail-photo { grid-column: 2; grid-row: 1 / 4; margin-top: 5px; align-self: center; }
  .curriculum-page .curriculum-detail-photo img { aspect-ratio: 1.18; }
  .curriculum-page .curriculum-detail-copy { padding-top: 0; }
  .curriculum-page .curriculum-identity { margin-top: 40px; }
  .curriculum-page .curriculum-identity ul { grid-template-columns: 1fr 1fr; gap: 23px; }
  .curriculum-page .curriculum-guide-grid { gap: 30px; }
  .curriculum-page .curriculum-enquiry-layout { grid-template-columns: 1.3fr .8fr; gap: 30px; }
  .curriculum-page .curriculum-enquiry h2 { font-size: 52px; }
}
@media (max-width: 600px) {
  .curriculum-page .curriculum-breadcrumb { padding-block: 14px; font-size: 10px; }
  .curriculum-page .curriculum-hero-layout { grid-template-columns: 1fr; gap: 35px; padding-block: 12px 40px; }
  .curriculum-page .curriculum-hero .display-title { font-size: clamp(49px, 12vw, 64px); max-width: 420px; }
  html[lang='th'] .curriculum-page .curriculum-hero .display-title { font-size: 44px; }
  .curriculum-page .curriculum-lead { margin-top: 22px; font-size: 14px; }
  .curriculum-page .curriculum-hero-actions { gap: 15px 23px; margin-top: 25px; }
  .curriculum-page .curriculum-hero-actions .button { padding-inline: 22px; font-size: 12px; gap: 17px; }
  .curriculum-page .curriculum-hero-actions .text-link { font-size: 12px; }
  .curriculum-page .curriculum-hero-photo { margin-right: 10px; padding: 9px 9px 0; }
  .curriculum-page .curriculum-photo-window img { aspect-ratio: 1.6; }
  .curriculum-page .curriculum-hero-photo figcaption { padding: 14px 8px; max-width: calc(100% - 45px); }
  .curriculum-page .curriculum-photo-seal { right: -18px; bottom: 13px; }
  .curriculum-page .curriculum-pathway-grid { grid-template-columns: 1fr; gap: 25px; }
  .curriculum-page .curriculum-pathway { padding: 26px 24px 22px; }
  .curriculum-page .curriculum-pathway-top { margin-bottom: 20px; }
  .curriculum-page .curriculum-programme-code { font-size: 40px; }
  .curriculum-page .curriculum-pathway h3 { font-size: 27px; }
  .curriculum-page .curriculum-pathway > p { font-size: 13px; }
  .curriculum-page .curriculum-tags { margin-block: 21px; }
  .curriculum-page .curriculum-detail-title { display: block; }
  .curriculum-page .curriculum-section-code { font-size: 48px; }
  .curriculum-page .curriculum-detail-title > .eyebrow { font-size: 9px; }
  .curriculum-page .curriculum-detail-title h2 { font-size: 40px; }
  .curriculum-page .curriculum-detail-photo { margin-top: 28px; }
  .curriculum-page .curriculum-detail-photo img { aspect-ratio: 1.65; }
  .curriculum-page .curriculum-body { font-size: 14px; line-height: 1.95; }
  .curriculum-page .curriculum-focus-box { margin-block: 24px; padding: 24px 22px; }
  .curriculum-page .curriculum-focus-box h3 { font-size: 16px; }
  .curriculum-page .curriculum-feature-list li { font-size: 12px; }
  .curriculum-page .curriculum-identity { margin-top: 32px; padding-top: 24px; }
  .curriculum-page .curriculum-identity ul { gap: 20px; }
  .curriculum-page .curriculum-identity li { gap: 10px; font-size: 18px; }
  html[lang='th'] .curriculum-page .curriculum-identity li { font-size: 17px; }
  .curriculum-page .curriculum-identity li > [aria-hidden] { width: 23px; height: 23px; margin-top: 2px; }
  .curriculum-page .curriculum-guide-grid { grid-template-columns: 1fr; gap: 28px; }
  .curriculum-page .curriculum-guide-card { padding: 9px 9px 0; }
  .curriculum-page .curriculum-guide-card:nth-child(even) { margin-top: 0; }
  .curriculum-page .curriculum-guide-card figcaption { padding-block: 16px; font-size: 11px; }
  .curriculum-page .curriculum-guide-note { font-size: 12px; margin-bottom: 28px; }
  .curriculum-page .curriculum-enquiry-layout { grid-template-columns: 1fr; gap: 30px; padding-block: 0; }
  .curriculum-page .curriculum-enquiry h2 { font-size: 49px; }
  .curriculum-page .curriculum-enquiry-actions { align-items: stretch; }
  .curriculum-page .curriculum-enquiry-actions .text-link { align-self: flex-start; }
}
/* Content-only phone reflow; navigation continues to use 768px. */
@media (max-width: 480px) {
  .programme-grid { grid-template-columns: minmax(0, 1fr); }
  .programme-photo { aspect-ratio: 1.65; }
  .programme-copy h3 { font-size: 28px; }
  .body-copy { font-size: 13px; }
  .programme-pathway { font-size: 11px; }
  .news-grid, .news-grid.is-filtered { grid-template-columns: minmax(0, 1fr); }
  .news-card--feature { grid-column: auto; }
  .news-content h3 { font-size: 20px; }
  .news-card--feature h3 { font-size: 32px; }
}
@media (max-width: 420px) {
  .curriculum-page .curriculum-identity ul { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-on .curriculum-page .curriculum-pathway:hover { transform: none; }
}

/* Contact Us — official school details; edit only this page-scoped block. */
.contact-page .contact-hero { padding-block: 28px var(--space); }
.contact-page .contact-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); color: var(--muted); font-size: 12px; }
.contact-page .contact-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); }
.contact-page .contact-hero-layout { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(28px, 5vw, 68px); }
.contact-page .contact-hero-copy, .contact-page .contact-hero-photo, .contact-page .contact-address-card, .contact-page .contact-direct, .contact-page .contact-map-frame, .contact-page .contact-guide { min-width: 0; }
.contact-page .contact-hero h1 { font-size: clamp(54px, 6.8vw, 88px); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 24px; text-wrap: balance; }
.contact-page .contact-lead { max-width: 530px; color: var(--muted); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.85; }
.contact-page .contact-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
.contact-page .contact-hero-photo { padding: 10px; border: 1px solid var(--gold); border-radius: 18px 18px 44px 18px; background: var(--white); box-shadow: 8px 10px 0 rgb(172 133 69 / 12%); }
.contact-page .contact-hero-photo img { width: 100%; height: auto; border-radius: 11px 11px 32px 11px; }
.contact-page .contact-hero-photo figcaption { padding: 12px 8px 3px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.contact-page .contact-methods { background: var(--ivory); }
.contact-page .contact-methods-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-grid); align-items: stretch; }
.contact-page .contact-address-card { padding: clamp(26px, 3vw, 40px); border: 1px solid var(--navy); border-radius: 16px 16px 40px 16px; color: var(--white); background: var(--navy); box-shadow: 5px 6px 0 rgb(172 133 69 / 20%); }
.contact-page .contact-address-card .eyebrow { color: var(--gold-light); margin-bottom: 18px; }
.contact-page .contact-address-card h3 { font-size: clamp(23px, 2.4vw, 32px); margin-bottom: 20px; line-height: 1.45; }
.contact-page .contact-address-card address { font-style: normal; font-size: 15px; line-height: 1.9; color: #d8e3e9; }
.contact-page .contact-address-card .light-link { margin-top: 24px; }
.contact-page .contact-direct { display: grid; gap: var(--space-grid); }
.contact-page .contact-direct-card { position: relative; padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.contact-page .contact-direct-card h3 { font-size: 17px; margin-bottom: 16px; }
.contact-page .contact-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #c6d1d5; border-radius: 50%; background: #f4f7f5; color: var(--navy); }
.contact-page .contact-icon svg { width: 20px; height: 20px; }
.contact-page .contact-card-label { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-page .contact-card-label h3 { margin: 0; }
.contact-page .contact-phone-list { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contact-page .contact-phone-list a, .contact-page .contact-email { display: inline-block; padding-block: 5px; border-bottom: 1px solid #b9c9d0; font-size: clamp(17px, 1.8vw, 23px); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.contact-page .contact-phone-list a:hover, .contact-page .contact-email:hover { color: var(--gold); border-color: var(--gold); }
.contact-page .contact-connect { background: linear-gradient(110deg, #e8eee8, #f1f3ec); }
.contact-page .contact-social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-grid); }
.contact-page .contact-channel { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(20px, 2.2vw, 28px); border: 1px solid #c8d4cb; border-radius: 14px; background: rgb(255 255 255 / 85%); transition: border-color .2s, background .2s; }
.contact-page .contact-channel:hover { border-color: var(--gold); background: var(--white); }
.contact-page .contact-channel strong { font-size: 18px; line-height: 1.35; }
.contact-page .contact-channel-description { min-height: 42px; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.contact-page .contact-channel-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.contact-page .contact-location { background: #fbfaf5; }
.contact-page .contact-location-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-grid); align-items: start; }
.contact-page .contact-map-frame { border: 1px solid var(--gold); border-radius: 16px; padding: 8px; background: var(--white); }
.contact-page .contact-map-frame iframe { display: block; width: 100%; height: clamp(320px, 31vw, 400px); border: 0; border-radius: 10px; }
.contact-page .contact-map-fallback { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding: 10px 10px 4px; color: var(--muted); font-size: 11px; }
.contact-page .contact-map-fallback a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.contact-page .contact-guide { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.contact-page .contact-guide > a { display: block; padding: 8px; }
.contact-page .contact-guide img { width: 100%; height: auto; object-fit: contain; }
.contact-page .contact-guide figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 22px 20px; color: var(--muted); font-size: 12px; line-height: 1.7; border-top: 1px solid var(--line); }
.contact-page .contact-location-note { margin-top: var(--space-grid); max-width: 760px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.contact-page .contact-page-footer { padding-block: clamp(36px, 4vw, 56px) 24px; }
.contact-page .contact-footer-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-grid); align-items: center; margin-bottom: 26px; }
.contact-page .contact-footer-layout .footer-brand { margin-bottom: 16px; }
.contact-page .contact-footer-school { max-width: 370px; color: #d4e0e9; font-size: 13px; }
.contact-page .contact-footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; font-size: 13px; }
.contact-page .contact-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid #7b93a5; }
html[lang='th'] .contact-page .contact-hero h1 { font-size: clamp(44px, 5.4vw, 68px); line-height: 1.3; letter-spacing: -.02em; }
@media (max-width: 1000px) {
  .contact-page .contact-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page .contact-channel-description { min-height: 0; }
}
@media (max-width: 700px) {
  .contact-page .contact-hero-layout, .contact-page .contact-methods-layout, .contact-page .contact-location-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-page .contact-hero { padding-top: 16px; }
  .contact-page .contact-breadcrumb { margin-bottom: 26px; }
  .contact-page .contact-hero-photo { max-width: 560px; width: 100%; margin-inline: auto; }
  .contact-page .contact-direct { grid-template-columns: minmax(0, 1fr); }
  .contact-page .contact-footer-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-page .contact-footer-nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .contact-page .contact-social-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-page .contact-channel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; }
  .contact-page .contact-channel .contact-icon { grid-row: span 2; }
  .contact-page .contact-channel-description { grid-column: 2; }
  .contact-page .contact-channel-action { grid-column: 1 / -1; }
  .contact-page .contact-hero-actions { align-items: stretch; gap: 14px; }
  .contact-page .contact-hero-actions .button { width: 100%; }
  .contact-page .contact-direct-card, .contact-page .contact-address-card { padding: 24px; }
  .contact-page .contact-hero-photo figcaption { font-size: 10px; }
  .contact-page .contact-map-frame iframe { height: 310px; }
}

.contact-page .contact-settings { margin-top: 20px; }

/* Job Opportunities — reuse contact components; source contains general enquiries, not a vacancy board. */
.jobs-page .contact-hero h1 { font-size: clamp(48px, 6vw, 82px); line-height: 1.08; overflow-wrap: normal; }
.jobs-page .contact-hero-copy { max-width: 580px; }
.jobs-page .jobs-banner-link { display: block; cursor: zoom-in; border-radius: 11px; }
.jobs-page .jobs-banner-link img { border-radius: 11px; height: auto; object-fit: contain; }
.jobs-page .jobs-banner figcaption { line-height: 1.75; }
.jobs-page .contact-hero-photo { border-radius: 18px; }
.jobs-page .contact-lead { padding-left: 20px; border-left: 2px solid var(--gold); }
html[lang='th'] .jobs-page .contact-hero h1 { font-size: clamp(44px, 5.4vw, 68px); line-height: 1.3; }
@media (max-width: 480px) {
  .jobs-page .contact-hero h1 { font-size: clamp(43px, 11.8vw, 54px); }
  .jobs-page .contact-hero-actions .text-link { align-self: flex-start; }
  .jobs-page .contact-lead { padding-left: 16px; }
}

/* SAR — source standards and targets, original Thai document library. */
.sar-page .sar-hero { padding-block: 28px var(--space); }
.sar-page .sar-hero-layout { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.sar-page .sar-hero-copy { min-width: 0; }
.sar-page .sar-hero h1 { margin-bottom: 24px; font-size: clamp(40px, 4.7vw, 66px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.sar-page .sar-lead { max-width: 650px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.85; }
.sar-page .sar-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
.sar-page .sar-publication { padding: clamp(26px, 3.2vw, 42px); color: var(--white); border-radius: 18px 18px 40px 18px; background: var(--navy); border: 1px solid var(--gold); box-shadow: 7px 8px 0 rgb(172 133 69 / 18%); }
.sar-page .sar-publication .eyebrow { color: var(--gold-light); }
.sar-page .sar-year { display: block; margin-block: 10px 14px; font-family: var(--serif); font-size: clamp(58px, 6vw, 82px); line-height: 1.1; }
.sar-page .sar-publication-note { padding-top: 20px; margin-top: 20px; border-top: 1px solid #54718b; color: #d8e3e9; font-size: 13px; line-height: 1.8; }
.sar-page .sar-document-section { background: var(--ivory); }
.sar-page .sar-document-section:nth-of-type(odd) { background: #eaf0e9; }
.sar-page .sar-section-copy { max-width: 850px; color: var(--muted); font-size: 15px; line-height: 1.9; margin-bottom: var(--space-grid); }
.sar-page .sar-documents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-grid); align-items: stretch; }
.sar-page .sar-document { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.sar-page .sar-document-preview { display: flex; align-items: center; justify-content: center; padding: 14px; background: #f0f1eb; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.sar-page .sar-document-preview img { display: block; width: 100%; height: clamp(260px, 29vw, 390px); object-fit: contain; object-position: center; }
.sar-page .sar-document figcaption { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2vw, 28px); }
.sar-page .sar-document-label { margin-bottom: 12px; font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.sar-page .sar-document h3 { font-size: clamp(23px, 2vw, 28px); line-height: 1.4; margin-bottom: 12px; }
.sar-page .sar-document-description { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.sar-page .sar-document-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sar-page .sar-document-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.sar-page .sar-source-note { padding-left: 18px; margin-top: var(--space-grid); border-left: 2px solid var(--gold); color: var(--muted); font-size: 12px; line-height: 1.8; }
.sar-page .sar-enquiry { background: linear-gradient(115deg, #e3ece8, #f3eedc); }
.sar-page .sar-enquiry-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-grid); align-items: center; }
.sar-page .sar-enquiry h2 { margin-bottom: 18px; }
.sar-page .sar-enquiry-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
html[lang='th'] .sar-page .sar-hero h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.4; letter-spacing: -.02em; }
@media (max-width: 1000px) {
  .sar-page .sar-documents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sar-page .sar-hero-layout, .sar-page .sar-enquiry-layout { grid-template-columns: minmax(0, 1fr); }
  .sar-page .sar-hero { padding-top: 16px; }
  .sar-page .sar-publication { max-width: 560px; width: 100%; }
  .sar-page .sar-year { font-size: 56px; }
  .sar-page .sar-publication-note { margin-top: 14px; padding-top: 14px; }
}
@media (max-width: 480px) {
  .sar-page .sar-documents { grid-template-columns: minmax(0, 1fr); }
  .sar-page .sar-hero h1 { font-size: 39px; }
  .sar-page .sar-hero-actions { align-items: stretch; gap: 14px; }
  .sar-page .sar-hero-actions .button { width: 100%; }
  .sar-page .sar-document-preview img { height: 310px; }
}

/* Student application — KSP-reference layout, KSJ content and native receiver. */
.application-page .admissions-hero { position: relative; padding-top: clamp(24px, 3vw, 42px); background: radial-gradient(ellipse at 80% 35%, #e5eee7 0, transparent 48%), #f8f7f2; }
.application-page .admissions-hero-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(28px, 4vw, 64px); padding: 18px 0 36px; }
.application-page .admissions-hero-copy { min-width: 0; }
.application-page .admissions-hero h1 { margin: 16px 0 22px; font-size: clamp(48px, 5.7vw, 78px); line-height: 1.08; letter-spacing: -.035em; }
.application-page .admissions-hero h1 em { color: var(--gold); font-weight: 400; }
.application-page .admissions-hero-lead { max-width: 550px; font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; line-height: 1.6; }
.application-page .admissions-hero-text { max-width: 570px; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.application-page .admissions-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; margin-top: 26px; }
.application-page .admissions-route-note { margin-top: 14px; color: var(--muted); font-size: 11px; }
.application-page .admissions-route-note strong { text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.application-page .admissions-direct-contact { display: grid; grid-template-columns: 106px minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.application-page .admissions-direct-copy > .eyebrow { font-size: 9px; margin-bottom: 6px; }
.application-page .admissions-direct-copy h2 { font: 600 17px/1.5 var(--sans); letter-spacing: normal; }
.application-page .admissions-direct-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 14px; }
.application-page .admissions-direct-links a { display: flex; flex-direction: column; gap: 3px; min-height: 42px; }
.application-page .admissions-direct-links small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.application-page .admissions-direct-links strong { font-size: 12px; font-weight: 700; }
.application-page .admissions-direct-links a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.application-page .application-qr-card { width: 106px; text-align: center; }
.application-page .application-qr-link { display: block; padding: 5px; border: 1px solid #a4b6ad; border-radius: 10px; background: #fff; box-shadow: 0 5px 14px rgb(18 53 91 / 5%); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.application-page .application-qr-link:hover { transform: translateY(-2px); box-shadow: 0 9px 18px rgb(18 53 91 / 12%); }
.application-page .application-qr-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.application-page .application-qr-link img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 5px; }
.application-page .application-qr-caption { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.application-page .contact-settings { margin-top: 20px; }
.application-page .admissions-orbit { position: relative; display: grid; place-items: center; width: 100%; max-width: 510px; aspect-ratio: 1; justify-self: center; }
.application-page .admissions-orbit::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, #fdfcf4 0, #e0eade 60%, transparent 72%); }
.application-page .admissions-orbit-ring { position: absolute; border: 1px solid #a5b8aa; border-radius: 50%; }
.application-page .admissions-orbit-ring-outer { inset: 4%; transform: rotate(-22deg); border-style: dashed; }
.application-page .admissions-orbit-ring-inner { inset: 14%; border-color: #cbb58d; }
.application-page .admissions-orbit-core { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60%; aspect-ratio: 1; padding: 16px; border: 1px solid #fff; border-radius: 50%; background: #ffffffd9; box-shadow: 0 20px 70px #12355b0a; text-align: center; }
.application-page .admissions-orbit-core img { width: 31%; height: auto; margin-bottom: 10px; }
.application-page .admissions-orbit-core > strong { font: 400 clamp(34px, 4vw, 54px)/1.1 var(--serif); }
.application-page .admissions-orbit-core > span { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.application-page .admissions-orbit-tag { position: absolute; padding: 12px 21px; border: 1px solid #ccd7d1; border-radius: 40px; background: white; font-size: clamp(14px, 1.6vw, 20px); font-weight: 700; box-shadow: 0 8px 25px #12355b0c; }
.application-page .admissions-orbit-tag small { margin-right: 8px; opacity: .6; font-size: 10px; }
.application-page .admissions-orbit-tag-icep { top: 15%; right: 1%; color: #fff; border-color: var(--navy); background: var(--navy); transform: rotate(8deg); }
.application-page .admissions-orbit-tag-tep { bottom: 16%; left: 0; transform: rotate(-7deg); }
.application-page .admissions-orbit-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-light); }
.application-page .admissions-orbit-dot-one { left: 14%; top: 15%; }
.application-page .admissions-orbit-dot-two { bottom: 9%; right: 23%; width: 9px; height: 9px; background: #84aaa1; }
html.motion-on .application-page .admissions-orbit-ring-outer { animation: admissions-orbit-turn 95s linear infinite; }
@keyframes admissions-orbit-turn { to { transform: rotate(338deg); } }
.application-page .admissions-hero-bottom { border-block: 1px solid var(--line); background: #ffffff73; }
.application-page .admissions-hero-bottom > .shell { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; justify-content: space-between; padding-block: 18px; font-size: 12px; }
.application-page .admissions-hero-bottom a { font-weight: 700; }
.application-page .application-programmes { background: #fffdf8; }
.application-page .application-section-heading { max-width: 900px; margin-bottom: var(--space-heading); }
.application-page .application-step { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 12px; border: 1px solid #bdc9c1; border-radius: 50%; font-size: 10px; letter-spacing: normal; }
.application-page .application-section-heading h2 { margin: 16px 0 20px; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.16; letter-spacing: -.025em; }
.application-page .application-section-heading h2 em { font-weight: 400; color: var(--gold); }
.application-page .application-section-heading > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.application-page .application-pathways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-grid); }
.application-page .application-pathway { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(25px, 3vw, 42px); border: 1px solid #ccd6cd; border-radius: 18px; background: #edf2eb; }
.application-page .application-pathway-icep { color: #fff; border-color: var(--navy); background: var(--navy); }
.application-page .application-pathway-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 26px; }
.application-page .application-pathway-number { font: 400 32px/1 var(--serif); opacity: .6; }
.application-page .application-programme-code { padding: 5px 13px; border: 1px solid currentColor; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.application-page .application-pathway h3 { max-width: 420px; min-height: 2.5em; font: 500 clamp(25px, 2.7vw, 36px)/1.25 var(--serif); }
.application-page .application-pathway-lead { margin-top: 20px; font-size: 17px; font-weight: 600; line-height: 1.65; }
.application-page .application-pathway ul { display: grid; gap: 12px; width: 100%; margin-block: 24px; font-size: 13px; line-height: 1.8; }
.application-page .application-pathway li { position: relative; padding-left: 17px; }
.application-page .application-pathway li::before { content: ''; position: absolute; top: .7em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); }
.application-page .application-pathway-tep li::before { background: var(--gold); }
.application-page .application-pathway-fit { width: 100%; margin-top: auto; padding-top: 20px; border-top: 1px solid #b7c9bd; font-size: 13px; line-height: 1.85; }
.application-page .application-pathway-icep .application-pathway-fit { border-color: #59718b; }
.application-page .application-pathway-fit strong { display: block; font-weight: 700; margin-bottom: 6px; }
.application-page .application-pathway > .text-link { margin-top: 24px; color: inherit; }
.application-page .application-guidance-note { display: flex; align-items: flex-start; gap: 18px; margin-top: 28px; padding: 22px 24px; border-left: 2px solid var(--gold); background: #f3f2eb; }
.application-page .application-guidance-note > span { font-size: 28px; line-height: 1.3; color: var(--gold); }
.application-page .application-guidance-note p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.application-page .application-guidance-note a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.application-page .application-form-section { background: #eef2ed; border-block: 1px solid var(--line); }
.application-page .application-form-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr); gap: clamp(24px, 3vw, 42px); align-items: start; }
.application-page .application-form { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding: clamp(24px, 3vw, 38px); border: 1px solid #c9d3ce; border-radius: 18px; background: var(--white); box-shadow: 0 14px 38px rgb(18 53 91 / 6%); }
.application-page .application-required-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.application-page .application-field { display: flex; min-width: 0; flex-direction: column; gap: 9px; }
.application-page .application-field-wide { grid-column: 1 / -1; }
.application-page .application-field label { color: var(--navy); font-size: 14px; line-height: 1.5; font-weight: 600; }
.application-page .application-optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.application-page .application-field input, .application-page .application-field select, .application-page .application-field textarea { display: block; min-width: 0; width: 100%; max-width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid #b7c5ce; border-radius: 8px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--sans); transition: border-color .2s, box-shadow .2s; }
.application-page .application-field select { padding-right: 8px; }
.application-page .application-field textarea { min-height: 128px; resize: vertical; }
.application-page .application-field input:focus, .application-page .application-field select:focus, .application-page .application-field textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 2px; }
.application-page .application-field select:disabled { color: #627481; background: #edf0ee; opacity: 1; }
.application-page .application-field-help { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }
.application-page .application-noscript { font-size: 12px; line-height: 1.7; padding: 12px; border-left: 2px solid var(--gold); }
.application-page .application-submit-area { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 4px; }
.application-page .application-submit-area button { min-height: 48px; }
.application-page .application-submit-area p { color: var(--muted); font-size: 12px; line-height: 1.75; max-width: 560px; margin: 0; }
.application-page .application-support { min-width: 0; padding: clamp(24px, 3vw, 38px); border-radius: 18px; color: #fff; background: var(--navy); }
.application-page .application-support > .eyebrow { color: var(--gold-light); }
.application-page .application-support h3 { margin: 14px 0 18px; font: 400 clamp(30px, 3vw, 40px)/1.2 var(--serif); }
.application-page .application-support > p:not(.eyebrow) { font-size: 13px; line-height: 1.85; color: #e0e7ee; }
.application-page .application-support-details { margin: 28px 0; }
.application-page .application-support-details > div { padding: 18px 0; border-bottom: 1px solid #4d6883; }
.application-page .application-support-details > div:first-child { padding-top: 0; }
.application-page .application-support-details dt { margin-bottom: 5px; font-size: 10px; color: var(--gold-light); text-transform: uppercase; letter-spacing: .08em; }
.application-page .application-support-details dd { margin: 0; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.application-page .application-support a:hover { text-decoration: underline; text-underline-offset: 5px; }
.application-page .application-directions { display: block; margin-top: 9px; font-size: 12px; font-weight: 700; }
.application-page .application-line-card { display: grid; grid-template-columns: minmax(0, 1fr) 106px; align-items: center; gap: 15px; }
.application-page .application-line-card .eyebrow { color: var(--gold-light); font-size: 10px; }
.application-page .application-line-card h4 { margin: 6px 0; font-size: 16px; line-height: 1.6; }
.application-page .application-line-card p:not(.eyebrow) { font-size: 11px; color: #e0e7ee; }
.application-page .application-line-card a { display: inline-block; margin-top: 9px; font-size: 12px; font-weight: 700; }
html[lang='th'] .application-page .admissions-hero h1 { font-size: clamp(39px, 5vw, 66px); line-height: 1.35; letter-spacing: normal; }
html[lang='th'] .application-page .application-section-heading h2 { line-height: 1.4; letter-spacing: normal; }
html[lang='th'] .application-page .application-pathway h3 { line-height: 1.5; }
html[lang='th'] .application-page .admissions-direct-copy h2 { line-height: 1.7; }
@media (max-width: 1000px) {
  .application-page .admissions-hero-layout { grid-template-columns: minmax(0, 1fr) .72fr; gap: 24px; }
  .application-page .admissions-orbit-core > span { font-size: 10px; }
  .application-page .admissions-orbit-core img { width: 32%; margin-bottom: 7px; }
  .application-page .application-form-layout { grid-template-columns: minmax(0, 1fr); }
  .application-page .application-support { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .application-page .application-support > .eyebrow, .application-page .application-support > h3, .application-page .application-support > p:not(.eyebrow) { grid-column: 1; }
  .application-page .application-support-details { grid-column: 2; grid-row: 1 / 6; margin: 0; }
  .application-page .application-line-card { grid-column: 1; margin-top: 25px; }
}
@media (max-width: 760px) {
  .application-page .admissions-hero-layout { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .application-page .admissions-orbit { max-width: 330px; margin-top: 0; }
  .application-page .admissions-orbit-core > span { font-size: 10px; }
  .application-page .admissions-orbit-core img { width: 31%; }
  .application-page .admissions-orbit-tag { font-size: 17px; }
  .application-page .admissions-hero h1 { font-size: clamp(44px, 8vw, 62px); }
  .application-page .application-pathways { grid-template-columns: minmax(0, 1fr); }
  .application-page .application-pathway h3 { min-height: 0; }
}
@media (max-width: 540px) {
  .application-page .application-support { display: block; }
  .application-page .application-support-details { margin: 28px 0; }
  .application-page .application-form { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 20px; }
  .application-page .application-submit-area .button { width: 100%; }
  .application-page .admissions-direct-contact { grid-template-columns: 86px minmax(0, 1fr); gap: 16px; }
  .application-page .admissions-direct-contact .application-qr-card { width: 86px; }
  .application-page .admissions-direct-links { gap: 10px 17px; }
  .application-page .admissions-direct-copy h2 { font-size: 15px; }
  .application-page .admissions-hero-actions .button { width: 100%; }
  .application-page .application-section-heading h2 { font-size: 35px; }
  html[lang='th'] .application-page .application-section-heading h2 { font-size: 30px; }
  .application-page .application-guidance-note { padding: 18px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .application-page .admissions-orbit-ring { animation: none !important; }
}


/* 30 October 2026 — supplied About Us pages. Rules are intentionally isolated to .about-page. */
.about-page .about-hero { overflow: clip; background: radial-gradient(circle at 9% 18%, rgb(231 200 144 / 36%), transparent 29%), radial-gradient(circle at 83% 76%, rgb(132 177 188 / 32%), transparent 34%), linear-gradient(120deg, #f7f4ea 0%, #edf2ee 58%, #f9f0dc 100%); }
.about-page .about-hero::before { content: ''; position: absolute; top: -180px; right: -100px; width: 430px; height: 430px; border: 1px solid rgb(18 53 91 / 14%); border-radius: 50%; box-shadow: 0 0 0 38px rgb(172 133 69 / 7%), 0 0 0 92px rgb(18 53 91 / 4%); pointer-events: none; }
.about-page .about-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .52fr); gap: clamp(32px, 7vw, 112px); align-items: center; min-height: min(580px, 68vh); }
.about-page .about-hero-title { position: relative; padding-block: 24px; }
.about-page .about-hero-title .eyebrow { margin-bottom: 13px; }
.about-page .about-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.about-page .about-breadcrumb a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.about-page .about-hero h1 { max-width: 760px; font: 400 clamp(48px, 7vw, 92px)/.96 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
.about-page .about-hero-copy { position: relative; justify-self: end; width: min(100%, 390px); padding: clamp(30px, 4vw, 52px); border: 1px solid rgb(255 255 255 / 55%); border-radius: 8px 42px 8px 8px; color: #e7eff4; background: linear-gradient(150deg, #12355b, #1f4965); box-shadow: 12px 13px 0 rgb(172 133 69 / 21%), 0 22px 48px rgb(18 53 91 / 13%); }
.about-page .about-hero-copy::after { content: ''; position: absolute; inset: 11px; border-top: 1px solid rgb(231 200 144 / 45%); border-right: 1px solid rgb(231 200 144 / 45%); border-radius: 0 28px 0 0; pointer-events: none; }
.about-page .about-hero-crest { width: 92px; height: 92px; margin-bottom: 26px; object-fit: contain; filter: drop-shadow(0 8px 14px rgb(0 0 0 / 18%)); }
.about-page .about-hero-copy > p { font: 400 clamp(20px, 2vw, 28px)/1.5 var(--serif); letter-spacing: -.025em; }
.about-page .about-hero-copy .motion-toggle { margin-top: 23px; color: #d7e5ed; }
.about-page .about-narrow { width: min(100%, 930px); }
.about-page .about-wide { width: min(100%, 1180px); }
.about-page .about-introduction { background: rgb(255 255 255 / 55%); }
.about-page .about-introduction h2, .about-page .about-section-heading h2 { max-width: 800px; margin-bottom: 22px; }
.about-page .about-prose, .about-page .about-prose-stack { max-width: 850px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.about-page .about-prose > [data-lang], .about-page .about-prose-stack > p { margin: 0; }
.about-page .about-prose-stack { display: grid; gap: 20px; }
.about-page .about-prose-stack > p { color: var(--muted); }
.about-page .about-statement-section { position: relative; overflow: clip; color: var(--white); background: linear-gradient(128deg, #0e3153, #1f5567); }
.about-page .about-statement-section::after { content: ''; position: absolute; right: -130px; bottom: -170px; width: 480px; height: 480px; border: 1px solid rgb(231 200 144 / 34%); border-radius: 50%; box-shadow: 0 0 0 40px rgb(255 255 255 / 4%), 0 0 0 90px rgb(231 200 144 / 4%); }
.about-page .about-statement { position: relative; z-index: 1; margin: 0; padding: clamp(28px, 5vw, 64px); border-left: 2px solid var(--gold-light); font: 400 clamp(28px, 4.2vw, 56px)/1.25 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.about-page .about-statement cite { display: block; margin-top: 26px; color: var(--gold-light); font: 700 10px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.about-page .about-section-heading { max-width: 880px; margin-bottom: clamp(32px, 4vw, 52px); }
.about-page .about-section-heading > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.about-page .about-section-heading--center { margin-inline: auto; text-align: center; }
.about-page .about-section-heading--center .eyebrow::before { display: none; }
.about-page .about-item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(22px, 3vw, 42px); }
.about-page .about-item { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: clamp(22px, 2.5vw, 34px); border: 1px solid rgb(18 53 91 / 12%); border-radius: 8px 26px 8px 8px; background: rgb(255 255 255 / 90%); box-shadow: 0 12px 30px rgb(18 53 91 / 7%); }
.about-page .about-item::after { content: ''; position: absolute; right: 11px; top: 10px; width: 22px; height: 22px; border-top: 1px solid rgb(172 133 69 / 48%); border-right: 1px solid rgb(172 133 69 / 48%); border-radius: 0 12px 0 0; }
.about-page .about-item-number { display: grid; place-items: center; align-self: start; width: 42px; height: 42px; border: 1px solid rgb(172 133 69 / 60%); border-radius: 50%; color: var(--gold); background: #fffdf7; font: 400 16px/1 var(--serif); }
.about-page .about-item h3 { margin: 0; color: var(--navy); font: 400 clamp(23px, 2.4vw, 32px)/1.16 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.about-page .about-item-tagline { margin: 8px 0 13px; color: #7b5926; font-size: 12px; font-weight: 800; line-height: 1.6; letter-spacing: .025em; }
.about-page .about-item-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.84; }
.about-page .about-item-list { display: grid; gap: 8px; margin: 17px 0 0; padding-left: 18px; color: var(--ink); font-size: 12px; line-height: 1.72; list-style: disc; }
.about-page .about-item-list li { padding-left: 2px; }
.about-page .about-item-list li::marker { color: var(--gold); }
.about-page .about-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: 19px 0 0; }
.about-page .about-keywords span { padding: 4px 8px; border-radius: 100px; color: #58717d; background: #edf2ef; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.about-page .about-item-grid--mission { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-page .about-item-grid--mission .about-item { min-height: 220px; }
.about-page .about-closing { margin: clamp(28px, 5vw, 54px) 0 0; padding: 22px 26px; border: 1px dashed rgb(172 133 69 / 60%); border-radius: 8px; color: var(--navy); background: linear-gradient(105deg, rgb(231 200 144 / 15%), rgb(132 177 188 / 10%)); font: 400 clamp(19px, 2.3vw, 28px)/1.55 var(--serif); text-align: center; }
.about-page .about-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.about-page .about-pillar { position: relative; min-height: 205px; padding: 28px 24px; overflow: hidden; border: 1px solid rgb(18 53 91 / 11%); border-radius: 8px 22px 8px 8px; background: #fffdf8; box-shadow: 0 10px 26px rgb(18 53 91 / 6%); }
.about-page .about-pillar::after { content: ''; position: absolute; right: -30px; bottom: -45px; width: 120px; height: 120px; border: 1px solid rgb(172 133 69 / 24%); border-radius: 50%; }
.about-page .about-pillar > span { display: block; margin-bottom: 24px; color: var(--gold); font: 400 18px/1 var(--serif); }
.about-page .about-pillar h3 { position: relative; z-index: 1; margin: 0; color: var(--navy); font: 400 clamp(23px, 2.3vw, 32px)/1.16 var(--serif); letter-spacing: -.025em; }
.about-page .about-profile-list { display: grid; gap: clamp(26px, 4vw, 52px); }
.about-page .about-profile-row { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid rgb(18 53 91 / 11%); border-radius: 8px 32px 8px 8px; background: rgb(255 255 255 / 88%); box-shadow: 0 12px 30px rgb(18 53 91 / 7%); }
.about-page .about-profile-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr); }
.about-page .about-profile-row:nth-child(even) figure { order: 2; }
.about-page .about-profile-row figure { min-height: 220px; margin: 0; background: #e5ece7; }
.about-page .about-profile-row figure img { width: 100%; height: 100%; object-fit: cover; }
.about-page .about-profile-row > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(25px, 4vw, 58px); }
.about-page .about-profile-row h3 { margin: 18px 0 12px; color: var(--navy); font: 400 clamp(28px, 3.1vw, 42px)/1.08 var(--serif); letter-spacing: -.035em; }
.about-page .about-profile-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
html[lang='th'] .about-page .about-hero h1 { font-size: clamp(43px, 6vw, 78px); line-height: 1.2; letter-spacing: 0; }
html[lang='th'] .about-page .about-statement { line-height: 1.48; letter-spacing: 0; }
html[lang='th'] .about-page .about-item h3, html[lang='th'] .about-page .about-pillar h3, html[lang='th'] .about-page .about-profile-row h3 { line-height: 1.42; letter-spacing: 0; }
html[lang='th'] .about-page .about-item-copy, html[lang='th'] .about-page .about-profile-row p, html[lang='th'] .about-page .about-prose, html[lang='th'] .about-page .about-prose-stack { line-height: 1.95; }
@media (max-width: 900px) {
  .about-page .about-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, .43fr); gap: 28px; }
  .about-page .about-hero-copy { padding: 30px; }
  .about-page .about-item-grid { gap: 16px; }
  .about-page .about-profile-row, .about-page .about-profile-row:nth-child(even) { grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr); }
  .about-page .about-profile-row:nth-child(even) figure { order: 0; }
}
@media (max-width: 760px) {
  .about-page .about-hero-layout { grid-template-columns: 1fr; min-height: 0; }
  .about-page .about-hero-copy { justify-self: start; max-width: 520px; }
  .about-page .about-item-grid, .about-page .about-item-grid--mission { grid-template-columns: 1fr; }
  .about-page .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-page .about-profile-row, .about-page .about-profile-row:nth-child(even) { grid-template-columns: 1fr; }
  .about-page .about-profile-row:nth-child(even) figure { order: 0; }
  .about-page .about-profile-row figure { min-height: 190px; max-height: 320px; }
}
@media (max-width: 460px) {
  .about-page .about-hero-copy { padding: 25px; }
  .about-page .about-hero-crest { width: 72px; height: 72px; margin-bottom: 18px; }
  .about-page .about-statement { padding: 26px 20px; }
  .about-page .about-item { grid-template-columns: 37px minmax(0, 1fr); padding: 22px 18px; gap: 13px; }
  .about-page .about-item-number { width: 34px; height: 34px; font-size: 14px; }
  .about-page .about-pillars { grid-template-columns: 1fr; }
  .about-page .about-pillar { min-height: 150px; }
}


/* Student Life news mosaic: the homepage owns the data-story-count contract. */
.school-life .news-grid {
  --student-news-gap: clamp(14px, 1.5vw, 18px);
  --student-news-card-min: 290px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--student-news-gap);
}
.school-life .news-link { min-height: var(--student-news-card-min); }
.school-life .news-card--feature { grid-column: span 2; grid-row: span 2; }
.school-life .news-card--feature .news-link { min-height: 590px; }

/* Filtered results are a regular DOM-order grid, never a feature-shaped hole. */
.school-life .news-grid.is-filtered { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.school-life .news-grid.is-filtered .news-card,
.school-life .news-grid.is-filtered .news-card--feature { grid-column: auto; grid-row: auto; }
.school-life .news-grid.is-filtered .news-card--feature .news-link { min-height: var(--student-news-card-min); justify-content: flex-start; }
.school-life .news-grid.is-filtered .news-card--feature .news-cover { position: relative; inset: auto; aspect-ratio: 2 / 1; }
.school-life .news-grid.is-filtered .news-card--feature .news-cover::after { content: none; }
.school-life .news-grid.is-filtered .news-card--feature .news-content { position: relative; flex: 1; padding: 20px; gap: 12px; }
.school-life .news-grid.is-filtered .news-card--feature h3 { color: var(--ink); font-family: var(--sans); font-size: clamp(16px, 1.45vw, 21px); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; }
.school-life .news-grid.is-filtered .news-card--feature .news-category { padding: 0; border-radius: 0; color: #7b5926; background: transparent; }
.school-life .news-grid.is-filtered .news-card--feature .news-summary { color: var(--muted); }
.school-life .news-grid.is-filtered .news-card--feature .news-action { color: var(--navy); font-size: 10px; }

/* Small active sets avoid a two-by-two featured reservation. */
.school-life .news-grid[data-story-count='1'] { grid-template-columns: minmax(0, 1fr); }
.school-life .news-grid[data-story-count='1'] .news-card { grid-column: 1 / -1; grid-row: auto; }
.school-life .news-grid[data-story-count='1'] .news-card--feature .news-link { min-height: 380px; }
.school-life .news-grid[data-story-count='2'],
.school-life .news-grid[data-story-count='3'],
.school-life .news-grid[data-story-count='4'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.school-life .news-grid[data-story-count='2'] .news-card,
.school-life .news-grid[data-story-count='3'] .news-card,
.school-life .news-grid[data-story-count='4'] .news-card { grid-column: auto; grid-row: auto; }
.school-life .news-grid[data-story-count='2'] .news-card--feature .news-link,
.school-life .news-grid[data-story-count='3'] .news-card--feature .news-link,
.school-life .news-grid[data-story-count='4'] .news-card--feature .news-link { min-height: 380px; }

/* Filtered small sets keep the same no-hole count behavior while staying uniform. */
.school-life .news-grid.is-filtered[data-story-count='1'] { grid-template-columns: minmax(0, 1fr); }
.school-life .news-grid.is-filtered[data-story-count='2'],
.school-life .news-grid.is-filtered[data-story-count='3'],
.school-life .news-grid.is-filtered[data-story-count='4'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .school-life .news-grid,
  .school-life .news-grid.is-filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-life .news-card--feature { grid-column: span 2; grid-row: auto; }
  .school-life .news-card--feature .news-link { min-height: 430px; }
  .school-life .news-grid.is-filtered .news-card--feature { grid-column: auto; }
}

@media (max-width: 600px) {
  .school-life .news-grid,
  .school-life .news-grid.is-filtered,
  .school-life .news-grid[data-story-count],
  .school-life .news-grid.is-filtered[data-story-count] { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .school-life .news-card--feature { grid-column: auto; grid-row: auto; }
  .school-life .news-card--feature .news-link { min-height: 360px; }
  .school-life .news-grid.is-filtered .news-card--feature { grid-column: auto; }
  .school-life .news-grid[data-story-count='1'] .news-card--feature .news-link,
  .school-life .news-grid[data-story-count='2'] .news-card--feature .news-link,
  .school-life .news-grid[data-story-count='3'] .news-card--feature .news-link,
  .school-life .news-grid[data-story-count='4'] .news-card--feature .news-link { min-height: 360px; }
}


/* The second story is the optional horizontal two-column editorial tile. */
.school-life .news-grid:not(.is-filtered)[data-story-count='5'] .news-card--wide,
.school-life .news-grid:not(.is-filtered)[data-story-count='6'] .news-card--wide,
.school-life .news-grid:not(.is-filtered)[data-story-count='7'] .news-card--wide,
.school-life .news-grid:not(.is-filtered)[data-story-count='8'] .news-card--wide { grid-column: 1 / span 2; grid-row: 3; }
.school-life .news-grid:not(.is-filtered)[data-story-count='5'] .news-card--wide .news-link,
.school-life .news-grid:not(.is-filtered)[data-story-count='6'] .news-card--wide .news-link,
.school-life .news-grid:not(.is-filtered)[data-story-count='7'] .news-card--wide .news-link,
.school-life .news-grid:not(.is-filtered)[data-story-count='8'] .news-card--wide .news-link { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 320px; }
.school-life .news-grid:not(.is-filtered)[data-story-count='5'] .news-card--wide .news-cover,
.school-life .news-grid:not(.is-filtered)[data-story-count='6'] .news-card--wide .news-cover,
.school-life .news-grid:not(.is-filtered)[data-story-count='7'] .news-card--wide .news-cover,
.school-life .news-grid:not(.is-filtered)[data-story-count='8'] .news-card--wide .news-cover { height: 100%; min-height: 320px; aspect-ratio: auto; }

@media (max-width: 600px) {
  .school-life .news-grid:not(.is-filtered)[data-story-count] .news-card--wide { grid-column: auto; }
  .school-life .news-grid:not(.is-filtered)[data-story-count] .news-card--wide .news-link { display: flex; min-height: 290px; }
  .school-life .news-grid:not(.is-filtered)[data-story-count] .news-card--wide .news-cover { height: auto; min-height: 0; aspect-ratio: 2 / 1; }
}


/* Keep the position-two feature directly below the lead at every width. */
@media (min-width: 601px) and (max-width: 1024px) {
  .school-life .news-grid:not(.is-filtered)[data-story-count='5'] .news-card--wide,
  .school-life .news-grid:not(.is-filtered)[data-story-count='6'] .news-card--wide,
  .school-life .news-grid:not(.is-filtered)[data-story-count='7'] .news-card--wide,
  .school-life .news-grid:not(.is-filtered)[data-story-count='8'] .news-card--wide { grid-column: 1 / span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .school-life .news-grid:not(.is-filtered)[data-story-count] .news-card--wide { grid-column: auto; grid-row: auto; }
}


/* Compact Student Life tiles: square proportions instead of tall content-driven rows. */
.school-life .news-card:not(.news-card--feature):not(.news-card--wide) {
  align-self: start;
  container-type: inline-size;
}
.school-life .news-card:not(.news-card--feature):not(.news-card--wide) .news-link {
  aspect-ratio: auto;
  height: auto;
  min-height: 100cqw;
}
.school-life .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover {
  flex: none;
  height: 40cqw;
  min-height: 0;
  aspect-ratio: auto;
}
.school-life .news-card:not(.news-card--feature):not(.news-card--wide) .news-content {
  flex: 1 0 auto;
  min-height: 60cqw;
  padding: 12px;
  gap: 4px;
}
.school-life .news-card:not(.news-card--feature):not(.news-card--wide) h3 {
  font-size: 16px;
  line-height: 1.35;
}
.school-life .news-card:not(.news-card--feature):not(.news-card--wide) .news-summary {
  font-size: 11px;
  line-height: 1.5;
}
.school-life .news-card:not(.news-card--feature):not(.news-card--wide) .news-category {
  font-size: 9px;
  line-height: 1.5;
}
.school-life .news-card:not(.news-card--feature):not(.news-card--wide) .news-action {
  padding-top: 2px;
  font-size: 9px;
  line-height: 1.5;
}
@media (min-width: 1025px) {
  .school-life .news-grid:not(.is-filtered):is([data-story-count='5'], [data-story-count='6'], [data-story-count='7'], [data-story-count='8']) .news-card--feature .news-link,
  .school-life .news-grid:not(.is-filtered):is([data-story-count='5'], [data-story-count='6'], [data-story-count='7'], [data-story-count='8']) .news-card--wide .news-link,
  .school-life .news-grid:not(.is-filtered):is([data-story-count='5'], [data-story-count='6'], [data-story-count='7'], [data-story-count='8']) .news-card--wide .news-cover {
    min-height: 0;
  }
}


/* Phone cards are content-sized; square minimums belong to the multi-column mosaic. */
@media (max-width: 600px) {
  .school-life .news-grid[data-story-count][data-news-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }
  .school-life .news-grid:not(.is-filtered)[data-story-count][data-news-grid] :is(.news-card--feature, .news-card--wide) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card .news-link {
    height: auto;
    min-height: 0;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card .news-cover {
    flex: none;
    height: clamp(84px, 23vw, 138px);
    min-height: 0;
    aspect-ratio: auto;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card .news-content {
    flex: 0 0 auto;
    min-height: 0;
    padding: 10px;
    gap: 5px;
    overflow-wrap: anywhere;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card h3 {
    font-size: 15px;
    line-height: 1.4;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card .news-summary {
    font-size: 12px;
    line-height: 1.55;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card .news-action {
    margin-top: 0;
    padding-top: 2px;
    font-size: 10px;
  }
  .school-life .news-grid:not(.is-filtered)[data-story-count][data-news-grid] .news-card--feature .news-link {
    min-height: clamp(280px, 72vw, 320px);
  }
  .school-life .news-grid:not(.is-filtered)[data-story-count][data-news-grid] .news-card--feature .news-cover {
    height: 100%;
  }
  .school-life .news-grid:not(.is-filtered)[data-story-count][data-news-grid] .news-card--feature .news-content {
    padding: 18px;
    gap: 8px;
  }
  .school-life .news-grid:not(.is-filtered)[data-story-count][data-news-grid] .news-card--feature h3 {
    font-size: 26px;
    line-height: 1.2;
  }
}


/* News & Announcements archive and homepage More action. */
.news-more-wrap { display: flex; justify-content: flex-end; margin-top: 26px; }
.news-more-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 20px; border: 1px solid rgb(232 201 145 / 72%); border-radius: 999px; color: #092944; background: var(--gold-light); font-size: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgb(5 22 37 / 18%); transition: transform .2s, box-shadow .2s, background .2s; }
.news-more-link:hover { transform: translateY(-2px); background: #f1d9ae; box-shadow: 0 12px 28px rgb(5 22 37 / 24%); }
.news-more-link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.news-archive .section-heading-group h1 { margin: 0; color: var(--white); font-family: var(--serif); font-size: clamp(34px, 4.2vw, 58px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.news-archive .news-grid:not(.is-filtered) .news-card--wide { grid-column: 1 / span 2; grid-row: 3; }
@media (min-width: 601px) and (max-width: 1024px) {
  .news-archive .news-grid:not(.is-filtered) .news-card--wide { grid-column: 1 / span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .news-more-wrap { justify-content: center; }
  .news-more-link { width: min(100%, 340px); }
  .news-archive .news-grid:not(.is-filtered) .news-card--feature,
  .news-archive .news-grid:not(.is-filtered) .news-card--wide { grid-column: 1 / -1; grid-row: auto; }
  html[lang='th'] .news-archive .section-heading-group h1 { font-family: var(--sans); line-height: 1.35; letter-spacing: 0; }
}

.news-archive .archive-order-note {
  max-width: 68ch;
  margin: 0 0 clamp(1rem, 2vw, 1.4rem);
  color: var(--muted, #5d6872);
  font-size: 0.95rem;
  line-height: 1.65;
}


/* 5 November 2026 — photo-forward Student Life cards. */
.school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide),
.news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) {
  align-self: start;
  container-type: inline-size;
}
.school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-link,
.news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-link {
  min-height: 100cqw;
  height: auto;
}
.school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover,
.news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover {
  flex: none;
  height: 64cqw;
  min-height: 0;
  aspect-ratio: auto;
}
.school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-content,
.news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-content {
  flex: 0 0 auto;
  min-height: 0;
  padding: 12px;
  gap: 4px;
}
.school-life .news-grid:not(.is-filtered)[data-story-count][data-news-grid] .news-card--wide .news-link,
.school-life .news-grid.is-filtered[data-story-count][data-news-grid] .news-card--wide .news-link,
.news-archive .news-grid:not(.is-filtered)[data-story-count] .news-card--wide .news-link,
.news-archive .news-grid.is-filtered[data-story-count] .news-card--wide .news-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}
.school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-link::after,
.news-archive .news-grid[data-story-count] .news-card--wide .news-link::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(255 255 255 / 0%) 38%, rgb(255 255 255 / 34%) 51%, rgb(255 255 255 / 90%) 64%, #fff 75%);
}
.school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-cover,
.news-archive .news-grid[data-story-count] .news-card--wide .news-cover {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-content,
.news-archive .news-grid[data-story-count] .news-card--wide .news-content {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  min-width: 0;
  margin: 0;
  padding: 22px 22px 22px clamp(42px, 5vw, 72px);
  background: transparent;
}
@media (max-width: 600px) {
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover {
    height: clamp(160px, calc(100cqw + 20px), 220px);
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-link,
  .news-archive .news-grid[data-story-count] .news-card--wide .news-link {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    min-height: 220px;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-link::after,
  .news-archive .news-grid[data-story-count] .news-card--wide .news-link::after {
    background: linear-gradient(90deg, rgb(255 255 255 / 0%) 32%, rgb(255 255 255 / 42%) 45%, rgb(255 255 255 / 94%) 58%, #fff 70%);
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-cover,
  .news-archive .news-grid[data-story-count] .news-card--wide .news-cover {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-content,
  .news-archive .news-grid[data-story-count] .news-card--wide .news-content {
    padding: 12px 10px 12px 18px;
    gap: 6px;
  }
}


/* Tighten small-phone text blocks so the real photographs remain the dominant area. */
@media (max-width: 600px) {
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-content,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-content { padding: 8px; gap: 4px; }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) h3,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-summary,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.45;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-category,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-category { font-size: 8px; }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-action,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-action { font-size: 9px; }
}


/* Prevent four-column tiles from tipping back toward text-heavy at small desktop widths. */
@media (min-width: 1001px) and (max-width: 1100px) {
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover { height: 74cqw; }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) h3,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) h3 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-summary,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-summary {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
}


/* Let the phone-sized Wide tile use a readable text measure without taking half the card. */
@media (max-width: 600px) {
  .school-life .news-grid:not(.is-filtered)[data-story-count][data-news-grid] .news-card--wide .news-link,
  .school-life .news-grid.is-filtered[data-story-count][data-news-grid] .news-card--wide .news-link,
  .news-archive .news-grid:not(.is-filtered)[data-story-count] .news-card--wide .news-link,
  .news-archive .news-grid.is-filtered[data-story-count] .news-card--wide .news-link {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}


/* Shared row edges: let compact photos absorb row-height differences from varying copy. */
.school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide),
.news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-link,
.news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-link {
  flex: 1 1 auto;
  height: auto;
}
.school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover,
.news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover {
  flex: 1 0 64cqw;
  height: auto;
  min-height: 64cqw;
}
@media (min-width: 1001px) and (max-width: 1100px) {
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover {
    flex-basis: 74cqw;
    min-height: 74cqw;
  }
}
@media (max-width: 600px) {
  .school-life .news-grid[data-story-count][data-news-grid] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover,
  .news-archive .news-grid[data-story-count] .news-card:not(.news-card--feature):not(.news-card--wide) .news-cover {
    flex-basis: clamp(160px, calc(100cqw + 20px), 220px);
    min-height: clamp(160px, calc(100cqw + 20px), 220px);
  }
}

/* Ease the Wide-card image into a clean reading surface over a broader transition. */
.school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-link::after,
.news-archive .news-grid[data-story-count] .news-card--wide .news-link::after {
  background: linear-gradient(90deg,
    rgb(255 255 255 / 0%) 24%,
    rgb(255 255 255 / 3%) 32%,
    rgb(255 255 255 / 8%) 39%,
    rgb(255 255 255 / 18%) 46%,
    rgb(255 255 255 / 31%) 53%,
    rgb(255 255 255 / 47%) 60%,
    rgb(255 255 255 / 64%) 67%,
    rgb(255 255 255 / 79%) 74%,
    rgb(255 255 255 / 92%) 81%,
    #fff 88%);
}
@media (max-width: 600px) {
  .school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-link::after,
  .news-archive .news-grid[data-story-count] .news-card--wide .news-link::after {
    background: linear-gradient(90deg,
      rgb(255 255 255 / 0%) 14%,
      rgb(255 255 255 / 3%) 21%,
      rgb(255 255 255 / 10%) 28%,
      rgb(255 255 255 / 20%) 35%,
      rgb(255 255 255 / 34%) 42%,
      rgb(255 255 255 / 50%) 49%,
      rgb(255 255 255 / 67%) 56%,
      rgb(255 255 255 / 82%) 63%,
      rgb(255 255 255 / 93%) 70%,
      #fff 78%);
  }
}

/* Preserve the desktop mosaic at the 1001–1024px four-column range. */
@media (min-width: 1001px) and (max-width: 1024px) {
  .school-life .news-grid:not(.is-filtered)[data-story-count][data-news-grid] .news-card--wide,
  .news-archive .news-grid:not(.is-filtered) .news-card--wide {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
}


/* Continue the Wide photo beneath the gradient and text to remove the image-edge seam. */
.school-life .news-grid[data-story-count][data-news-grid] .news-card--wide .news-cover,
.news-archive .news-grid[data-story-count] .news-card--wide .news-cover {
  grid-column: 1 / -1;
}


/* Adaptive story sizes: dense placement packs the recent-first feed without holes. */
.school-life .news-grid[data-homepage-fit],
.news-archive .news-grid { grid-auto-flow: row dense; }
.school-life .news-grid[data-homepage-fit].is-filtered { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.school-life .news-grid[data-homepage-fit] .news-card--feature,
.news-archive .news-grid .news-card--feature { grid-column: span 2; grid-row: span 2; }
.school-life .news-grid[data-homepage-fit] .news-card--wide,
.news-archive .news-grid .news-card--wide { grid-column: span 2; grid-row: span 1; }
.school-life .news-grid[data-homepage-fit] .news-card:not(.news-card--feature):not(.news-card--wide),
.news-archive .news-grid .news-card:not(.news-card--feature):not(.news-card--wide) { grid-column: span 1; grid-row: span 1; }
@media (max-width: 1000px) {
  .school-life .news-grid[data-homepage-fit].is-filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-life .news-grid[data-homepage-fit] .news-card--feature,
  .news-archive .news-grid .news-card--feature { grid-column: span 2; grid-row: span 1; }
}


/* Per-story layout supersedes the old position-one/position-two mosaic rules. */
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--news-cell, minmax(140px, auto));
  grid-auto-flow: row dense;
  align-items: stretch;
}
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size] {
  align-self: stretch;
  display: block;
  min-height: 0;
  container-type: normal;
  grid-column: span 1;
  grid-row: span 1;
}
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] { grid-column: span 2; grid-row: span 2; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='wide'] { grid-column: span 2; grid-row: span 1; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size] .news-link { height: 100%; min-height: 0; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] .news-link { display: flex; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] .news-cover {
  flex: 1 1 60%; height: 60%; min-height: 0; aspect-ratio: auto;
}
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] .news-content {
  flex: 0 0 auto; min-height: 0; max-height: 44%; padding: 8px 10px; gap: 3px; overflow: hidden;
}
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] h3 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: clamp(12px, 1.1vw, 16px); line-height: 1.3; margin: 0;
}
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] .news-summary {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden;
  font-size: 10px; line-height: 1.35; margin: 0;
}
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] .news-category { font-size: 8px; line-height: 1.2; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] .news-action { margin-top: 0; padding: 0; font-size: 9px; line-height: 1.2; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] .news-action > [aria-hidden] { font-size: 14px; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] .news-link { justify-content: flex-end; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] .news-cover { position: absolute; inset: 0; height: 100%; min-height: 0; aspect-ratio: auto; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] .news-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 12%, rgb(8 29 48 / 12%) 38%, rgb(8 29 48 / 97%) 100%); }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] .news-content { flex: 0 0 auto; padding: clamp(16px, 2vw, 28px); gap: 8px; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] h3 { color: #fff; font-family: var(--serif); font-size: clamp(24px, 2.7vw, 40px); line-height: 1.15; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] .news-category { padding: 4px 10px; border-radius: 100px; color: var(--deep); background: var(--gold-light); }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] :is(.news-summary, .news-action) { color: #e8f0f4; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='wide'] .news-link { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='wide'] .news-cover { grid-column: 1 / -1; grid-row: 1; height: 100%; min-height: 0; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='wide'] .news-content { padding: clamp(10px, 1.4vw, 20px); gap: 5px; overflow: hidden; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='wide'] h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: clamp(15px, 1.6vw, 23px); line-height: 1.3; }
.school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='wide'] .news-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 11px; line-height: 1.45; }
@media (max-width: 1000px) {
  .school-life .news-grid[data-news-grid][data-story-count][data-size-layout] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] { grid-column: span 2; grid-row: span 1; }
  .school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] h3 { font-size: clamp(20px, 3.2vw, 30px); }
  .school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] .news-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
}
@media (max-width: 600px) {
  .school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] .news-content { padding: 6px; gap: 2px; }
  .school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='normal'] .news-summary { display: none; }
  .school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='wide'] .news-summary { display: none; }
}

.school-life .news-grid[data-size-layout] .news-card[hidden] { display: none !important; }
@media (max-width: 600px) {
  .school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .school-life .news-grid[data-news-grid][data-story-count][data-size-layout] .news-card[data-card-size='large'] .news-summary { display: none; }
}


/* Student Life article reader — separate from the original-image gallery. */
.news-article-dialog { width: min(900px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; border: 1px solid #d8d2c4; border-radius: 16px; color: var(--ink); background: #fffdf8; box-shadow: 0 24px 90px rgb(5 23 40 / 35%); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.news-article-dialog::backdrop { background: rgb(5 23 40 / 82%); }
.article-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #dce2e0; background: #fffdf8f5; }
.article-edition { color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.article-controls { display: flex; align-items: center; gap: 12px; }
.article-languages { display: flex; gap: 2px; padding: 3px; border: 1px solid #c8d3d7; border-radius: 28px; }
.article-languages button { min-height: 38px; padding: 6px 12px; border: 0; border-radius: 22px; color: var(--navy); background: transparent; font: 600 11px/1.4 var(--sans); }
.article-languages button[aria-pressed='true'] { color: #fff; background: var(--navy); }
.article-close { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #c8d3d7; border-radius: 50%; color: var(--navy); background: #fff; font: 28px/1 var(--sans); }
.article-reader { padding: clamp(22px, 4vw, 48px); }
.article-heading { max-width: 720px; margin: 0 auto 26px; }
.article-category { color: #805d2a; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.article-title { color: var(--navy); font: 400 clamp(28px, 4vw, 46px)/1.16 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.article-deck { margin-top: 18px; color: #4f6776; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.article-figure { margin: 0 0 30px; padding: 8px; border: 1px solid #d9ded6; border-radius: 8px; background: #eef1ea; }
.article-image { display: block; width: 100%; max-height: 420px; height: auto; object-fit: contain; margin-inline: auto; }
.article-body { max-width: 67ch; margin-inline: auto; color: #263f50; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.article-body p { white-space: pre-line; margin: 0; }
.article-body p + p { margin-top: 1.25em; }
html[lang='th'] .article-title { line-height: 1.4; }
@media (max-width: 600px) {
  .article-toolbar { padding: 9px 12px; gap: 8px; }
  .article-edition { max-width: 12ch; font-size: 9px; }
  .article-controls { gap: 7px; }
  .article-languages button { padding-inline: 9px; min-height: 38px; }
  .article-reader { padding: 22px 19px 30px; }
  .article-heading { margin-bottom: 21px; }
  .article-title { font-size: 28px; }
  .article-deck, .article-body { font-size: 14px; }
  .article-image { max-height: 320px; }
  .article-figure { margin-bottom: 24px; }
}
