/* ============================================================
   KAIEPA.OR.KR · Public Pages
   White · Minimal · Systematic
   ============================================================ */

/* ============================================================
   Top Nav
   ============================================================ */
h1, h2, h3, h4, p,
.hero-headline,
.home-hero h1 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); flex-shrink: 0;
}
.nav-logo .logo-mark {
  width: 38px; height: 38px;
  object-fit: contain;
}
.nav-logo .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .logo-kr {
  font-family: var(--f-serif);
  font-weight: 700; font-size: 16px;
  color: var(--ink);
  letter-spacing: 0;
}
.nav-logo .sub {
  font-family: var(--f-en);
  font-size: 9px; color: var(--ink-4); font-weight: 600;
  letter-spacing: .08em; margin-top: 2px;
}

.nav-menu { display: flex; gap: 0; flex: 1; justify-content: center; min-width: 0; }
.nav-item { position: relative; flex-shrink: 0; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .15s;
  cursor: pointer;
  white-space: nowrap;          /* 한글 글자 단위 줄바꿈 방지 */
  word-break: keep-all;          /* 안전망 */
}
.nav-trigger:hover { color: var(--ink); }
.nav-item.active .nav-trigger { color: var(--ink); font-weight: 700; }
.nav-item.hi .nav-trigger { font-weight: 700; }
.nav-item.hi .nav-trigger::after {
  content: ""; position: absolute; bottom: 4px; left: 18px; right: 18px;
  height: 2px; background: var(--ink);
}
.nav-caret { transition: transform .25s var(--ease); opacity: .6; }
.nav-item.open .nav-caret { transform: rotate(180deg); }

.nav-dd {
  position: absolute; top: calc(100% - 1px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: 8px;
  min-width: 280px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.nav-item.open .nav-dd, .nav-item:hover .nav-dd {
  opacity: 1; transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.ddi {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  transition: background .12s;
}
.ddi:hover { background: var(--bg-soft); }
.ddi-ic {
  font-size: 11px; color: var(--ink-4);
  width: 16px; padding-top: 2px;
}
.ddi-lab { font-weight: 600; font-size: 14px; color: var(--ink); }
.ddi-desc { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ── 햄버거 버튼 (사이즈 축소 2026-05-24) ──
   - 36×36 컴팩트 사이즈, 라인 1.75px / 18·14·18px
   - 명확한 hover/active 피드백, X 변환 부드럽게 */
.mob-toggle {
  display: none;
  position: relative;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.mob-toggle:hover {
  background: var(--bg-soft, #F7F7F8);
  border-color: var(--ink-4, #B7BABF);
}
.mob-toggle:active {
  background: #EFEFF1;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}
.mob-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.mob-toggle span {
  display: block; height: 1.75px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease), width .25s var(--ease), background .2s;
}
.mob-toggle span:nth-child(1) { width: 18px; }
.mob-toggle span:nth-child(2) { width: 14px; }   /* 시각적 리듬: 중간 라인 짧게 */
.mob-toggle span:nth-child(3) { width: 18px; }
.mob-toggle:hover span:nth-child(2) { width: 18px; }  /* hover시 정렬 */

/* 열린 상태 → X 형태 */
.mob-toggle.open { border-color: var(--ink); }
.mob-toggle.open span { width: 18px; }
.mob-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-drawer {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 20px 24px;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.mob-drawer.open { display: block; animation: slideDown .22s var(--ease); }
@keyframes slideDown { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }
.mob-grp { border-bottom: 1px solid var(--line-soft); }
.mob-grp summary {
  list-style: none; cursor: pointer;
  padding: 14px 4px; font-size: 15px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.mob-grp summary::-webkit-details-marker { display: none; }
.mob-grp summary::after { content: "+"; font-size: 18px; color: var(--ink-4); transition: transform .2s; font-weight: 300; }
.mob-grp[open] summary::after { transform: rotate(45deg); }
.mob-items { display: flex; flex-direction: column; gap: 0; padding: 0 4px 12px; }
.mob-items a {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink-2);
}
.mob-items a:hover { background: var(--bg-soft); color: var(--ink); }
.mob-auth { display: flex; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.mob-auth .btn { flex: 1; }

@media (max-width: 980px) {
  .nav-inner { padding: 0 16px; gap: 12px; height: 64px; }
  .nav-menu { display: none; }
  .nav-actions { display: none; }
  .mob-toggle { display: flex; margin-left: auto; }  /* 햄버거를 우측 끝으로 */
  .nav-logo .sub { display: none; }
  .nav-logo .logo-kr { font-size: 14px; }
  .nav-logo .logo-mark { width: 32px; height: 32px; }
}

/* ============================================================
   Hero (홈 — 미니멀 화이트)
   ============================================================ */
.hero {
  background: #fff;
  padding: 96px 24px 80px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
}

/* ============================================================
   Section
   ============================================================ */
.section { padding: 96px 24px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section.alt { background: var(--bg-soft); }
.section.bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700; letter-spacing: 0;
  margin-bottom: 12px;
}
.section .sec-sub {
  color: var(--ink-3); font-size: 15px; line-height: 1.7;
  margin-bottom: 40px; max-width: 640px;
}

.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }
.sh-eyebrow {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700; letter-spacing: .14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
}
.sh-eyebrow::before {
  content: "—"; margin-right: 8px; color: var(--ink-4);
}

/* ============================================================
   Sub-page hero (서브 페이지 공통 헤더 — 흰 배경)
   ============================================================ */
.sub-hero {
  background: #fff;
  padding: 72px 24px 56px;
  border-bottom: 1px solid var(--line);
}
.sub-hero-inner { max-width: var(--maxw); margin: 0 auto; }
.sub-hero .crumb {
  font-family: var(--f-en); font-size: 11px;
  color: var(--ink-4); letter-spacing: .08em;
  margin-bottom: 18px; text-transform: uppercase;
}
.sub-hero .crumb a { color: var(--ink-4); }
.sub-hero .crumb a:hover { color: var(--ink); }
.sub-hero .crumb b { color: var(--ink); font-weight: 600; }
.sub-hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.sub-hero p {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-3);
  max-width: 720px; line-height: 1.75;
}
.sub-hero.visual-hero .sub-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .72fr);
  gap: 34px 44px;
  align-items: center;
}
.sub-hero.visual-hero .crumb,
.sub-hero.visual-hero h1,
.sub-hero.visual-hero p {
  grid-column: 1;
}
.sub-hero.visual-hero .detail-hero-img {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-soft);
}
@media (max-width: 860px) {
  .sub-hero.visual-hero .sub-hero-inner {
    grid-template-columns: 1fr;
  }
  .sub-hero.visual-hero .detail-hero-img {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ============================================================
   Article container
   ============================================================ */
.article {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.article h2 {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  margin: 56px 0 16px;
  letter-spacing: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 17px; margin: 28px 0 10px;
  color: var(--ink);
  font-weight: 700;
}
.article p {
  font-size: 15px; line-height: 1.85; color: var(--ink-2);
  margin-bottom: 14px;
}
.article blockquote {
  background: var(--bg-soft);
  border-left: 3px solid var(--ink);
  padding: 18px 24px;
  margin: 20px 0;
  font-family: var(--f-serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.7;
}
.article ul, .article ol { margin: 12px 0 16px 20px; }
.article li { font-size: 15px; line-height: 1.85; color: var(--ink-2); margin-bottom: 4px; }

/* ============================================================
   Footer (다크 → 화이트로 변경)
   ============================================================ */
.footer {
  background: #fff;
  color: var(--ink-3);
  padding: 40px 24px 20px;
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-size: 11px; letter-spacing: .14em;
  color: var(--ink);
  margin-bottom: 10px; text-transform: uppercase;
  font-weight: 700;
}
.footer .f-brand img {
  height: 32px; width: auto;
  margin-bottom: 12px;
  filter: grayscale(1);
}
.footer .f-brand-sub {
  font-size: 12px; color: var(--ink-3); line-height: 1.6;
  max-width: 320px;
}
.footer .f-brand-tagline {
  font-family: var(--f-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: 0;
}
.footer ul { line-height: 1.4; }
.footer ul li { padding: 2px 0; font-size: 13px; }
.footer ul li a { color: var(--ink-2); }
.footer ul li a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-4);
  flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Auth pages
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid; place-items: center;
  padding: 40px 20px;
  background: var(--bg-soft);
}
.auth-card {
  background: #fff; border-radius: var(--r-md);
  padding: 40px 36px;
  width: 100%; max-width: 440px;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.auth-card.lg { max-width: 720px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .a-logo {
  margin: 0 auto 18px;
  display: block;
  width: 56px; height: 56px;
  object-fit: contain;
}
.auth-head h1 { font-family: var(--f-serif); font-size: 22px; margin-bottom: 4px; }
.auth-head p { font-size: 13px; color: var(--ink-4); }
.auth-fields { display: flex; flex-direction: column; gap: 14px; }
.auth-foot {
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: 13px; color: var(--ink-4);
}
.auth-foot a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ============================================================
   Stepper (signup)
   ============================================================ */
.steps {
  display: flex; gap: 6px;
  margin-bottom: 24px;
}
.steps .step {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--bg-3);
  transition: background .25s;
}
.steps .step.done { background: var(--ink-3); }
.steps .step.cur  { background: var(--ink); }

.step-label {
  font-family: var(--f-en);
  font-size: 11px; color: var(--ink-4);
  font-weight: 700; letter-spacing: .14em;
  margin-bottom: 4px; text-transform: uppercase;
}
.step-title { font-family: var(--f-serif); font-size: 22px; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; line-height: 1.7; }

/* ============================================================
   Empty state
   ============================================================ */
.empty {
  padding: 64px 20px;
  text-align: center;
  color: var(--ink-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.empty .em-icon { font-size: 32px; margin-bottom: 12px; color: var(--ink-5); font-weight: 300; }

/* ============================================================
   Public document components
   ============================================================ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 24px 0 48px;
}
.line-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.line-card .lc-k {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.line-card h3 {
  font-family: var(--f-serif);
  font-size: 18px;
  margin-bottom: 8px;
}
.line-card p,
.line-card li {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.75;
}
.line-list {
  border-top: 1px solid var(--ink);
  margin: 24px 0 48px;
}
.line-list .ll-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  .line-list .ll-row { grid-template-columns: 1fr; gap: 8px; }
}
.line-list .ll-k {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.line-list .ll-v h3 {
  font-family: var(--f-serif);
  font-size: 18px;
  margin-bottom: 6px;
}
.line-list .ll-v p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.8;
}
.rule-table {
  width: 100%;
  border-top: 1px solid var(--ink);
  margin: 24px 0 48px;
}
.rule-table th,
.rule-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.rule-table th {
  background: var(--bg-soft);
  color: var(--ink-4);
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.note-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  margin: 32px 0;
}
.note-box b { color: var(--ink); }
.note-box p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.8;
}

/* ============================================================
   Latest activity block
   ============================================================ */
.latest-activity {
  padding: 76px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.latest-activity.soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.latest-activity-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.latest-activity-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 24px;
}
@media (max-width: 760px) {
  .latest-activity {
    padding: 38px 18px;
  }
  .latest-activity-head {
    display: block;
  }
}
.latest-activity-head h2 {
  font-family: var(--f-serif);
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
}
.latest-activity-head p {
  max-width: 480px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 760px) {
  .latest-activity-head p { margin-top: 10px; }
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 820px) {
  .latest-grid { grid-template-columns: 1fr; }
}
.latest-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .16s, color .16s, border-color .16s;
}
.latest-card:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.latest-card .lc-k {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-4);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.latest-card .lc-badge {
  color: var(--ink);
  letter-spacing: .08em;
}
.latest-card h3 {
  font-family: var(--f-serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.latest-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.72;
  margin: 0 0 18px;
}
.latest-card .lc-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.latest-card .lc-meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 12px;
}
.latest-card .lc-meta b {
  color: var(--ink-4);
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.latest-card .lc-actions {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-card:hover .lc-k,
.latest-card:hover .lc-badge,
.latest-card:hover p,
.latest-card:hover .lc-meta span,
.latest-card:hover .lc-meta b {
  color: rgba(255,255,255,.72);
}
.latest-card:hover .lc-meta {
  border-color: rgba(255,255,255,.22);
}

.sub-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 34px 0 58px;
}
.sub-visual-grid.single {
  grid-template-columns: 1fr;
}
@media (max-width: 760px) {
  .sub-visual-grid,
  .sub-visual-grid.single { grid-template-columns: 1fr; }
}
.sub-visual-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.sub-visual-card .img-slot {
  width: 100%;
  aspect-ratio: 4/3;
  border-bottom: 1px solid var(--line);
}
.sub-visual-card .svc-body {
  padding: 18px 20px 22px;
}
.sub-visual-card .svc-k {
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-4);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sub-visual-card h3 {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.sub-visual-card p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   Sub-page editorial components
   ============================================================ */
.sub-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin: 32px 0 56px;
}
@media (max-width: 760px) {
  .sub-promise { grid-template-columns: 1fr; }
}
.sub-promise .sp-item {
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px;
}
.sub-promise .sp-item.ink {
  background: var(--ink);
  color: #fff;
}
.sub-promise .sp-k {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-4);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sub-promise .sp-item.ink .sp-k { color: rgba(255,255,255,.62); }
.sub-promise .sp-t {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.sub-promise .sp-d {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
}
.sub-promise .sp-item.ink .sp-d { color: rgba(255,255,255,.76); }

.sub-flow {
  border-top: 1px solid var(--ink);
  margin: 28px 0 56px;
}
.sub-flow .sf-row {
  display: grid;
  grid-template-columns: 120px 1fr 220px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 760px) {
  .sub-flow .sf-row { grid-template-columns: 1fr; gap: 8px; }
}
.sub-flow .sf-no {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-4);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sub-flow .sf-title {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.sub-flow .sf-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-3);
}
.sub-flow .sf-meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-4);
}

.edu-band,
.sub-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 40px;
  margin: 56px 0;
}
@media (max-width: 640px) {
  .edu-band,
  .sub-band { padding: 28px 24px; }
}
.edu-band .band-k,
.sub-band .band-k {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.58);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.edu-band h2,
.sub-band h2 {
  color: #fff;
  border-bottom: 0;
  display: block;
  margin: 0 0 12px;
  padding: 0;
}
.edu-band p,
.sub-band p {
  color: rgba(255,255,255,.76);
  max-width: 760px;
}
.band-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin: 28px 0 56px;
}
@media (max-width: 800px) {
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .metric-strip { grid-template-columns: 1fr; }
}
.metric-strip .mt-item {
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px;
}
.metric-strip .mt-num {
  font-family: var(--f-en);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
}
.metric-strip .mt-label {
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.6;
  margin-top: 4px;
}

/* ============================================================
   Mobile-only sub pages
   ============================================================ */
.m-page {
  background: #fff;
  color: var(--ink);
}
.m-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.m-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.m-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.m-brand b {
  display: block;
  font-family: var(--f-serif);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
}
.m-brand span {
  display: block;
  font-family: var(--f-en);
  font-size: 8px;
  color: var(--ink-4);
  letter-spacing: .08em;
  margin-top: 2px;
}
.m-top a.m-home {
  flex-shrink: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
}
.m-hero {
  padding: 42px 18px 34px;
  border-bottom: 1px solid var(--line);
}
.m-crumb {
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-4);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.m-hero h1 {
  font-family: var(--f-serif);
  font-size: 34px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.m-hero p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-3);
}
.m-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 22px;
}
.m-actions .btn {
  min-height: 48px;
  justify-content: center;
}
.m-section {
  padding: 34px 18px;
  border-bottom: 1px solid var(--line);
}
.m-section.alt {
  background: var(--bg-soft);
}
.m-section h2 {
  font-family: var(--f-serif);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.m-section p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-3);
}
.m-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.m-card {
  display: block;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.m-card.ink {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.m-card .k {
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-4);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.m-card.ink .k { color: rgba(255,255,255,.62); }
.m-card h3 {
  font-family: var(--f-serif);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: 0;
}
.m-card p,
.m-card li {
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-3);
}
.m-card.ink p,
.m-card.ink li { color: rgba(255,255,255,.78); }
.m-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.m-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 18px;
}
.m-meta div {
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.m-meta b {
  display: block;
  font-family: var(--f-en);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.m-meta span {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}
.m-navlinks {
  display: grid;
  gap: 8px;
  padding: 22px 18px 36px;
  background: #fff;
}
.m-navlinks a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
}
.m-navlinks a::after {
  content: ">";
  font-family: var(--f-en);
  color: var(--ink-4);
}
.m-footer {
  padding: 24px 18px 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.7;
}
