/* ==========================================================
   สำนักงานจริยธรรมการวิจัยในคน วิทยาลัยพยาบาลบรมราชชนนี จักรีรัช
   ========================================================== */
:root {
  --green-950: #0b2e20;
  --green-900: #103d2b;
  --green-800: #17513a;
  --green-700: #1d5c3e;
  --green-600: #2a7350;
  --green-500: #3d8b63;
  --green-200: #cfe5d5;
  --green-100: #e5f1e8;
  --green-50:  #f3f8f2;
  --gold-600: #a67c1f;
  --gold-500: #c79a3a;
  --gold-300: #e6cd8f;
  --gold-100: #f7eed6;
  --cream: #fcfaf3;
  --ink: #17251d;
  --text: #33443a;
  --muted: #64756b;
  --line: #dde7df;
  --white: #fff;
  --red-500: #c4543f;
  --red-50: #fbeeea;
  --blue-600: #2c5f9e;
  --blue-50: #ebf2fb;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 61, 43, .06), 0 2px 8px rgba(16, 61, 43, .05);
  --shadow: 0 2px 6px rgba(16, 61, 43, .05), 0 12px 32px rgba(16, 61, 43, .09);
  --shadow-lg: 0 24px 60px rgba(11, 46, 32, .18);
  --font: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Noto Serif Thai", "IBM Plex Sans Thai", serif;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(920px, 100% - 40px); }
@media (max-width: 600px) {
  .container, .container.narrow { width: calc(100% - 32px); }
}

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green-800); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-600); margin: 0 0 .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.h-section { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem); letter-spacing: -.005em; }
.lead { font-size: 1.07rem; color: var(--muted); max-width: 60ch; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; line-height: 1;
  padding: 6px 11px; border-radius: 999px;
  background: var(--green-100); color: var(--green-800);
  white-space: nowrap;
}
.chip .ico { width: 1em; height: 1em; }
.chip-gold { background: var(--gold-100); color: #7c5a12; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green-700); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; min-height: 44px;
  border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .97rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); color: var(--fg); }
.btn-primary { --bg: var(--green-700); box-shadow: 0 6px 18px rgba(29, 92, 62, .28); }
.btn-primary:hover { --bg: var(--green-800); box-shadow: 0 10px 24px rgba(29, 92, 62, .32); }
.btn-light { --bg: #fff; --fg: var(--green-800); --bd: var(--green-200); }
.btn-light:hover { --bd: var(--green-500); }
.btn-ghost { --bg: transparent; --fg: var(--green-700); --bd: var(--green-200); }
.btn-ghost:hover { --bg: var(--green-50); --bd: var(--green-500); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; min-height: 52px; }
.btn-sm { padding: 7px 14px; min-height: 38px; font-size: .88rem; }
.btn-pdf { --bg: var(--red-50); --fg: #a63a26; --bd: #f2d2c9; }
.btn-pdf:hover { --bg: #f8dfd7; }
.btn-word { --bg: var(--blue-50); --fg: var(--blue-600); --bd: #cfe0f3; }
.btn-word:hover { --bg: #dce9f8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; word-break: break-word; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .ico { transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 243, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(16, 61, 43, .06); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--green-900); }
.brand-text small { font-size: .82rem; color: var(--muted); }

.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 9px 13px; border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; white-space: nowrap;
  transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--green-100); color: var(--green-900); }
.site-nav a[aria-current="page"] { background: var(--green-700); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; color: var(--green-800);
  }
  .nav-toggle .ico { width: 24px; height: 24px; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(16, 61, 43, .12);
    padding: 12px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { padding: 13px 16px; border-radius: 12px; font-size: 1.02rem; }
}
@media (max-width: 480px) {
  :root { --header-h: 66px; }
  .brand img { width: 42px; }
  .brand-text strong { font-size: .95rem; }
  .brand-text small { font-size: .74rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 85% 10%, rgba(199, 154, 58, .14), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(61, 139, 99, .16), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--green-50) 100%);
  padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 100px);
}
.hero-deco {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(29, 92, 62, .14) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(110deg, #000 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(110deg, #000 0%, transparent 45%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.badge-necast {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--gold-300); color: #7c5a12;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.badge-necast .ico { color: var(--gold-500); width: 1.3em; height: 1.3em; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1.22; letter-spacing: -.01em;
  color: var(--green-900); margin-bottom: 18px;
}
.br-sm { display: none; }
.hero-sub { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--text); font-weight: 500; margin-bottom: 8px; }
.hero-en { font-size: .95rem; color: var(--muted); letter-spacing: .01em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--green-800); background: var(--green-100); padding: 8px 16px; border-radius: 12px; margin: 0; }
.hero-note strong { color: var(--green-900); }

.hero-visual { position: relative; justify-self: center; width: min(440px, 100%); }
.hero-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 46% 54% 42% 58% / 38% 40% 60% 62%;
  box-shadow: var(--shadow-lg);
  border: 8px solid #fff;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-logo {
  position: absolute; left: -36px; bottom: 34px;
  width: 128px; aspect-ratio: 1; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; padding: 12px;
  animation: float 6s ease-in-out infinite;
}
.hero-stat {
  position: absolute; right: -14px; top: 30px;
  background: var(--green-800); color: #fff;
  padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.3;
  animation: float 6s ease-in-out infinite -3s;
}
.hero-stat strong { font-size: 1.25rem; letter-spacing: .04em; color: var(--gold-300); }
.hero-stat span { font-size: .85rem; opacity: .9; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(320px, 74%); }
  .hero-text { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-logo { width: 100px; left: -22px; bottom: 18px; }
  .hero-stat { right: -18px; }
}
@media (max-width: 480px) {
  .br-sm { display: inline; }
  .hero-cta .btn { width: 100%; }
  .hero-note { font-size: .88rem; }
}

/* ---------- Quick links ---------- */
.quick { margin-top: -44px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-200); color: var(--ink); }
.quick-ico { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-600), var(--green-800)); color: #fff; }
.quick-ico .ico { width: 24px; height: 24px; }
.quick-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.quick-text strong { font-size: 1.02rem; }
.quick-text small { color: var(--muted); font-size: .84rem; }
.quick-arrow { margin-left: auto; color: var(--green-500); transition: transform .25s var(--ease); }
.quick-card:hover .quick-arrow { transform: translateX(4px); }
@media (max-width: 1100px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: 1fr; gap: 10px; } .quick-card { padding: 16px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding-top: clamp(36px, 5vw, 56px); }
.section-soft { background: var(--green-50); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(26px, 4vw, 40px); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.section-head-row .muted { margin: 0; max-width: 42ch; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-text p:not(.eyebrow) { text-align: justify; text-justify: inter-character; }
.about-figure { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 736 / 241; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.milestones li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.ms-year {
  flex: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--green-800); background: var(--gold-100); border-radius: 10px; padding: 4px 10px;
}
.milestones strong { color: var(--ink); display: block; margin-bottom: 2px; }
.milestones p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Fees */
.fees { background: linear-gradient(180deg, var(--green-50), var(--cream)); }
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "a bank" "b bank"; gap: 18px; align-items: stretch; }
.fee-grid > .fee-card:first-child { grid-area: a; }
.fee-grid > .fee-card-alt { grid-area: b; }
.fee-grid > .bank-card { grid-area: bank; display: flex; flex-direction: column; justify-content: center; }
.fee-card {
  position: relative; padding: 22px 26px 22px 30px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.fee-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); background: var(--green-500); }
.fee-card-alt::before { background: var(--gold-500); }
.fee-who { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.fee-price { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; font-weight: 700; color: var(--green-800); margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fee-card-alt .fee-price { color: #8a6514; }
.fee-price small { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--muted); }
.fee-note { font-size: .92rem; color: var(--muted); margin: 0; }
.bank-card {
  padding: 26px; border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(230, 205, 143, .25), transparent 70%),
    linear-gradient(140deg, var(--green-700), var(--green-950));
  box-shadow: var(--shadow-lg);
}
.bank-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.bank-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--gold-300); }
.bank-ico .ico { width: 24px; height: 24px; }
.bank-name { font-weight: 700; font-size: 1.1rem; margin: 0; }
.bank-acc-name { margin: 0; font-size: .9rem; opacity: .82; line-height: 1.5; }
.bank-label { font-size: .82rem; letter-spacing: .06em; opacity: .7; margin: 0 0 4px; }
.bank-number { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 12px 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px dashed rgba(230, 205, 143, .5); margin-bottom: 16px; }
.bank-number > span { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--gold-300); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 0; background: #fff; color: var(--green-800); font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .2s; }
.copy-btn:hover { background: var(--gold-100); }
.copy-btn.is-done { background: var(--gold-300); }
.bank-send { margin: 0; font-size: .93rem; opacity: .92; }
.bank-send a { color: var(--gold-300); font-weight: 600; }
@media (max-width: 760px) { .fee-grid { grid-template-columns: 1fr; grid-template-areas: "a" "b" "bank"; } }

/* Announcement */
.announce-grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(32px, 5vw, 64px); align-items: center; }
.pill-steps { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pill-steps li { position: relative; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); line-height: 1.45; }
.pill-steps li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: #fff; font-size: .9rem; margin-bottom: 8px; }
.pill-steps small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.schedule-card, .chart-card, .flowchart-card {
  position: relative; display: block; width: 100%; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.schedule-card:hover, .chart-card:hover, .flowchart-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.schedule-card img, .chart-card img, .flowchart-card img { width: 100%; border-radius: 12px; }
.schedule-card { transform: rotate(1.2deg); }
.schedule-card:hover { transform: rotate(0) translateY(-4px); }
.zoom-hint {
  position: absolute; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(16, 61, 43, .88); color: #fff;
}
.holiday { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.holiday summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--green-800); display: flex; align-items: center; gap: 8px; list-style: none; }
.holiday summary::-webkit-details-marker { display: none; }
.holiday summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--green-500); }
.holiday[open] summary::after { content: "–"; }
.holiday-frame { padding: 0 12px 12px; }
.holiday-frame iframe { width: 100%; height: 420px; border: 0; border-radius: 10px; }
@media (max-width: 900px) {
  .announce-grid { grid-template-columns: 1fr; }
  .schedule-card { max-width: 440px; margin-inline: auto; transform: none; }
}
@media (max-width: 520px) { .pill-steps { grid-template-columns: 1fr; } .pill-steps li { display: flex; gap: 12px; align-items: center; } .pill-steps li span { margin: 0; flex: none; } }

/* Resources */
.resources { padding-top: 0; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.res-card { padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.res-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gold-100); color: var(--gold-600); margin-bottom: 16px; }
.res-ico .ico { width: 26px; height: 26px; }
.res-card h2 { font-family: var(--font-display); font-size: 1.4rem; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.res-list li { padding-top: 16px; border-top: 1px solid var(--line); }
.res-list li:first-child { border-top: 0; padding-top: 0; }
.res-list strong { display: block; color: var(--ink); margin-bottom: 4px; }
.res-list p { font-size: .94rem; color: var(--muted); margin-bottom: 6px; }
.ref-list { list-style: none; margin: 0; padding: 0; counter-reset: ref; }
.ref-list li { counter-increment: ref; position: relative; padding: 12px 0 12px 46px; border-top: 1px solid var(--line); line-height: 1.6; }
.ref-list li:first-child { border-top: 0; }
.ref-list li::before { content: counter(ref, decimal-leading-zero); position: absolute; left: 0; top: 11px; font-weight: 700; color: var(--green-500); font-size: .95rem; }
@media (max-width: 800px) { .res-grid { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news { background: linear-gradient(180deg, var(--cream), var(--green-50)); }
.featured {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 26px;
}
.featured-media { position: relative; border: 0; padding: 0; cursor: zoom-in; background: var(--green-900); min-height: 320px; overflow: hidden; }
.featured-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured-media:hover > img { transform: scale(1.04); }
.featured-body { position: relative; padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; }
.featured-body h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); margin-top: 10px; }
.featured-body p { color: var(--muted); font-size: .95rem; text-align: justify; text-justify: inter-character; margin-bottom: 0; }
.featured-award { margin: 20px 0 0; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--gold-100); border: 1px solid var(--gold-300); align-self: flex-start; }
.featured-award img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; }
.featured-award figcaption { display: flex; flex-direction: column; line-height: 1.4; }
.featured-award strong { color: #6d4f0f; font-size: .95rem; }
.featured-award small { color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured-media { aspect-ratio: 16 / 10; min-height: 0; }
}

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-grid > .news-card:first-child { grid-column: span 2; }
.news-grid > .news-card:first-child .news-media { aspect-ratio: 8 / 3.05; }
@media (max-width: 1100px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } .news-grid > .news-card:first-child { grid-column: auto; } .news-grid > .news-card:first-child .news-media { aspect-ratio: 4 / 3; } }
.news-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-media { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-100); }
.news-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-media > img { transform: scale(1.05); }
.news-count {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(11, 46, 32, .78); color: #fff; backdrop-filter: blur(6px);
}
.news-minis { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 5px; }
.news-minis img { width: 46px; height: 36px; object-fit: cover; border-radius: 7px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.news-body { padding: 18px 20px 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.news-meta time { display: inline-flex; align-items: center; gap: 6px; }
.news-body h3 { font-size: 1.04rem; font-weight: 600; line-height: 1.55; margin: 10px 0 0; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(230, 205, 143, .28), transparent 70%),
    radial-gradient(600px 400px at -10% 120%, rgba(61, 139, 99, .5), transparent 70%),
    linear-gradient(135deg, var(--green-800), var(--green-950));
  padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 76px);
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px;
  background: url("/assets/img/logo.png") center / contain no-repeat; opacity: .07;
  filter: grayscale(1) brightness(3);
}
.page-hero h1 { color: #fff; font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); margin-bottom: 8px; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 62ch; font-size: 1.04rem; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .88rem; margin-bottom: 14px; color: rgba(255, 255, 255, .65); }
.crumbs a { color: var(--gold-300); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* ---------- Committee ---------- */
.role-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 26px; }
.role { padding: 16px 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.4; }
.role strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--green-700); line-height: 1.2; }
.role span { font-size: .88rem; font-weight: 500; color: var(--text); }
.role small { color: var(--muted); font-weight: 400; }
.chart-card { padding: 10px; }
@media (max-width: 900px) { .role-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .role-strip { grid-template-columns: repeat(2, 1fr); } }

.orders { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 14px; }
.orders::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: var(--green-200); }
.order { position: relative; }
.order-dot { position: absolute; left: -26px; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--green-500); }
.order.is-latest .order-dot { border-color: var(--gold-500); box-shadow: 0 0 0 5px rgba(199, 154, 58, .2); }
.order-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.order.is-latest .order-card { border-color: var(--gold-300); }
.order-label { margin: 0 0 4px; font-weight: 600; color: var(--ink); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.order-date { margin: 0; color: var(--muted); font-size: .93rem; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Search / filter ---------- */
.search-box { position: relative; margin-bottom: 18px; }
.search-box .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search-box input {
  width: 100%; padding: 15px 18px 15px 50px; font: inherit; font-size: 1rem;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(61, 139, 99, .15); }
.filter-empty { text-align: center; color: var(--muted); padding: 24px; background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }
.is-hidden { display: none !important; }

/* ---------- SOP ---------- */
.sop-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.sop-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.sop-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); border: 6px solid #fff; }
.sop-facts { margin: 26px 0 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.sop-facts div { display: flex; justify-content: space-between; padding: 12px 16px; background: #fff; }
.sop-facts dt { color: var(--muted); }
.sop-facts dd { margin: 0; font-weight: 700; color: var(--green-800); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.doc-item:hover { border-color: var(--green-200); box-shadow: var(--shadow); transform: translateX(3px); }
.doc-num {
  flex: none; width: 58px; height: 58px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--green-50); border: 1px solid var(--green-200);
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--green-800);
}
.doc-num small { font-family: var(--font); font-size: .62rem; letter-spacing: .1em; font-weight: 600; color: var(--gold-600); margin-bottom: 3px; }
.doc-title { flex: 1; font-weight: 500; color: var(--ink); line-height: 1.5; }
@media (max-width: 860px) {
  .sop-layout { grid-template-columns: 1fr; }
  .sop-aside { position: static; display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
  .sop-facts { margin: 0; }
}
@media (max-width: 520px) {
  .doc-item { flex-wrap: wrap; }
  .doc-item .btn { margin-left: 74px; }
  .doc-num { width: 50px; height: 50px; font-size: 1.2rem; }
  .sop-aside { grid-template-columns: 120px 1fr; gap: 14px; }
}

/* ---------- Forms ---------- */
.callout {
  display: flex; gap: 18px; padding: 22px 24px; margin-bottom: 26px;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--gold-100), #fff 70%);
  border: 1px solid var(--gold-300);
}
.callout-ico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-500); color: #fff; }
.callout-ico .ico { width: 26px; height: 26px; }
.callout-title { font-weight: 700; color: var(--ink); font-size: 1.08rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.callout p { margin-bottom: 8px; }
.form-group { margin-top: 30px; }
.form-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--green-100); }
.form-group-head h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.form-group-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.form-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.form-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.form-item:hover { border-color: var(--green-200); box-shadow: var(--shadow); }
.form-code { font-weight: 700; font-size: .85rem; letter-spacing: .03em; color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-200); padding: 6px 10px; border-radius: 9px; white-space: nowrap; }
.form-title { color: var(--ink); font-weight: 500; line-height: 1.5; }
.form-actions { display: flex; gap: 8px; }
@media (max-width: 640px) {
  .form-item { grid-template-columns: 1fr; gap: 10px; }
  .form-code { justify-self: start; }
  .form-actions .btn { flex: 1; }
  .callout { flex-direction: column; gap: 12px; }
}

/* ---------- Review flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-bottom: 26px; }
.flow-step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--green-200) 0 6px, transparent 6px 12px); }
.flow-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: #fff; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; box-shadow: 0 0 0 6px var(--green-100); }
.flow-card { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.flow-head h2 { font-size: 1.15rem; margin: 0; }
.flow-card p { margin-bottom: 0; }
.doc-sets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.doc-set { padding: 14px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); }
.doc-set-qty { font-weight: 700; color: var(--green-800); font-size: .9rem; margin-bottom: 8px !important; }
.doc-set p:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.code { display: inline-block; font-size: .82rem; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.branch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.branch-item { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
.branch-item .ico { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; color: #fff; stroke-width: 2.5; }
.branch-item.ok { background: var(--green-50); }
.branch-item.ok .ico { background: var(--green-600); }
.branch-item.warn { background: #fdf3ea; }
.branch-item.warn .ico { background: #d9822b; }
@media (max-width: 600px) {
  .flow-step { grid-template-columns: 40px 1fr; gap: 12px; }
  .flow-num { width: 40px; height: 40px; font-size: 1.1rem; box-shadow: 0 0 0 4px var(--green-100); }
  .flow-step::before { left: 19px; top: 40px; }
  .doc-sets, .branch { grid-template-columns: 1fr; }
  .flow-card { padding: 16px; }
}

.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.track { --c: var(--green-600); --c-soft: var(--green-50); display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.track-b { --c: #2b7a8c; --c-soft: #eaf5f7; }
.track-c { --c: #8a6514; --c-soft: var(--gold-100); }
.track header { position: relative; padding: 22px 22px 18px; background: var(--c-soft); border-bottom: 3px solid var(--c); }
.track-step { position: absolute; right: 18px; top: 18px; font-size: .75rem; font-weight: 700; color: var(--c); border: 1.5px solid var(--c); border-radius: 999px; padding: 2px 9px; }
.track-step::before { content: "ขั้นที่ "; }
.track h3 { margin: 0; font-size: 1.2rem; color: var(--c); }
.track header p { margin: 0; color: var(--muted); font-size: .92rem; }
.track-list { list-style: none; margin: 0; padding: 14px 22px; }
.track-list li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; line-height: 1.55; }
.track-list li:last-child { border-bottom: 0; }
.tl-k { color: var(--muted); }
.tl-v { color: var(--ink); font-weight: 500; }
.tl-v small { color: var(--muted); font-weight: 400; }
.track-flow { padding: 0 22px 16px; display: grid; gap: 8px; }
.tf { margin: 0; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; line-height: 1.5; }
.tf small { font-weight: 400; color: var(--muted); }
.tf.ok { background: var(--green-50); color: var(--green-800); border-left: 4px solid var(--green-500); }
.tf.no { background: #fdf0ed; color: #a63a26; border-left: 4px solid var(--red-500); }
.tf.sub { background: #fff; border: 1px solid var(--line); font-weight: 400; color: var(--text); margin-left: 14px; font-size: .88rem; }
.tf.sub strong { color: #a63a26; }
.track-result { margin-top: auto; padding: 16px 22px; background: var(--green-900); color: #fff; display: grid; gap: 4px; }
.track-result p { margin: 0; display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.track-result .ico { color: var(--gold-300); }
@media (max-width: 960px) { .tracks { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.flowchart-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.flowchart-card { max-width: 480px; justify-self: center; }
@media (max-width: 860px) { .flowchart-wrap { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; margin-bottom: 24px; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.c-card { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.c-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); }
.c-ico .ico { width: 24px; height: 24px; }
.c-label { margin: 0 0 2px; font-size: .86rem; color: var(--muted); }
.c-value { margin: 0 0 6px; font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.c-value a { color: var(--ink); text-decoration: none; }
.c-value a:hover { color: var(--green-700); text-decoration: underline; }
.c-card-person { background: linear-gradient(135deg, var(--gold-100), #fff 70%); border-color: var(--gold-300); }
.c-card-person .c-ico { background: var(--gold-500); color: #fff; }
.c-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.c-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.contact-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--green-100); }
.map-card iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .map-card iframe { height: 340px; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.nf-code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 700; line-height: 1; margin: 0 0 10px; background: linear-gradient(135deg, var(--green-600), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .lead { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .78); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 88px; flex: none; background: #fff; border-radius: 50%; padding: 8px; }
.footer-brand p { margin: 0 0 8px; line-height: 1.6; }
.footer-title { font-family: var(--font-display); color: #fff; font-size: 1.12rem; font-weight: 700; }
.footer-en { font-size: .84rem; opacity: .7; }
.footer-h { color: var(--gold-300); font-weight: 700; margin-bottom: 14px; letter-spacing: .02em; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.footer-list .ico { margin-top: 3px; color: var(--gold-300); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .84rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; } .footer-brand { flex-direction: column; } }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-700); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.to-top .ico { transform: rotate(90deg); width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-900); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(6, 22, 15, .95); color: #fff; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 22px; }
.lb-caption { margin: 0; flex: 1; font-size: .95rem; line-height: 1.5; opacity: .9; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lb-count { font-size: .88rem; opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 70px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; }
.lb-stage img.is-loading { opacity: .3; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; flex: none; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-thumbs, .lightbox.single .lb-count { display: none; }
.lb-thumbs { display: flex; gap: 8px; padding: 12px 16px 16px; overflow-x: auto; justify-content: safe center; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .5; background: none; transition: opacity .2s, border-color .2s; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold-300); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; background: rgba(0, 0, 0, .5); }
  .lb-thumbs button { width: 56px; height: 42px; }
}
body.lb-open { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .schedule-card.reveal.is-in { transform: rotate(1.2deg); }
.js .schedule-card.reveal.is-in:hover { transform: rotate(0) translateY(-4px); }
@media (max-width: 900px) { .js .schedule-card.reveal.is-in { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .lightbox, .hero-visual, .search-box { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1, .page-hero p { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
