/* ===== 도장 안내 홈페이지 공용 스타일 ===== */
:root {
  --brand: #2f6b55;
  --brand-deep: #1d4a3a;
  --accent: #e08a3c;
  --tint: #eef5f0;
  --on-brand: #fff;
  --ink: #16191d;
  --ink-2: #3a4049;
  --muted: #69717d;
  --line: #e3e6eb;
  --bg: #fff;
  --bg-alt: var(--tint);
  --card: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 84px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }
.muted { color: var(--muted); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px -6px var(--brand); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--accent { background: var(--accent); color: #1a1a1a; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--brand); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 36px; font-size: 17px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btns--center { justify-content: center; }
.link-arrow { font-weight: 700; color: var(--brand); text-decoration: none; }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { text-decoration: underline; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.linkbtn.danger { color: #c0392b; }

/* ----- top notice & header ----- */
.topnotice { background: var(--brand-deep); color: #fff; font-size: 13px; padding: 9px 0; }
.topnotice strong { display: inline-block; background: var(--accent); color: #1a1a1a; border-radius: 4px; padding: 0 6px; margin-right: 6px; font-size: 12px; }
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hd.is-scrolled { border-color: var(--line); box-shadow: 0 4px 16px rgba(0, 0, 0, .04); }
.hd__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.logo__mark { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo__txt strong { font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo__txt small { font-size: 12px; color: var(--muted); }
.gnb { display: flex; align-items: center; gap: 22px; }
.gnb ul { list-style: none; display: flex; gap: 4px; }
.gnb ul a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.gnb ul a:hover { background: var(--tint); color: var(--brand); }
.gnb ul a[aria-current="page"] { color: var(--brand); background: var(--tint); }
.hd__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.hd__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hd.is-open .hd__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd.is-open .hd__toggle span:nth-child(2) { opacity: 0; }
.hd.is-open .hd__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- hero ----- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(1000px 500px at 85% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
  linear-gradient(135deg, var(--brand-deep), var(--brand)); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.hero__in { position: relative; z-index: 1; padding: 96px 20px 104px; display: grid; gap: 40px; }
.hero__in--split { grid-template-columns: 1.5fr 1fr; align-items: center; }
.hero .eyebrow { color: rgba(255, 255, 255, .8); }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; }
.hero__lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .88); max-width: 640px; }
.hero .btn--primary { background: #fff; color: var(--brand-deep); box-shadow: none; }
.hero .btn--primary:hover { background: var(--tint); }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero__aside { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); }
.hero__aside h2 { font-size: 20px; margin-bottom: 10px; }
.hero__aside p { color: rgba(255, 255, 255, .85); font-size: 15px; margin-bottom: 20px; }
.hero__aside--notice { background: #fff; color: var(--ink); border: 0; border-left: 6px solid var(--accent); }
.hero__aside--notice h2 { color: var(--brand-deep); }
.hero__aside--notice p { color: var(--ink-2); margin: 0; }
.hero--image { background: #111; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero--image::after { background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.2)); background-size: auto; }
.hero--image .hero__in { padding-top: 120px; padding-bottom: 128px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 600; }

/* ----- page head ----- */
.pagehead { background: var(--tint); padding: 72px 0 60px; border-bottom: 1px solid var(--line); }
.pagehead h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.pagehead__lead { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 760px; }
.pagehead--center { text-align: center; padding: 96px 0; }
.pagehead--center .pagehead__lead { margin-left: auto; margin-right: auto; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; margin: 0 auto 24px; }

/* ----- sections ----- */
.sec { padding: 88px 0; }
/* 같은 배경의 일반 섹션이 이어질 때만 위 여백을 줄인다 */
.sec:not(.sec--alt):not(.sec--brand) + .sec:not(.sec--alt):not(.sec--brand) { padding-top: 0; }
.sec--alt { background: var(--bg-alt); }
.sec--brand { background: var(--brand-deep); color: #fff; padding: 56px 0; }
.sec__head { margin-bottom: 40px; max-width: 780px; }
.sec__head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.sec__intro { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.more { margin-top: 28px; }

/* cards */
.cards { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--ink-2); font-size: 15px; }
.card--link:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.card--link h3::after { content: ' →'; color: var(--brand); }
.card__tag { align-self: flex-start; font-size: 12px; font-weight: 800; color: var(--brand); background: var(--tint); border-radius: 6px; padding: 3px 9px; letter-spacing: .02em; }
.sec--alt .card__tag { background: var(--bg); }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.card .ticks { margin-top: 6px; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.step__no { font-size: 13px; font-weight: 800; color: var(--on-brand); background: var(--brand); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* tiers */
.tiers { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(var(--n, 3), 1fr); }
.tiers-2 { --n: 2; } .tiers-3 { --n: 3; } .tiers-4 { --n: 4; }
.tier { position: relative; border-radius: var(--radius); padding: 28px 24px 30px; background: color-mix(in srgb, var(--brand) calc(var(--lv) * 1%), var(--tint)); color: var(--ink); }
.tier--1 { --lv: 8; } .tier--2 { --lv: 28; } .tier--3 { --lv: 62; color: #fff; } .tier--4 { --lv: 100; color: #fff; }
.tiers-3 .tier--3 { --lv: 100; }
.tiers-3 .tier--2 { --lv: 45; }
.tier:not(:last-child)::after { content: ''; position: absolute; right: -13px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); transform: translateY(-50%) rotate(45deg); z-index: 2; }
.tier__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; opacity: .75; }
.tier h3 { font-size: 22px; font-weight: 800; margin: 6px 0 8px; }
.tier p { font-size: 15px; opacity: .92; }

/* flow */
.flow { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; counter-reset: f; }
.flow li { position: relative; padding: 24px 24px 24px 0; border-top: 4px solid var(--brand); margin-right: 18px; }
.flow li::before { counter-increment: f; content: counter(f); position: absolute; top: -16px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.flow h3 { font-size: 18px; margin: 12px 0 6px; }
.flow p { font-size: 15px; color: var(--ink-2); }

/* split */
.split { display: grid; gap: 48px; }
.split--img { grid-template-columns: 1.1fr 1fr; align-items: center; }
.split__txt { display: grid; gap: 16px; font-size: 17px; color: var(--ink-2); max-width: 760px; }
.split__txt .ticks { margin-top: 8px; }
.split__img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* stats */
.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stats li { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--accent); padding-left: 18px; }
.stats strong { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.stats span { font-size: 14px; opacity: .8; }

/* cta band */
.ctaband { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--brand-deep); color: #fff; border-radius: calc(var(--radius) + 6px); padding: 44px 48px; }
.ctaband h2 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; }
.ctaband p { margin-top: 8px; color: rgba(255, 255, 255, .82); }
.ctaband .btns { margin-top: 0; }
.ctaband .btn--primary { background: #fff; color: var(--brand-deep); box-shadow: none; }
.ctaband .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }

/* callout */
.callout { border-radius: var(--radius); padding: 22px 26px; background: var(--tint); border-left: 5px solid var(--brand); display: grid; gap: 8px; justify-items: start; }
.callout h3 { font-size: 17px; }
.callout p { color: var(--ink-2); font-size: 15px; }
.callout--warn { background: #fff8e8; border-left-color: #e0a100; }
.callout--warn h3 { color: #8a5a00; }
.sec--alt .callout--info { background: var(--bg); }

/* table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--brand-deep); color: #fff; font-weight: 700; font-size: 14px; }
.tbl tbody th { font-weight: 700; white-space: nowrap; color: var(--ink); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl td:last-child { color: var(--ink-2); }

/* faq */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details, .postlist details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary, .postlist summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; position: relative; padding-right: 52px; }
.faq summary::-webkit-details-marker, .postlist summary::-webkit-details-marker { display: none; }
.faq summary::after, .postlist summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after, .postlist details[open] summary::after { content: '−'; }
.faq__a, .post__body { padding: 0 22px 20px; color: var(--ink-2); display: grid; gap: 10px; }

/* checklist */
.checklist { list-style: none; display: grid; gap: 12px; counter-reset: c; }
.checklist li { counter-increment: c; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px 18px 64px; position: relative; color: var(--ink-2); }
.checklist li::before { content: counter(c); position: absolute; left: 20px; top: 16px; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 14px; display: grid; place-items: center; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* virtues (site 1) */
.virtues { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.virtue { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.virtue__head { display: flex; gap: 16px; align-items: flex-start; }
.virtue__no { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; }
.virtue h3 { font-size: 22px; }
.virtue h3 small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.virtue__head p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.virtue__obs { display: grid; gap: 10px; margin: 0; }
.virtue__obs div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 14px; background: var(--tint); border-radius: var(--radius-sm); }
.virtue__obs dt { font-weight: 800; color: var(--brand-deep); font-size: 14px; }
.virtue__obs dd { margin: 0; font-size: 15px; }
.virtue__home { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }

/* report */
.report { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); max-width: 880px; overflow: hidden; }
.report__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 32px; background: var(--brand-deep); color: #fff; }
.report__kicker { font-size: 13px; opacity: .75; font-weight: 600; }
.report__head h3 { font-size: 22px; margin-top: 4px; }
.report__head dl { display: grid; gap: 4px; margin: 0; font-size: 14px; }
.report__head dl div { display: flex; gap: 10px; }
.report__head dt { opacity: .7; }
.report__head dd { margin: 0; font-weight: 600; }
.report__stamp { position: absolute; right: 20px; top: 20px; transform: rotate(8deg); border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 6px; display: none; }
.report__label { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .04em; margin-bottom: 10px; }
.report__virtues { display: grid; }
.rv { padding: 22px 32px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.rv__top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.rv h4 { font-size: 18px; }
.rv p { color: var(--ink-2); font-size: 15px; }
.rv__stages { list-style: none; display: flex; gap: 4px; }
.rv__stages li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #f1f3f5; color: #9aa1aa; font-weight: 600; }
.rv__stages li.on { background: color-mix(in srgb, var(--brand) 18%, #fff); color: var(--brand-deep); }
.rv__stages li.now { background: var(--brand); color: var(--on-brand); }
.report__track, .report__skills, .report__summary { padding: 22px 32px; border-bottom: 1px solid var(--line); }
.report__summary { border-bottom: 0; background: var(--tint); }
.report__summary p:last-child { font-size: 16px; color: var(--ink); }
.report__skills dl { margin: 0; display: grid; gap: 10px; }
.report__skills dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.report__skills dt { font-weight: 700; }
.report__skills dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.ptrack { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ptrack li { font-size: 13px; padding: 5px 10px; border-radius: 6px; background: #f1f3f5; color: #9aa1aa; font-weight: 600; }
.ptrack li.is-done { background: color-mix(in srgb, var(--brand) 16%, #fff); color: var(--brand-deep); }
.ptrack li.is-now { background: var(--brand); color: var(--on-brand); }
.report__now { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* grades (site 2) */
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.grade { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.grade header { padding: 26px 24px; color: #fff; background: var(--g); }
.grade--1 { --g: #6b8fd6; } .grade--2 { --g: #3c5aa6; } .grade--3 { --g: linear-gradient(135deg, #b88a2e, #d9b65c); }
.grade header span { font-size: 12px; font-weight: 800; letter-spacing: .08em; opacity: .85; }
.grade header h3 { font-size: 28px; font-weight: 800; margin: 4px 0 8px; }
.grade header p { font-size: 15px; opacity: .92; }
.grade .ticks { padding: 22px 24px; flex: 1; }
.grade__next { margin: 0 24px 24px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 700; color: var(--brand); }

/* measures (site 3) */
.measures { display: grid; gap: 16px; }
.measure { display: grid; grid-template-columns: 260px 1fr; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; align-items: start; }
.measure header { display: flex; align-items: center; gap: 14px; }
.measure__no { font-size: 28px; font-weight: 900; color: var(--brand); font-variant-numeric: tabular-nums; }
.measure h3 { font-size: 22px; }
.measure h3 small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.measure dl { margin: 0; display: grid; gap: 12px; }
.measure dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.measure dt { font-weight: 700; font-size: 14px; color: var(--brand-deep); }
.measure dd { margin: 0; color: var(--ink-2); }

/* profile (site 4) */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.profile__id { display: flex; gap: 16px; align-items: center; align-self: start; }
.profile__mark { width: 72px; height: 72px; border-radius: 20px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 30px; font-weight: 800; flex: none; }
.profile__id h3 { font-size: 22px; }
.profile__id p { color: var(--muted); font-size: 14px; }
.profile__quote { margin-top: 20px; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }

/* levels (site 4) */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.level { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.level header { background: var(--brand-deep); color: #fff; padding: 20px 22px; }
.level:nth-child(1) header { background: color-mix(in srgb, var(--brand) 55%, #555); }
.level:nth-child(2) header { background: color-mix(in srgb, var(--brand) 75%, #333); }
.level:nth-child(3) header { background: var(--brand); }
.level header span { font-size: 12px; font-weight: 800; letter-spacing: .08em; opacity: .8; }
.level header h3 { font-size: 20px; margin-top: 4px; }
.level dl { margin: 0; padding: 20px 22px; display: grid; gap: 14px; }
.level dt { font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.level dd { margin: 0; font-size: 15px; color: var(--ink-2); }

/* classes (site 5) */
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.class { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.class__tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.class h3 { font-size: 20px; }
.class__time { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.class__days { font-size: 14px; color: var(--muted); }
.class p:last-child { font-size: 15px; color: var(--ink-2); }

/* courses (site 8) */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.course { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; gap: 20px; }
.course--featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.course__dur { display: inline-block; font-size: 13px; font-weight: 800; color: var(--brand); background: var(--tint); padding: 4px 10px; border-radius: 6px; }
.course h3 { font-size: 26px; margin: 10px 0 6px; }
.course header p { font-size: 14px; color: var(--muted); }
.course .ticks { flex: 1; }

/* posts / boards */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.post__date { font-weight: 800; color: var(--brand); font-size: 15px; }
.post__date span { color: var(--ink-2); font-weight: 600; margin-left: 6px; }
.post h3 { font-size: 19px; }
.post__meta { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.post__meta div { display: flex; gap: 10px; }
.post__meta dt { color: var(--muted); min-width: 32px; }
.post__meta dd { margin: 0; }
.post .post__body { padding: 0; font-size: 15px; }
.post .btn { margin-top: auto; }
.post.is-closed { opacity: .6; }
.posts--schedule .post { border-top: 4px solid var(--brand); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #eceef1; color: var(--ink-2); }
.postlist { list-style: none; display: grid; gap: 10px; }
.postlist summary { display: flex; justify-content: space-between; gap: 16px; }
.postlist time { color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; }

/* ----- form ----- */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 40px; max-width: 880px; box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; align-content: start; }
.field--wide, .form__alert, .form__req { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 15px; }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.req { color: #d64545; }
.form__req { font-size: 13px; color: var(--muted); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=date], .form input[type=number], .form select, .form textarea,
.adm-form input:not([type=checkbox]), .adm-form textarea, .adm-inline input, .adm-inline select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #d3d8df; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s; }
.form textarea, .adm-form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form input:focus, .form select:focus, .form textarea:focus, .adm-form input:focus, .adm-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.has-error input, .has-error select, .has-error textarea { border-color: #d64545; }
.field__help { font-size: 13px; color: var(--muted); }
.field__err { font-size: 14px; color: #c62828; font-weight: 600; }
.form__alert { background: #fdecea; color: #a12622; border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.choices .choice { border: 1.5px solid #d3d8df; border-radius: var(--radius-sm); padding: 11px 16px; background: #fff; }
.choices .choice:has(input:checked) { border-color: var(--brand); background: var(--tint); color: var(--brand-deep); font-weight: 700; }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; flex: none; }
.consent { background: #f7f8fa; border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 12px; }
.consent h3 { font-size: 16px; }
.consent dl { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.consent dl div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; }
.consent dt { color: var(--muted); }
.consent dd { margin: 0; color: var(--ink-2); }
.consent__small { font-size: 13px; color: var(--muted); }
.consent .choice { font-weight: 700; }
.form__actions { display: flex; justify-content: center; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- prose ----- */
.prose { max-width: 820px; display: grid; gap: 14px; }
.prose h2 { font-size: 20px; margin-top: 18px; }
.prose p { color: var(--ink-2); }

/* ----- footer ----- */
.ft { background: #14171b; color: #b9c0ca; padding: 56px 0 40px; font-size: 14px; margin-top: 0; }
.ft__in { display: grid; gap: 22px; }
.ft__brand strong { color: #fff; font-size: 18px; margin-right: 10px; }
.ft__info { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; }
.ft__info div { display: flex; gap: 8px; }
.ft__info dt { color: #7f8893; }
.ft__info dd { margin: 0; }
.ft__note { font-size: 13px; color: #8e97a3; border-left: 3px solid var(--accent); padding-left: 12px; }
.ft__bottom { display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid #2a2f36; padding-top: 22px; }
.ft__bottom a { text-decoration: none; color: #d6dbe1; }
.ft__bottom span { margin-left: auto; color: #6c7581; }
main > .sec:last-child { padding-bottom: 96px; }

/* ----- error / portal ----- */
.plain { background: #f5f6f8; }
.errorpage { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 20px; justify-items: center; }
.errorpage h1 { font-size: 22px; }
.portal main { padding: 72px 20px; }
.portal h1 { font-size: 30px; margin-bottom: 28px; }
.portal__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.portal__list a { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; position: relative; padding-left: 76px; min-height: 92px; align-content: center; }
.portal__list a:hover { border-color: #888; }
.portal__no { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; background: #16191d; color: #fff; font-weight: 800; display: grid; place-items: center; }
.portal__list small { color: var(--muted); }

/* ===== 다크 테마 (5번 성인 클래스) ===== */
.theme-dark {
  --on-brand: #0f1113; --ink: #f2f4f6; --ink-2: #c3c9d1; --muted: #8b939e; --line: #2a2f36;
  --bg: #0f1113; --bg-alt: #16191d; --card: #181b20; --tint: #1d2127;
  background: var(--bg);
}
.theme-dark .hd { background: rgba(15, 17, 19, .9); }
.theme-dark .hd__toggle span { background: var(--ink); }
.theme-dark .gnb ul a:hover, .theme-dark .gnb ul a[aria-current="page"] { background: #1d2127; color: var(--brand); }
.theme-dark .eyebrow { color: var(--brand); }
.theme-dark .hero .btn--primary { background: var(--brand); color: #0f1113; }
.theme-dark .hero .btn--primary:hover { background: #d8ff5a; }
.theme-dark .hero h1 { text-transform: none; }
.theme-dark .btn--primary:hover { background: #d8ff5a; }
.theme-dark .tier { background: color-mix(in srgb, var(--brand) calc(var(--lv) * .35%), #181b20); color: var(--ink); border: 1px solid var(--line); }
.theme-dark .tier--3 { color: #0f1113; background: var(--brand); }
.theme-dark .tier__label { color: inherit; }
.theme-dark .ticks li::before { border-color: var(--brand); }
.theme-dark .step__no { color: #0f1113; }
.theme-dark .form { background: var(--card); box-shadow: none; }
.theme-dark .form input[type=text], .theme-dark .form input[type=tel], .theme-dark .form input[type=email], .theme-dark .form input[type=number], .theme-dark .form select, .theme-dark .form textarea { background: #0f1113; color: var(--ink); border-color: #3a4049; }
.theme-dark .choices .choice { background: #0f1113; border-color: #3a4049; }
.theme-dark .choices .choice:has(input:checked) { background: #23290f; color: var(--brand); border-color: var(--brand); }
.theme-dark .consent { background: #0f1113; }
.theme-dark .callout { background: #1d2127; }
.theme-dark .note { color: var(--muted); }
.theme-dark .pagehead { background: #16191d; }
.theme-dark .ft { background: #08090a; }
.theme-dark .split__txt { color: var(--ink-2); }
.theme-dark .class__time { color: var(--brand); }
.theme-dark .logo__mark { color: #0f1113; }
.theme-dark .done-mark { color: #0f1113; }
.theme-dark .form__alert { background: #3a1513; color: #ffb4ab; }
.theme-dark .topnotice strong { color: #0f1113; }

/* ===== admin ===== */
.admin { background: #f5f6f8; }
.adm-hd { background: #16191d; color: #fff; }
.adm-hd__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.adm-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.adm-logo .logo__mark { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
.adm-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.adm-nav a { color: #d6dbe1; text-decoration: none; }
.adm-nav a:hover { color: #fff; }
.adm-nav .linkbtn { color: #9aa3ad; }
.adm-main { padding-top: 36px; padding-bottom: 80px; display: grid; gap: 20px; align-content: start; }
.adm-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-title h1 { font-size: 24px; }
.adm-title .btns { margin: 0; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.adm-tabs a[aria-current="page"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.adm-list { display: grid; gap: 12px; }
.adm-item { background: #fff; border: 1px solid var(--line); border-left: 5px solid #ccd2da; border-radius: var(--radius-sm); padding: 18px 22px; display: grid; gap: 12px; }
.adm-item.st-new { border-left-color: #e05d44; }
.adm-item.st-in_progress { border-left-color: #e0a100; }
.adm-item.st-done { border-left-color: #3aa76d; }
.adm-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.adm-item header time { color: var(--muted); font-size: 14px; }
.badge--new { background: #fde8e4; color: #b13c26; }
.badge--in_progress { background: #fff3d6; color: #8a5a00; }
.badge--done { background: #e2f4ea; color: #1f7a4a; }
.adm-data { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; font-size: 14px; }
.adm-data div { display: grid; gap: 2px; }
.adm-data dt { color: var(--muted); font-size: 12px; }
.adm-data dd { margin: 0; }
.adm-inline { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: center; }
.adm-inline input, .adm-inline select { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.adm-del { justify-self: end; font-size: 13px; }
.adm-login { max-width: 380px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 18px; }
.adm-login h1 { font-size: 22px; }
.adm-form { display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.adm-form--wide { max-width: 820px; }
.adm-form label { font-weight: 700; font-size: 14px; margin-top: 6px; }
.adm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-row > div { display: grid; gap: 6px; }
.adm-row--checks { grid-template-columns: auto auto 160px; align-items: end; margin-top: 8px; }
.adm-tbl { min-width: 640px; }
.adm-tbl thead th { background: #2a2f36; }
code { background: #eef0f3; padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .cols-4, .cols-5, .levels, .classes { grid-template-columns: repeat(2, 1fr); }
  .tiers-4 { grid-template-columns: repeat(2, 1fr); }
  .tiers-4 .tier::after { display: none; }
  .grades, .courses { grid-template-columns: 1fr; max-width: 640px; }
  .hero__in--split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hd__toggle { display: flex; }
  .gnb { position: fixed; left: 0; right: 0; top: 68px; background: var(--bg); flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(0,0,0,.08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100vh - 68px); overflow-y: auto; }
  .hd.is-open .gnb { opacity: 1; visibility: visible; transform: none; }
  .gnb ul { flex-direction: column; }
  .gnb ul a { padding: 14px 12px; font-size: 17px; }
  .gnb__cta { min-height: 50px; }
  .topnotice + .hd .gnb { top: 68px; }
  .cols-2, .cols-3, .virtues, .split--img, .profile, .measure { grid-template-columns: 1fr; }
  .tiers-3 { grid-template-columns: 1fr; }
  .tier:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -13px; transform: translateX(-50%) rotate(135deg); }
  .tiers-4 .tier::after { display: none; }
  .sec { padding: 64px 0; }
  .hero__in { padding: 64px 20px 72px; }
  .hero--image .hero__in { padding-top: 84px; padding-bottom: 92px; }
  .pagehead { padding: 52px 0 44px; }
  .ctaband { padding: 32px 26px; }
  .form { grid-template-columns: 1fr; padding: 26px 20px; }
  .profile { padding: 26px; gap: 24px; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow li { margin-right: 0; }
  .rv, .report__track, .report__skills, .report__summary, .report__head { padding-left: 22px; padding-right: 22px; }
  .report__skills dl div, .measure dl div, .virtue__obs div { grid-template-columns: 1fr; gap: 2px; }
  .adm-inline { grid-template-columns: 1fr; }
  .adm-row, .adm-row--checks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .cols-4, .cols-5, .levels, .classes, .tiers-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; align-items: flex-start; }
  .step__no { flex: none; }
  .btns .btn { flex: 1 1 auto; }
  .logo__txt small { display: none; }
  .ft__bottom span { margin-left: 0; width: 100%; }
  .consent dl div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
