/* ═══════════════════════════════════════════════════════════
   이루리 v6 — 학교별 안내 (인덱스 + 32 sub-page 공유)
═══════════════════════════════════════════════════════════ */

@import url('../build/tokens.css');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; vertical-align: middle; }
a svg, button svg { flex-shrink: 0; }
svg:not([width]):not([height]) { width: 16px; height: 16px; } /* 안전망 */
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid #c5a572; outline-offset: 2px; }

body {
  background: #0f1218;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15, 18, 24, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.site-nav__logo { display:flex; align-items:center; gap:9px; text-decoration:none; }
.site-nav__logo img { height:30px; width:auto; }
.site-nav__logo span { font-weight:800; font-size:17px; color:#fff; letter-spacing:-0.02em; }
.site-nav__menu { display: flex; gap: 36px; flex: 1; justify-content: center; }
.site-nav__menu a { color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.site-nav__menu a:hover, .site-nav__menu a.active { color: #c5a572; }
.site-nav__cta { background: linear-gradient(135deg, #c5a572, #e6c370); color: #0f1218; padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.15s; }
.site-nav__cta:hover { transform: translateY(-1px); }
.site-nav__cta svg { width: 16px; height: 16px; }

/* Breadcrumb */
.breadcrumb { padding: 100px 0 24px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: 0.15em; }
.breadcrumb a { color: #c5a572; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: #e6c370; }
.breadcrumb span { color: #ffffff; font-weight: 600; }

/* Hero */
.schools-hero { padding: 16px 0 80px; position: relative; }
.schools-hero::before { content: ''; position: absolute; top: 0; right: -20%; width: 50%; height: 100%; background: radial-gradient(circle, rgba(197,165,114,0.06) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.schools-hero > .container { position: relative; z-index: 1; }
.schools-hero__tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(197,165,114,0.12); color: #c5a572; margin-bottom: 32px; letter-spacing: 0.1em; }
.schools-hero__title { font-weight: 800; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.15; letter-spacing: -0.03em; color: #fff; margin-bottom: 24px; }
.schools-hero__title em { font-style: normal; color: #c5a572; }
.schools-hero__lede { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 40px; max-width: 720px; }
.schools-hero__lede strong { color: #fff; font-weight: 700; }
.schools-hero__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.schools-hero__meta > div { display: flex; flex-direction: column; gap: 4px; }
.schools-hero__meta-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: 0.1em; }
.schools-hero__meta-value { color: #fff; font-weight: 600; font-size: 14px; }

/* Section common */
.section__head { margin-bottom: 48px; }
.section__eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #c5a572; letter-spacing: 0.25em; font-weight: 600; margin-bottom: 16px; }
.section__title { font-weight: 800; font-size: 36px; line-height: 1.2; letter-spacing: -0.025em; color: #fff; margin-bottom: 16px; }
.section__title em { font-style: normal; color: #c5a572; }

.schools-list-section { padding: 80px 0; background: #131820; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Schools grid */
.schools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.school-card { background: #0f1218; border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.2s, transform 0.2s; }
.school-card:hover { border-color: #c5a572; transform: translateY(-2px); }
.school-card__num { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #c5a572; letter-spacing: 0.2em; font-weight: 700; }
.school-card__name { font-weight: 700; font-size: 16px; color: #fff; letter-spacing: -0.01em; }
.school-card__area { font-size: 12px; color: rgba(255,255,255,0.65); }

/* System cards */
.schools-system { padding: 96px 0; }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.system-card { background: linear-gradient(135deg, rgba(197,165,114,0.08) 0%, transparent 100%); border: 1px solid rgba(197,165,114,0.25); border-radius: 12px; padding: 40px; }
.system-card h3 { font-weight: 800; font-size: 24px; color: #c5a572; margin-bottom: 16px; letter-spacing: -0.02em; }
.system-card p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* CTA */
.schools-cta { padding: 96px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
.schools-cta__eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #c5a572; letter-spacing: 0.25em; margin-bottom: 16px; font-weight: 600; }
.schools-cta__title { font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; letter-spacing: -0.025em; color: #fff; margin-bottom: 16px; }
.schools-cta__title em { font-style: normal; color: #c5a572; }
.schools-cta__lede { font-size: 15px; color: rgba(255,255,255,0.72); margin-bottom: 32px; }
.schools-cta__group { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.schools-cta__note { font-size: 12px; color: rgba(255,255,255,0.65); font-style: italic; }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, #c5a572, #e6c370); color: #0f1218; padding: 14px 28px; border-radius: 999px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.15s, box-shadow 0.15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(197,165,114,0.3); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 14px 28px; border-radius: 999px; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: border-color 0.15s; }
.btn-ghost:hover { border-color: #c5a572; }
.btn-primary svg, .btn-ghost svg { width: 16px; height: 16px; }

/* Footer (공통) */
.site-footer { background: #131820; border-top: 1px solid rgba(255,255,255,0.06); padding: 64px 0 32px; font-size: 13px; color: rgba(255,255,255,0.72); }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 2fr 1.5fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-footer__brand-name { font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.site-footer__brand-info { line-height: 1.7; }
.site-footer__brand-info strong { color: #fff; }
.site-footer__brand-info a { color: #fff; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer__nav h3 { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer__nav li { margin-bottom: 6px; }
.site-footer__nav a { color: rgba(255,255,255,0.72); font-size: 13px; transition: color 0.15s; }
.site-footer__nav a:hover { color: #c5a572; }
.site-footer__phone { font-weight: 800; font-size: 24px; color: #c5a572; letter-spacing: -0.02em; margin-bottom: 8px; display: block; }
.site-footer__copyright { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: rgba(255,255,255,0.65); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer__copyright a { color: rgba(255,255,255,0.72); margin-left: 16px; }

/* Floating CTA */
.float-cta { position: fixed; right: 24px; bottom: 24px; z-index: 99; }
.float-cta a { background: linear-gradient(135deg, #c5a572, #e6c370); color: #0f1218; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 20px rgba(197,165,114,0.35); }
.float-cta a svg { width: 16px; height: 16px; }

/* ─── School detail page (sub-page) 한정 ─── */
.school-detail-hero { padding: 16px 0 80px; }
.school-detail-hero__area { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #c5a572; letter-spacing: 0.2em; margin-bottom: 16px; }
.school-detail-hero__title { font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: 1.1; letter-spacing: -0.03em; color: #fff; margin-bottom: 24px; }
.school-detail-hero__lede { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 32px; max-width: 720px; }

.school-detail-section { padding: 64px 0; }
.school-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.school-detail-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 32px; }
.school-detail-card h2 { font-weight: 800; font-size: 18px; color: #c5a572; margin-bottom: 12px; letter-spacing: -0.01em; }
.school-detail-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.school-detail-card ul { list-style: none; padding: 0; margin: 8px 0 0; }
.school-detail-card li { font-size: 13px; color: rgba(255,255,255,0.7); padding: 4px 0; }
.school-detail-card li::before { content: '— '; color: #c5a572; }

.coming-soon { text-align: center; padding: 80px 32px; background: rgba(255,255,255,0.02); border: 1px dashed rgba(197,165,114,0.3); border-radius: 12px; margin: 48px 0; }
.coming-soon h2 { font-weight: 800; font-size: 24px; color: #c5a572; margin-bottom: 12px; }
.coming-soon p { font-size: 15px; color: rgba(255,255,255,0.72); line-height: 1.65; }

/* ─── Mobile nav toggle (default hidden on desktop) — index.css 패턴 이식 (2026-05-29 F4) ─── */
.site-nav__toggle {
  display: none; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: #fafaf7;
  padding: 8px 12px; border-radius: 8px;
  font: inherit; font-size: 13px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.site-nav__toggle:hover { border-color: #c5a572; }
.site-nav__toggle:focus-visible { outline: 2px solid #c5a572; outline-offset: 2px; }
.site-nav__toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
.site-nav__toggle .site-nav__toggle-close { display: none; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-open { display: none; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-close { display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .schools-hero__meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .schools-grid { grid-template-columns: repeat(3, 1fr); }
  .system-grid, .school-detail-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* ── Mobile nav: hamburger drawer (2026-05-29 F4 — index.css L896~937 이식) ── */
  .site-nav__menu {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0;
    background: #0f1218;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-direction: column; padding: 16px 24px; gap: 4px;
    z-index: 999; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-nav__menu.is-open { display: flex; }
  .site-nav__menu a {
    padding: 14px 0; font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .site-nav__toggle { display: inline-flex; }
  .site-nav__cta { padding: 8px 14px; font-size: 13px; }
  .schools-grid { grid-template-columns: 1fr 1fr; }
  .schools-hero__meta { grid-template-columns: 1fr 1fr; }
  .breadcrumb { padding: 80px 0 16px; }
}
.footer-section-title { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════════════
   School detail v2 — rich 본문 (2026-05-31 schools32 본문 채우기)
═══════════════════════════════════════════════════════════ */
.sd-section { padding: 56px 0 0; }
.sd-section:last-of-type { padding-bottom: 64px; }
.sd-head { margin-bottom: 28px; }
.sd-head .section__eyebrow { margin-bottom: 12px; }
.sd-head h2 { font-weight: 800; font-size: 26px; line-height: 1.25; letter-spacing: -0.025em; color: #fff; }
.sd-head h2 em { font-style: normal; color: #c5a572; }

.sd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sd-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 32px; }
.sd-card h3 { font-weight: 800; font-size: 16px; color: #c5a572; margin-bottom: 16px; letter-spacing: -0.01em; }
.sd-card p { font-size: 14.5px; color: rgba(255,255,255,0.74); line-height: 1.78; }
.sd-card p + p { margin-top: 12px; }
.sd-facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.sd-facts li { font-size: 13.5px; color: rgba(255,255,255,0.74); display: flex; gap: 12px; align-items: baseline; }
.sd-facts li b { color: #fff; font-weight: 600; min-width: 62px; flex-shrink: 0; font-size: 12px; letter-spacing: -0.01em; }
.sd-facts li::before { content: none; }
.sd-hedge { font-size: 12px; color: rgba(255,255,255,0.48); margin-top: 16px; line-height: 1.6; }
.sd-note { font-size: 12.5px; color: rgba(197,165,114,0.9); margin-top: 16px; padding: 11px 15px; background: rgba(197,165,114,0.07); border-radius: 8px; border: 1px solid rgba(197,165,114,0.18); line-height: 1.6; }

/* 이루리 대응 (full width emerald/gold) */
.sd-response { background: linear-gradient(135deg, rgba(197,165,114,0.09), transparent 72%); border: 1px solid rgba(197,165,114,0.26); border-radius: 14px; padding: 40px 44px; margin-top: 24px; }
.sd-response h3 { font-weight: 800; font-size: 21px; color: #fff; margin-bottom: 14px; letter-spacing: -0.02em; }
.sd-response h3 em { font-style: normal; color: #c5a572; }
.sd-response > p { font-size: 15.5px; color: rgba(255,255,255,0.82); line-height: 1.85; max-width: 780px; }
.sd-syschips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sd-syschips a { font-size: 13px; padding: 9px 16px; border-radius: 999px; background: #0f1218; border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.82); display: inline-flex; gap: 7px; align-items: center; transition: border-color .15s, color .15s; }
.sd-syschips a:hover { border-color: #c5a572; color: #fff; }
.sd-syschips a b { color: #c5a572; font-weight: 700; }

/* FAQ accordion */
.sd-faq { margin-top: 4px; display: grid; gap: 10px; }
.sd-faq details { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.sd-faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-size: 14.5px; font-weight: 600; color: #fff; list-style: none; position: relative; line-height: 1.5; }
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after { content: '+'; position: absolute; right: 22px; top: 16px; color: #c5a572; font-size: 22px; font-weight: 300; line-height: 1; }
.sd-faq details[open] summary::after { content: '\2212'; }
.sd-faq__a { padding: 0 22px 20px; font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.78; }

/* cluster crosslinks */
.sd-cross { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px,1fr)); gap: 12px; margin-top: 4px; }
.sd-cross a { background: #131820; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 18px 20px; transition: border-color .2s, transform .2s; }
.sd-cross a:hover { border-color: #c5a572; transform: translateY(-2px); }
.sd-cross__eye { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .18em; color: #c5a572; margin-bottom: 6px; }
.sd-cross__t { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; letter-spacing: -0.01em; }
.sd-cross__d { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }

.school-detail-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.school-detail-hero__badges span { font-size: 12px; padding: 5px 13px; border-radius: 999px; background: rgba(197,165,114,0.12); color: #c5a572; font-weight: 600; }

@media (max-width: 640px) {
  .sd-grid { grid-template-columns: 1fr; }
  .sd-response { padding: 28px 22px; }
  .sd-card { padding: 24px; }
}

/* ── 과목별 내신 섹션 (s6, 시험지 과목별 분석) ── */
.sd-subjects__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sd-subj { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 26px 28px; scroll-margin-top: 88px; }
.sd-subj__t { font-weight: 800; font-size: 17px; color: #c5a572; margin-bottom: 12px; letter-spacing: -0.015em; line-height: 1.3; }
.sd-subj__p { font-size: 14.5px; color: rgba(255,255,255,0.76); line-height: 1.78; }
.sd-subj__basis { font-size: 11.5px; color: rgba(255,255,255,0.42); margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,0.07); line-height: 1.5; }
@media (max-width: 760px) { .sd-subjects__grid { grid-template-columns: 1fr; } }
