/*
 * 전국수업.com 2026 mobile-first visual refresh
 * Existing page copy, URLs and structured data are intentionally untouched.
 */

:root {
  --ink: #12213a;
  --muted: #5f6f86;
  --line: #dce5f0;
  --paper: #f5f8fc;
  --soft: #eef4fb;
  --sage: #3b82f6;
  --sage-dark: #174ea6;
  --peach: #f97360;
  --gold: #f1b84b;
  --blue: #2563eb;
  --blue-dark: #123b7a;
  --sky: #e8f4ff;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(33, 66, 112, 0.11);
  --shadow-soft: 0 10px 30px rgba(33, 66, 112, 0.075);
  --radius: 24px;
}

html {
  background: var(--paper);
  scroll-padding-top: 110px;
}

body {
  min-width: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(59, 130, 246, 0.10), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.08), transparent 30rem),
    var(--paper);
  line-height: 1.72;
  overflow-x: clip;
  word-break: keep-all;
}

body::before {
  display: none;
}

main,
section,
article,
div,
nav {
  min-width: 0;
}

p,
li,
dd,
span,
strong,
em,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

img {
  height: auto;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(31, 78, 139, 0.10);
  box-shadow: 0 8px 28px rgba(35, 65, 105, 0.07);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  gap: 20px;
}

.brand {
  color: #10284d;
  gap: 11px;
  font-size: 1rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.nav {
  gap: 4px;
  padding: 5px;
  border: 1px solid #e1e8f1;
  border-radius: 16px;
  background: #f7f9fc;
  box-shadow: none;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 12px;
  color: #53637a;
  font-size: 0.91rem;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.header-cta {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97360, #ef5a45);
  box-shadow: 0 11px 24px rgba(239, 90, 69, 0.20);
}

/* Type and shared layout */
h1,
h2,
h3 {
  color: #102653;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.35rem, 4.4vw, 4.05rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.95rem, 3.8vw, 3.15rem);
  line-height: 1.14;
}

h3 {
  line-height: 1.3;
}

.lead {
  color: var(--muted);
  line-height: 1.82;
}

.eyebrow {
  margin-bottom: 16px;
  color: #2563eb;
  letter-spacing: .12em;
}

.eyebrow::before,
.section-head.center .eyebrow::after,
.local-hero .eyebrow::after {
  background: #60a5fa;
}

.section {
  width: min(1120px, calc(100% - 40px));
  padding: 80px 0;
}

.section-head {
  margin-bottom: 30px;
}

.section-head.center {
  max-width: 720px;
}

.split {
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 4vw, 52px);
}

.section-title {
  top: 108px;
}

/* Home hero */
.hero {
  width: min(1180px, calc(100% - 40px));
  padding: 72px 0 58px;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(30px, 5vw, 64px);
}

.hero::before {
  left: -90px;
  top: 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .17), rgba(14, 165, 233, .05));
}

.hero-copy .lead {
  max-width: 620px;
}

.hero-card {
  border: 1px solid #dbe6f2;
  border-radius: 30px;
  transform: none;
  background: #fff;
  box-shadow: 0 30px 70px rgba(27, 61, 109, .16);
}

.hero-card img {
  filter: none;
}

.floating-note {
  left: 20px;
  bottom: 20px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 38px rgba(22, 50, 89, .16);
}

.hero-points {
  gap: 7px;
}

.hero-points span,
.hub-summary span,
.tuition-info span,
.pill {
  color: #3b526f;
  background: #f7faff;
  border-color: #dce7f3;
}

.btn {
  min-height: 50px;
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .23);
}

.btn-soft {
  color: #174ea6;
  border-color: #cfdded;
  background: #fff;
}

.metric-row {
  width: min(1120px, calc(100% - 40px));
  gap: 12px;
  margin-bottom: 34px;
}

.metric-card {
  padding: 20px;
  border: 1px solid #dce5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.metric-card b {
  color: #153f83;
}

/* Cards and content sections */
.card,
.panel,
.faq details,
.review,
.guide-link,
.tuition-card,
.cta-box,
.geo-summary-card,
.geo-summary-facts div,
.geo-proof-card,
.child-focus-grid article,
.local-info-grid div,
.related-link-card,
.child-page-link,
.hub-region-card,
.center-town-link {
  border-color: #dce5f0;
  background: #fff;
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.card,
.panel,
.review {
  border-radius: 22px;
}

.card {
  padding: 24px;
}

.feature-mosaic .card:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "text text";
  align-items: center;
  background: linear-gradient(135deg, #edf5ff, #ffffff 66%);
}

.feature-mosaic .card:first-child .num {
  grid-area: num;
  margin-bottom: 0;
}

.feature-mosaic .card:first-child h3 {
  grid-area: title;
  min-width: 0;
}

.feature-mosaic .card:first-child p {
  grid-area: text;
  margin-top: 15px;
}

.card .num {
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
}

.card p,
.panel p,
.review p,
.faq p,
.child-focus-grid p,
.geo-proof-card p {
  color: var(--muted);
}

.dark-band {
  margin-top: 50px;
  padding: 78px 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, .16), transparent 26rem),
    linear-gradient(135deg, #0d2448, #153a70);
}

.process {
  gap: 12px;
}

.process-card {
  border-color: rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.07);
}

.process-card b {
  color: #8dd9ff;
}

.guide-link {
  border-radius: 22px;
  background: #fff;
}

/* Tuition, FAQ, reviews */
.tuition-card {
  border-radius: 26px;
  background: #fff;
}

.tuition-card.accent {
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tuition-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.tuition-table-card {
  overflow: hidden;
  border: 1px solid #d5e1ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.tuition-table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 24px 19px;
  border-bottom: 1px solid #dfe8f2;
  background: linear-gradient(135deg, #edf5ff, #fff 72%);
}

.tuition-table-heading div {
  min-width: 0;
}

.tuition-table-heading span {
  display: block;
  margin-bottom: 4px;
  color: #2671d8;
  font-size: .71rem;
  font-weight: 950;
  letter-spacing: .12em;
}

.tuition-table-heading h3 {
  font-size: 1.42rem;
}

.tuition-table-heading p {
  margin: 0;
  color: #66768c;
  font-size: .84rem;
  font-weight: 750;
  white-space: nowrap;
}

.tuition-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #1e3558;
  font-variant-numeric: tabular-nums;
}

.tuition-table th,
.tuition-table td {
  padding: 17px 12px;
  border-bottom: 1px solid #e5ecf4;
  text-align: center;
  vertical-align: middle;
}

.tuition-table thead th {
  color: #607089;
  background: #f8fafd;
  font-size: .83rem;
  font-weight: 900;
}

.tuition-table tbody th {
  color: #174ea6;
  font-size: .94rem;
  font-weight: 950;
}

.tuition-table tbody td {
  font-size: .94rem;
  font-weight: 850;
  letter-spacing: -.025em;
}

.tuition-table tbody tr:last-child th,
.tuition-table tbody tr:last-child td {
  border-bottom: 0;
}

.tuition-table .recommended th,
.tuition-table .recommended td {
  background: #edf5ff;
}

.tuition-table th small {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #2563eb;
  font-size: .63rem;
  vertical-align: 1px;
}

.tuition-badge,
.fee-tier-title,
.tuition-card.accent .fee-tier-title {
  background: linear-gradient(145deg, #1d4ed8, #0ea5e9);
}

.fee-tier {
  border-color: #e0e8f1;
  background: #f7faff;
}

.fee-tier.highlight {
  border-color: #c9dcf4;
  background: #edf5ff;
}

.fee-prices span {
  border-color: #e1e9f2;
  background: #fff;
}

.faq {
  gap: 10px;
}

.faq details {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.faq summary {
  position: relative;
  list-style: none;
  padding: 19px 54px 19px 20px;
  color: #173869;
  line-height: 1.55;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 9px;
  color: #1d4ed8;
  background: #eaf3ff;
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > p {
  margin: 0;
  padding: 0 20px 20px;
}

.reviews {
  gap: 12px;
}

.review {
  padding: 22px;
  border-radius: 20px;
}

.stars {
  color: #e7a72f;
}

.cta-box {
  padding: 48px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #eaf3ff, #fff 55%, #edfaff);
}

/* Basic pages and national hub */
.page-hero {
  width: min(900px, calc(100% - 40px));
  padding: 70px 0 28px;
}

.hub-hero {
  padding-bottom: 24px;
}

.hub-intro-panel .panel {
  border-radius: 24px;
}

.hub-region-list {
  width: min(1120px, calc(100% - 40px));
  gap: 16px;
}

.hub-region-card {
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  border-radius: 24px;
}

.hub-region-card[open] {
  border-color: #bcd3ee;
  background: #fff;
}

.hub-region-summary::after {
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
  box-shadow: 0 8px 18px rgba(37,99,235,.20);
}

.hub-region-kicker {
  color: #2563eb;
  background: #eaf3ff;
}

.center-town-grid {
  gap: 10px;
}

.center-town-link {
  min-height: 78px;
  padding: 16px 48px 16px 17px;
  border-radius: 16px;
  box-shadow: none;
}

.center-town-link::before {
  background: #3b82f6;
}

.center-town-link::after {
  color: #1d4ed8;
  background: #edf5ff;
}

.center-town-link:hover {
  border-color: #9fc2ec;
  background: #f8fbff;
}

.center-town-link b {
  color: #15396f;
}

/* Local and child pages */
.local-hero {
  width: min(900px, calc(100% - 40px));
  padding: 58px 0 30px;
}

.local-hero.child-hero,
.local-hero.english-math-hero {
  width: min(1120px, calc(100% - 40px));
  margin-top: 26px;
  padding: 48px clamp(22px, 5vw, 60px);
  border: 1px solid #d4e3f3;
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 10%, rgba(14,165,233,.13), transparent 24rem),
    linear-gradient(135deg, #eaf3ff, #fff 68%);
}

.mini-breadcrumb {
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid #dce6f1;
  border-radius: 999px;
  color: #6a7990;
  background: rgba(255,255,255,.82);
}

.mini-breadcrumb a {
  color: #426183;
}

.mini-breadcrumb strong {
  color: #1d4ed8;
}

.geo-summary-section {
  padding-bottom: 34px;
}

.geo-summary-card {
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, .94fr);
  padding: clamp(23px, 4vw, 36px);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #f1f7ff);
}

.geo-summary-card p {
  color: var(--muted);
}

.geo-summary-facts div {
  padding: 17px 18px;
  border-radius: 17px;
  box-shadow: none;
}

.geo-summary-facts dt {
  color: #2671d8;
}

.geo-summary-facts dd {
  color: #143a73;
}

.local-media-section {
  width: min(1040px, calc(100% - 40px));
  gap: 22px;
  padding: 20px 0 48px;
}

.local-media-card {
  border: 1px solid #d5e0ec;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.local-media-card img:not([style*="display:none"]) {
  width: 100%;
  max-height: none;
  object-fit: contain;
  background: #fff;
}

.local-media-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  color: #1e5497;
  border-bottom: 1px solid #e1e8f0;
  background: #f7faff;
}

.local-media-label::before {
  background: #3b82f6;
  box-shadow: 0 0 0 5px #e3efff;
}

.local-content {
  padding-top: 56px;
}

.local-guide-panel {
  padding-top: 52px;
  padding-bottom: 52px;
}

.local-info-grid {
  gap: 11px;
}

.local-info-grid div {
  padding: 21px;
  border-radius: 19px;
  box-shadow: none;
}

.local-info-grid b {
  color: #2671d8;
}

.geo-answer-section,
.geo-checklist-section,
.related-links-section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.geo-proof-grid {
  gap: 11px;
}

.geo-proof-card,
.child-focus-grid article {
  min-height: 0;
  padding: 22px;
  border-radius: 20px;
  box-shadow: none;
}

.geo-proof-card span,
.child-focus-grid span {
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
}

.child-focus-grid {
  gap: 12px;
}

.related-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 11px;
}

.related-link-card {
  min-height: 150px;
  padding: 20px;
  border-radius: 20px;
  box-shadow: none;
}

.related-link-card::after {
  content: "→";
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
  box-shadow: none;
}

.related-link-card span {
  color: #1d4ed8;
  background: #eaf3ff;
}

.child-page-link {
  padding: clamp(22px, 3.5vw, 32px);
  border-radius: 24px;
  background: linear-gradient(135deg, #edf5ff, #fff 70%);
}

.child-page-link::before {
  background: #3b82f6;
  box-shadow: 22px 0 0 rgba(14,165,233,.34), 44px 0 0 rgba(29,78,216,.18);
}

.child-page-link::after {
  content: "자세히 보기 →";
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: none;
}

/* Footer and floating actions */
.footer {
  margin-top: 58px;
  padding: 44px 0 112px;
  border-top-color: #dbe4ee;
  background: #edf3f9;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
}

.floating-actions {
  right: 16px;
  bottom: 16px;
  gap: 7px;
}

.floating-actions a {
  min-width: 82px;
  min-height: 39px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(19, 43, 77, .18);
}

.floating-actions a:nth-child(1) {
  background: #164590;
}

.floating-actions a:nth-child(2) {
  background: #2769c8;
}

.floating-actions a:nth-child(3) {
  background: #f26752;
}

/* Tablet */
@media (max-width: 900px) {
  .header-inner {
    width: min(100% - 24px, 760px);
  }

  .hero,
  .split,
  .geo-summary-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    width: min(100% - 32px, 760px);
    padding: 58px 0;
  }

  .page-hero,
  .local-hero,
  .local-hero.child-hero,
  .local-hero.english-math-hero {
    width: min(100% - 32px, 760px);
  }

  .local-media-section {
    width: min(100% - 32px, 760px);
  }

  .section-title {
    position: static;
  }

  .local-info-grid,
  .geo-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 680px) {
  html {
    scroll-padding-top: 118px;
  }

  body {
    font-size: 15px;
    line-height: 1.68;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px 9px;
  }

  .brand {
    justify-self: start;
    min-height: 34px;
    font-size: .94rem;
  }

  .brand span:last-child {
    display: inline;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    border-radius: 11px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 13px;
  }

  .nav a {
    min-width: 0;
    min-height: 36px;
    padding: 0 3px;
    border-radius: 10px;
    font-size: clamp(.61rem, 2.55vw, .74rem);
    letter-spacing: -.04em;
    white-space: nowrap;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: clamp(1.95rem, 8.6vw, 2.28rem);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(1.62rem, 7.4vw, 2.12rem);
    line-height: 1.2;
  }

  h3 {
    font-size: 1.16rem;
  }

  .lead {
    margin-top: 17px;
    font-size: .98rem;
    line-height: 1.78;
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: .72rem;
  }

  .hero {
    width: calc(100% - 32px);
    padding: 38px 0 42px;
    gap: 28px;
  }

  .hero-copy h1 br {
    display: none;
  }

  .hero-actions,
  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 24px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 13px;
  }

  .hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-points span {
    min-width: 0;
    justify-content: center;
    padding: 7px 8px;
    text-align: center;
    line-height: 1.35;
  }

  .hero-card {
    border-radius: 23px;
  }

  .floating-note {
    position: static;
    width: auto;
    margin: -2px 12px 12px;
    border-radius: 15px;
    box-shadow: none;
    background: #f3f7fc;
  }

  .metric-row {
    width: calc(100% - 32px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 24px;
  }

  .metric-card {
    min-height: 112px;
    padding: 17px;
    border-radius: 17px;
  }

  .metric-card b {
    font-size: 1.12rem;
  }

  .section {
    width: calc(100% - 32px);
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .card-grid,
  .process,
  .guide-strip,
  .reviews,
  .tuition-grid,
  .child-focus-grid,
  .related-link-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .panel,
  .review,
  .guide-link,
  .geo-proof-card,
  .child-focus-grid article,
  .local-info-grid div {
    padding: 19px;
    border-radius: 18px;
  }

  .feature-mosaic .card:first-child {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "title"
      "text";
  }

  .dark-band {
    margin-top: 34px;
    padding: 54px 0;
  }

  .page-hero {
    width: calc(100% - 32px);
    padding: 42px 0 20px;
  }

  .hub-summary {
    gap: 7px;
  }

  .hub-region-list {
    width: calc(100% - 24px);
    padding-top: 44px;
  }

  .hub-region-card {
    padding: 16px;
    border-radius: 19px;
  }

  .hub-region-summary {
    padding-right: 45px;
  }

  .center-town-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .center-town-link {
    min-height: 88px;
    padding: 14px 34px 14px 14px;
    border-radius: 14px;
  }

  .center-town-link b {
    font-size: .98rem;
  }

  .center-town-link span {
    font-size: .75rem;
    line-height: 1.4;
  }

  .local-hero {
    width: calc(100% - 32px);
    padding: 38px 0 22px;
  }

  .local-hero.child-hero,
  .local-hero.english-math-hero {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 28px 17px;
    border-radius: 20px;
  }

  .mini-breadcrumb {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: .78rem;
    line-height: 1.4;
  }

  .local-hero .hero-points {
    margin-top: 18px;
  }

  .geo-summary-section {
    width: calc(100% - 24px);
    padding: 22px 0 28px;
  }

  .geo-summary-card {
    gap: 20px;
    padding: 21px 17px;
    border-radius: 20px;
  }

  .geo-summary-card h2 {
    font-size: 1.6rem;
  }

  .geo-summary-facts {
    gap: 8px;
  }

  .geo-summary-facts div {
    padding: 14px;
    border-radius: 14px;
  }

  .local-media-section {
    width: 100%;
    gap: 14px;
    padding: 8px 0 34px;
  }

  .local-media-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(28,61,104,.08);
  }

  .local-media-label {
    padding: 12px 16px;
    font-size: .87rem;
  }

  .local-content {
    padding-top: 44px;
  }

  .local-guide-panel,
  .geo-answer-section,
  .geo-checklist-section,
  .related-links-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .related-link-card {
    min-height: 126px;
    padding: 17px;
    border-radius: 16px;
  }

  .child-page-link {
    padding: 20px 17px;
    border-radius: 18px;
  }

  .child-page-link b {
    font-size: 1.35rem;
  }

  .faq summary {
    padding: 17px 50px 17px 17px;
  }

  .faq details > p {
    padding: 0 17px 17px;
  }

  .tuition-card {
    padding: 19px;
    border-radius: 20px;
  }

  .tuition-table-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 23px;
  }

  .tuition-table-card {
    border-radius: 18px;
  }

  .tuition-table-heading {
    align-items: center;
    padding: 18px 16px 15px;
  }

  .tuition-table-heading h3 {
    font-size: 1.2rem;
  }

  .tuition-table-heading p {
    font-size: .74rem;
  }

  .tuition-table th,
  .tuition-table td {
    padding: 14px 5px;
  }

  .tuition-table thead th {
    font-size: .73rem;
  }

  .tuition-table tbody th,
  .tuition-table tbody td {
    font-size: clamp(.72rem, 3.15vw, .84rem);
  }

  .tuition-table th small {
    display: none;
  }

  .cta-box {
    padding: 36px 18px;
    border-radius: 20px;
  }

  .footer {
    margin-top: 42px;
    padding: 36px 0 118px;
  }

  .footer-inner {
    width: calc(100% - 32px);
    gap: 12px;
  }

  .floating-actions {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .floating-actions a {
    min-width: 72px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: .75rem;
  }
}

@media (max-width: 380px) {
  .brand span:last-child {
    font-size: .86rem;
  }

  .nav a {
    font-size: .59rem;
  }

  .center-town-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Subject academy hubs and manuscript-led local pages */
.subject-category-section {
  padding-top: 42px;
  padding-bottom: 18px;
}

.subject-category-grid {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.subject-category-grid .subject-category-card {
  margin-top: 0;
}

.subject-category-card {
  width: min(860px, 100%);
  min-height: 132px;
  margin: 28px auto 0;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  color: var(--ink);
  border: 1px solid #cfe0f4;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #eef7ff 100%);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.subject-category-card:hover {
  transform: translateY(-3px);
  border-color: #78a9e8;
  box-shadow: var(--shadow);
}

.subject-category-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: 21px;
  background: linear-gradient(145deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 14px 26px rgba(37, 99, 235, .23);
}

.subject-category-card small,
.subject-category-card strong,
.subject-category-card em {
  display: block;
}

.subject-category-card small {
  margin-bottom: 4px;
  color: var(--sage-dark);
  font-size: .78rem;
  font-weight: 800;
}

.subject-category-card strong {
  font-size: 1.45rem;
  line-height: 1.25;
}

.subject-category-card em {
  margin-top: 7px;
  color: var(--muted);
  font-size: .92rem;
  font-style: normal;
}

.subject-category-card > b {
  font-size: 1.65rem;
  color: var(--blue);
}

.subject-hub-hero,
.subject-local-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(229,243,255,.95)),
    radial-gradient(circle at 90% 10%, rgba(14,165,233,.22), transparent 22rem);
}

.subject-summary-section,
.subject-hub-intro {
  padding-top: 44px;
  padding-bottom: 26px;
}

.subject-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 20px;
  align-items: start;
}

.subject-answer-card,
.subject-info-card,
.subject-review-card,
.subject-reading-guide {
  border: 1px solid #d7e5f3;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.subject-answer-card {
  min-height: 100%;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(233,246,255,.96)),
    #fff;
}

.subject-answer-card h2,
.subject-info-card h2,
.subject-reading-guide h2,
.subject-review-card h2 {
  margin: 0 0 14px;
  color: #102b57;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.35;
}

.subject-answer-card p:last-child {
  margin: 0;
  color: #445b78;
}

.subject-info-card {
  padding: 26px;
}

.subject-info-card dl,
.subject-info-card dd {
  margin: 0;
}

.subject-info-card dl > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #e7eef7;
}

.subject-info-card dl > div:last-child {
  border-bottom: 0;
}

.subject-info-card dt {
  color: #63758d;
  font-size: .82rem;
  font-weight: 800;
}

.subject-info-card dd {
  color: #1e3658;
  font-size: .92rem;
  font-weight: 700;
}

.subject-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subject-tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #174f8d;
  background: #e9f5ff;
  font-size: .76rem;
  font-weight: 800;
}

.subject-info-card .subject-tuition-row {
  align-items: start;
}

.subject-tuition-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  text-decoration: none;
  box-shadow: 0 9px 18px rgba(37,99,235,.18);
}

.subject-info-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
}

.subject-media-section {
  padding-top: 20px;
}

.subject-article-section {
  padding-top: 36px;
}

.subject-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.subject-main-article {
  min-width: 0;
}

.subject-intro-answer {
  position: relative;
  margin-bottom: 18px;
  padding: 27px 28px 27px 34px;
  overflow: hidden;
  border: 1px solid #cddff2;
  border-radius: 22px;
  background: linear-gradient(135deg, #eff8ff, #fff);
  box-shadow: var(--shadow-soft);
}

.subject-intro-answer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(#2563eb, #0ea5e9);
}

.subject-intro-answer p {
  margin: 0;
  color: #213d62;
  font-size: 1.04rem;
  font-weight: 650;
}

.subject-prose-section {
  margin-top: 16px;
  padding: 27px 28px;
  border: 1px solid #e0e9f3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(33,66,112,.05);
}

.subject-prose-section h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 18px;
  color: #102b57;
  font-size: clamp(1.28rem, 2.4vw, 1.72rem);
  line-height: 1.42;
}

.subject-prose-section h2::before {
  content: "";
  position: absolute;
  top: .2em;
  bottom: .2em;
  left: 0;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(#2563eb, #0ea5e9);
}

.subject-prose-section p {
  margin: 0;
  color: #435873;
}

.subject-prose-section p + p {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed #dce6f1;
}

.subject-reading-guide {
  position: sticky;
  top: 100px;
  padding: 23px;
}

.subject-reading-guide h2 {
  font-size: 1.28rem;
}

.subject-reading-guide ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reading;
}

.subject-reading-guide li {
  position: relative;
  padding: 13px 0 13px 38px;
  color: #50627a;
  border-bottom: 1px solid #e8eef5;
  font-size: .88rem;
  counter-increment: reading;
}

.subject-reading-guide li:last-child {
  border-bottom: 0;
}

.subject-reading-guide li::before {
  content: counter(reading, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
}

.subject-faq-section,
.subject-review-section {
  padding-top: 36px;
  padding-bottom: 36px;
}

.subject-faq-list {
  width: min(900px, 100%);
  margin: 26px auto 0;
  display: grid;
  gap: 10px;
}

.subject-faq-item {
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(33,66,112,.045);
}

.subject-faq-item summary {
  position: relative;
  padding: 18px 54px 18px 20px;
  color: #18365e;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.subject-faq-item summary::-webkit-details-marker {
  display: none;
}

.subject-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #edf5ff;
  transform: translateY(-50%);
}

.subject-faq-item[open] summary::after {
  content: "−";
}

.subject-faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: #53657d;
}

.subject-review-card {
  padding: 30px;
  background: linear-gradient(145deg, #fff, #eff7ff);
}

.subject-review-note {
  margin: 0 0 18px;
  color: #6e7e91;
  font-size: .8rem;
}

.subject-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.subject-review-item {
  margin: 0;
  padding: 22px;
  color: #435872;
  border: 1px solid #d9e7f5;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  font-style: normal;
}

.subject-directory-section {
  padding-top: 48px;
}

.subject-search {
  width: min(680px, 100%);
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 18px;
  border: 1px solid #cbdcf0;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.subject-search span {
  color: #31557e;
  font-size: .82rem;
  font-weight: 850;
}

.subject-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  background: #eef5fc;
  font: inherit;
}

.subject-search-result {
  margin: 12px 0 0;
  color: #63758d;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
}

.subject-directory-overview {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 112px 112px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid #d9e7f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #edf6ff);
}

.subject-directory-overview > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.subject-directory-overview strong {
  color: #1559aa;
  font-size: 1.35rem;
  line-height: 1;
}

.subject-directory-overview span,
.subject-directory-overview p {
  color: #5e7189;
  font-size: .78rem;
  font-weight: 750;
}

.subject-directory-overview p {
  margin: 0;
  text-align: right;
}

.subject-directory-tools {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.subject-directory-actions {
  display: flex;
  gap: 7px;
}

.subject-directory-actions button {
  min-width: 92px;
  padding: 0 13px;
  border: 1px solid #d6e3f1;
  border-radius: 14px;
  color: #31557e;
  background: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}

.subject-directory-actions button:hover {
  border-color: #7cabe4;
  background: #f0f7ff;
}

.subject-region-list {
  max-width: 1040px;
  margin: 24px auto 0;
  display: grid;
  gap: 12px;
}

.subject-region-block {
  overflow: hidden;
  border: 1px solid #d7e4f2;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(34, 73, 120, .07);
}

.subject-region-block[open] {
  border-color: #b9d2ed;
  box-shadow: 0 16px 34px rgba(34, 73, 120, .1);
}

.subject-region-heading {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  color: #183a64;
  background: #fff;
  cursor: pointer;
}

.subject-region-heading::-webkit-details-marker {
  display: none;
}

.subject-region-heading > span {
  display: grid;
  gap: 2px;
}

.subject-region-heading small {
  color: #7790ab;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.subject-region-heading > span {
  font-size: 1.12rem;
  font-weight: 900;
}

.subject-region-heading strong {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 7px 6px 11px;
  border-radius: 999px;
  color: #416486;
  background: #edf5fd;
  font-size: .76rem;
}

.subject-region-heading strong i {
  width: 25px;
  height: 25px;
  position: relative;
  border-radius: 50%;
  background: #fff;
}

.subject-region-heading strong i::before,
.subject-region-heading strong i::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 7px;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: #3274bc;
}

.subject-region-heading strong i::after {
  transform: rotate(90deg);
  transition: transform .18s ease;
}

.subject-region-block[open] .subject-region-heading {
  color: #fff;
  background: linear-gradient(135deg, #174ea6, #2563eb 70%, #0ea5e9);
}

.subject-region-block[open] .subject-region-heading small {
  color: rgba(255,255,255,.72);
}

.subject-region-block[open] .subject-region-heading strong {
  color: #fff;
  background: rgba(255,255,255,.16);
}

.subject-region-block[open] .subject-region-heading strong i::after {
  transform: rotate(0);
}

.subject-region-content {
  background: #fbfdff;
}

.subject-district-block {
  padding: 19px 20px 21px;
}

.subject-district-block + .subject-district-block {
  border-top: 1px solid #e5edf6;
}

.subject-district-heading {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subject-district-block h3 {
  margin: 0;
  color: #244a75;
  font-size: 1rem;
}

.subject-district-heading span {
  color: #7b8da3;
  font-size: .7rem;
  font-weight: 800;
}

.subject-locality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.subject-locality-link {
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  color: #183a64;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: #f8fbff;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.subject-locality-link:hover {
  transform: translateY(-2px);
  border-color: #7babe7;
  background: #edf6ff;
}

.subject-locality-link b {
  overflow: hidden;
  font-size: .91rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subject-locality-link span {
  grid-column: 1;
  color: #718097;
  font-size: .67rem;
  line-height: 1.2;
}

.subject-locality-link i {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #4c82bb;
  font-style: normal;
  font-size: .9rem;
}

.subject-locality-link[hidden],
.subject-district-block[hidden],
.subject-region-block[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .subject-summary-grid,
  .subject-article-layout {
    grid-template-columns: 1fr;
  }

  .subject-reading-guide {
    position: static;
  }

  .subject-locality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .subject-category-section,
  .subject-summary-section,
  .subject-hub-intro,
  .subject-article-section,
  .subject-faq-section,
  .subject-review-section,
  .subject-directory-section {
    width: calc(100% - 24px);
  }

  .subject-category-card {
    min-height: 0;
    padding: 18px;
    grid-template-columns: auto 1fr;
    gap: 14px;
    border-radius: 18px;
  }

  .subject-category-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: .82rem;
  }

  .subject-category-card strong {
    font-size: 1.18rem;
  }

  .subject-category-card em {
    font-size: .78rem;
  }

  .subject-category-card > b {
    display: none;
  }

  .subject-answer-card,
  .subject-info-card,
  .subject-review-card,
  .subject-reading-guide,
  .subject-intro-answer,
  .subject-prose-section {
    padding: 19px 17px;
    border-radius: 18px;
  }

  .subject-info-card dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 0;
  }

  .subject-info-card dt {
    font-size: .72rem;
  }

  .subject-intro-answer {
    padding-left: 22px;
  }

  .subject-intro-answer p {
    font-size: .94rem;
  }

  .subject-prose-section h2 {
    padding-left: 14px;
    font-size: 1.18rem;
  }

  .subject-review-list {
    grid-template-columns: 1fr;
  }

  .subject-review-item {
    padding: 17px;
  }

  .subject-search {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
  }

  .subject-search span {
    padding-left: 3px;
  }

  .subject-directory-overview {
    margin-bottom: 12px;
    padding: 14px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-radius: 16px;
  }

  .subject-directory-overview > div {
    min-height: 46px;
    padding: 8px 10px;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.75);
  }

  .subject-directory-overview p {
    grid-column: 1 / -1;
    padding: 3px 2px 0;
    text-align: center;
    font-size: .72rem;
  }

  .subject-directory-tools {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .subject-directory-actions button {
    width: 50%;
    min-height: 42px;
  }

  .subject-region-block {
    border-radius: 16px;
  }

  .subject-region-heading {
    padding: 14px 15px;
  }

  .subject-region-heading > span {
    font-size: 1.02rem;
  }

  .subject-district-block {
    padding: 16px 12px 18px;
  }

  .subject-locality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .subject-locality-link {
    min-width: 0;
    min-height: 56px;
    padding: 9px 10px;
    column-gap: 5px;
    border-radius: 12px;
  }

  .subject-locality-link b {
    font-size: .84rem;
  }

  .subject-locality-link span {
    font-size: .6rem;
  }

  .subject-locality-link i {
    font-size: .76rem;
  }

  .subject-faq-item summary {
    padding: 16px 48px 16px 16px;
    font-size: .9rem;
  }

  .subject-faq-item p {
    padding: 0 16px 17px;
    font-size: .86rem;
  }
}

/* ==========================================================================
   2026 orange editorial redesign
   Inspired by the spacious finance-editorial reference supplied by the owner.
   Content, URLs and document hierarchy stay unchanged.
   ========================================================================== */

:root {
  --ink: #113b61;
  --muted: #64717f;
  --line: #e7e9ec;
  --paper: #ffffff;
  --soft: #fff8f0;
  --sage: #f58216;
  --sage-dark: #d96600;
  --peach: #f58216;
  --gold: #f4a340;
  --blue: #164f7d;
  --blue-dark: #0c385e;
  --sky: #fff6ea;
  --white: #ffffff;
  --orange: #ef7600;
  --orange-dark: #d85e00;
  --orange-soft: #fff4e8;
  --navy: #103f67;
  --navy-dark: #092f50;
  --shadow: 0 20px 55px rgba(52, 48, 42, .09);
  --shadow-soft: 0 8px 28px rgba(52, 48, 42, .055);
  --radius: 18px;
}

html {
  background: #fff;
  scroll-padding-top: 92px;
}

body {
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.68;
  letter-spacing: -.012em;
}

body::before {
  display: none;
}

::selection {
  color: #fff;
  background: var(--orange);
}

/* Header: clean white bar with a precise orange accent. */
.site-header {
  border-bottom: 1px solid rgba(239, 118, 0, .42);
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 72px;
  gap: 24px;
}

.brand {
  gap: 9px;
  color: var(--navy-dark);
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: -.045em;
}

.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 7px;
  color: #fff;
  background: var(--orange);
  box-shadow: none;
}

.nav {
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav a {
  min-height: 42px;
  padding: 0 14px;
  position: relative;
  border-radius: 0;
  color: #31526d;
  background: transparent;
  font-size: .88rem;
  font-weight: 800;
}

.nav a::after {
  content: "";
  height: 2px;
  position: absolute;
  right: 14px;
  bottom: 2px;
  left: 14px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--orange-dark);
  background: transparent;
  box-shadow: none;
}

.nav a[aria-current="page"]::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--orange);
  border-radius: 2px;
  background: var(--orange);
  box-shadow: none;
  font-size: .78rem;
}

.header-cta:hover {
  color: var(--orange);
  background: #fff;
}

/* Typography and spacing */
h1,
h2,
h3 {
  color: var(--navy-dark);
  letter-spacing: -.048em;
}

h1 {
  font-size: clamp(2.45rem, 4.65vw, 4.7rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  line-height: 1.13;
}

h3 {
  line-height: 1.28;
}

.lead {
  color: #617181;
  line-height: 1.82;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--orange);
  letter-spacing: .1em;
}

.eyebrow::before,
.section-head.center .eyebrow::after,
.local-hero .eyebrow::after {
  background: var(--orange);
}

.section {
  width: min(1180px, calc(100% - 48px));
  padding: 96px 0;
}

.section-head {
  margin-bottom: 34px;
}

.section-head.center {
  max-width: 760px;
}

.split {
  grid-template-columns: minmax(250px, .68fr) minmax(0, 1.32fr);
  gap: clamp(34px, 5vw, 74px);
}

.section-title {
  top: 96px;
}

/* Hero: high contrast copy and bordered editorial image card. */
.hero {
  width: min(1240px, calc(100% - 48px));
  min-height: 620px;
  padding: 88px 0 82px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 6vw, 84px);
}

.hero::before {
  left: auto;
  top: 42px;
  right: -130px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 118, 0, .09), transparent 68%);
  filter: none;
}

.hero-copy .lead {
  max-width: 590px;
}

.hero-card {
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(239, 118, 0, .72);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(66, 54, 42, .12);
}

.hero-card img {
  border-radius: 11px;
}

.floating-note {
  left: 28px;
  bottom: 28px;
  max-width: 350px;
  padding: 17px 19px;
  border: 0;
  border-left: 4px solid var(--orange);
  border-radius: 3px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(38, 42, 47, .13);
}

.hero-points {
  gap: 8px;
}

.hero-points span,
.hub-summary span,
.tuition-info span,
.pill {
  color: #35556e;
  border-color: #f0d8c0;
  border-radius: 4px;
  background: #fffaf5;
}

.btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 3px;
}

.btn-primary {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: none;
}

.btn-primary:hover {
  color: var(--orange);
  background: #fff;
}

.btn-soft {
  color: var(--navy);
  border-color: #cdd6dd;
  background: #fff;
}

.btn-soft:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.metric-row {
  width: min(1180px, calc(100% - 48px));
  gap: 12px;
  margin-bottom: 28px;
}

.metric-card {
  min-height: 104px;
  padding: 22px 20px;
  border: 1px solid #f0d3b4;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.metric-card b {
  color: var(--orange-dark);
}

/* Editorial cards, modeled after the slim outlined product cards. */
.card,
.panel,
.faq details,
.review,
.guide-link,
.tuition-card,
.cta-box,
.geo-summary-card,
.geo-summary-facts div,
.geo-proof-card,
.child-focus-grid article,
.local-info-grid div,
.related-link-card,
.child-page-link,
.hub-region-card,
.center-town-link,
.subject-answer-card,
.subject-info-card,
.subject-review-card,
.subject-reading-guide,
.subject-intro-answer,
.subject-prose-section {
  border-color: #eadfd3;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.card,
.panel,
.review {
  border-radius: 14px;
}

.card {
  padding: 26px 24px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 14px 32px rgba(75, 56, 39, .08);
}

.feature-mosaic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-mosaic .card:first-child {
  display: block;
  grid-column: auto;
  background: #fff;
}

.feature-mosaic .card:first-child .num {
  margin-bottom: 16px;
}

.feature-mosaic .card:first-child p {
  margin-top: 11px;
}

.card .num {
  color: var(--orange-dark);
  border: 1px solid #f0c28f;
  border-radius: 4px;
  background: var(--orange-soft);
}

.card p,
.panel p,
.review p,
.faq p,
.child-focus-grid p,
.geo-proof-card p {
  color: #657380;
}

/* Warm content band */
.dark-band {
  margin-top: 54px;
  padding: 92px 0;
  color: var(--navy-dark);
  background:
    radial-gradient(circle at 86% 85%, rgba(255, 255, 255, .52), transparent 22rem),
    #f5dfc4;
}

.dark-band h2,
.dark-band .lead,
.dark-band .eyebrow {
  color: var(--navy-dark);
}

.dark-band .eyebrow::before {
  background: var(--orange);
}

.process {
  gap: 12px;
}

.process-card {
  min-height: 190px;
  padding: 25px 23px;
  color: var(--navy);
  border: 1px solid rgba(224, 164, 101, .48);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  box-shadow: none;
}

.process-card::before {
  color: var(--orange);
}

.process-card b,
.process-card p {
  color: inherit;
}

.subjects .pill {
  min-height: 36px;
  border-radius: 4px;
}

.guide-strip {
  gap: 12px;
}

.guide-link {
  min-height: 160px;
  padding: 25px 23px;
  border: 1px solid #eed2b2;
  border-radius: 12px;
  background: #fff;
}

.guide-link::after {
  color: var(--orange);
}

.guide-link:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

/* Tuition table */
.tuition-section {
  width: min(1180px, calc(100% - 48px));
}

.tuition-table-grid {
  gap: 16px;
}

.tuition-table-card {
  overflow: hidden;
  border: 1px solid #e9d5c0;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.tuition-table-heading {
  border-bottom-color: #f0dfcf;
  background: #fff8f0;
}

.tuition-table-heading span,
.tuition-table th,
.tuition-table .recommended th,
.tuition-table .recommended td {
  color: var(--orange-dark);
}

.tuition-table thead {
  background: #fffdfb;
}

.tuition-table .recommended {
  background: #fff6eb;
}

.tuition-table small {
  border-radius: 2px;
  background: var(--orange);
}

/* FAQ, reviews and CTA */
.faq {
  gap: 10px;
}

.faq details,
.subject-faq-item {
  border: 1px solid #e8ded4;
  border-radius: 10px;
  background: #fff;
}

.faq details[open],
.subject-faq-item[open] {
  border-color: #efbe8b;
  background: #fffaf5;
}

.faq summary::after,
.subject-faq-item summary::after {
  color: var(--orange);
  background: #fff0df;
}

.reviews {
  gap: 14px;
}

.review {
  border-top: 3px solid var(--orange);
}

.stars {
  color: var(--orange);
}

.cta-box {
  padding: 64px 34px;
  border: 1px solid #efc496;
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, .87), rgba(255, 255, 255, .87)),
    repeating-linear-gradient(105deg, #fff2e4 0 2px, #fff 2px 9px);
}

/* Shared internal-page heroes */
.page-hero,
.local-hero,
.subject-hub-hero,
.subject-local-hero {
  background:
    radial-gradient(circle at 92% 15%, rgba(239, 118, 0, .1), transparent 20rem),
    linear-gradient(180deg, #fff 0%, #fffaf5 100%);
}

.page-hero {
  width: min(980px, calc(100% - 48px));
  padding: 82px 0 42px;
}

.mini-breadcrumb {
  color: #79838d;
}

.mini-breadcrumb a:hover,
.mini-breadcrumb strong {
  color: var(--orange-dark);
}

.local-hero {
  border-bottom: 1px solid #f1dfcd;
}

.local-hero::before,
.local-hero::after {
  background: rgba(239, 118, 0, .08);
}

.local-hero .hero-points span {
  border-color: #efd3b7;
  color: #715339;
  background: #fff9f2;
}

.local-media-card,
.subject-media-card {
  border: 1px solid #efd9c2;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.local-media-card figcaption,
.subject-media-card figcaption {
  border-top-color: #f1e3d5;
  background: #fffaf5;
}

.local-guide-panel,
.geo-summary-section,
.geo-answer-section,
.geo-checklist-section,
.related-links-section,
.subject-summary-section,
.subject-article-section,
.subject-faq-section,
.subject-review-section {
  --section-accent: var(--orange);
}

.geo-summary-card,
.subject-intro-answer {
  border-left-color: var(--orange);
}

.geo-summary-facts dt,
.subject-info-card dt,
.local-info-grid dt,
.subject-reading-guide li::marker {
  color: var(--orange-dark);
}

.geo-proof-card span,
.subject-review-item span,
.related-link-card span {
  color: var(--orange-dark);
}

.related-link-card:hover,
.child-page-link:hover,
.center-town-link:hover {
  border-color: var(--orange);
  background: #fff7ed;
}

/* National and subject hubs */
.hub-region-card,
.subject-region-block {
  border-color: #ead8c6;
  border-radius: 14px;
  box-shadow: none;
}

.hub-region-card[open],
.subject-region-block[open] {
  border-color: #eaae70;
  box-shadow: 0 12px 32px rgba(78, 58, 40, .07);
}

.subject-category-card,
.subject-locality-link {
  border-color: #ecd7c1;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.subject-category-card:hover,
.subject-locality-link:hover {
  border-color: var(--orange);
  background: #fff7ed;
}

.subject-category-icon,
.subject-prose-section h2::before {
  color: #fff;
  background: var(--orange);
}

.subject-region-block[open] .subject-region-heading {
  background: var(--orange);
}

.subject-region-heading strong,
.subject-search input,
.subject-directory-overview {
  background: #fff7ed;
}

.subject-search {
  border-color: #ead7c3;
  border-radius: 10px;
  box-shadow: none;
}

.subject-search input {
  border-radius: 6px;
}

.subject-directory-actions button {
  border-color: #e6d3bf;
  border-radius: 4px;
  color: var(--navy);
}

.subject-directory-actions button:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: #fff7ed;
}

.subject-directory-overview strong,
.subject-info-card dt {
  color: var(--orange-dark);
}

.subject-tag-list span {
  color: #9a4a05;
  background: #fff0df;
}

.subject-tuition-link {
  border-radius: 4px;
  background: var(--orange);
  box-shadow: none;
}

.subject-tuition-link:hover {
  background: var(--orange-dark);
}

.subject-locality-link i {
  color: var(--orange);
}

/* Footer and quick actions */
.footer {
  color: #56616c;
  border-top: 1px solid #e7e9ec;
  background: #f7f8fa;
}

.footer strong,
.footer a {
  color: var(--navy-dark);
}

.floating-actions {
  gap: 7px;
}

.floating-actions a {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 4px;
  box-shadow: 0 9px 24px rgba(47, 42, 37, .12);
}

.floating-actions a:nth-child(1) {
  background: var(--navy);
}

.floating-actions a:nth-child(2) {
  background: #d96a08;
}

.floating-actions a:nth-child(3) {
  color: var(--orange-dark);
  border-color: #efbd87;
  background: #fff;
}

@media (min-width: 1100px) {
  .feature-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid:not(.feature-mosaic) {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    width: min(100% - 28px, 760px);
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .feature-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 132px;
  }

  body {
    line-height: 1.65;
  }

  .site-header {
    border-bottom-color: rgba(239, 118, 0, .28);
  }

  .header-inner {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 10px 0 9px;
    gap: 9px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 5px;
  }

  .brand {
    font-size: .89rem;
  }

  .nav {
    gap: 0;
    padding-top: 5px;
    border-top: 1px solid #f0e4d7;
  }

  .nav a {
    min-height: 35px;
    padding: 0 2px;
    font-size: clamp(.58rem, 2.45vw, .7rem);
  }

  .nav a::after {
    right: 18%;
    bottom: 0;
    left: 18%;
  }

  h1 {
    font-size: clamp(2rem, 9.2vw, 2.65rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.62rem, 7.6vw, 2.12rem);
  }

  .section,
  .tuition-section {
    width: calc(100% - 28px);
    padding: 68px 0;
  }

  .hero {
    width: calc(100% - 28px);
    padding: 46px 0 56px;
    gap: 30px;
  }

  .hero-card {
    padding: 6px;
    border-radius: 13px;
  }

  .hero-card img {
    border-radius: 8px;
  }

  .floating-note {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px 14px;
  }

  .btn {
    border-radius: 3px;
  }

  .metric-row {
    width: calc(100% - 28px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-card {
    min-height: 92px;
    padding: 16px 14px;
    border-radius: 9px;
  }

  .feature-mosaic {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card,
  .panel,
  .review,
  .process-card,
  .guide-link {
    border-radius: 10px;
  }

  .card {
    padding: 20px 18px;
  }

  .dark-band {
    margin-top: 32px;
    padding: 66px 0;
  }

  .process-card {
    min-height: 0;
    padding: 20px 18px;
  }

  .guide-strip {
    gap: 8px;
  }

  .guide-link {
    min-height: 0;
    padding: 19px 17px;
  }

  .tuition-table-card,
  .cta-box,
  .local-media-card,
  .subject-media-card,
  .subject-region-block,
  .hub-region-card {
    border-radius: 10px;
  }

  .cta-box {
    padding: 42px 18px;
  }

  .page-hero {
    width: calc(100% - 28px);
    padding: 50px 0 25px;
  }

  .local-hero {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .subject-locality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subject-locality-link {
    border-radius: 8px;
  }

  .floating-actions a {
    border-radius: 3px;
  }
}
