/* 온담학습 — design system
   deep emerald + warm ivory + soft coral accent, serif/sans editorial pairing
   mobile-first premium academy site */

:root {
  --ink: #14302a;
  --ink-soft: #4a655d;
  --emerald: #1f6e55;
  --emerald-deep: #0f2e24;
  --emerald-pale: #e6efe8;
  --paper: #faf7f0;
  --card: #fffefb;
  --coral: #d8685f;
  --coral-deep: #b84c44;
  --coral-pale: #f7e4e1;
  --ink-faint: #7f958d;
  --paper-deep: #f1ebdd;
  --white: #ffffff;
  --line: rgba(20, 48, 42, 0.13);
  --line-soft: rgba(20, 48, 42, 0.07);
  --shadow-lg: 0 24px 50px -26px rgba(15, 46, 36, 0.4);
  --shadow-sm: 0 10px 24px -16px rgba(15, 46, 36, 0.3);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", sans-serif;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

h1, h2, h3, blockquote {
  font-family: var(--serif);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  max-width: 100vw;
  overflow-x: hidden;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--emerald);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.lead {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

/* ---------- nav ---------- */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  font-family: var(--serif);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--emerald-pale);
  color: var(--emerald-deep);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 8px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 46, 36, 0) 45%, rgba(15, 46, 36, 0.78) 100%);
}

.hero-chip {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 20px;
  z-index: 2;
  color: #fdf9f2;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.hero-content {
  padding-top: 30px;
}

.hero-content h1 {
  font-size: 1.72rem;
  line-height: 1.4;
  font-weight: 700;
}

.hero-content .lead {
  margin-top: 16px;
  font-size: 1.02rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--emerald-deep);
}

.hero-stats span {
  font-size: 0.76rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

@media (min-width: 860px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: center;
    padding: 56px 20px 20px;
  }

  .hero-content {
    padding-top: 0;
    order: -1;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-media img {
    height: 480px;
  }
}

/* ---------- trust strip ---------- */

.trust-strip {
  max-width: var(--max);
  margin: 34px auto 0;
  padding: 0 20px;
}

.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  display: grid;
  gap: 14px;
  background: var(--emerald-deep);
  color: #f4ede3;
  border-radius: var(--radius-md);
}

.trust-strip li {
  font-size: 0.86rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

.trust-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 8px;
  flex-shrink: 0;
}

@media (min-width: 760px) {
  .trust-strip ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- section ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 20px;
}

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

.section-head h2 {
  font-size: 1.5rem;
  line-height: 1.44;
  font-weight: 700;
  margin-top: 6px;
}

.section-head .lead {
  margin-top: 14px;
}

/* ---------- concern rows ---------- */

.concern-rows {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.concern-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card);
}

.concern-row:nth-child(even) {
  background: var(--emerald-pale);
}

.concern-row + .concern-row {
  border-top: 1px solid var(--line-soft);
}

.concern-mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--coral);
  line-height: 1;
  flex-shrink: 0;
}

.concern-row p {
  font-size: 0.94rem;
  color: var(--ink);
  padding-top: 4px;
}

/* ---------- stepper ---------- */

.stepper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 46px;
}

.stepper::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.step {
  position: relative;
}

.step-num {
  position: absolute;
  left: -46px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.step-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .stepper {
    padding-left: 60px;
  }

  .stepper::before {
    left: 23px;
  }

  .step-num {
    left: -60px;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .step-body {
    padding: 26px 28px;
  }
}

/* ---------- bleed split ---------- */

.bleed-split {
  position: relative;
}

.bleed-split .bleed-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.bleed-split .bleed-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.bleed-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: -46px;
  margin-left: 16px;
  margin-right: 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.bleed-card h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.feature-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-row span {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--coral-deep);
  font-size: 0.86rem;
  padding: 4px 10px;
  border: 1px solid var(--coral-pale);
  background: var(--coral-pale);
  border-radius: 999px;
  flex-shrink: 0;
}

.feature-row h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.feature-row p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .bleed-split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0 -60px;
    align-items: center;
  }

  .bleed-split.reverse {
    direction: rtl;
  }

  .bleed-split.reverse > * {
    direction: ltr;
  }

  .bleed-split .bleed-media img {
    height: 420px;
  }

  .bleed-card {
    margin: 0;
    padding: 40px;
    z-index: 2;
  }

  .bleed-split:not(.reverse) .bleed-card {
    margin-left: -70px;
  }

  .bleed-split.reverse .bleed-card {
    margin-right: -70px;
  }
}

/* ---------- card grid (guide/consult pages) ---------- */

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.info-card .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--emerald-pale);
  color: var(--emerald-deep);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- quote band ---------- */

.quote-band {
  background: var(--emerald-deep);
  color: #f6f1e7;
  padding: 56px 20px;
  text-align: center;
}

.quote-band blockquote {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.24rem;
  font-style: italic;
  line-height: 1.6;
  color: #fdf9f2;
}

.quote-band .lead {
  max-width: 560px;
  margin: 18px auto 0;
  color: #d7e3dc;
}

.quote-band .section-actions {
  justify-content: center;
}

.quote-band .btn-ghost {
  border-color: rgba(253, 249, 242, 0.4);
  color: #fdf9f2;
}

/* ---------- faq ---------- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 2px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--emerald);
  flex-shrink: 0;
}

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

.faq-item p {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- checklist (상담문의) ---------- */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.check-row .num {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--emerald);
  font-size: 1rem;
  flex-shrink: 0;
}

.check-row h3 {
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.check-row p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- footer / floating cta ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 20px 110px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.floating-cta a {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  border: 1px solid var(--line);
  background: var(--card);
}

.floating-cta a:first-child {
  background: var(--emerald);
  color: #fff;
  border-color: transparent;
}

.floating-cta a:last-child {
  background: var(--coral);
  color: #fff;
  border-color: transparent;
}

@media (min-width: 760px) {
  .footer {
    padding-bottom: 30px;
  }

  .floating-cta {
    left: auto;
    right: 24px;
    bottom: 24px;
    flex-direction: column;
    width: 168px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 10px;
  }
}

/* ---------- breadcrumb (sub pages) ---------- */

.breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 8px;
}

.page-hero h1 {
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 700;
}

.page-hero .lead {
  margin-top: 14px;
  max-width: 620px;
}

@media (min-width: 760px) {
  .page-hero {
    padding: 46px 20px 12px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

/* ---------- badges (전국학원 local pages) ---------- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.badge-row span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--coral-pale);
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- media row (center photo + map, no-crop) ---------- */

.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.media-row .frame {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.media-row .frame img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

/* ---------- answer list (AEO) ---------- */

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-item {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
}

.answer-item .q {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
}

.answer-item .q::before {
  margin-right: 8px;
  color: var(--coral-deep);
  content: "Q.";
  font-family: var(--serif);
}

.answer-item .a {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.9rem;
}

/* ---------- chip list (target schools) ---------- */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip-list span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
}

/* ---------- review grid ---------- */

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

.review-card {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
}

.review-card .stars {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.review-card p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 13.5px;
}

/* ---------- compare table (desktop 3-col, mobile 2-col card) ---------- */

.compare-table {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
}

.compare-head {
  background: var(--emerald-deep);
}

.compare-head > div {
  padding: 14px 16px;
  color: rgba(253, 249, 242, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.03em;
}

.compare-head .ours {
  color: #fdf9f2;
}

.compare-row {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.compare-row > div {
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.compare-row .other {
  color: var(--ink-faint);
}

.compare-row .label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.compare-row .ours {
  color: var(--ink);
  font-weight: 700;
  background: var(--coral-pale);
}

/* ---------- fee table ---------- */

.fee-table-wrap {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
}

.fee-caption {
  margin-bottom: 14px;
  color: var(--coral-deep);
  font-size: 12.5px;
  font-weight: 800;
}

.fee-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.fee-table th,
.fee-table td {
  padding: 12px 6px;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  word-break: keep-all;
  border-bottom: 1px solid var(--line);
}

.fee-table th:first-child,
.fee-table td:first-child {
  width: 22%;
}

.fee-table thead th {
  background: var(--emerald-deep);
  color: #fdf9f2;
  font-weight: 700;
  font-size: 12px;
}

.fee-table thead th.highlight {
  background: var(--coral);
}

.fee-table tbody td.highlight {
  background: var(--coral-pale);
  color: var(--coral-deep);
  font-weight: 800;
}

.fee-table tbody tr:last-child td {
  border-bottom: none;
}

.fee-note {
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- link grid (internal links / directory) ---------- */

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

.link-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
}

.link-grid a strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.link-grid a small {
  color: var(--ink-faint);
  font-size: 12px;
}

.link-grid a.cross-link {
  background: var(--coral-pale);
  border-color: transparent;
}

.link-grid a.cross-link strong,
.link-grid a.cross-link small {
  color: var(--coral-deep);
}

/* ---------- directory (hub pages) ---------- */

.region-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.region-jump a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--coral-pale);
  color: var(--coral-deep);
  font-size: 12.5px;
  font-weight: 800;
}

.region-block {
  scroll-margin-top: 90px;
  margin-top: 16px;
  padding: 22px clamp(16px, 4vw, 26px);
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
}

.region-block:first-of-type {
  margin-top: 0;
}

.region-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.region-title h3 {
  color: var(--ink);
}

.region-title span {
  color: var(--ink-faint);
  font-size: 12.5px;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

.district-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 800;
}

.district-title small {
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 11px;
}

.local-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.local-button-grid a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.local-button-grid a:hover {
  background: var(--coral-pale);
  color: var(--coral-deep);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.category-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
}

.category-grid a strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.category-grid a small {
  color: var(--ink-faint);
  font-size: 12.5px;
}

/* ---------- responsive (category components) ---------- */

@media (max-width: 900px) {
  .review-grid,
  .link-grid,
  .category-grid,
  .district-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .compare-table {
    background: none;
    border: none;
  }

  .compare-head {
    display: none;
  }

  .compare-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "label label" "other ours";
    gap: 1px;
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
  }

  .compare-row:last-child {
    margin-bottom: 0;
  }

  .compare-row .label {
    grid-area: label;
  }

  .compare-row .other {
    grid-area: other;
    font-size: 12px;
  }

  .compare-row .ours {
    grid-area: ours;
    font-size: 12px;
  }

  .compare-row .other::before,
  .compare-row .ours::before {
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 800;
  }

  .compare-row .other::before {
    content: "일반 학원";
    color: var(--ink-faint);
  }

  .compare-row .ours::before {
    content: "이곳";
    color: var(--coral-deep);
  }
}
