/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.35rem; border-radius: var(--r-pill);
  font: 600 var(--fs-400)/1.2 var(--font-sans); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 18px -6px rgba(29, 79, 216, .6); }
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(29, 79, 216, .65); }
.btn-ghost { background: transparent; color: var(--brand-800); border-color: var(--ink-300); }
.btn-ghost:hover { border-color: var(--brand-600); color: var(--brand-600); background: var(--brand-50); }
.btn-lg { min-height: 52px; padding: .85rem 1.6rem; font-size: var(--fs-450); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--brand-900); min-width: 0; }
.brand-seal { width: 46px; height: auto; flex: none; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1.25rem; letter-spacing: -0.02em; color: var(--brand-800); }
.brand-text small { font-size: .6875rem; color: var(--ink-500); font-weight: 500; display: none; }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.lang-switch { display: inline-flex; padding: 3px; background: var(--brand-50); border: 1px solid var(--line); border-radius: var(--r-pill); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 .6rem; font-size: .8125rem; font-weight: 700;
  letter-spacing: .04em; color: var(--ink-600); text-decoration: none; border-radius: var(--r-pill); transition: background var(--dur), color var(--dur); }
.lang-switch a:hover { color: var(--brand-700); }
.lang-switch a[aria-current="true"] { background: var(--brand-800); color: #fff; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; color: var(--brand-800); border-radius: var(--r-md); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a:not(.btn) { display: block; padding: .85rem var(--sp-2); font-weight: 600; font-size: var(--fs-450); color: var(--ink-900); text-decoration: none; border-radius: var(--r-sm); }
.primary-nav a:not(.btn):hover { color: var(--brand-600); }
.primary-nav a[aria-current="page"] { color: var(--brand-600); }
/* no-JS: nav stays visible and wraps; with JS it becomes a disclosure panel on small screens */
.primary-nav { order: 3; flex-basis: 100%; padding-bottom: var(--sp-3); }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); }
.nav-cta { display: none; }
.header-inner { flex-wrap: wrap; }
.js .primary-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-basis: auto; padding: var(--sp-4) var(--gutter) var(--sp-8); background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
.js .primary-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.js .primary-nav ul { display: block; }
.js .primary-nav li + li a { border-top: 1px solid var(--line); border-radius: 0; }
.js .nav-cta { display: flex; margin-top: var(--sp-4); }
.js .header-inner { flex-wrap: nowrap; }
.nav-toggle { display: none; }
.js .nav-toggle { display: inline-flex; }

/* ---------- eyebrow / section scaffolding ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 var(--sp-4); font-size: var(--fs-300); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); line-height: 1.4; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--accent-amber); flex: none; }
.eyebrow-light { color: var(--brand-300); }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-alt); }
.section-dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(59, 108, 240, .35), transparent 60%), var(--brand-900); color: #d6def5; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--brand-300); }
.section-head { max-width: 46rem; margin-bottom: var(--sp-10); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-lead { font-size: var(--fs-500); color: var(--ink-600); margin: 0; }
.section-dark .section-lead { color: #c3cdee; }
.section-cta { margin: var(--sp-10) 0 0; text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 1rem + 5vw, 5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
  background: radial-gradient(900px 480px at 8% -10%, var(--brand-100), transparent 65%), radial-gradient(700px 400px at 100% 30%, rgba(20, 180, 214, .14), transparent 60%), #fff; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent 75%); }
.hero-grid { position: relative; display: grid; gap: var(--sp-10); align-items: center; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero .amp { color: var(--ink-300); font-weight: 500; }
.grad { background: linear-gradient(100deg, var(--brand-600), var(--accent-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: var(--fs-500); line-height: 1.6; color: var(--ink-600); }
.hero .lead { max-width: 34rem; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); margin-bottom: var(--sp-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.hero-points li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-700); font-size: var(--fs-400); line-height: 1.5; }
.hero-points .icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); margin-top: 1px; }
.hero-visual { position: relative; margin: 0; }
.hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-chip { position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: calc(var(--sp-4) * -1); display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; background: var(--brand-800); color: #fff;
  border-radius: var(--r-md); box-shadow: var(--shadow-md); font-size: var(--fs-400); font-weight: 600; line-height: 1.35; }
.hero-chip .icon { flex: none; color: var(--accent-amber); }

/* ---------- grids + cards ---------- */
.grid { display: grid; gap: var(--sp-6); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--brand-50); }
.card-media-wide { aspect-ratio: 3 / 2; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.card-kicker { margin: 0 0 var(--sp-2); font-size: var(--fs-300); font-weight: 600; color: var(--ink-500); letter-spacing: .02em; }
.card-title { font-size: var(--fs-600); margin-bottom: var(--sp-3); }
.card-title a { color: var(--ink-900); text-decoration: none; }
.card-title a:hover { color: var(--brand-600); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-text { color: var(--ink-600); font-size: var(--fs-400); margin-bottom: var(--sp-4); }
.card-price { margin: 0 0 var(--sp-4); padding: .55rem .8rem; border-radius: var(--r-sm); background: var(--brand-50); color: var(--brand-800); font-size: .875rem; font-weight: 600; line-height: 1.45; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-weight: 600; color: var(--brand-600); font-size: var(--fs-400); }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.card:hover .link-arrow .icon { transform: translateX(4px); }
.team-card { padding: var(--sp-6); text-align: left; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: var(--sp-4); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--brand-700), var(--accent-cyan)); }
.avatar-plus { background: var(--brand-100); color: var(--brand-700); }
.avatar-plus .icon { width: 28px; height: 28px; }
.team-org { color: var(--ink-600); font-size: var(--fs-400); margin-bottom: var(--sp-3); }
.team-exp { color: var(--ink-500); font-size: .9375rem; margin-bottom: var(--sp-4); }
.team-invite { background: var(--brand-50); border-style: dashed; border-color: var(--brand-300); }

/* ---------- about ---------- */
.about-grid { display: grid; gap: var(--sp-10); align-items: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0 0; padding: 0; }
.chips li, .chip { display: inline-flex; align-items: center; padding: .35rem .85rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--brand-800); font-size: .875rem; font-weight: 600; text-decoration: none; }
a.chip:hover { border-color: var(--brand-600); color: var(--brand-600); }
.chips-links li a { text-decoration: none; color: inherit; }
.about-seal { display: grid; place-items: center; }
.seal-ring { padding: clamp(14px, 3vw, 24px); border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.seal-img { width: clamp(200px, 55vw, 280px); height: auto; border-radius: 50%; }

/* ---------- benefits ---------- */
.check-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.check-grid li { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.check-grid .icon { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--brand-600); color: #fff; }
.check-grid span { color: var(--ink-700); }

/* ---------- stats ---------- */
.stats { display: grid; gap: var(--sp-4); }
.stat { padding: var(--sp-6); border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.stat-value { margin: 0 0 var(--sp-3); font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: #fff; }
.stat-label { margin: 0; font-size: .9375rem; color: #c3cdee; line-height: 1.55; }
.stat-note { margin: var(--sp-6) 0 0; font-size: .875rem; color: #aab6de; }
.stat-note a { color: #fff; }

/* ---------- contact ---------- */
.section-contact { padding: 0; background: var(--brand-900); }
.contact-grid { display: grid; padding-inline: 0; max-width: none; }
.contact-info { position: relative; overflow: hidden; color: #d6def5; background: var(--brand-900); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.contact-info-inner { position: relative; padding: var(--section-y) var(--gutter); max-width: 38rem; margin-left: auto; }
.contact-info h2 { color: #fff; }
.contact-list { list-style: none; margin: var(--sp-6) 0; padding: 0; display: grid; gap: var(--sp-4); }
.contact-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.contact-list .icon { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--accent-cyan); }
.contact-list a { color: inherit; text-underline-offset: 4px; }
.contact-list-light a { color: #fff; }
.contact-list strong { color: #fff; }
.contact-reg { padding: var(--sp-5); border-radius: var(--r-md); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.contact-reg p { margin: 0 0 var(--sp-3); font-weight: 600; color: #fff; }
.contact-reg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.contact-reg li { display: flex; justify-content: space-between; gap: var(--sp-4); }
.contact-reg a { color: #fff; font-weight: 600; }
.contact-form-wrap { padding: var(--section-y) var(--gutter); background: var(--surface-alt); }
.contact-form { max-width: 34rem; margin-right: auto; padding: var(--sp-6); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.contact-form h3 { margin-bottom: var(--sp-5); }
.field { margin-bottom: var(--sp-5); }
.field label { display: block; margin-bottom: var(--sp-2); font-weight: 600; color: var(--ink-900); font-size: .9375rem; }
.req { color: var(--danger); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink-900); background: #fff; border: 1.5px solid var(--ink-300); border-radius: var(--r-sm);
  transition: border-color var(--dur), box-shadow var(--dur); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--ink-500); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(29, 79, 216, .18); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 0; margin: .4rem 0 0; font-size: .875rem; color: var(--danger); font-weight: 500; }
.field-error:empty { display: none; }
.form-note { margin: var(--sp-4) 0 0; font-size: .8125rem; color: var(--ink-500); }
.form-status { margin: var(--sp-3) 0 0; font-size: .9375rem; color: var(--ink-900); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.contact-form .btn { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-950); color: #b4bfe3; padding-top: var(--sp-16); font-size: .9375rem; }
.footer-grid { display: grid; gap: var(--sp-10); padding-bottom: var(--sp-10); }
.footer-grid p { margin-bottom: var(--sp-3); }
.footer-muted { color: #8d9acb; }
.brand-inverse { color: #fff; margin-bottom: var(--sp-4); }
.brand-inverse .brand-text strong { color: #fff; }
.footer-title { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.site-footer a { color: #d6def5; text-decoration: none; display: inline-block; padding: .6rem 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; padding: .25rem 0; }
.footer-contact .icon { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--accent-cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-6); border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom p { margin: 0; }

/* ---------- inner pages ---------- */
.page-hero { padding-block: var(--sp-8) var(--sp-10); background: radial-gradient(800px 300px at 90% -20%, var(--brand-100), transparent 70%), var(--surface-alt); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--fs-800); margin-bottom: var(--sp-4); }
.page-hero .lead { max-width: 40rem; margin: 0; }
.page-hero-grid { display: grid; gap: var(--sp-8); align-items: center; }
.page-hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.breadcrumbs { margin-bottom: var(--sp-5); font-size: .875rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; color: var(--ink-500); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--ink-300); }
.breadcrumbs a { color: var(--ink-600); text-decoration: none; padding: .2rem 0; display: inline-block; }
.breadcrumbs a:hover { color: var(--brand-600); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-900); font-weight: 500; }
.layout-aside { display: grid; gap: var(--sp-10); padding-block: var(--sp-10) var(--section-y); }
.page-aside { display: grid; gap: var(--sp-5); align-content: start; }
.aside-card { padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.aside-card h2 { font-size: var(--fs-500); margin-bottom: var(--sp-4); }
.aside-cta { background: var(--brand-800); border-color: var(--brand-800); color: #d6def5; }
.aside-cta h2 { color: #fff; }
.aside-cta .btn-primary { background: #fff; color: var(--brand-800); box-shadow: none; }
.aside-cta .btn-primary:hover { background: var(--brand-100); }
.aside-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: var(--sp-4); color: #fff; font-weight: 600; }
.aside-link .icon { width: 20px; height: 20px; }
.aside-note { margin: var(--sp-4) 0 0; font-size: .8125rem; color: var(--ink-500); }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.aside-list a { display: block; padding: .55rem 0; text-decoration: none; color: var(--ink-700); font-weight: 500; border-bottom: 1px solid var(--line); }
.aside-list li:last-child a { border-bottom: 0; }
.aside-list a:hover { color: var(--brand-600); }
.facts { margin: 0; display: grid; gap: var(--sp-4); }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.facts dd { margin: .15rem 0 0; color: var(--ink-900); font-weight: 600; line-height: 1.45; }
.notice { padding: var(--sp-5); border-radius: var(--r-md); background: var(--brand-50); border: 1px solid var(--brand-100); border-left: 4px solid var(--brand-600); margin-bottom: var(--sp-6); }
.notice p:last-child { margin-bottom: 0; }
.notice-info { margin: var(--sp-10) 0 0; }
.register-card { margin: var(--sp-10) 0; padding: var(--sp-6); border-radius: var(--r-lg); background: var(--brand-800); color: #d6def5; }
.register-card h2 { color: #fff; margin: 0 0 var(--sp-4); padding: 0; font-size: var(--fs-600); }
.register-card .contact-list { margin-top: 0; }
.register-card .contact-list li { align-items: center; }
.register-card .contact-list a { color: #fff; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.register-card .btn { background: #fff; color: var(--brand-800); box-shadow: none; }
.empty { padding: var(--sp-10) var(--sp-6); text-align: center; border: 1.5px dashed var(--ink-300); border-radius: var(--r-lg); background: var(--surface-alt); }
.empty h2 { font-size: var(--fs-700); }
.empty .chips { justify-content: center; margin-bottom: var(--sp-6); }

/* ---------- posts ---------- */
.page-hero-post h1 { font-size: var(--fs-800); max-width: 24ch; }
.chips-post { margin: 0 0 var(--sp-4); }
.post-meta { margin: 0; color: var(--ink-500); font-size: .9375rem; }
.post-wrap { padding-block: var(--sp-10) var(--section-y); }
.post-nav { display: grid; gap: var(--sp-4); margin-top: var(--sp-16); padding-top: var(--sp-8); border-top: 1px solid var(--line); }
.pn { display: block; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink-900); font-weight: 600; line-height: 1.4; transition: border-color var(--dur), background var(--dur); }
.pn:hover { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); }
.pn span { display: block; margin-bottom: .25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }

/* ---------- tables ---------- */
.table-wrap { margin: var(--sp-5) 0 var(--sp-8); max-width: 100%; overflow-x: auto; }
.curriculum { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.curriculum th { text-align: left; padding: .75rem 1rem; background: var(--brand-800); color: #fff; font-weight: 600; font-size: .8125rem; letter-spacing: .04em; }
.curriculum td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-700); }
.curriculum tbody tr:nth-child(even) td { background: var(--surface-alt); }
.semester h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-1); }
.semester-note { margin: 0; color: var(--ink-500); font-size: .875rem; font-weight: 600; letter-spacing: .02em; }

/* ---------- brochure + lightbox ---------- */
.brochure-grid { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, 1fr); }
.brochure-item { display: block; text-decoration: none; color: var(--ink-700); font-weight: 600; font-size: .9375rem; text-align: center; }
.brochure-img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); background: #fff; transition: box-shadow var(--dur), transform var(--dur) var(--ease); }
.brochure-item:hover .brochure-img { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.brochure-item span { display: block; padding-top: var(--sp-2); }
dialog.lightbox { width: min(96vw, 1100px); max-height: 94dvh; padding: var(--sp-3); border: 0; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-lg); }
dialog.lightbox::backdrop { background: rgba(5, 15, 46, .8); }
dialog.lightbox img { width: 100%; max-height: calc(94dvh - 6rem); object-fit: contain; }
dialog.lightbox form { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); }
dialog.lightbox p { margin: 0; font-size: .9375rem; }

/* ---------- toast (language suggestion) ---------- */
.lang-toast { position: fixed; z-index: 150; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); max-width: 26rem; margin-left: auto; display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between;
  padding: var(--sp-4); background: var(--brand-900); color: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg); font-size: .9375rem; }
.lang-toast a { color: #fff; font-weight: 700; }
.lang-toast button { min-width: 44px; min-height: 44px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-sm); cursor: pointer; font: inherit; }

/* ---------- 404 ---------- */
.not-found { padding-block: var(--sp-16); text-align: left; }
.not-found .brand-seal { width: 72px; margin-bottom: var(--sp-6); }
.rule { margin-block: var(--sp-10); }

/* ---------- reveal on scroll (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* curriculum column sizing (table layout, >=768px): only the credits column is kept on one line;
   everything else may wrap so the table never exceeds its container. */
@media (min-width: 768px) {
  .curriculum th, .curriculum td { padding-inline: .7rem; }
  .curriculum th:nth-child(3), .curriculum td:nth-child(3) { white-space: nowrap; text-align: center; }
  .curriculum td:nth-child(1) { overflow-wrap: anywhere; }
}

/* figure captions + featured post image */
.figure figcaption { margin-top: var(--sp-3); font-size: .875rem; line-height: 1.5; color: var(--ink-500); }
.post-wrap > .figure-wide { margin-top: 0; }
.post-wrap > .figure-wide img { width: auto; max-width: 100%; height: auto; } /* never upscale small source photos */
