:root {
  /* Logo: wine title + leaf green ring, magenta sari as glow, cream disc */
  --ink: #3d1028;
  --muted: #6a4a56;
  --forest: #8a1547;
  --leaf: #3dae4a;
  --gold: #3dae4a;
  --terra: #c2185b;
  --magenta: #e8408c;
  --cream: #fff8f2;
  --paper: #fffdfb;
  --mist: #f3faf3;
  --line: #e0d4c6;
  --ok: #2e8f4a;
  --warn: #c45c1a;
  --danger: #8a1547;
  --shadow: 0 18px 40px rgba(61, 16, 40, 0.09);
  --radius: 18px;
  --font: "Noto Sans Devanagari", "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Noto Serif Devanagari", Georgia, serif;
}

* { box-sizing: border-box; }
html {
  scrollbar-gutter: stable;
  overflow-x: clip;
  overflow-y: scroll;
  overflow-anchor: none;
  scroll-behavior: auto;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: clip;
  overflow-anchor: none;
  overscroll-behavior-x: none;
}
img, video, canvas { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
input, select, textarea { max-width: 100%; }
a { color: var(--forest); }
h1, h2, h3, .brand strong, .cert-name {
  font-family: var(--display);
  font-weight: 600;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 {
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; margin: 0 0 .6rem; }
h2 { font-size: 1.55rem; margin: 0 0 .6rem; }
h3 { margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.section { padding: 4rem 0; }
.kicker {
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: .4rem;
}
html[lang="en"] .kicker { text-transform: uppercase; }
html[lang="hi"] .kicker, html[lang="mr"] .kicker { letter-spacing: .04em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.hi { color: var(--muted); }
.meta { color: var(--muted); font-size: .92rem; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); }

.topbar {
  position: relative;
  z-index: 50;
  background: var(--forest);
  color: var(--mist);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem 1rem;
  padding: .4rem 1.2rem;
  font-size: .85rem;
  flex-wrap: nowrap;
  overflow: visible;
  overflow-anchor: none;
}
.topbar-contact, .topbar-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .75rem;
}
.topbar-tools { margin-left: auto; }
.topbar-contact a {
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
}
.topbar-contact a:hover, .topbar-contact a:focus {
  text-decoration: none;
}
.top-contact {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.top-contact svg { fill: currentColor; flex-shrink: 0; }
.top-social {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding-right: .65rem;
  margin-right: .15rem;
  border-right: 1px solid rgba(255,255,255,.28);
}
.top-social a {
  color: #fff;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.top-social a:hover,
.top-social a:focus-visible {
  background: #fff;
  color: var(--forest);
  border-color: #fff;
}
.top-social svg { fill: currentColor; display: block; }
.top-social .social-ico { display: inline-flex; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-top: .65rem;
}
.footer-brand h3 {
  margin: .9rem 0 .45rem;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}
.footer-brand .footer-social {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .4rem;
  margin-top: 0;
}
.site-footer .footer-social a {
  color: #fff;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin: 0;
  flex-shrink: 0;
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  background: #fff;
  color: var(--forest);
  border-color: #fff;
}
.footer-social svg { fill: currentColor; display: block; }
.footer-social .social-ico { display: inline-flex; }
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .35rem 0 .8rem;
}
.contact-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: #fff;
}
.contact-social a:hover,
.contact-social a:focus-visible {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.contact-social svg { fill: currentColor; display: block; }
.top-drop { position: relative; z-index: 1; }
.top-drop[open] { z-index: 2; }
.top-drop summary {
  list-style: none;
  cursor: pointer;
  color: var(--mist);
  min-height: 32px;
  padding: .2rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.top-drop summary { overflow-anchor: none; }
.top-drop summary::-webkit-details-marker { display: none; }
.top-drop summary::after { content: "▾"; font-size: .7rem; opacity: .85; }
.top-drop[open] summary { background: #fff; color: var(--forest); }
.top-drop > div {
  display: grid;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 200px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .4rem;
  margin-top: .25rem;
  z-index: 2;
  box-shadow: var(--shadow);
}
.top-drop > div::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -.35rem;
  height: .35rem;
}
.top-drop > div a {
  color: var(--ink);
  text-decoration: none;
  padding: .45rem .65rem;
  border-radius: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.top-drop > div a:hover, .top-drop > div a.is-active { background: var(--cream); font-weight: inherit; }
.site-header, .brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header {
  justify-content: space-between;
  padding: .9rem 1.2rem;
  background: rgba(255, 245, 242, .94);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  flex-wrap: nowrap;
  gap: 1rem 1.2rem;
  overflow: visible;
  overflow-anchor: none;
}
.brand { text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.site-header .brand img { width: 76px; height: 76px; }
.brand strong, .brand small { display: block; }
.site-header .brand strong { font-size: 1.18rem; line-height: 1.25; }
.brand small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.site-nav {
  display: flex;
  align-items: stretch;
  gap: .2rem .7rem;
  flex-wrap: nowrap;
}
.site-nav > a,
.site-nav > .nav-drop > button {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 .22rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-nav > .nav-drop > button { gap: .35rem; }
.site-nav > a.is-active {
  border-bottom-color: var(--gold);
}
.nav-drop {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-drop > button::after {
  content: "";
  width: .42rem;
  height: .42rem;
  margin-top: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform .15s ease;
}
.nav-drop:hover > button::after,
.nav-drop:focus-within > button::after {
  transform: rotate(-135deg);
}
.site-nav a { text-decoration: none; color: var(--ink); }
.nav-drop > div {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 240px;
  padding: .5rem;
  box-shadow: var(--shadow);
}
.nav-drop > div::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.nav-drop:hover > div,
.nav-drop:focus-within > div { display: grid; }
.nav-drop > div a { padding: .45rem .6rem; border-radius: 8px; white-space: normal; }
.nav-drop > div a:hover { background: var(--cream); }
.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .35rem .6rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: .7rem 1.15rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}
.btn-primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-ghost { border-color: var(--line); background: var(--paper); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: .4rem .8rem; font-size: .9rem; }

.hero {
  padding: 0 0 2.4rem;
  background:
    radial-gradient(circle at 80% 8%, rgba(232, 64, 140, .18), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(61, 174, 74, .22), transparent 32%),
    linear-gradient(180deg, #fff3ea, var(--cream));
}
.hero-brand { text-align: center; max-width: 46rem; margin: 0 auto; padding-top: 2.2rem; }
.hero-logo {
  width: min(220px, 58vw);
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 14px 28px rgba(61, 22, 48, .14));
}
.hero-name-en {
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  font-family: var(--font);
  letter-spacing: 0;
}
.hero-tagline { font-style: italic; color: var(--muted); margin-bottom: .55rem; }
.hero-intro { margin-inline: auto; }
.hero-slider {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
.hero-slider-track {
  position: relative;
  height: clamp(22rem, 48vw, 32rem);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 2.2rem 4.6rem 3.4rem 5.6rem;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease;
  background:
    radial-gradient(circle at 80% 8%, rgba(232, 64, 140, .18), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(61, 174, 74, .22), transparent 32%),
    linear-gradient(180deg, #fff3ea, var(--cream));
}
.hero-slide:nth-child(2) {
  background:
    radial-gradient(circle at 18% 12%, rgba(61, 174, 74, .24), transparent 32%),
    linear-gradient(180deg, #f3faF3, var(--cream));
}
.hero-slide:nth-child(3) {
  background:
    radial-gradient(circle at 82% 88%, rgba(138, 21, 71, .2), transparent 34%),
    linear-gradient(180deg, #fff3ea, var(--cream));
}
.hero-slide:nth-child(4) {
  background:
    radial-gradient(circle at 50% 0%, rgba(61, 174, 74, .22), transparent 40%),
    linear-gradient(180deg, #f3ffe8, var(--cream));
}
.hero-slide:nth-child(5) {
  background:
    radial-gradient(circle at 10% 80%, rgba(138, 21, 71, .2), transparent 36%),
    linear-gradient(180deg, #fff3ea, var(--cream));
}
.hero-slide.is-active {
  position: absolute;
  inset: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide.has-photo {
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(58, 12, 36, .88) 0%, rgba(138, 21, 71, .62) 40%, rgba(45, 138, 58, .28) 78%, rgba(45, 138, 58, .1) 100%),
    var(--slide-image);
  background-size: cover;
  background-position: center;
}
.hero-slide.has-photo .hero-slide-title,
.hero-slide.has-photo .lede,
.hero-slide.has-photo .kicker,
.hero-slide.has-photo .hero-name-en,
.hero-slide.has-photo .hero-tagline {
  color: #fff;
  text-shadow: 0 2px 16px rgba(20, 8, 16, .45);
}
.hero-slide.has-photo .reg-pill { background: rgba(255, 255, 255, .92); color: var(--ink); }
.hero-slide.has-photo .btn-primary {
  background: #fff;
  color: var(--forest);
  border-color: #fff;
}
.hero-slide-inner { max-width: 36rem; margin: 0; }
.hero-slide-logo {
  width: min(120px, 34vw);
  height: auto;
  display: block;
  margin: 0 0 1rem;
  filter: drop-shadow(0 14px 28px rgba(61, 22, 48, .14));
}
.hero-slide-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.2;
  margin: 0 0 .4rem;
  color: var(--forest);
}
.hero-slide-body {
  margin: .4rem 0 .2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 5.4em;
}
.hero-slide-cta { margin: 1rem 0 0; }
.hero-slider-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 252, .92);
  color: var(--forest);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.hero-slider-nav.is-prev { left: .85rem; }
.hero-slider-nav.is-next { right: .85rem; }
.hero-slider-nav:hover { background: #fff; }
.hero-slider-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: .7rem;
  display: flex;
  justify-content: center;
  gap: .4rem;
}
.hero-slider-dot {
  width: .7rem;
  height: .7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 1px rgba(74, 18, 56, .2);
  cursor: pointer;
}
.hero-slider-dot.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
.reg-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .8rem;
  font-size: .88rem;
  font-weight: 650;
  margin-bottom: .9rem;
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .7rem;
  max-width: 920px;
  margin: 1.4rem auto 0;
}
.cta-grid .btn {
  width: 100%;
  text-align: center;
  min-height: 48px;
  font-size: .92rem;
  grid-column: span 2;
}
.cta-grid .btn:nth-child(n+4) {
  grid-column: span 3;
}
.vm-grid, .pillar-grid, .impact-grid, .home-bottom {
  display: grid;
  gap: 1.25rem;
}
.vm-grid, .home-bottom { grid-template-columns: 1fr 1fr; align-items: stretch; }
.home-bottom .plain-card {
  display: flex;
  flex-direction: column;
}
.home-bottom .home-card-actions { margin-top: auto; padding-top: 1rem; }
.home-contact-org { margin-bottom: .7rem; }
.home-contact-org strong { display: inline; }
.contact-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.contact-lines li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 0;
  color: var(--ink);
}
.contact-lines .ui-icon {
  flex-shrink: 0;
  fill: var(--forest);
  margin-top: .15rem;
}
.contact-lines a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.contact-lines a:hover { color: var(--forest); text-decoration: underline; }
.office-label { display: block; font-size: .8rem; font-weight: 700; color: var(--forest); margin-bottom: .12rem; }
.contact-lines-spaced {
  gap: 1.15rem;
}
.contact-lines-spaced .contact-office + .contact-office,
.contact-lines-spaced .contact-office + li:not(.contact-office) {
  margin-top: .25rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--line);
}
.office-block { margin: 0 0 .75rem; }
.office-block strong { display: block; margin-bottom: .15rem; }
.pillar-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.impact-grid {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.impact-grid li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
}
.impact-grid li.is-zero strong { color: var(--muted); }
.impact-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--terra);
}
.course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.course-card .badge { margin-bottom: .6rem; align-self: flex-start; }
.course-card h3 { margin: 0 0 .45rem; }
.course-card > p {
  margin: 0 0 .85rem;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem .9rem;
  margin: 0 0 1rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--line);
}
.course-meta div { display: grid; gap: .15rem; min-width: 0; }
.course-meta dt { color: var(--muted); font-size: .82rem; font-weight: 700; }
.course-meta dd { margin: 0; }
.course-card .btn { margin-top: auto; align-self: flex-start; }
.coord-levels .text-link { margin-top: auto; }
#courses,
#tracks,
#work,
#registration,
#join,
#founder,
#ways,
#message,
#maps,
#levels,
#other,
#apply { scroll-margin-top: 8.5rem; }
.about-hero h1,
.contact-hero h1,
.coord-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); }
.about-intro { font-size: 1.05rem; }
.about-points, .about-checks, .about-areas {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.about-points li,
.about-checks li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  margin: 0;
}
.about-point-n {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-checks { display: grid; gap: .7rem; max-width: 46rem; }
.about-checks li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(61, 174, 74, .16);
  color: var(--forest);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-work-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.about-work-grid .path-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 12.5rem;
}
.about-work-grid .path-card h3 { margin: 0; }
.about-work-grid .path-card .path-no { color: var(--gold); }
.about-work-grid .text-link { margin-top: auto; }
.vm-grid .path-no { margin: 0 0 .35rem; }
.vm-grid h3 { margin: 0 0 .45rem; }
.about-areas {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.about-areas li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .9rem;
  box-shadow: var(--shadow);
  max-width: 100%;
}
.reg-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  max-width: 52rem;
}
.reg-card .reg-dl { max-width: none; }
.reg-card .reg-dl div { grid-template-columns: minmax(8.5rem, 11rem) 1fr; align-items: start; }
.reg-card .prose { margin-top: 1rem; }
.reg-dl a { text-decoration: none; font-weight: 650; }
.reg-dl a:hover { text-decoration: underline; }
.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.about-cta .btn { text-align: center; }
.claim-note {
  background: #fff8f2;
  border: 1px solid #e4c4c8;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  max-width: 46rem;
  margin-bottom: 1.4rem;
}
.claim-note p { margin: 0; }
.csr-intro { margin-top: 0; }
.csr-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.25rem;
  align-items: stretch;
}
.csr-intro-grid > .plain-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #f7fbf7;
  border-color: #d7e8d7;
}
.csr-intro-grid > .plain-card > h2 {
  margin-top: 0;
  font-size: 1.2rem;
}
.csr-intro-grid .reg-dl { max-width: none; }
.csr-intro-grid .plain-card > .meta,
.csr-intro-grid .form-card > .meta { margin-top: 0; }
.csr-intro-grid > .form-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.csr-intro-grid > .form-card > h2 {
  margin-top: 0;
  font-size: 1.2rem;
}
.csr-intro-grid .form-links { margin-top: auto; padding-top: .85rem; }
.csr-head h2::after,
.coord-head h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: .4rem;
  background: var(--gold);
  border-radius: 99px;
}
.coord-head { scroll-margin-top: 5.5rem; }
.csr-head p,
.coord-head p {
  margin: .65rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}
#themes,
#projects { scroll-margin-top: 8.5rem; }
.coord-levels { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: stretch; }
.coord-levels .path-card { display: flex; flex-direction: column; gap: .35rem; min-height: 11.5rem; }
.coord-levels .path-card p { margin: 0; color: var(--muted); }
.coord-levels .path-card .path-no { color: var(--gold); }
.about-points.coord-duties { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.coord-after-head { margin-top: 1.8rem; }
.coord-head h3::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: .4rem;
  background: var(--gold);
  border-radius: 99px;
}
.coord-after-head h3 { margin: 0; font-size: 1.25rem; }
.coord-who {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.coord-who li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  box-shadow: var(--shadow);
  font-weight: 650;
}
.coord-duties,
.coord-steps { margin-top: .2rem; }
.csr-themes { grid-template-columns: 1fr 1fr; align-items: stretch; }
.csr-themes .path-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 12.5rem;
}
.csr-themes .path-card h3 { margin: 0; }
.csr-themes .path-card p { margin-bottom: .4rem; }
.csr-themes .path-card .path-no { color: var(--gold); }
.csr-themes .text-link { margin-top: auto; }
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.project-card .btn { margin-top: auto; }
.project-card .course-meta { margin-bottom: .9rem; }
.csr-record { margin: 0 0 1rem; }
.csr-photos-head { margin-top: 2rem; }
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.4rem;
}
.filter-chips a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .88rem;
  font-weight: 650;
}
.filter-chips a.is-active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.project-meta { max-width: 36rem; margin-bottom: 1.4rem; }
.process-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  max-width: 36rem;
}
.process-flow li {
  position: relative;
  padding: 0 0 1.25rem 2.6rem;
  border-left: 2px solid var(--gold);
  margin-left: .7rem;
}
.process-flow li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.process-flow li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -0.95rem;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card .course-meta { margin-top: .4rem; }
.otp-preview { font-size: 1.8rem; letter-spacing: .2em; margin: .6rem 0 0; }
.doc-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.doc-type-row input, .doc-type-row select { width: auto; min-width: 8rem; }
.inline-status { display: flex; gap: .35rem; align-items: center; margin-top: .35rem; }
.inline-status select { width: auto; padding: .35rem .5rem; }
.table-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  white-space: nowrap;
}
.table-actions form {
  margin: 0;
  display: inline-flex;
  flex-shrink: 0;
}
.table-actions .btn { white-space: nowrap; flex-shrink: 0; }
.table-actions .inline-status { margin: 0; }
label.inline { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; margin: 0; }
.founder-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.founder-card.has-photo {
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
}
.founder-card > div { min-width: 0; }
.founder-card h3 { margin: 0 0 .35rem; }
.founder-card .prose { max-width: 40rem; }
.founder-card img {
  width: 100%;
  height: 100%;
  max-height: 16rem;
  object-fit: cover;
  border-radius: 16px;
}
.founder-card .photo-empty {
  margin: 0;
  min-height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.reg-dl { display: grid; gap: .15rem; max-width: 46rem; }
.reg-dl div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: .5rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
}
.reg-dl dt { color: var(--muted); font-weight: 600; }
.reg-dl dd { margin: 0; }
.photo-empty {
  border: 2px dashed var(--line);
  padding: 1.6rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
}
.gallery-grid-home { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery-cap { display: block; padding: .45rem .65rem; font-size: .88rem; }
.hero-grid, .contact-grid, .split, .grid-2, .card-grid, .stat-cards, .footer-grid {
  display: grid;
  gap: 1.25rem;
}
.hero-grid { grid-template-columns: 1.3fr .8fr; align-items: center; }
.contact-grid { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
.contact-grid { scroll-margin-top: 8.5rem; }
.contact-grid > .plain-card,
.contact-grid > .form-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.contact-grid > .plain-card {
  background: #f7fbf7;
  border-color: #d7e8d7;
}
.contact-grid > .plain-card > h2,
.contact-grid > .form-card > h2,
.contact-grid > .form-card > h2:first-of-type {
  margin-top: 0;
  font-size: 1.2rem;
}
.contact-grid .reg-dl { max-width: none; }
.contact-grid .plain-card > .meta { margin-top: 0; }
.contact-grid .form-links,
.contact-grid .home-card-actions { margin-top: auto; padding-top: .85rem; }
.about-work-grid .form-links { margin-top: auto; padding-top: .5rem; }
.about-work-grid .text-link { margin: 0; }
.apply-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.25rem;
  align-items: start;
}
.apply-grid > .form-card,
.apply-grid > .plain-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.apply-form > h2:first-of-type { margin-top: 0; }
.apply-form > .btn-primary { width: 100%; }
.apply-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1.05rem .25rem;
  margin: 0 0 1.1rem;
  min-width: 0;
  background: #fffaf6;
}
.apply-block legend {
  font-weight: 700;
  padding: 0 .4rem;
}
.apply-block legend .path-no {
  display: inline;
  margin-right: .4rem;
  font-size: 1.15rem;
}
.apply-block > select { margin-bottom: .95rem; }
.apply-grid > .plain-card.apply-aside {
  position: sticky;
  top: 8.5rem;
  background: #f7fbf7;
  border-color: #d7e8d7;
}
.apply-aside h2 { margin-top: 0; font-size: 1.2rem; }
.apply-aside .form-links { margin-top: auto; padding-top: .85rem; }
.apply-aside h3 { margin: 1.1rem 0 .45rem; font-size: 1.05rem; }
.apply-aside-steps {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.apply-aside-steps li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: 0;
}
.apply-aside-steps span {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apply-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem;
}
.apply-doc-list li {
  margin: 0;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}
.apply-doc-list .hint { display: inline; margin-left: .35rem; font-weight: 500; }
#apply-level, #apply-personal, #apply-org, #apply-docs, #apply-password { scroll-margin-top: 8.5rem; }
.office-map-card p { margin: .35rem 0 .2rem; color: var(--muted); }
.office-map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 21 / 9;
  min-height: 22rem;
  background: #eceae4;
  margin: .75rem 0 .35rem;
}
.office-map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-panel, .plain-card, .path-card, .form-card, .panel, .stat-card, .install-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel { padding: 1.4rem; }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.stat-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .5rem; }
.stat-list strong { font-family: var(--display); font-size: 1.6rem; }
.page-hero { padding: 3rem 0 1rem; background: linear-gradient(180deg, #fff3ea, var(--cream)); }
.page-hero.has-photo {
  --page-hero-height: 22rem;
  display: flex;
  align-items: center;
  height: auto;
  min-height: var(--page-hero-height);
  max-height: none;
  padding: 1.2rem 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #3a0d28;
  background-image:
    linear-gradient(90deg, rgba(58, 12, 36, .88) 0%, rgba(138, 21, 71, .58) 42%, rgba(45, 138, 58, .26) 78%, rgba(45, 138, 58, .1) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
.page-hero.has-photo > .wrap {
  width: min(1120px, calc(100% - 32px));
}
.page-hero.has-photo .kicker { color: #d8f5d8; }
.page-hero.has-photo h1 {
  margin-bottom: .4rem;
}
.page-hero.has-photo h1,
.page-hero.has-photo .lede,
.page-hero.has-photo .hero-lede,
.page-hero.has-photo .hero-name-en {
  color: #fff;
  text-shadow: 0 2px 16px rgba(20, 8, 16, .5);
}
.page-hero.has-photo .lede,
.page-hero.has-photo .hero-lede {
  max-width: 38rem;
  margin-bottom: .7rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-hero.policy-hero.has-photo .lede {
  max-width: 42rem;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.page-hero.policy-hero.has-photo {
  height: auto;
  min-height: 16rem;
  max-height: none;
  overflow: visible;
  padding: 2.2rem 0 1.9rem;
}
.page-hero.has-photo .hero-actions { margin: 0; }
.page-hero.has-photo .reg-pill { background: rgba(255, 255, 255, .94); margin-bottom: 0; }
.page-hero.has-photo .callout {
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  max-width: 38rem;
  margin-top: .55rem;
  max-height: 4.2rem;
  overflow: hidden;
}
.page-hero.has-photo .btn-primary {
  background: #fff;
  color: var(--forest);
  border-color: #fff;
}
.page-hero.has-photo .btn-ghost {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.page-hero.about-hero.has-photo {
  background-image:
    linear-gradient(180deg, rgba(107, 18, 56, .58) 0%, rgba(45, 138, 58, .32) 48%, rgba(58, 12, 36, .78) 100%),
    var(--hero-image);
  background-position: center 40%;
}
.page-hero.about-hero.has-photo .about-mark {
  width: 96px;
  height: 96px;
  margin-bottom: .7rem;
  background: #fff;
  border-radius: 50%;
  padding: .28rem;
  box-shadow: 0 12px 28px rgba(20, 8, 16, .28);
}
.section-head { margin-bottom: 1.5rem; max-width: 40rem; }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.path-card, .plain-card, .form-card, .panel { padding: 1.3rem; }
.path-no { font-family: var(--display); color: var(--gold); font-size: 1.4rem; }
.band { background: #f3faf3; }
.prose { max-width: 46rem; }
.prose.policy-copy { max-width: none; }
.policy-switch { margin-top: .85rem; }
.policy-switch .btn { font-size: .88rem; }
.policy-switch .btn.is-current,
.page-hero.has-photo .policy-switch .btn.is-current {
  background: #fff;
  color: var(--forest);
  border-color: #fff;
  font-weight: 700;
}
.policy-layout {
  display: grid;
  grid-template-columns: minmax(13.5rem, 17.5rem) minmax(0, 1fr);
  gap: 1.6rem 2rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 2.6rem;
}
.policy-toc {
  position: sticky;
  top: 7.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.policy-toc h2 {
  margin: 0 0 .85rem;
  font-size: 1.02rem;
}
.policy-toc h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: .4rem;
  background: var(--gold);
  border-radius: 99px;
}
.policy-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .2rem;
  max-height: calc(100vh - 11rem);
  overflow: auto;
}
.policy-toc a {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.35;
  padding: .42rem .45rem;
  border-radius: 10px;
}
.policy-toc a:hover,
.policy-toc a.is-active {
  background: var(--mist);
  color: var(--forest);
}
.policy-toc-n {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .05rem;
  border-radius: 50%;
  background: rgba(138, 21, 71, .08);
  color: var(--forest);
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.policy-toc a.is-active .policy-toc-n {
  background: var(--forest);
  color: #fff;
}
.policy-main { min-width: 0; display: grid; gap: 1rem; }
.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  color: var(--muted);
  font-size: .88rem;
}
.policy-meta p { margin: 0; }
.policy-intro p { margin: 0 0 .8rem; }
.policy-intro p:last-child { margin-bottom: 0; }
.policy-intro a,
.policy-copy a { font-weight: 600; }
.policy-article { scroll-margin-top: 8rem; }
.policy-article h2 {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin: 0 0 .9rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
}
.policy-article h2 .about-point-n { margin-top: .12rem; }
.policy-copy p { margin: 0 0 .8rem; }
.policy-copy p:last-child { margin-bottom: 0; }
.policy-copy ul,
.policy-copy ol {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.policy-copy li {
  position: relative;
  margin: 0;
  padding: .65rem .9rem .65rem 1.85rem;
  background: var(--mist);
  border-radius: 12px;
}
.policy-copy li::before {
  content: "";
  position: absolute;
  left: .75rem;
  top: .95rem;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--gold);
}
.policy-copy ul + p,
.policy-copy ol + p { margin-top: .15rem; }
@media (max-width: 960px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
  .policy-toc ol { max-height: none; }
}
.prose h2 {
  font-size: 1.18rem;
  margin: 1.7rem 0 .55rem;
  color: var(--ink);
}
.prose h3 {
  font-size: 1.02rem;
  margin: 1.2rem 0 .4rem;
}
.prose p { margin: 0 0 .85rem; }
.prose ul, .prose ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
.prose li { margin: 0 0 .4rem; }
.prose a { font-weight: 600; }
.flow { padding-left: 1.1rem; }
.narrow { max-width: 640px; }
.site-footer { background: var(--forest); color: var(--mist); padding: 3rem 0 0; margin-top: 2rem; }
.site-footer a, .brand-light { color: var(--mist); text-decoration: none; display: block; margin-bottom: .35rem; }
.site-footer h3 {
  margin: 0 0 .85rem;
  padding-bottom: .55rem;
  font-size: 1.05rem;
  position: relative;
}
.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 2px;
  background: rgba(255, 255, 255, .55);
  border-radius: 2px;
}
.footer-grid {
  grid-template-columns: 1.05fr .7fr .62fr 1.63fr;
  padding-bottom: 2rem;
  align-items: start;
}
.site-footer .wrap { width: min(1200px, calc(100% - 32px)); }
.footer-nav a,
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 0 0 .45rem;
  color: var(--mist);
  font-size: .92rem;
  line-height: 1.4;
}
.footer-nav a .ui-icon,
.footer-contact .ui-icon {
  flex-shrink: 0;
  fill: currentColor;
  opacity: .92;
  margin-top: .12rem;
}
.footer-contact a { display: inline; margin: 0; }
.footer-contact span { min-width: 0; }
.footer-contact span strong { display: block; font-size: .78rem; margin-bottom: .12rem; opacity: .95; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem 1.2rem; font-size: .85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .14);
  padding: .85rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem 1.4rem;
  flex-wrap: wrap;
}
.footer-copy {
  margin: 0;
  font-size: .88rem;
  line-height: 1.45;
  opacity: .94;
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
}
.footer-bottom-links a {
  display: inline;
  margin: 0;
  font-size: .88rem;
  font-weight: 650;
  white-space: nowrap;
}
.footer-bottom-links a:hover,
.footer-bottom-links a:focus {
  text-decoration: underline;
}

label {
  display: grid;
  grid-template-rows: 1.4rem auto;
  align-content: start;
  gap: .35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  overflow-anchor: none;
  overflow-wrap: normal;
  word-break: normal;
}
label[hidden] { display: none !important; }
label > .lbl {
  display: block;
  min-width: 0;
  min-height: 1.4rem;
  line-height: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
label .req {
  display: none;
  color: var(--danger);
  font-weight: 800;
  margin-inline-start: .2rem;
  line-height: 1;
}
label.is-missing .req,
label:has(.is-invalid) .req {
  display: inline;
}
label > .hint {
  order: 4;
  margin: 0;
}
label > .field-error { order: 5; }
label > .choice-extra { order: 3; }
input, select, textarea {
  font: inherit;
  font-size: 16px;
  padding: .7rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  width: 100%;
  min-height: 46px;
  overflow-anchor: none;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  flex-shrink: 0;
  accent-color: var(--forest);
}
label.choice,
small.choice {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .5rem .65rem;
  grid-template-rows: none;
  width: fit-content;
  max-width: 100%;
  font-weight: 500;
}
label.choice > .lbl,
small.choice > .lbl {
  display: block;
  min-height: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  flex: 1 1 auto;
  line-height: 1.45;
}
label.choice { margin-bottom: 1rem; }
small.choice { margin: .35rem 0 0; }
label.choice input[type="hidden"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
textarea { min-height: 90px; }
input[type="file"] { padding: .48rem .7rem; }
.choice-extra[hidden] { display: none !important; }
.grid-2 {
  align-items: start;
  column-gap: 1rem;
  row-gap: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
.lang-switch { display: flex; gap: .4rem; align-items: center; }
.lang-switch a {
  color: var(--mist);
  text-decoration: none;
  min-height: 36px;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  font-size: .85rem;
}
.lang-switch a.is-active { background: #fff; color: var(--forest); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .8rem;
}
.gallery-item {
  margin: 0;
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.gallery-item img { width: 100%; height: 160px; object-fit: cover; display: block; }
.gallery-item figcaption { padding: .5rem .7rem; font-size: .9rem; }
.card-photo { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: .7rem; }
.btn { min-height: 44px; }
textarea { min-height: 90px; resize: vertical; }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
.stack { display: grid; gap: .4rem; }
.form-card h2 { margin-top: 1.2rem; }
.cms .form-card > h2:first-of-type { margin-top: 0; }
.settings-desk .settings-offices textarea,
.cms-offices textarea {
  min-height: 8.2rem;
}
.settings-desk .settings-preview {
  max-height: 70px;
  width: auto;
  display: block;
  margin: .3rem 0;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cms-steps {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
  counter-reset: cms-step;
}
.cms-steps li {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: .7rem;
  align-items: start;
  color: var(--muted);
}
.cms-steps li::before {
  counter-increment: cms-step;
  content: counter(cms-step);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--forest);
  font-weight: 700;
  font-size: .85rem;
  display: grid;
  place-items: center;
}
.hint { color: var(--muted); font-size: .9rem; }
.field-error {
  display: block;
  color: var(--danger);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.35;
  min-height: 0;
  margin-top: 0;
}
.field-error:empty,
.field-error[hidden] { display: none; }
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(138, 21, 71, .12);
}

.flash-stack { padding-top: 1rem; position: sticky; top: 0; z-index: 40; }
.flash { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: .6rem; font-weight: 650; border: 1px solid transparent; }
.flash-success { background: #e8f6ee; color: var(--ok); border-color: #b7e0c5; }
.flash-error { background: #fde8ee; color: var(--danger); border-color: #f3c0cc; }
main:has(.login-stage) { position: relative; }
main:has(.login-stage) .flash-stack {
  position: absolute;
  top: .85rem;
  left: 0;
  right: 0;
  z-index: 6;
  padding-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .18rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  background: #f3e0ea;
}
.badge-pending, .badge-pending_approval, .badge-payment_pending, .badge-applied, .badge-assigned, .badge-work_assigned, .badge-unpaid, .badge-submitted { background: #fff3d6; color: var(--warn); }
.badge-under_review, .badge-documents_verified, .badge-verified, .badge-payment_submitted, .badge-payment_verification, .badge-in_progress, .badge-training, .badge-recorded { background: #e7eefc; color: #1e3a8a; }
.badge-hold { background: #f3e8ff; color: #6b21a8; }
.badge-approved, .badge-admitted, .badge-active, .badge-completed, .badge-paid, .badge-ongoing { background: #e5f6ec; color: var(--ok); }
.badge-rejected, .badge-inactive, .badge-suspended { background: #fde8ee; color: var(--danger); }
.badge-draft { background: #eceae4; color: var(--muted); }

.pay-qr {
  margin: 1rem 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  justify-items: center;
  gap: .45rem;
  width: fit-content;
}
.pay-qr img { display: block; background: #fff; width: 200px; height: 200px; object-fit: contain; }
.pay-instructions {
  white-space: pre-wrap;
  font-family: inherit;
  background: var(--cream);
  padding: 1rem;
  border-radius: 12px;
  font-size: .95rem;
  line-height: 1.45;
}
.status-path {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.status-path li {
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #eceae4;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}
.status-path li.is-done {
  background: #e5f6ec;
  color: var(--ok);
}
.dash { display: grid; gap: 1.15rem; }
.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.4rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #6b1238 0%, var(--forest) 48%, #2d8a3a 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.dash-hero > div { min-width: 0; }
.dash-hero .kicker { color: #d8f5d8; margin: 0 0 .3rem; }
.dash-hero h2 { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.85rem); overflow-wrap: anywhere; }
.dash-hero p { margin: .3rem 0 0; color: rgba(255, 255, 255, .84); font-size: .95rem; }
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.dash-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .9rem;
  font-weight: 600;
}
.dash-hero-btn:hover { background: rgba(255, 255, 255, .22); }
.dash-hero-btn .ui-icon { fill: currentColor; }
.dash-queue {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.dash-queue h2 { margin: 0 0 .7rem; font-size: 1.05rem; }
.dash-queue > p { margin: 0 0 .75rem; color: var(--muted); }
.dash-queue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .55rem;
}
.dash-queue-list a {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: #fff6e8;
  border: 1px solid #f0d2a8;
  text-decoration: none;
  color: inherit;
}
.dash-queue-list a:hover { border-color: var(--warn); }
.dash-queue-list strong {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--warn);
  line-height: 1;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
}
.dash-mod {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1.05rem;
  display: grid;
  gap: .75rem;
  min-width: 0;
}
.dash > .dash-grid > .dash-mod,
.dash > .dash-activity {
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.dash-mod-head {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.dash > .dash-grid > .dash-mod > .dash-mod-head,
.dash > .dash-activity > .dash-mod-head {
  padding: .9rem 1.05rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdfb 0%, #fbf6f0 100%);
}
.dash-mod-head .ui-icon { fill: var(--forest); flex-shrink: 0; }
.dash-mod-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #9a1b52 0%, #6b1238 100%);
  box-shadow: 0 6px 14px rgba(138, 21, 71, .22);
  flex-shrink: 0;
}
.dash-mod-icon .ui-icon { fill: #fff; }
.dash-mod-head h2 { margin: 0; font-size: 1.08rem; flex: 1; letter-spacing: .01em; }
.dash-mod-head a {
  font-size: .85rem;
  text-decoration: none;
  color: var(--forest);
  font-weight: 600;
}
.dash-mod-open {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .2rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--forest);
}
.dash-mod-open:hover,
.dash-mod-open:focus-visible {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}
.dash-mod-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.dash > .dash-grid > .dash-mod .dash-mod-stats {
  padding: .9rem 1.05rem 1.05rem;
}
.dash-mod-stats:has(> :only-child) {
  grid-template-columns: 1fr;
}
.dash-mod-stat {
  display: grid;
  gap: .28rem;
  padding: .85rem .9rem .8rem;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(61, 16, 40, .03);
  min-height: 5.1rem;
  align-content: start;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dash-mod-stat:hover,
.dash-mod-stat:focus-visible {
  border-color: #c9a3b3;
  background: #fff;
  box-shadow: 0 10px 22px rgba(61, 16, 40, .08);
  transform: translateY(-1px);
}
.dash-mod-stat strong {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--forest);
  font-weight: 700;
}
.dash-mod-stat span {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: .02em;
}
.dash-mod-stat.tone-warn {
  background: #fff8f0;
  border-color: #efd2b0;
}
.dash-mod-stat.tone-warn strong { color: var(--warn); }
.dash-mod-stat.tone-ok {
  background: #f3faf4;
  border-color: #c5e3cb;
}
.dash-mod-stat.tone-ok strong { color: var(--ok); }
.dash-activity { overflow-x: auto; }
.dash-activity .table { margin: 0; }
.dash-activity .table th:first-child,
.dash-activity .table td:first-child { padding-left: 1.05rem; }
.dash-activity .table th:last-child,
.dash-activity .table td:last-child { padding-right: 1.05rem; }
.dash-empty { margin: 0; }
.dash-empty-cta { display: grid; gap: .7rem; padding: .1rem 0 .15rem; }
.dash-empty-cta > p { margin: 0; color: var(--muted); }
.dash-banner { margin: 0; padding: .7rem .95rem; background: #fff6e8; border: 1px solid #f0d2a8; border-radius: 12px; }
.dash-kpis,
.dash-kpis.is-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.2rem, 1fr));
  gap: .75rem;
}
.dash-kpi {
  display: grid;
  gap: .2rem;
  min-width: 0;
  padding: .95rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.dash-kpi:hover { border-color: #c9b8a8; }
div.dash-kpi { cursor: default; }
div.dash-kpi:hover { border-color: var(--line); }
.dash-kpi strong {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--ink);
}
.dash-kpi.is-text strong {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  overflow-wrap: anywhere;
}
.dash-kpi span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.dash-kpi.tone-ok { background: #eef8f0; }
.dash-kpi.tone-ok strong { color: var(--ok); }
.dash-kpi.tone-warn { background: #fff4e8; }
.dash-kpi.tone-warn strong { color: var(--warn); }
.dash-shortcuts,
.dash-shortcuts.is-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: .55rem;
}
.dash-shortcuts a {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  padding: .7rem .85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: .9rem;
}
.dash-shortcuts a:hover { border-color: var(--forest); background: #fff; }
.dash-shortcuts .ui-icon { fill: var(--forest); flex-shrink: 0; }
.dash-shortcuts span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-board {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 1rem;
  align-items: start;
}
.dash-side { display: grid; gap: 1rem; min-width: 0; }
.dash-aside {
  background: #f7fbf7;
  border-color: #d7e8d7;
}
.dash-aside .form-links { margin-top: .35rem; }
.profile-id {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  min-width: 0;
}
.profile-id h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.profile-id img,
.profile-id-fallback {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--mist);
}
.profile-id-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-id-fallback .ui-icon { fill: var(--forest); }
.profile-desk .kv { gap: 0; margin: 0 0 .85rem; }
.profile-desk .kv div {
  grid-template-columns: 8.6rem 1fr;
  gap: .75rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.profile-desk .kv dd { overflow-wrap: anywhere; font-weight: 650; }
.profile-desk .hint { margin-bottom: 0; }
.dash-aside .kv { gap: .35rem; }
.dash-aside .kv div { grid-template-columns: 7.5rem 1fr; padding: .15rem 0; }
.dash-aside .kv dd { overflow-wrap: anywhere; }
.batch-form .apply-block:last-of-type { margin-bottom: .4rem; }
.batch-form .cms-form-actions { margin-top: .35rem; }
.cert-desk .apply-block:last-of-type { margin-bottom: .4rem; }
.cert-desk .cms-form-actions { margin-top: .35rem; flex-wrap: wrap; }
.cert-desk .kv { margin: 0 0 .85rem; }
.cert-desk .kv div { grid-template-columns: 8.2rem 1fr; padding: .18rem 0; }
.cert-desk .kv dd { overflow-wrap: anywhere; }
.chat-log {
  display: grid;
  gap: .55rem;
  max-height: 22rem;
  overflow-y: auto;
  overflow-anchor: none;
  padding: .2rem .1rem .6rem;
}
.chat-bubble {
  max-width: min(36rem, 92%);
  padding: .65rem .8rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.chat-bubble p { margin: 0 0 .35rem; }
.chat-bubble small { color: var(--muted); font-size: .8rem; }
.chat-bubble.is-office {
  justify-self: start;
  background: var(--mist);
  border-color: #d7e8d7;
}
.chat-bubble.is-user {
  justify-self: end;
  background: #fff6fb;
  border-color: #efd0df;
}
.chat-compose { margin-top: .4rem; }
.chat-inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.chat-inbox a {
  display: grid;
  gap: .1rem;
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.chat-inbox a strong { min-width: 0; }
.chat-inbox a small, .chat-inbox a span { color: var(--muted); font-size: .85rem; }
.chat-inbox a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-inbox a.is-active, .chat-inbox a:hover { background: var(--mist); }
.chat-inbox .nav-count { position: absolute; top: .55rem; right: .55rem; }
.cert-qr-aside { margin: .15rem 0 .85rem; }
.work-desk { scroll-margin-top: 5.5rem; }
.work-desk .apply-block:last-of-type { margin-bottom: .4rem; }
.work-desk .work-item:first-of-type { border-top: 0; padding-top: 0; }
.work-desk .inline-form { margin-top: .45rem; }
.rep-desk .apply-block:last-of-type { margin-bottom: .4rem; }
.rep-desk .table-wrap { margin: .15rem 0 0; }
.rep-desk .table td:last-child { text-align: right; }
.pay-form .apply-block:last-of-type { margin-bottom: .4rem; }
.pay-form .cms-form-actions { margin-top: .35rem; }
.pay-form .kv { margin: 0 0 .85rem; }
.pay-form .kv div { grid-template-columns: 8.2rem 1fr; padding: .18rem 0; }
.pay-form .kv dd { overflow-wrap: anywhere; }
.pay-form .pay-qr { margin: .15rem 0 .85rem; }
.pay-form .pay-instructions { margin: 0 0 .85rem; }
.pay-amount {
  margin: 0 0 .65rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  color: var(--ink);
}
.cert-stamp {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #e5f6ec;
  color: var(--ok);
}
.cert-stamp.is-warn { background: #fff4e8; color: var(--warn); }
.cert-stamp.is-invalid { background: #fde8ee; color: var(--danger); }
.dash-next {
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.dash-next li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: 0;
}
.dash-next span {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed li.is-empty { color: var(--muted); }
.dash-section { margin: 0 0 1.5rem; }
.dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: .55rem;
}
.dash-section-head h2 { margin: 0; font-size: 1.15rem; }
.dash-section-head a { font-size: .9rem; }
.dash-section .stat-cards { margin-bottom: 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.portal-body { background: #eef6ee; }
.portal-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.portal-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.sidenav {
  position: sticky;
  top: 0;
  align-self: start;
  width: 260px;
  min-width: 260px;
  height: 100vh;
  background: var(--forest);
  color: var(--mist);
  padding: 1.2rem .9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  overflow-anchor: none;
  z-index: 25;
  border-right: 2px solid var(--gold);
}
.sidenav nav {
  display: grid;
  align-content: start;
  gap: .35rem;
  flex: 1;
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-gutter: stable;
  min-height: 0;
  padding-right: .15rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255, 255, 255, .14);
}
.sidenav nav::-webkit-scrollbar { width: 6px; }
.sidenav nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .14);
  border-radius: 99px;
}
.sidenav nav::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 99px;
}
.sidenav a { color: inherit; text-decoration: none; display: block; padding: .5rem .65rem; border-radius: 10px; }
.sidenav a:hover { background: rgba(255,255,255,.1); }
.sidenav nav > a.is-active,
.sidenav-sub a.is-active,
.sidenav-foot a.is-active,
.sidenav-langs a.is-active {
  background: rgba(255,255,255,.16);
  box-shadow: inset 3px 0 0 var(--gold);
}
.sidenav-brand { display: flex; gap: .65rem; align-items: flex-start; flex-shrink: 0; padding: .1rem .15rem .15rem; }
.sidenav-brand img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.sidenav-brand span { min-width: 0; }
.sidenav-brand strong {
  display: block;
  font-size: .86rem;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: normal;
}
.sidenav-brand small { display: block; margin-top: .12rem; opacity: .75; font-size: .75rem; }
.sidenav.is-compact nav { flex: 0 1 auto; }
.sidenav.is-compact .sidenav-foot { margin-top: .15rem; }
.sidenav .ui-icon { flex-shrink: 0; fill: currentColor; opacity: .92; }
.sidenav-link-main {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.sidenav-group { margin: 0; display: grid; gap: 0; }
.sidenav-group[open] { gap: .15rem; }
.sidenav-group > summary.sidenav-group-label {
  list-style: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  color: inherit;
  border-radius: 10px;
  font-weight: 400;
  overflow-anchor: none;
}
.sidenav-group > summary.sidenav-group-label::-webkit-details-marker { display: none; }
.sidenav-group > summary.sidenav-group-label::after {
  content: "";
  width: .42rem;
  height: .42rem;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: .7;
  flex-shrink: 0;
}
.sidenav-group[open] > summary.sidenav-group-label::after {
  transform: rotate(45deg);
  margin-top: -.15rem;
}
.sidenav-group > summary.sidenav-group-label:hover,
.sidenav-group[open] > summary.sidenav-group-label,
.sidenav-group.is-current > summary.sidenav-group-label {
  background: rgba(255,255,255,.1);
}
.sidenav-group-label {
  margin: 0;
  padding: .5rem .65rem;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.sidenav a.sidenav-group-label { padding: .45rem .6rem; }
.sidenav a.sidenav-group-label:hover, .sidenav a.sidenav-group-label.is-active { opacity: 1; }
.sidenav-sub {
  display: none;
  gap: 0;
  margin: 0 0 0 .95rem;
  padding-left: .7rem;
  border-left: 2px solid var(--gold);
}
.sidenav-group[open] > .sidenav-sub { display: grid; }
.sidenav-sub a { font-size: .9rem; padding: .32rem .55rem; }
.sidenav-foot {
  display: grid;
  gap: .15rem;
  margin-top: .35rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.sidenav-langs {
  display: grid;
  gap: .15rem;
}
.sidenav-langs a {
  padding: .5rem .65rem;
  border: 0;
  border-radius: 10px;
  font-size: inherit;
  font-weight: inherit;
}
.sidenav-link-main span { min-width: 0; overflow-wrap: break-word; }
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
  align-items: end;
}
.filter-bar .filter-end {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  align-items: end;
  gap: .6rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.filter-bar .filter-end > label {
  flex: 0 0 10.5rem;
  width: 10.5rem;
  margin: 0;
}
.filter-bar .filter-actions {
  display: flex;
  justify-content: flex-start;
  align-items: end;
  gap: .6rem;
  flex-wrap: nowrap;
}
.filter-bar .filter-actions .btn {
  width: 9.5rem;
  min-width: 9.5rem;
  min-height: 46px;
  justify-content: center;
}
.cms { display: grid; gap: 1.35rem; }
.cms-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #6b1238 0%, var(--forest) 48%, #2d8a3a 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.cms-intro .kicker { color: #d8f5d8; margin: 0 0 .25rem; }
.cms-intro h2 { margin: 0; color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.cms-intro p { margin: .3rem 0 0; color: rgba(255, 255, 255, .86); }
.cms-intro .btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.cms-intro .btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.cms-section h2 {
  margin: 0 0 .7rem;
  font-size: 1.05rem;
}
.cms-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.cms-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.1rem 1.1rem;
}
.cms-card.has-alert { border-color: #f0d2a8; background: #fffaf3; }
.cms-card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #9a1b52 0%, #6b1238 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(138, 21, 71, .22);
}
.cms-card-icon .ui-icon { fill: #fff; }
.cms-card h3 { margin: .55rem 0 .2rem; font-size: 1.12rem; }
.cms-card > p { margin: 0; color: var(--muted); flex: 1; font-size: .92rem; }
.cms-card-meta {
  margin: 0 0 .35rem !important;
  font-size: .82rem;
  font-weight: 600;
  color: var(--forest);
  flex: 0 0 auto;
}
.cms-card.has-alert .cms-card-meta { color: var(--warn); }
.cms-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .95rem;
}
.cms-card-actions .btn { min-height: 38px; }
.cms-intro-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.cms-form-actions { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
}
.cms-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.cms-tabs a.is-active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.cms-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .9fr);
  gap: 1rem;
  align-items: start;
}
.cms-slides .dash-mod-head { margin-bottom: .35rem; }
.cms-slide-count { font-size: .85rem; color: var(--muted); font-weight: 600; }
.cms-slide {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--mist);
  margin: 0 0 .7rem;
}
.cms-slide[open] { background: var(--paper); }
.cms-slide > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  cursor: pointer;
}
.cms-slide > summary::-webkit-details-marker,
.cms-slide > summary::marker { display: none; }
.cms-slide img,
.cms-slide-ph {
  width: 112px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #dcefdc;
}
.cms-slide-ph {
  display: grid;
  place-items: center;
  color: var(--forest);
}
.cms-slide-ph .ui-icon { fill: currentColor; }
.cms-slide-meta { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.cms-slide-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cms-slide-meta small { color: var(--muted); }
.cms-slide-form { padding: 0 .95rem .4rem; }
.cms-slide-delete { padding: 0 .95rem 1rem; }
.cms-slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .15rem .95rem 1rem;
}
.cms-slide-actions .cms-slide-delete { padding: 0; margin: 0; display: inline; }
.cms-slide-actions .btn { margin: 0; }
.cms-add-slide { position: sticky; top: 4.6rem; }
.cms-mr {
  margin: .15rem 0 1rem;
  padding: .55rem .75rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--mist);
}
.cms-mr > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}
.cms-mr[open] { background: var(--paper); }
.cms-mr label { margin-top: .55rem; }
.table-wrap { overflow-x: auto; }
.table code { white-space: nowrap; font-size: .82em; }
.table tr.is-unread td { background: #fff6e8; }
.cms-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}
.cms-list-head h2 { margin: 0; }
.notice-band {
  background: #f3faf3;
  border-bottom: 1px solid #c5e3c8;
  padding: .85rem 0;
}
.notice-band .wrap { display: grid; gap: .6rem; }
.notice-item h3 { margin: 0 0 .2rem; font-size: 1rem; }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.report-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.portal-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem 1rem;
  padding: .7rem 1.2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(74, 18, 56, .04);
  overflow: visible;
  overflow-anchor: none;
}
.portal-top-title { min-width: 0; flex: 1; }
.portal-top .kicker { margin-bottom: .1rem; }
.portal-top h1 { font-size: 1.25rem; margin: 0; line-height: 1.25; }
.portal-top .nav-toggle { color: var(--forest); display: none; }
.portal-top .nav-toggle .ui-icon { fill: currentColor; }
.portal-top .admin-search {
  display: flex;
  gap: .35rem;
  flex: 0 1 22rem;
  min-width: 0;
}
.portal-top .admin-search input {
  flex: 1;
  min-width: 0;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}
.portal-top .admin-search .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.portal-user { flex-shrink: 0; z-index: 40; }
.portal-top .portal-user summary {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--line);
  min-height: 42px;
  padding: .2rem .75rem .2rem .25rem;
  gap: .5rem;
}
.portal-top .portal-user[open] summary { background: #fff; color: var(--forest); }
.portal-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portal-avatar .ui-icon { fill: currentColor; }
.portal-user-meta {
  display: grid;
  line-height: 1.2;
  text-align: left;
}
.portal-user-meta strong { font-size: .9rem; font-weight: 700; }
.portal-user-meta small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.portal-user-card {
  display: grid;
  gap: .1rem;
  padding: .45rem .65rem .65rem;
  margin: 0 0 .2rem;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}
.portal-user-card strong { font-size: .95rem; }
.portal-user-card small { color: var(--muted); word-break: break-all; }
.portal-top .top-drop > div a,
.portal-logout {
  display: flex;
  align-items: center;
  gap: .55rem;
  position: relative;
  z-index: 1;
}
.portal-top .top-drop > div a .ui-icon,
.portal-logout .ui-icon { fill: currentColor; flex-shrink: 0; }
.portal-logout-form {
  border-top: 1px solid var(--line);
  margin-top: .2rem;
  padding-top: .2rem;
}
.portal-logout {
  width: 100%;
  color: var(--danger);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  padding: .45rem .65rem;
  border-radius: 8px;
  min-height: 40px;
}
.portal-logout:hover { background: var(--cream); }
.portal-content { padding: 1.2rem 1.4rem 2.5rem; }
.stat-cards { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); margin-bottom: 1.2rem; }
.stat-card { padding: 1rem; text-decoration: none; color: inherit; display: grid; }
.stat-card strong { font-size: 1.6rem; font-family: var(--display); }
.stat-card.tone-warn { border-color: #e8c48a; }
.table { width: 100%; border-collapse: collapse; }
.panel:has(.table),
.form-card:has(.table),
.dash-mod:has(.table),
.dash-section:has(.table),
.cms:has(.table),
.apply-block:has(.table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.table th, .table td { text-align: left; padding: .65rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .95rem; overflow-wrap: anywhere; }
.table-wrap .table { min-width: 52rem; }
.table .cell-status,
.table td:has(> .badge) {
  width: 1%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}
.table td:has(> .table-actions),
.table td.doc-row {
  width: 1%;
  overflow-wrap: normal;
  white-space: nowrap;
}
.table td.doc-row {
  flex-wrap: nowrap;
}
.table td.doc-row form,
.table .table-actions form {
  margin: 0;
  display: inline-flex;
}
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar a { text-decoration: none; background: var(--paper); border: 1px solid var(--line); padding: .35rem .7rem; border-radius: 999px; color: inherit; }
.toolbar a.is-active { background: var(--forest); color: #fff; }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.kv { display: grid; gap: .6rem; }
.kv div { display: grid; grid-template-columns: 160px 1fr; gap: .5rem; }
.kv dt { color: var(--muted); }
.doc-row, .inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.doc-chip { background: var(--cream); padding: .35rem .7rem; border-radius: 999px; text-decoration: none; }
.callout { background: #f3faf3; padding: 1rem; border-radius: 12px; margin-top: 1rem; border-left: 3px solid var(--forest); }
.work-item { border-top: 1px solid var(--line); padding: 1rem 0; }
.work-item header { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .4rem; }
.choice { font-weight: 500; }
.perm-all { margin: .2rem 0 .6rem; }
.perm-group {
  margin: 0 0 .8rem;
  padding: .65rem .8rem .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: .35rem;
}
.perm-group legend {
  padding: 0 .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--forest);
}
.mysql-fields { display: none; }
.mysql-fields.is-open,
fieldset:has(#mysql-driver:checked) .mysql-fields { display: block; }

.install-body { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: linear-gradient(160deg, #8a1547, #3dae4a); }
.install-card { width: min(640px, 100%); padding: 2rem; }
.install-mark { width: 96px; height: auto; }

.verify-result { margin-top: 0; padding: 1.5rem 1.4rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.verify-result.is-valid { border-color: var(--ok); }
.verify-result.is-warn { border-color: var(--warn); }
.verify-result.is-invalid { border-color: var(--danger); }
.verify-result h3 { margin: .45rem 0 0; font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.verify-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: .95rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.verify-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: .2rem;
  border: 1px solid var(--line);
}
.verify-result .course-meta { max-width: none; }
#result { scroll-margin-top: 8.5rem; }
.verify-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.15fr .85fr;
  align-items: stretch;
  scroll-margin-top: 8.5rem;
}
.verify-grid > .form-card,
.verify-grid > .plain-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.verify-grid .form-card h2,
.verify-grid .plain-card h2 { margin-top: 0; }
.verify-grid .home-card-actions { margin-top: auto; padding-top: 1rem; }
.pillar-grid.verify-types { grid-template-columns: 1fr 1fr; }
.pillar-grid.verify-types .path-card {
  min-height: 13.5rem;
  display: flex;
  flex-direction: column;
}
.pillar-grid.verify-types .path-card .hint { margin-top: auto; padding-top: .7rem; }
.verify-safety { max-width: none; margin: .4rem 0 1rem; }
.verify-stamp {
  display: inline-block;
  margin: 0;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: .85rem;
  background: #eceae4;
  color: var(--muted);
}
.is-valid .verify-stamp { background: #e5f6ec; color: var(--ok); }
.is-warn .verify-stamp { background: #fff3d6; color: var(--warn); }
.is-invalid .verify-stamp { background: #fde8ee; color: var(--danger); }
.verify-role { color: var(--muted); margin-top: .1rem; }
.verify-note { margin-top: 1rem; }
.verify-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.form-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; font-size: .9rem; }
.login-who { margin: 0 0 1.4rem; }
.login-card { max-width: 40rem; }
.claim-note + .login-card { margin-top: 1.2rem; }
.page-hero.login-stage.has-photo {
  height: auto;
  min-height: 34rem;
  max-height: none;
  overflow: visible;
  padding: 2.4rem 0 2.8rem;
  align-items: stretch;
}
.page-hero.login-stage.has-photo .lede {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  max-width: 36rem;
  margin-bottom: .85rem;
}
.login-shell {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.5rem;
  align-items: center;
}
.login-intro { color: #fff; }
.login-intro .login-who-title {
  margin: .15rem 0 .55rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  color: #d8f5d8;
}
.login-mark {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: .22rem;
  margin: 0 0 .9rem;
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 12px 28px rgba(20, 8, 16, .28);
}
.login-roles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.1rem;
  padding: 0;
}
.login-roles li {
  margin: 0;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
  border-radius: 999px;
  padding: .4rem .85rem;
  font-weight: 650;
  font-size: .9rem;
}
.login-pending {
  color: rgba(255, 255, 255, .92);
  max-width: 34rem;
  margin: 0 0 .7rem;
}
.login-intro .form-links a { color: #fff; }
.login-shell > .login-card {
  max-width: none;
  width: 100%;
  padding: 1.65rem 1.5rem 1.35rem;
  box-shadow: 0 22px 50px rgba(20, 8, 16, .22);
}
.login-card h2 { margin: 0 0 .35rem; }
.login-card .hint { margin-bottom: 1.1rem; }
.login-card .btn-primary { width: 100%; margin-top: .15rem; }
.login-pass-wrap { margin-bottom: .9rem; }
.login-pass-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: .35rem;
}
.login-pass-head label { display: inline; margin: 0; grid-template-rows: none; }
.login-pass-head a {
  font-weight: 650;
  font-size: .88rem;
}
.login-apply {
  margin: 1rem 0 .35rem;
  color: var(--muted);
  font-size: .9rem;
}
.login-card .form-links { margin-top: .15rem; }

.chip {
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .35rem .7rem;
  border-radius: 999px;
  color: inherit;
  font-size: .9rem;
}
.chip.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }
.nav-count {
  font-style: normal;
  font-size: .75rem;
  min-width: 1.4rem;
  text-align: center;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
}
.sidenav nav a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sidenav a.sidenav-group-label,
.sidenav-sub a { justify-content: flex-start; }
.muted-line { display: block; color: var(--muted); font-size: .8rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.feed li { border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.feed li:last-child { border-bottom: 0; padding-bottom: 0; }
.feed li.is-unread { border-left: 3px solid var(--gold); padding-left: .7rem; }
.feed p { margin: .2rem 0; }
.feed small { color: var(--muted); }
.cert-summary { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: start; }
.cert-qr { margin: 0; text-align: center; }
.cert-qr img { width: 150px; height: 150px; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: 10px; }
.cert-qr figcaption { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.cert-body { background: #f4faf4; min-height: 100vh; padding: 2rem 1rem; }
.certificate { width: min(900px, 100%); margin: 0 auto; }
.certificate-inner {
  background: var(--paper);
  border: 12px solid var(--forest);
  outline: 2px solid var(--gold);
  outline-offset: -22px;
  padding: 2.2rem;
}
.certificate header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.certificate header img { width: 88px; height: auto; }
.cert-line { text-align: center; color: var(--muted); }
.cert-name { text-align: center; font-size: 2.2rem; margin: .2rem 0; }
.cert-sub, .cert-body { text-align: center; }
.cert-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; text-align: center; }
.cert-foot span { display: block; color: var(--muted); font-size: .8rem; }
.cert-verify { text-align: center; font-size: .85rem; color: var(--muted); }
.cert-verify.is-valid strong { color: var(--ok); }
.cert-verify.is-warn strong { color: var(--warn); }
.cert-verify-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}
.cert-verify-row .cert-qr svg { display: block; width: 120px; height: 120px; }
.cert-verify-row .cert-verify { text-align: left; margin: .15rem 0; word-break: break-all; }
.cert-actions { display: flex; gap: .6rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar { flex-wrap: wrap; justify-content: center; text-align: center; }
  .topbar-contact {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .topbar-tools {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
  .top-social {
    width: 100%;
    justify-content: center;
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }
  .nav-toggle { display: inline-flex; }
  .site-header { position: sticky; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    overflow-anchor: none;
    background: rgba(255, 245, 242, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 45;
    padding: .55rem 1.2rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav.is-open > a,
  .site-nav.is-open .nav-drop > button {
    min-height: 44px;
    width: 100%;
    display: flex;
    align-items: center;
  }
  .site-nav.is-open .nav-drop {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open .nav-drop > button::after {
    transform: rotate(-135deg);
  }
  .site-nav.is-open .nav-drop > div {
    display: grid;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 .75rem;
    background: transparent;
    min-width: 0;
  }
  .site-nav.is-open .nav-drop > div::before { display: none; }
}
@media (max-width: 960px) {
  .dash-grid, .cms-home-grid, .dash-board { grid-template-columns: 1fr; }
  .cms-add-slide { position: static; }
  .hero-grid, .footer-grid, .split, .stat-cards, .portal-shell, .vm-grid, .home-bottom, .founder-card, .reg-dl div, .reg-card .reg-dl div, .about-points, .about-work-grid, .csr-themes, .csr-intro-grid, .coord-levels, .contact-grid, .verify-grid, .verify-types, .login-shell, .apply-grid, .coord-duties, .course-grid { grid-template-columns: 1fr; }
  .login-shell > .login-card { order: -1; }
  .apply-aside { position: static; order: -1; }
  .office-map-wrap { aspect-ratio: 4 / 3; min-height: 16rem; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hero-slider-nav { width: 2.1rem; height: 2.1rem; font-size: 1.35rem; }
  .hero-slider-track { height: 24rem; }
  .hero-slide { padding: 1.6rem 3.2rem 3.2rem 3.8rem; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-grid .btn,
  .cta-grid .btn:nth-child(n+4) { grid-column: auto; }
  .sidenav { display: none; width: min(280px, 86vw); min-width: 0; }
  .sidenav.is-open { display: flex; position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); z-index: 40; height: 100vh; }
  .nav-toggle { display: inline-flex; }
  .portal-top .nav-toggle { display: inline-flex; }
  .kv div { grid-template-columns: 1fr; }
  .profile-desk .kv div { grid-template-columns: 8.6rem 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: center; flex-wrap: wrap; justify-content: center; }
  .topbar-contact { width: 100%; justify-content: center; flex-direction: column; align-items: center; }
  .topbar-tools { width: 100%; margin-left: 0; justify-content: center; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat-card { padding: .8rem; }
  .stat-card strong { font-size: 1.3rem; }
  .sidenav-backdrop[hidden] { display: none !important; }
  body.nav-open .sidenav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 12, .45);
    z-index: 35;
    border: 0;
  }
  .sidenav.is-open { z-index: 40; }
  .form-card input, .form-card select, .form-card textarea, .form-card button {
    font-size: 16px;
  }
  .coord-actions .btn, .toolbar .btn { min-height: 44px; }
  .cert-summary { grid-template-columns: 1fr; justify-items: center; }
  .panel-head { flex-direction: column; }
  .portal-content { padding: 1rem .9rem 2.5rem; }
  .portal-top { padding: .65rem .9rem; flex-wrap: wrap; }
  .portal-top .admin-search { flex: 1 1 100%; max-width: none; }
  .inline-form select, .inline-form button { width: 100%; }
  .footer-bottom-inner { align-items: flex-start; }
}
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.feed li.is-unread { background: rgba(138, 21, 71, .06); border-radius: 8px; padding: .4rem .5rem; }
@media (max-width: 1280px) {
  .dash-kpis, .dash-kpis.is-4 { grid-template-columns: repeat(auto-fit, minmax(10.2rem, 1fr)); }
  .site-header .brand strong { font-size: 1.05rem; }
}
@media (max-width: 1024px) {
  .wrap { width: min(1120px, calc(100% - 1.5rem)); }
  .section { padding: 2.6rem 0; }
  .hero-slider-track { height: 26rem; }
  .hero-slide { padding: 1.6rem 3.4rem 2.8rem; }
  .cta-grid { grid-template-columns: 1fr 1fr; max-width: none; }
  .cta-grid .btn,
  .cta-grid .btn:nth-child(n+4) { grid-column: auto; }
  .dash-hero { align-items: flex-start; }
  .filter-bar { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
  .cms-intro { flex-wrap: wrap; }
  .portal-top h1 { overflow-wrap: anywhere; }
  .portal-content {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .top-drop > div { max-width: min(22rem, calc(100vw - 1.5rem)); }
  .page-hero.has-photo { min-height: 16rem; padding: 1.6rem 0; }
  .form-card, .panel, .path-card, .plain-card { padding: 1.15rem; }
}
@media (max-width: 768px) {
  .section { padding: 2rem 0; }
  .dash-kpis, .dash-kpis.is-4, .dash-shortcuts, .dash-shortcuts.is-6, .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-hero { padding: 1.05rem 1.05rem 1.15rem; }
  .dash-hero-actions { width: 100%; }
  .dash-hero-btn { min-height: 44px; }
  .dash-shortcuts span { white-space: normal; }
  .card-grid, .impact-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .report-cards { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .filter-end { grid-column: 1 / -1; }
  .cms-form-actions .btn { min-height: 44px; }
  .cert-foot { grid-template-columns: 1fr; }
  .certificate-inner { padding: 1.2rem; border-width: 8px; outline-offset: -14px; }
  .cert-name { font-size: 1.45rem; }
  .chat-log { max-height: 16rem; }
  .table { min-width: 48rem; }
  .table-scroll, .table-wrap, .dash-activity { max-width: 100%; }
  label { grid-template-rows: auto auto; }
  label > .lbl { white-space: normal; min-height: 0; }
  .sidenav { padding-top: max(1.2rem, env(safe-area-inset-top)); padding-bottom: max(1.2rem, env(safe-area-inset-bottom)); }
  .portal-top { padding-top: max(.65rem, env(safe-area-inset-top)); }
  .portal-content { padding: 1rem max(.9rem, env(safe-area-inset-right)) 2.5rem max(.9rem, env(safe-area-inset-left)); }
  .topbar { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .site-header { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .site-header .brand img { width: 58px; height: 58px; }
  .hero-slide { padding: 1.3rem 3rem 2.6rem; }
  .page-hero.has-photo h1 { font-size: clamp(1.45rem, 6vw, 2.1rem); }
  .dash-aside .kv div,
  .cert-desk .kv div,
  .pay-form .kv div { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .toolbar .btn, .toolbar form, .toolbar form button { width: 100%; }
  .table th, .table td { font-size: .88rem; padding: .55rem .35rem; }
  .card-grid { grid-template-columns: 1fr; }
  .course-meta { grid-template-columns: 1fr; }
  .hero-slide { padding: 1.15rem 2.45rem 2.6rem; }
  .hero-slider-track { height: 22rem; }
  .hero-slide-inner { max-width: 100%; }
  .hero-slide-title { font-size: 1.45rem; }
  .hero-slider-nav.is-prev { left: .4rem; }
  .hero-slider-nav.is-next { right: .4rem; }
  .cta-grid { margin-top: 1rem; grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .profile-desk .kv div { grid-template-columns: 1fr; }
  .portal-user-meta { display: none; }
  .form-card, .panel, .path-card, .plain-card { padding: 1rem; }
  .apply-block { padding: .75rem .8rem .15rem; }
  .login-shell > .login-card { padding: 1.2rem 1rem 1.1rem; }
  .cms-slide img,
  .cms-slide-ph { width: 72px; height: 48px; }
  .hero-actions .btn { width: 100%; }
  .page-hero.has-photo { padding: 1.4rem 0; min-height: 0; }
}
@media (max-width: 380px) {
  .dash-kpis, .dash-kpis.is-4, .stat-cards, .impact-grid, .card-grid, .report-cards, .dash-shortcuts, .dash-shortcuts.is-6 { grid-template-columns: 1fr; }
  .dash-hero-btn { flex: 1 1 100%; justify-content: center; }
  .cms-form-actions .btn, .hero-actions .btn { width: 100%; }
  h1 { font-size: 1.55rem; }
  .wrap { width: calc(100% - 1rem); }
  .top-social { border-right: 0; padding-right: 0; margin-right: 0; }
  .hero-slide { padding: 1rem 2.25rem 2.4rem; }
  .cta-grid { grid-template-columns: 1fr; }
  .hero-slider-nav { width: 1.85rem; height: 1.85rem; }
}
@media print {
  .no-print, .cert-actions, .office-map-wrap { display: none !important; }
  .cert-body { background: #fff; padding: 0; }
  .certificate-inner { box-shadow: none; }
}
