/* งานบริการวิชาการ — public site styles */

:root {
  --g9: #08372a;
  --g8: #0d5c45;
  --g7: #107058;
  --g6: #15896a;
  --g5: #1fa97c;
  --g3: #8fd6b6;
  --g2: #cdeedd;
  --g1: #e8f6ee;
  --g0: #f3faf6;
  --amber: #f2a516;
  --amber-d: #a85f00;
  --amber-1: #fff2d8;
  --ink: #0f2219;
  --ink-2: #2e4239;
  --muted: #5f7067;
  --line: #e0e9e3;
  --line-2: #cfdcd4;
  --bg: #ffffff;
  --bg-2: #f5f9f6;
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 34, 25, .05), 0 2px 10px rgba(15, 34, 25, .05);
  --shadow: 0 18px 40px -20px rgba(13, 92, 69, .35), 0 6px 14px -8px rgba(15, 34, 25, .10);
  --shadow-lg: 0 30px 60px -24px rgba(8, 55, 42, .45);
  --font: "IBM Plex Sans Thai", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif;
  --font-h: "Prompt", "IBM Plex Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --header-h: 76px;
  /* ปิงปองจราจรชีวิต 7 สี */
  --pp1: #ffffff;
  --pp2: #a6d94a;
  --pp3: #1e8a3c;
  --pp4: #f8d418;
  --pp5: #f38a1d;
  --pp6: #e2332d;
  --pp7: #1c1c1c;
  --tone: var(--g6);
  --tone-d: var(--g8);
  --tone-1: var(--g1);
}
.tone-green { --tone: #15896a; --tone-d: #0d5c45; --tone-1: #e3f5ec; }
.tone-amber { --tone: #e08a0b; --tone-d: #9a5600; --tone-1: #fff0d4; }
.tone-blue { --tone: #2d6fca; --tone-d: #1c4c90; --tone-1: #e4eefc; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--g7); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--g8); }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 600; line-height: 1.3; margin: 0; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--amber) 85%, white); outline-offset: 2px; border-radius: 6px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 840px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--g8); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .55em 1.15em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-h); font-weight: 500; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--g7); color: #fff; box-shadow: 0 8px 18px -10px rgba(16, 112, 88, .9); }
.btn-primary:hover { background: var(--g8); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--g6); color: var(--g8); }
.btn-soft { background: var(--g1); color: var(--g8); }
.btn-soft:hover { background: var(--g2); color: var(--g9); }
.btn-lg { min-height: 52px; padding: .7em 1.45em; font-size: 1.04rem; }
.btn-sm { min-height: 38px; padding: .4em .95em; font-size: .9rem; }
.btn small { font-family: var(--font); font-weight: 400; opacity: .8; }
.link-btn { background: none; border: 0; padding: 0; text-align: left; color: var(--ink); font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--g7); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------- chips */
.chip { display: inline-flex; align-items: center; gap: .35em; padding: .2em .75em; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5; }
.chip-tag { background: var(--amber); color: #3b2500; }
.sample-badge {
  display: inline-flex; align-items: center; margin-left: .5em; padding: .05em .6em;
  border: 1px dashed #d08a00; border-radius: 6px; background: #fffaf0; color: #8a5300;
  font-family: var(--font); font-size: .74rem; font-weight: 600; letter-spacing: .02em; vertical-align: .15em; white-space: nowrap;
}
.pin-flag { display: inline-flex; padding: .05em .55em; border-radius: 6px; background: var(--g1); color: var(--g8); font-size: .76rem; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: .4em; padding: .2em .7em; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.45; white-space: nowrap; }
.status::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.st-open { --st: #12825f; --st-1: #def4e9; }
.st-planned { --st: #2a68c4; --st-1: #e3edfb; }
.st-full { --st: #b46a00; --st-1: #fff0d3; }
.st-closed { --st: #66726c; --st-1: #edf1ee; }
.st-done { --st: #4d6a5d; --st-1: #e9efec; }
.st-postponed { --st: #7448c4; --st-1: #efe8fb; }
.st-cancelled { --st: #c63a2f; --st-1: #fde8e6; }
.status[class*="st-"] { color: var(--st); background: var(--st-1); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(8, 55, 42, .5); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line-2); min-width: 0; }
.brand-text strong { font-family: var(--font-h); font-weight: 600; font-size: 1.12rem; color: var(--g8); }
.brand-text small { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav > a, .nav-drop > a {
  position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px;
  border-radius: 10px; color: var(--ink-2); text-decoration: none; font-family: var(--font-h); font-weight: 500; font-size: .96rem;
}
.site-nav > a:hover, .nav-drop > a:hover { color: var(--g8); background: var(--g0); }
.site-nav a[aria-current="page"] { color: var(--g8); }
.site-nav > a[aria-current="page"]::after, .nav-drop > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2.5px; border-radius: 2px; background: var(--amber);
}
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a { padding-right: 4px; }
.drop-btn { display: inline-grid; place-items: center; width: 28px; height: 34px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--muted); }
.drop-btn:hover { color: var(--g8); background: var(--g0); }
.drop-btn .i { transition: transform .2s; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); right: -40px; width: 360px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu, .nav-drop.is-open .drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop.is-open .drop-btn .i, .nav-drop:hover .drop-btn .i { transform: rotate(180deg); }
.drop-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.drop-item:hover { background: var(--tone-1); color: var(--ink); }
.drop-item strong { display: block; font-family: var(--font-h); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.drop-item small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.drop-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--tone-1); color: var(--tone-d); flex: none; }
.drop-item:hover .drop-ico { background: var(--tone); color: #fff; }
.nav-cta.nav-cta { margin-left: 8px; gap: 6px; padding: 0 16px; background: var(--g8); color: #fff; border-radius: 999px; }
.nav-cta.nav-cta:hover { background: var(--g9); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; place-items: center; }
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 20px 32px;
    background: #fff; overflow-y: auto; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav > a, .nav-drop > a { min-height: 50px; font-size: 1.05rem; padding: 0 14px; }
  .site-nav > a[aria-current="page"]::after, .nav-drop > a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .nav-drop { flex-wrap: wrap; }
  .nav-drop > a { flex: 1; }
  .drop-btn { display: none; }
  .drop-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; }
  .nav-cta.nav-cta { margin: 14px 0 0; justify-content: center; min-height: 50px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 38px; }
  .brand-pi { display: none !important; }
  .brand-text { padding-left: 10px; margin-left: 2px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: .72rem; }
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(31, 169, 124, .18), transparent 65%),
    radial-gradient(700px 420px at 0% 100%, rgba(242, 165, 22, .14), transparent 60%),
    linear-gradient(180deg, #f3faf6 0%, #ffffff 85%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(13, 92, 69, .13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(800px 420px at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(800px 420px at 70% 30%, #000 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .88rem; font-weight: 500; color: var(--g8);
}
.pp-dots { display: inline-flex; gap: 3px; padding: 4px 6px; background: var(--g0); border-radius: 999px; }
.pp-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.pp-dots i:nth-child(1), .pp-bar i:nth-child(1) { background: var(--pp1); box-shadow: inset 0 0 0 1px #c9d5ce; }
.pp-dots i:nth-child(2), .pp-bar i:nth-child(2) { background: var(--pp2); }
.pp-dots i:nth-child(3), .pp-bar i:nth-child(3) { background: var(--pp3); }
.pp-dots i:nth-child(4), .pp-bar i:nth-child(4) { background: var(--pp4); }
.pp-dots i:nth-child(5), .pp-bar i:nth-child(5) { background: var(--pp5); }
.pp-dots i:nth-child(6), .pp-bar i:nth-child(6) { background: var(--pp6); }
.pp-dots i:nth-child(7), .pp-bar i:nth-child(7) { background: var(--pp7); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.18; font-weight: 700; color: var(--g9); letter-spacing: -.012em; }
.hero h1 mark {
  color: var(--g7); background: linear-gradient(transparent 62%, rgba(242, 165, 22, .45) 62%, rgba(242, 165, 22, .45) 92%, transparent 92%);
  padding: 0 .06em;
}
.hero-text { max-width: 36em; font-size: 1.08rem; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-acts { margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.hero-acts > p { font-family: var(--font-h); font-weight: 500; font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.hero-act-list { display: flex; flex-wrap: wrap; gap: 10px; }
.act-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 5px 16px 5px 5px;
  border-radius: 999px; background: #fff; border: 1.5px solid color-mix(in srgb, var(--tone) 28%, white);
  color: var(--ink); font-family: var(--font-h); font-weight: 500; font-size: .95rem; text-decoration: none;
  transition: border-color .18s, background-color .18s, transform .18s, box-shadow .18s;
}
.act-pill > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tone-1); color: var(--tone-d); }
.act-pill .go { width: 1em; color: var(--tone); transition: transform .18s; }
.act-pill:hover { border-color: var(--tone); color: var(--tone-d); transform: translateY(-2px); box-shadow: 0 10px 22px -14px var(--tone); }
.act-pill:hover > span { background: var(--tone); color: #fff; }
.act-pill:hover .go { transform: translateX(3px); }
.act-pill[aria-current="page"] { background: var(--tone); border-color: var(--tone); color: #fff; }
.act-pill[aria-current="page"] > span { background: rgba(255, 255, 255, .22); color: #fff; }

.hero-visual { position: relative; }
.collage { position: relative; aspect-ratio: 1 / .92; }
.collage img { position: absolute; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); background: var(--g1); }
.collage .c0 { inset: 4% 12% 18% 0; width: 88%; height: 78%; border-radius: 32px; }
.collage .c1 { right: 0; top: 0; width: 38%; height: 34%; border: 6px solid #fff; transform: rotate(3deg); }
.collage .c2 { right: 4%; bottom: 3%; width: 46%; height: 38%; border: 6px solid #fff; transform: rotate(-2deg); }
.collage-ring { position: absolute; left: -6%; bottom: 4%; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(13, 92, 69, .25); z-index: -1; }
.next-card {
  position: absolute; left: -5%; bottom: -2%; display: flex; gap: 14px; align-items: center; max-width: 330px;
  padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-lg);
  text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .2s;
}
.next-card:hover { transform: translateY(-3px); color: var(--ink); }
.nc-date { display: grid; place-items: center; align-content: center; width: 62px; height: 66px; border-radius: 14px; background: var(--g8); color: #fff; flex: none; line-height: 1.1; }
.nc-date strong { font-family: var(--font-h); font-size: 1.6rem; }
.nc-date small { font-size: .74rem; opacity: .85; }
.nc-body { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.nc-body small { font-size: .76rem; color: var(--muted); font-weight: 500; }
.nc-body strong { font-family: var(--font-h); font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hero-stats { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hero-stats li { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.hero-stats li + li { border-left: 1px solid var(--line); }
.hero-stats strong { font-family: var(--font-h); font-size: 2.1rem; font-weight: 600; color: var(--g7); line-height: 1; }
.hero-stats span { font-size: .86rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 980px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 600px; width: 100%; margin: 0 auto; }
  .next-card { left: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li:nth-child(3) { border-left: 0; }
  .hero-stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2.1rem; }
  .hero-text { font-size: 1rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .act-pill { width: 100%; }
  .act-pill .go { margin-left: auto; }
  .collage { aspect-ratio: 1 / 1.05; }
  .next-card { position: relative; left: auto; bottom: auto; margin-top: -40px; max-width: none; }
  .hero-stats li { padding: 14px 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .hero-stats strong { font-size: 1.7rem; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 84px 0; }
.section-tight { padding: 40px 0 72px; }
.section-tint { background: linear-gradient(180deg, var(--g0), #fff); border-block: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); color: var(--g9); }
.sec-text { margin-top: 8px; color: var(--muted); max-width: 44em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--font-h); font-weight: 600; font-size: .86rem; letter-spacing: .04em; color: var(--tone, var(--g6)); }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--amber); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-h); font-weight: 500; text-decoration: none; white-space: nowrap; padding: 8px 4px; }
.link-more .i { transition: transform .18s; }
.link-more:hover .i { transform: translateX(4px); }
.sub-title { display: flex; align-items: center; gap: 10px; margin: 48px 0 18px; font-size: 1.3rem; }
.sub-title small { font-family: var(--font); font-weight: 400; font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) {
  .section { padding: 60px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 26px; }
}

.empty { display: flex; gap: 16px; align-items: center; justify-content: center; padding: 42px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: left; background: #fff; }
.empty .i { width: 40px; height: 40px; color: var(--g5); }
.empty strong { color: var(--ink-2); font-family: var(--font-h); font-weight: 600; }

/* -------------------------------------------------------------------- news */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--g2); }
.news-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--g1); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-media .chip-tag { position: absolute; left: 14px; top: 14px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.news-ph { display: grid; place-items: center; height: 100%; color: var(--g5); }
.news-ph .i { width: 52px; height: 52px; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.news-body .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.news-body .meta .i { color: var(--g6); }
.news-body h3 { font-size: 1.13rem; line-height: 1.45; }
.news-body h3 a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-body h3 a::after { content: ""; position: absolute; inset: 0; }
.news-body h3 a:hover { color: var(--g7); }
.excerpt { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-h); font-weight: 500; font-size: .92rem; color: var(--g7); }
.read-more .i { transition: transform .18s; }
.news-card:hover .read-more .i { transform: translateX(4px); }
.news-card.is-feature { grid-column: span 3; display: grid; grid-template-columns: 1.25fr 1fr; }
.news-card.is-feature .news-media { aspect-ratio: auto; min-height: 340px; }
.news-card.is-feature .news-body { padding: 36px 40px; justify-content: center; gap: 12px; }
.news-card.is-feature h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.38; }
.news-card.is-feature .excerpt { font-size: 1.02rem; -webkit-line-clamp: 4; }
.news-card.is-feature .read-more { margin-top: 10px; }
.news-grid.is-plain .news-card.is-feature { grid-column: auto; display: flex; }
@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.is-feature { grid-column: span 2; }
}
@media (max-width: 680px) {
  .news-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-card.is-feature { grid-column: auto; display: flex; }
  .news-card.is-feature .news-media { min-height: 0; aspect-ratio: 16 / 10; }
  .news-card.is-feature .news-body { padding: 20px 22px 24px; }
}

/* ---------------------------------------------------------------- calendar */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.fy-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.fy-tabs button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--font-h); font-weight: 500; color: var(--ink-2);
}
.fy-tabs button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--g1); color: var(--g8); font-size: .76rem; font-family: var(--font); font-weight: 600; }
.fy-tabs button:hover { background: var(--g0); }
.fy-tabs button[aria-selected="true"] { background: var(--g8); color: #fff; }
.fy-tabs button[aria-selected="true"] span { background: rgba(255, 255, 255, .2); color: #fff; }
.view-switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--g1); }
.view-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-size: .92rem; font-weight: 500; color: var(--g8); }
.view-switch button[aria-pressed="true"] { background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); }
.fy-summary { margin-bottom: 16px; color: var(--muted); font-size: .95rem; }
.fy-summary > span { font-size: .86rem; }
.fy-summary strong { color: var(--ink); }
.fy-summary .t-open { color: #12825f; }
.cal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.month { position: relative; min-height: 150px; padding: 14px 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.month:not(.is-empty):hover { border-color: var(--g3); box-shadow: var(--shadow-sm); }
.month.is-empty { background: rgba(255, 255, 255, .6); }
.month.is-now { border: 2px solid var(--amber); box-shadow: 0 10px 26px -18px var(--amber-d); }
.month-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.month-head strong { font-family: var(--font-h); font-weight: 600; font-size: 1.02rem; color: var(--g9); }
.month-head span { font-size: .82rem; color: var(--muted); }
.month-head em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 600; padding: .1em .55em; border-radius: 999px; background: var(--amber-1); color: var(--amber-d); }
.month ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.month-none { color: var(--line-2); font-size: 1.2rem; }
.ev {
  display: flex; gap: 8px; align-items: flex-start; width: 100%; padding: 7px 9px; border: 0; border-left: 3px solid var(--st); border-radius: 8px;
  background: var(--st-1); text-align: left; cursor: pointer; line-height: 1.4; transition: transform .15s, box-shadow .15s;
}
.ev:hover { transform: translateX(2px); box-shadow: 0 6px 14px -10px var(--st); }
.ev-day { flex: none; min-width: 2.2em; font-family: var(--font-h); font-weight: 600; font-size: .8rem; color: var(--st); padding-top: 1px; }
.ev-title { font-size: .85rem; font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sample-dot { color: #a06500; font-weight: 500; }
.ev.st-done .ev-title, .ev.st-cancelled .ev-title { color: var(--muted); }
.ev.st-cancelled .ev-title { text-decoration: line-through; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; font-size: .84rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--st); display: block; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.cal-table, .roster { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cal-table th, .roster th { position: sticky; top: 0; background: var(--g0); text-align: left; font-family: var(--font-h); font-weight: 600; font-size: .86rem; color: var(--g8); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cal-table td, .roster td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cal-table tr:last-child td, .roster tr:last-child td { border-bottom: 0; }
.cal-table small { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--muted); font-size: .82rem; }
.c-date { white-space: nowrap; font-weight: 500; }
.c-date small { display: block; }
.c-title { min-width: 260px; }
.c-place { color: var(--ink-2); min-width: 160px; }
@media (max-width: 980px) { .cal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .month { min-height: 0; } .view-switch { margin-left: auto; } }
@media (max-width: 460px) {
  .cal-grid { grid-template-columns: 1fr; }
  .month.is-empty { display: flex; align-items: center; min-height: 0; padding: 10px 14px; }
  .month.is-empty .month-head { margin: 0; }
  .month.is-empty .month-none { margin-left: auto; }
  .fy-tabs { border-radius: 16px; }
}

.ev-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); color: var(--ink); }
.ev-dialog::backdrop { background: rgba(8, 35, 27, .55); backdrop-filter: blur(3px); }
.ev-dialog[open] { animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ev-card { position: relative; padding: 30px 30px 26px; border-top: 6px solid var(--g6); border-radius: 24px; }
.ev-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-2); cursor: pointer; display: grid; place-items: center; }
.ev-close:hover { background: var(--g1); }
.ev-fy { font-size: .84rem; font-weight: 600; color: var(--g6); margin-bottom: 6px; }
.ev-card h3 { font-size: 1.35rem; padding-right: 40px; margin-bottom: 10px; }
.ev-facts { display: grid; gap: 10px; margin: 18px 0 0; }
.ev-facts > div { display: grid; grid-template-columns: 26px 1fr; gap: 6px; align-items: start; }
.ev-facts dt { color: var(--g6); padding-top: 2px; }
.ev-facts dd { margin: 0; }
.ev-facts dd small { display: block; color: var(--muted); font-size: .8rem; }
.ev-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); font-size: .94rem; color: var(--ink-2); }
.ev-note:empty { display: none; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------------------------------------------------------------- trainees */
.trainee-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.name-search {
  position: sticky; top: calc(var(--header-h) + 18px); padding: 24px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(420px 260px at 100% 0%, rgba(242, 165, 22, .28), transparent 70%), linear-gradient(150deg, var(--g7), var(--g9));
  box-shadow: var(--shadow);
}
.name-search label { display: flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 600; font-size: 1.15rem; margin-bottom: 14px; }
.name-search label .i { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, .16); }
.name-search-row { display: flex; gap: 8px; }
.name-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
.name-search input::placeholder { color: #8a9a91; font-size: .9rem; }
.name-search .btn-primary { background: var(--amber); color: #2e1d00; box-shadow: none; border-radius: 12px; }
.name-search .btn-primary:hover { background: #ffb933; color: #2e1d00; }
.name-results { margin-top: 14px; display: grid; gap: 8px; }
.name-results:empty { display: none; }
.nr-item { display: block; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .96); color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.5; }
.nr-item:hover { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5); }
.nr-item strong { display: block; font-family: var(--font-h); font-weight: 600; color: var(--g8); }
.nr-item mark { background: var(--amber-1); color: inherit; border-radius: 3px; padding: 0 2px; }
.nr-item small { display: block; color: var(--muted); font-size: .8rem; }
.nr-msg { font-size: .9rem; color: rgba(255, 255, 255, .85); }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tl-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.tl-item:hover { border-color: var(--g3); box-shadow: var(--shadow-sm); }
.tl-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--g1); color: var(--g7); }
.tl-ico .i { width: 24px; height: 24px; }
.tl-main h3 { font-size: 1.02rem; line-height: 1.5; }
.tl-main h3 a { color: var(--ink); text-decoration: none; }
.tl-main h3 a:hover { color: var(--g7); }
.tl-main .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: .84rem; color: var(--muted); }
.tl-main .meta, .tl-main .meta span { align-items: center; }
.tl-main .meta span { display: inline-flex; gap: 5px; }
.tl-main .meta .i { margin-right: 4px; color: var(--g6); }
.tl-actions { display: flex; gap: 8px; }
@media (max-width: 900px) {
  .trainee-layout { grid-template-columns: 1fr; }
  .name-search { position: static; }
}
@media (max-width: 600px) {
  .tl-item { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .tl-actions { grid-column: 1 / -1; }
  .tl-actions .btn { flex: 1; }
  .tl-ico { width: 40px; height: 40px; }
}

/* roster page */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; font-size: .94rem; color: var(--ink-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .i { color: var(--tone); }
.notice { display: flex; gap: 14px; padding: 18px 20px; margin-bottom: 22px; border-radius: 16px; background: var(--amber-1); border: 1px solid #f6d79a; color: #5a3b00; }
.notice > .i { width: 24px; height: 24px; color: var(--amber-d); }
.roster-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.roster-search { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; max-width: 460px; min-height: 48px; padding: 0 16px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; }
.roster-search:focus-within { border-color: var(--g6); box-shadow: 0 0 0 4px var(--g1); }
.roster-search .i { color: var(--muted); }
.roster-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; background: none; padding: 10px 0; }
.roster-count { color: var(--muted); font-size: .9rem; }
.roster-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.roster .c-no { width: 70px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.roster tbody tr:nth-child(even) td { background: #fbfdfc; }
.roster tbody tr:hover td { background: var(--g0); }
.roster mark { background: #ffe7a8; border-radius: 3px; padding: 0 2px; color: inherit; }
.roster-empty { padding: 26px; text-align: center; color: var(--muted); }

/* -------------------------------------------------------------- activities */
.section-acts { background: linear-gradient(180deg, #fff, var(--g0)); }
.act-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.act-card {
  position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.act-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tone) 40%, white); color: var(--ink); }
.act-mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 16 / 10.5; background: var(--tone-1); }
.act-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.act-mosaic .m0 { grid-row: span 2; }
.act-mosaic img:only-child { grid-column: span 2; }
.act-card:hover .act-mosaic img { transform: scale(1.04); }
.act-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 34px 24px 22px; flex: 1; }
.act-ico { position: absolute; top: -28px; left: 22px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--tone); color: #fff; box-shadow: 0 12px 24px -12px var(--tone); border: 4px solid #fff; }
.act-ico .i { width: 26px; height: 26px; }
.act-title { font-family: var(--font-h); font-weight: 600; font-size: 1.22rem; line-height: 1.38; color: var(--tone-d); }
.act-text { color: var(--muted); font-size: .94rem; }
.act-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.act-go { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-h); font-weight: 500; font-size: .92rem; color: var(--tone-d); }
.act-go .i { transition: transform .18s; }
.act-card:hover .act-go .i { transform: translateX(4px); }
@media (max-width: 980px) { .act-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .act-grid { grid-template-columns: 1fr; } }

/* page hero (inner pages) */
.page-hero { position: relative; padding: 30px 0 46px; background: linear-gradient(180deg, var(--tone-1), #fff); overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); color: var(--g9); max-width: 26em; }
.page-hero .eyebrow { margin-top: 26px; }
.page-lead { margin-top: 12px; max-width: 46em; font-size: 1.05rem; color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .86rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; padding: 2px 4px; border-radius: 6px; }
.crumbs a:hover { color: var(--g8); background: rgba(255, 255, 255, .7); }
.crumbs .sep { width: .9em; height: .9em; opacity: .55; }
.crumbs [aria-current] { color: var(--ink-2); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cat-stats { list-style: none; display: flex; gap: 22px; margin: 22px 0 0; padding: 0; color: var(--muted); }
.cat-stats strong { font-family: var(--font-h); font-size: 1.5rem; color: var(--tone-d); margin-right: 4px; }
.cat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: -18px; position: relative; }
.cat-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); border: 4px solid #fff; }
.cat-strip img:nth-child(odd) { transform: translateY(10px); }
@media (max-width: 760px) { .cat-strip { grid-template-columns: repeat(3, 1fr); } .cat-strip img:nth-child(n + 4) { display: none; } }

/* ping-pong 7 colours */
.pingpong { padding: 72px 0 24px; }
.pp-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.pp-head .eyebrow { justify-content: center; }
.pp-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--g9); }
.pp-head p:last-child { margin-top: 8px; color: var(--muted); }
.pp-row { list-style: none; margin: 0; padding: 18px 0 6px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.pp-row li { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pp-row img { width: 100%; max-width: 150px; height: auto; aspect-ratio: 933 / 2398; object-fit: contain;transition: transform .3s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 12px 14px rgba(8, 55, 42, .14)); }
.pp-row li:hover img { transform: translateY(-8px) rotate(-1.5deg); }
.pp-row span { font-family: var(--font-h); font-weight: 600; font-size: .86rem; padding: .2em .8em; border-radius: 999px; background: var(--c); color: var(--fg, #fff); white-space: nowrap; }
.pp-1 { --c: #fff; --fg: var(--ink); } .pp-1 span { box-shadow: inset 0 0 0 1.5px #c9d5ce; }
.pp-2 { --c: var(--pp2); --fg: #203500; }
.pp-3 { --c: var(--pp3); }
.pp-4 { --c: var(--pp4); --fg: #3a3000; }
.pp-5 { --c: var(--pp5); }
.pp-6 { --c: var(--pp6); }
.pp-7 { --c: var(--pp7); }
@media (max-width: 860px) {
  .pp-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 18px 16px 12px; margin: 0 -16px; scrollbar-width: thin; }
  .pp-row li { flex: 0 0 120px; scroll-snap-align: center; }
}

/* albums */
.section-albums { padding-top: 56px; }
.fy-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.fy-filter button { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer; font-family: var(--font-h); font-weight: 500; font-size: .92rem; color: var(--ink-2); }
.fy-filter button:hover { border-color: var(--tone); color: var(--tone-d); }
.fy-filter button[aria-pressed="true"] { background: var(--tone); border-color: var(--tone); color: #fff; }
.album { padding: 30px; margin-bottom: 26px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-sm); }
.album-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.album-no { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tone-1); color: var(--tone-d); font-family: var(--font-h); font-weight: 600; font-size: 1.1rem; }
.album-head h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--g9); }
.album-head .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.album-head .meta span { display: inline-flex; align-items: center; gap: 6px; }
.album-head .meta .i { color: var(--tone); }
.album-text { margin: -4px 0 18px 70px; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery.is-album { grid-auto-flow: dense; }
.gallery.is-album .g-item:first-child { grid-column: span 2; grid-row: span 2; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--g1); aspect-ratio: 4 / 3; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.g-item:hover img { transform: scale(1.06); }
.g-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 40, 30, .55); color: #fff; font-family: var(--font-h); font-weight: 600; font-size: 1.7rem; backdrop-filter: blur(2px); }
@media (max-width: 760px) {
  .album { padding: 20px 16px; border-radius: 20px; }
  .album-head { gap: 12px; }
  .album-no { width: 42px; height: 42px; border-radius: 13px; font-size: .95rem; }
  .album-text { margin-left: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .g-item { border-radius: 10px; }
}

.hub-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.hub-col h2 { font-size: 1.08rem; margin-bottom: 10px; }
.hub-col h2 a { display: inline-flex; align-items: center; gap: 8px; color: var(--tone-d); text-decoration: none; }
.hub-col ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hub-col li a { display: block; padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.hub-col li a:hover { color: var(--tone-d); padding-left: 6px; transition: padding .2s; }
.hub-col small { color: var(--muted); }
@media (max-width: 860px) { .hub-lists { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- article */
.article-head { padding: 30px 0 34px; background: linear-gradient(180deg, var(--g0), #fff); }
.article-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 12px; color: var(--muted); font-size: .92rem; }
.article-head .meta .i { color: var(--g6); }
.article-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); line-height: 1.32; color: var(--g9); }
.article-cover { display: block; margin-bottom: 34px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.prose { font-size: 1.04rem; color: var(--ink-2); }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--g6); }
.prose strong { color: var(--ink); }
.prose > :last-child { margin-bottom: 0; }
.article-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding: 22px; border-radius: 18px; background: var(--g0); border: 1px solid var(--line); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 70px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.share-row > span { margin-right: 4px; }
.page-article .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .page-article .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .article-cover { border-radius: 16px; } }

.notfound { text-align: center; padding: 110px 0; }
.nf-code { font-family: var(--font-h); font-weight: 700; font-size: 6rem; line-height: 1; color: var(--g2); }
.notfound h1 { margin: 10px 0 4px; }
.notfound .page-lead { margin: 0 auto 26px; }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; margin-top: 0; background: var(--g9); color: rgba(255, 255, 255, .78); font-size: .95rem; }
.pp-bar { display: grid; grid-template-columns: repeat(7, 1fr); height: 6px; }
.pp-bar i { display: block; }
.pp-bar i:nth-child(1) { box-shadow: inset 0 1px 0 #d3ddd7; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logos img { height: 60px; width: auto; padding: 6px; background: #fff; border-radius: 14px; }
.site-footer h2 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.contact-list, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.contact-list .i { color: var(--g3); margin-top: 4px; }
.footer-links a { color: rgba(255, 255, 255, .82); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; color: rgba(255, 255, 255, .6); }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------------------------------------------------------- lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 20, 15, .94); color: #fff; overflow: hidden; }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: 64px minmax(0, 1fr); animation: fade .2s; }
.lightbox::backdrop { background: rgba(6, 20, 15, .94); }
@keyframes fade { from { opacity: 0; } }
.lb-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 24px; }
.lb-count { font-family: var(--font-h); font-weight: 500; font-size: .95rem; opacity: .85; }
.lb-close, .lb-nav { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .15s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-close .i, .lb-nav .i { width: 24px; height: 24px; }
.lb-nav { align-self: center; justify-self: center; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; padding-bottom: 24px; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px -20px #000; user-select: none; -webkit-user-drag: none; }
.lb-figure img.is-loading { opacity: .4; }
.lb-figure figcaption { font-size: .95rem; opacity: .85; text-align: center; max-width: 60ch; }
.lb-figure figcaption:empty { display: none; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-nav { position: fixed; bottom: 18px; z-index: 2; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-figure img { max-height: calc(100dvh - 170px); border-radius: 0; }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .collage img { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .collage .c1 { animation-delay: .15s; }
  .collage .c2 { animation-delay: .3s; }
  .next-card { animation: rise .8s .45s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ------------------------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .roster-bar, .crumbs, .lightbox, .share-row, .skip { display: none !important; }
  .page-hero { padding: 0 0 12px; background: none; }
  .page-hero::after { display: none; }
  .section-tight { padding: 0; }
  .table-wrap { border: 0; overflow: visible; }
  .roster th { position: static; }
  .roster td, .roster th { padding: 6px 8px; border: 1px solid #999; }
  body { font-size: 12pt; }
}
