/* 정진교육 — site styles.
   One promise per page, set in heavy Pretendard; the accent word is the same gothic in cherry.
   Signature: the planner tab (.eyebrow, a ring hole like the spiral planner on the company's own leaflet cover).
   Colour lives in the photographs; the UI stays white / warm grey with a single cherry accent. */
:root {
  --ink: #1d1a1c;
  --ink-2: #4f494d;
  --ink-3: #615b5f;
  --paper: #ffffff;
  --wash: #f2f0ed;
  --rule: #e2deda;
  --cherry: #a3173f;
  --cherry-deep: #86112f;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  /* editor tokens (_data/theme.json overrides these) */
  --fs-body: 17px;
  --lh-body: 1.72;
  --head-scale: 1;
  --head-track: -0.035em;
  --sec-scale: 1;
  --card-scale: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/var(--lh-body) var(--sans); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

/* the accent word: same gothic, cherry */
.k { color: var(--cherry); }

/* planner tab: the label that opens every section */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 15px 6px 11px; background: var(--ink);
  border-radius: 8px 8px 8px 0; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); }

/* ------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 30px; min-height: 76px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; flex: none; }
.brand svg { display: none; }
.brand b { font: 700 21px/1 var(--sans); letter-spacing: -0.02em; }
.brand small { font: 600 11px/1 var(--sans); letter-spacing: 0.06em; color: var(--ink-3); margin-left: 7px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 10px; }
.nav a:hover { color: var(--cherry); }
.nav a[aria-current="page"] { color: var(--cherry); box-shadow: inset 0 -2px 0 var(--cherry); }
.head-call { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: none; }
.head-call a { text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.head-call svg { width: 16px; height: 16px; }
.head-call .pill-sm { background: var(--cherry); color: #fff; border-radius: 999px; padding: 10px 20px; }
.head-call .pill-sm:hover { background: var(--cherry-deep); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 999px; width: 46px; height: 42px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .head-call { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--rule); padding: 8px var(--gut) 18px; }
  .nav.open { display: flex; max-height: calc(100dvh - 76px); overflow-y: auto; }
  .nav a { padding: 13px 4px; font-size: 17px; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-call { display: block; margin-top: 14px; border: 0; text-align: center; background: var(--cherry); color: #fff; border-radius: 999px; padding: 13px; }
  body.menu-open .callbar { display: none; }
}
@media (min-width: 1081px) { .nav .nav-call { display: none; } }

/* ------------------------------------------------------------ buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-call { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.btn-call:hover { background: var(--cherry-deep); border-color: var(--cherry-deep); }
.btn-kakao, .btn-line { background: #fff; color: var(--ink); }
.btn-kakao:hover, .btn-line:hover { background: var(--wash); }
.more { font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.more:hover { color: var(--cherry); border-color: var(--cherry); }

/* ------------------------------------------------------------ home hero: one classroom, before / after */
.hero { padding: clamp(36px, 5vw, 68px) 0 clamp(8px, 1.5vw, 24px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.hero-title { font: 800 calc(clamp(38px, 4.8vw, 66px) * var(--head-scale))/1.17 var(--sans); letter-spacing: calc(var(--head-track) - 0.01em); margin: 0 0 24px; }
.hero-lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 29em; margin-bottom: 30px; }
.hero-proof { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-3); line-height: 1.75; }
.hero-proof b { color: var(--ink); font-weight: 700; }
.hero-stage { margin: 46px 0 0; }
.hero-frame { position: relative; aspect-ratio: 4 / 3; border: 1.5px solid var(--ink); background: var(--wash); }
/* spiral rings along the top, like the planner on the leaflet cover */
.hero-frame::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1.5px; height: 24px; z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24'%3E%3Cpath d='M16 0v8.5a7 7 0 1 0 8 0V0' fill='%23fff' stroke='%231d1a1c' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 40px 24px space no-repeat; }
.hero-slides { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; overflow: hidden; }
.hero-slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides li.on { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-stage:not(.gl-on) .hero-canvas { display: none; }
.hero-stage.gl-on .hero-slides { opacity: 0; }
html:not(.js) .hero-toggle { display: none; }
html:not(.js) .hero-slides li { opacity: 0; }
html:not(.js) .hero-slides li:last-child { opacity: 1; }
.hero-toggle { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; gap: 2px; padding: 4px; background: rgba(255, 255, 255, 0.96); border-radius: 999px; box-shadow: 0 1px 6px rgba(29, 26, 28, 0.12); }
.hero-toggle button { border: 0; background: none; border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.hero-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hero-cap { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-3); }
.hero-cap a { color: var(--ink); font-weight: 600; }
.hero-cap a:hover { color: var(--cherry); }
@media (max-width: 900px) {
  .hero { padding-top: 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stage { margin-top: 0; }
}

/* ------------------------------------------------------------ sections */
.sec { padding: calc(clamp(56px, 8vw, 104px) * var(--sec-scale)) 0; }
.sec-wash { background: var(--wash); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.sec-head h2 { font: 700 calc(clamp(28px, 3.4vw, 40px) * var(--head-scale))/1.3 var(--sans); letter-spacing: var(--head-track); }
.sec-head p { margin: 10px 0 0; color: var(--ink-3); max-width: 42em; }
.sec-head .eyebrow { margin: 0 0 14px; color: #fff; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab { border: 1px solid var(--rule); background: #fff; border-radius: 999px; cursor: pointer; padding: 8px 18px; font-weight: 600; font-size: 15px; }
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab .n { font-weight: 400; opacity: 0.7; margin-left: 4px; font-size: 13px; }
.count { font-size: 15px; color: var(--ink-3); margin: -10px 0 18px; }

/* ------------------------------------------------------------ cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: calc(40px * var(--card-scale)) calc(26px * var(--card-scale)); }
.pcard { display: flex; flex-direction: column; text-decoration: none; }
.pcard .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.pcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pcard:hover .ph img { transform: scale(1.035); }
.pcard .tag { display: none; }
.pcard .tx { padding-top: 16px; }
.pcard h2, .pcard h3 { font: 600 19px/1.4 var(--sans); letter-spacing: -0.02em; margin-bottom: 4px; }
.pcard p { margin: 0; font-size: 15.5px; color: var(--ink-3); line-height: 1.6; }
.pcard .sea { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 13.5px; color: var(--cherry); }
.pcard:hover :is(h2, h3) { color: var(--cherry); }

.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: calc(34px * var(--card-scale)) calc(22px * var(--card-scale)); }
.bcard { display: flex; flex-direction: column; text-decoration: none; }
.bcard .ph { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--wash); }
.bcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bcard .ph.contain { background: #fff; outline: 1px solid var(--rule); outline-offset: -1px; }
.bcard .ph.contain img { object-fit: contain; padding: 8px; }
.bcard:hover .ph img { transform: scale(1.035); }
.bcard .tx { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.bcard h2, .bcard h3 { font: 600 16.5px/1.45 var(--sans); letter-spacing: -0.015em; }
.bcard:hover :is(h2, h3) { color: var(--cherry); }
.size { font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bcard .meta { font-size: 14px; color: var(--ink-3); }
.badge { display: inline-block; width: fit-content; font-size: 13px; font-weight: 600; color: var(--cherry); }
.badge.out { color: var(--ink-3); }

/* ------------------------------------------------------------ home: how it works */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 2px solid var(--ink); }
.how li { counter-increment: s; padding: 24px 24px 4px 0; }
.how li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.how li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 14px; font-weight: 800; font-size: 15px; color: var(--cherry); font-variant-numeric: tabular-nums; }
.how h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.how p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.how p b { color: var(--ink); }
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr 1fr; }
  .how li, .how li + li { padding: 20px 20px 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .how li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .how { grid-template-columns: 1fr; }
  .how li, .how li + li, .how li:nth-child(even) { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-left: 0; }
  .how li::before { grid-row: span 2; margin: 5px 0 0; }
  .how h3 { font-size: 18px; margin-bottom: 4px; }
}

/* ------------------------------------------------------------ home: this season + the year */
.season-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.season-panel .rest { display: grid; gap: 20px; }
.scard { display: grid; text-decoration: none; }
.scard .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rule); }
.scard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.scard:hover .ph img { transform: scale(1.035); }
.scard h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.scard p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }
.scard.big .tx { padding-top: 18px; }
.scard.big h3 { font-size: 25px; font-weight: 800; }
.scard:not(.big) { grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: center; }
.scard:hover h3 { color: var(--cherry); }
.year { margin-top: 48px; padding-top: 22px; border-top: 2px solid var(--ink); }
.year h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.year-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.year-list > li > .yh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 0 10px; border-bottom: 3px solid var(--rule); color: inherit; text-decoration: none; }
.year-list > li > .yh b { font-size: 19px; font-weight: 800; }
.year-list > li > .yh span { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.year-list > li > .yh:hover b { color: var(--cherry); }
.year-list > li.now > .yh { border-bottom-color: var(--cherry); }
.year-list > li.now > .yh b { color: var(--cherry); }
.year-list ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; font-size: 15px; }
.year-list ul a { display: block; padding: 2.5px 0; text-decoration: none; color: var(--ink-2); }
.year-list ul a:hover { color: var(--cherry); text-decoration: underline; }
.year-all { margin: 22px 0 0; font-size: 15px; color: var(--ink-3); }
.year-all a { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) {
  .season-panel { grid-template-columns: 1fr; }
  .scard:not(.big) { grid-template-columns: 128px minmax(0, 1fr); gap: 14px; }
  .year-list { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
}

/* ------------------------------------------------------------ home: photos from the day */
.field { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.field li:first-child { grid-column: span 2; grid-row: span 2; }
.field a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--rule); text-decoration: none; }
.field img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.field a:hover img { transform: scale(1.035); }
.field span { position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: #fff; font-size: 13.5px; font-weight: 700; }
.field a:hover span { color: var(--cherry); }
@media (max-width: 760px) {
  .field { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); }
  .field li:first-child { grid-column: auto; grid-row: auto; }
  .field li { scroll-snap-align: start; }
  .field img { aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------------ home: everything else we prepare */
.biz-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.biz-tiles a { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 176px; padding: 26px 24px 22px; background: #fff; border-top: 2px solid var(--ink); text-decoration: none; }
.biz-tiles b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.biz-tiles span { font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }
.biz-tiles a::after { content: "→"; margin-top: auto; font-weight: 800; color: var(--ink); }
.biz-tiles a:hover b { color: var(--cherry); }
@media (max-width: 900px) { .biz-tiles { grid-template-columns: 1fr 1fr; } .biz-tiles a { min-height: 150px; } }
@media (max-width: 480px) {
  .biz-tiles { gap: 10px; }
  .biz-tiles a { min-height: 0; padding: 18px 16px 16px; gap: 6px; }
  .biz-tiles b { font-size: 17px; }
  .biz-tiles span { font-size: 14px; }
}

/* ------------------------------------------------------------ contact band (every page) */
.contact { border-top: 1px solid var(--rule); background: var(--wash); }
.contact .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: calc(clamp(48px, 6vw, 80px) * var(--sec-scale)); padding-bottom: calc(clamp(48px, 6vw, 80px) * var(--sec-scale)); }
.contact h2 { font: 700 calc(clamp(28px, 3.4vw, 40px) * var(--head-scale))/1.3 var(--sans); letter-spacing: var(--head-track); margin-bottom: 12px; }
.contact p { color: var(--ink-3); margin: 0; }
.contact .tel { font: 600 clamp(28px, 3vw, 36px)/1.1 var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; display: block; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--ink); }
.contact .sub { font-size: 15px; }
.contact.cherry { background: var(--cherry); color: #fff; border-top: 0; }
.contact.cherry .k { color: #fff; }
.contact.cherry .eyebrow { background: var(--paper); color: var(--cherry); }
.contact.cherry .eyebrow::before { background: var(--cherry); }
.contact.cherry :focus-visible { outline-color: #fff; }
.contact.cherry p { color: rgba(255, 255, 255, 0.86); }
.contact.cherry .tel { color: #fff; font-weight: 800; font-size: clamp(34px, 4.2vw, 54px); }
.contact.cherry .btn-call { background: #fff; border-color: #fff; color: var(--cherry); }
.contact.cherry .btn-call:hover { background: var(--wash); border-color: var(--wash); }
.contact.cherry .btn-kakao { background: transparent; border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.contact.cherry .btn-kakao:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ detail pages */
.crumbs { font-size: 14px; color: var(--ink-3); padding-top: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cherry); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.phead { padding-top: 18px; padding-bottom: 34px; }
.phead .season-pill { display: inline-block; font-weight: 700; font-size: 15px; color: var(--cherry); margin-bottom: 10px; background: none !important; }
.phead h1 { font: 700 calc(clamp(34px, 4.6vw, 54px) * var(--head-scale))/1.25 var(--sans); letter-spacing: calc(var(--head-track) - 0.005em); margin-bottom: 14px; }
.phead h1.prod { font-size: calc(clamp(30px, 4vw, 46px) * var(--head-scale)); }
.phead h1.long { font-size: calc(clamp(24px, 3vw, 34px) * var(--head-scale)); line-height: 1.35; letter-spacing: -0.025em; }
.phead .tagline { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 0 0 12px; max-width: 44em; }
.phead .tagline .size { font-size: inherit; color: var(--ink); font-weight: 600; }
.stickers { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 6px 0 0; padding: 0; list-style: none; }
.stickers li { font-weight: 600; font-size: 15px; color: var(--ink-2); padding-left: 14px; position: relative; }
.stickers li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--cherry); }

.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-main > * + * { margin-top: 32px; }
.cover { background: var(--wash); overflow: hidden; }
.cover img { width: 100%; }
.intro-h { font: 700 22px/1.4 var(--sans); color: var(--cherry); margin-bottom: 12px; letter-spacing: -0.01em; }
.intro p { font-size: 18px; margin-bottom: 0.6em; }
.box { border-top: 1px solid var(--ink); padding: 18px 0 4px; }
.box h2 { font-size: 18px; margin-bottom: 12px; }
.box ul { margin: 0; padding-left: 1.2em; }
.box li + li { margin-top: 6px; }
.box.tint { background: var(--wash); border-top: 0; padding: 22px 24px; }
.aside { position: sticky; top: 100px; display: grid; gap: 22px; }
.cta-box { background: var(--wash); padding: 24px; }
.cta-box h2 { font-size: 20px; margin-bottom: 6px; }
.cta-box p { font-size: 15px; color: var(--ink-3); margin-bottom: 16px; }
.cta-box .btns { flex-direction: column; }
.cta-box .btn { justify-content: center; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 15.5px; }
.facts dt { font-weight: 600; color: var(--ink-3); }
.facts dd { margin: 0; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .aside { position: static; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--wash); cursor: zoom-in; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery button:hover img { transform: scale(1.05); }
.longimg { background: #fff; max-width: 860px; }
.longimg img { width: 100%; }
.muted { color: var(--ink-3); font-size: 15px; }
.related h2 { font: 700 calc(clamp(24px, 2.8vw, 32px) * var(--head-scale))/1.3 var(--sans); letter-spacing: var(--head-track); margin-bottom: 22px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(24, 20, 22, 0.95); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lb img { max-width: min(1200px, 100%); max-height: 100%; object-fit: contain; background: #fff; }
.lb button { position: absolute; background: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 22px; cursor: pointer; line-height: 1; }
.lb .x { top: 12px; right: 12px; }
.lb .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb .cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

/* ------------------------------------------------------------ guide / about */
.prose > * { max-width: 760px; }
.prose > .bgrid { max-width: none; }
.prose h2 { font: 700 calc(clamp(24px, 2.8vw, 32px) * var(--head-scale))/1.3 var(--sans); letter-spacing: var(--head-track); margin: 52px 0 16px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--rule); margin: 0 !important; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 800 18px/1.3 var(--sans); color: var(--cherry); font-variant-numeric: tabular-nums; }
.steps b { display: block; }
.prose .area-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.area-list li { border: 1px solid var(--rule); border-radius: 999px; padding: 5px 16px; font-weight: 600; margin: 0 !important; }

/* ------------------------------------------------------------ footer */
.site-foot { background: var(--ink); color: #cfcacd; font-size: 14.5px; padding: 56px 0 64px; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.foot-brand b { font: 700 22px/1 var(--sans); color: #fff; letter-spacing: -0.02em; }
.foot-brand p { margin-top: 12px; }
.site-foot h2 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-foot ul a { text-decoration: none; }
.site-foot ul a:hover { text-decoration: underline; }
.biz { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 13px; color: #b3adb0; line-height: 1.8; }
.biz span { display: inline-block; margin-right: 14px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* mobile bottom call bar */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--rule); }
  .callbar a { text-align: center; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 11px 6px; font-size: 15.5px; }
  .callbar .c1 { background: var(--cherry); color: #fff; }
  .callbar .c2 { border: 1px solid var(--ink); }
  body { padding-bottom: 74px; }
  html { scroll-padding-bottom: 80px; }
}
@media (max-height: 500px) { .site-head { position: static; } .callbar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .site-head, .callbar, .contact, .site-foot, .aside .btns, .hero-toggle, .hero-canvas { display: none; } .hero-stage.gl-on .hero-slides { opacity: 1; } }

/* theme (편집기) */
:root{--fs-body:17px;--lh-body:1.72;--head-scale:1;--head-track:-0.035em;--sec-scale:1;--card-scale:1;--cherry:#a3173f;--wash:#f2f0ed;}
