/* 색·글꼴·간격은 여기 :root 에서만 바꿉니다 */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f6;
  --text: #1f2a33;
  --muted: #424d57;        /* 카드 설명 등 보조 글자(대비 7:1 이상) */
  --muted-soft: #5b6770;   /* 날짜·출처·칩처럼 일부러 연하게 두는 보조 정보 */
  --line: #e2e6e8;
  --mint: #e8f1ee;
  --deep: #2f6354;
  --accent: #3f7d6b;        /* 버튼·수치 숫자·링크 강조에만 */
  --accent-light: #9ccabb;  /* 어두운 바닥글 위 링크 hover 전용 */
  --accent-dark: #2f6354;   /* 보조 배경 위 작은 글자·마우스 올림 */
  --footer: #1f2a33;
  --footer-text: #e6ebed;
  --radius: 12px;
  --gap: 20px;
  --section-pad: 80px;
  --maxw: 1080px;
  --font: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400;
  line-height: 1.75; font-size: 17px; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.muted { color: var(--muted); }
.small.muted { color: var(--muted-soft); }
.small { font-size: .9rem; }
.band { padding: var(--section-pad) 0; background: var(--bg); }
.band.alt { background: var(--bg-alt); }
.en { color: var(--muted-soft); font-weight: 600; font-size: .9rem; letter-spacing: .04em; margin-bottom: .4em; }
.stack > * + * { margin-top: 16px; }

/* 머리글 */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(31, 42, 51, .06); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { text-decoration: none; color: var(--text); display: flex; flex-direction: column; line-height: 1.25; }
.logo strong { font-size: 1.2rem; font-weight: 800; }
.logo span { font-size: .78rem; color: var(--muted-soft); font-weight: 500; }
nav { display: flex; align-items: center; gap: 12px; }
nav a.item { color: var(--text); padding: 8px 14px; line-height: 1.25; font-weight: 700; font-size: 17px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 10px; border-radius: 4px; }
nav a.item:hover, nav a.item:focus-visible, nav a.item.on { color: var(--accent); text-decoration-color: var(--accent); }
nav a.item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.dev nav { gap: 4px; }
body.dev nav a.item { padding: 6px 8px; font-size: .92rem; }
.menu-btn { display: none; }

/* 버튼 */
.btn { display: inline-block; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--accent); color: #fff; padding: 11px 22px; border-radius: 999px; }
.btn:hover { background: var(--accent-dark); }
.btn.line { background: transparent; color: var(--text); border: 1.5px solid var(--text); padding: 9.5px 20.5px; }
.btn.line:hover { background: var(--bg-alt); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted-soft); cursor: default; }
nav .btn { margin-left: 8px; padding: 8px 16px; font-size: 17px; }
body.dev nav .btn { font-size: .92rem; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* 카드·격자: 그림자 없이 1px 테두리 */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted-soft); margin-right: 6px; }

/* 첫 화면 */
.hero .hero-cta { margin: 28px 0 0; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; font-weight: 300; }
.stats .num { font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1.25; }
.stats .label { color: var(--muted); font-size: .95rem; }
.intro { display: grid; gap: 32px; grid-template-columns: 220px 1fr; align-items: center; }
.intro img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; object-position: top; }

.band[data-list-band] { display: none; }
.band[data-list-band].show { display: block; }
.dev-only { display: none; }
body.dev .dev-only { display: block; }
.dev-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--text); color: #fff; text-align: center; font-size: .8rem; padding: 6px 12px; }
.soon { display: none; }
body.dev .soon { display: block; }
[hidden] { display: none !important; }
.timeline { list-style: none; padding: 0; margin: 0 0 8px; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline .period { color: var(--muted-soft); font-size: .92rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-bottom: var(--gap); }
.toolbar .tabs { margin-bottom: 0; }
.toolbar select { font: inherit; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); }
.more { text-align: center; margin: 20px 0 0; }
h4.sect { font-size: 1rem; font-weight: 800; margin: 22px 0 8px; }
.band[id] { scroll-margin-top: 84px; }
.chips.jump li { padding: 0; overflow: hidden; }
.chips.jump a { display: block; padding: 6px 16px; color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.chips.jump a:hover { background: var(--mint); }
.prog-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.prog-tab { font: inherit; text-align: left; display: block; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; cursor: pointer; }
.prog-tab span { display: block; }
.prog-tab .tab-no { font-weight: 800; font-size: .9rem; color: var(--accent-dark); }
.prog-tab .tab-name { font-weight: 800; font-size: 1.2rem; }
.prog-tab .tab-desc { font-size: .95rem; color: var(--muted); }
.prog-tab:hover { border-color: var(--accent); }
.prog-tab[aria-selected="true"], .prog-tab[aria-selected="true"] span { background: var(--accent); border-color: var(--accent); color: #fff; }
.prog-tab:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.prog-tabs.multi { grid-template-columns: repeat(4, 1fr); }
.prog-block { margin-bottom: 48px; }
.prog-block:last-child { margin-bottom: 0; }
.prog-name { font-size: 1.6rem; font-weight: 800; margin: 0 0 .3em; }
.prog-intro { margin: 0 0 .4em; }
.pcard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 20px; }
.pcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pcard:hover { border-color: var(--accent); }
.pcard .p-label { margin: 0; color: var(--muted-soft); font-size: .85rem; font-weight: 700; letter-spacing: .06em; }
.pcard .p-title { margin: .15em 0 .3em; font-size: 1.25rem; font-weight: 800; line-height: 1.4; }
.pcard .p-desc { margin: 0 0 12px; }
.p-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.p-tags li { font-size: .9rem; border: 1px solid var(--line); background: var(--bg-alt); border-radius: 999px; padding: 2px 12px; }
.tool-note { margin: 0 0 24px; padding: 12px 18px; border-radius: var(--radius); background: var(--mint); color: var(--deep); font-weight: 700; }
.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tc-type { font-size: .9rem; border: 1px solid var(--line); background: var(--bg-alt); border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
.tc-out { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.tcard .btn { margin-top: 14px; }
.tool-note span { display: block; }
.tc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; font-size: .95rem; font-weight: 700; color: var(--deep); }
.tc-status.open { color: var(--accent-dark); }
.tc-lock { display: inline-grid; place-items: center; }
.tc-lock svg { width: 18px; height: 18px; }
.tcard .btn.small { margin: 0 0 0 auto; padding: 3px 14px; font-size: .88rem; }
.on-deep .card { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.on-deep .muted { color: #fff; }
.on-deep .icon-circle { background: rgba(255, 255, 255, .15); color: #fff; }
.inq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.inq-card { min-width: 0; }
.inq-grid[hidden], .inq-card[hidden] { display: none; }
.inq-types { margin-top: 24px; }
.inq-pick { margin: 20px 0 0; font-weight: 700; color: var(--deep); }
.inq-pick[hidden] { display: none; }
.inq-types h3 { margin: 0 0 12px; }
.inq-types fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.inq-types legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.consult-cta { margin: 28px 0 0; }
.inq-card h3 { margin: 0 0 12px; }
.inq-card fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.inq-card fieldset:last-child { margin-bottom: 0; }
.inq-card legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.inq-preview { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--mint); border-color: var(--accent); }
.inq-preview.empty { color: var(--muted-soft); background: var(--bg-alt); border-color: var(--line); }
.inquiry-status { min-height: 1.5em; margin: 10px 0 0; }
.inq-note { margin: 16px 0 0; }
.memo:disabled { background: var(--bg-alt); color: var(--muted-soft); }
@media (max-width: 700px) { .inq-grid { grid-template-columns: minmax(0, 1fr); } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { font: inherit; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.memo { width: 100%; max-width: 560px; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-top: 12px; }
.inquiry-actions .btn { flex: 1 1 220px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chips li { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 14px; font-size: .92rem; }
a.door { display: block; text-decoration: none; color: var(--text); }
a.door:hover { border-color: var(--accent); }
a.door .go { color: var(--accent-dark); font-weight: 700; }
.step-no { font-weight: 800; color: var(--accent); font-size: 1.4rem; }
blockquote.quote { margin: 0 0 16px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
/* 구역 색 (연구소 이야기에서 사용) */
.band.tone-white { background: var(--bg); }
.band.tone-gray { background: var(--bg-alt); }
.band.tone-mint { background: var(--mint); }
.band.tone-deep { background: var(--deep); color: #fff; }
body[data-page="toolbox"] .tone-deep .btn, body[data-page="notes"] .tone-deep .btn { background: #fff; color: var(--deep); }
body[data-page="toolbox"] .tone-deep .btn:hover, body[data-page="notes"] .tone-deep .btn:hover { background: var(--mint); }
body[data-page="notes"] .tone-deep .btn.line { background: transparent; color: #fff; border: 1.5px solid #fff; padding: 9.5px 20.5px; }
body[data-page="notes"] .tone-deep .btn.line:hover { background: rgba(255, 255, 255, .12); }
body[data-page="notes"] .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.tone-deep .en { color: rgba(255, 255, 255, .85); }
.big-line { font-size: 28px; line-height: 1.5; font-weight: 600; margin: 0 0 1em; }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols4 { grid-template-columns: repeat(4, 1fr); margin-top: 32px; }
.num-circle { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; }
.nadaum h3 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .3em; }
.big-line.closing { margin: 32px 0 0; }
.nowrap { white-space: nowrap; }
.stats .label { word-break: keep-all; }
.steps h3 { font-size: 28px; font-weight: 800; }
.steps p { font-size: 18px; }
.steps .step-no { width: 72px; height: 72px; font-size: 2rem; }
.feature h3 { font-size: 24px; font-weight: 800; }
.feature p { font-size: 18px; }
.profile > * { min-width: 0; }
.inst-name { font-size: 1.2rem; font-weight: 800; line-height: 1.5; }
.profile .info-row { grid-template-columns: 84px minmax(0, 1fr); font-size: 19px; }
.info-row span { overflow-wrap: anywhere; }
.icon-circle { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--deep); margin-bottom: 12px; }
.icon-circle svg { width: 28px; height: 28px; }
.feature h3 { font-weight: 800; }
.hero-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-split .stats { grid-template-columns: repeat(2, 1fr); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: flex; align-items: stretch; gap: 12px; }
.steps > li:not(.step-arrow) { flex: 1; text-align: center; padding: 0 8px; }
.step-no { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.step-arrow { display: flex; align-items: center; color: var(--deep); }
.step-arrow svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.profile img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.info-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row b { color: var(--deep); }
.tl { list-style: none; margin: 16px 0 0; padding: 0 0 0 30px; position: relative; }
.tl::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl li { position: relative; padding: 0 0 20px; }
.tl li::before { content: ''; position: absolute; left: -30px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.tl .period { display: block; color: var(--muted-soft); font-size: 1rem; }
.tl.collapsed .older { display: none; }
:is(body[data-page="about"], body[data-page="instructor"]) { font-size: 18px; line-height: 1.7; }
:is(body[data-page="about"], body[data-page="instructor"]) h1 { font-size: 48px; }
:is(body[data-page="about"], body[data-page="instructor"]) .band h2 { font-size: 38px; }
:is(body[data-page="about"], body[data-page="instructor"]) .band { padding: 96px 0; }
:is(body[data-page="about"], body[data-page="instructor"]) .small, :is(body[data-page="about"], body[data-page="instructor"]) .label { font-size: 1rem; }
:is(body[data-page="about"], body[data-page="instructor"]) .timeline li { font-size: 1.1rem; }
:is(body[data-page="about"], body[data-page="instructor"]) .timeline .period { font-size: 1rem; }
.soon { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; font-weight: 600; }

/* 탭 */
.history-blog { width: fit-content; max-width: 100%; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.history-blog p { margin: 0; font-size: 23px; font-weight: 700; }
@media (max-width: 600px) { .history-blog { flex-direction: column; align-items: flex-start; } .history-blog p { font-size: 19px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--gap); }
.tabs button { font: inherit; font-weight: 600; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 표 */
.table-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th { background: var(--bg-alt); text-align: left; font-weight: 700; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
pre.prompt { white-space: pre-wrap; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-family: var(--font); font-size: .95rem; margin: 10px 0; }

/* 바닥글 */
footer { background: var(--footer); color: var(--footer-text); padding: 48px 0; font-size: .92rem; }
footer a { color: #fff; }
footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); }
footer .cols > div { min-width: 0; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent-light); text-decoration: underline; }
footer .foot-title { font-size: 1rem; font-weight: 800; line-height: 1.7; margin: 0 0 .8em; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 0 0 .6em; line-height: 1.7; }
.foot-links a { display: flex; width: fit-content; align-items: center; gap: 10px; }
.foot-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.foot-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
footer .foot-phone { display: flex; align-items: center; gap: 10px; }
footer p { margin: 0 0 .6em; line-height: 1.7; }
footer .foot-bar { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .75); }
footer .foot-bar a, footer .foot-bar span { font: inherit; line-height: inherit; }
footer .foot-bar a { color: #fff; }
footer .foot-dot { margin: 0 .6em; }
footer .btn.line { color: #fff; border-color: #fff; }
footer .btn.line:hover { background: rgba(255,255,255,.12); }

/* 휴대폰 */
@media (max-width: 980px) {
  .menu-btn { display: block; font: inherit; font-size: 18px; font-weight: 700; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 18px; min-height: 48px; color: var(--text); }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; }
  nav.open { display: flex; }
  nav { gap: 0; }
  nav a.item, body.dev nav a.item { display: flex; align-items: center; align-self: flex-start; min-height: 48px; padding: 8px 10px; font-size: 18px; }
  nav .btn, body.dev nav .btn { margin: 8px 0 0; text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
}
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro img { max-width: 200px; }
}
@media (max-width: 860px) {
  footer .cols { grid-template-columns: 1fr; }
  .hero-split, .profile { grid-template-columns: 1fr; }
  .profile img { max-width: 260px; }
  .grid.cols3 { grid-template-columns: 1fr; }
  .grid.cols4 { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .step-arrow { justify-content: center; }
  .step-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 700px) {
  .prog-tabs, .pcard-grid { grid-template-columns: 1fr; }
  .prog-tabs.multi { grid-template-columns: repeat(2, 1fr); }
  .prog-tabs.multi .prog-tab { padding: 14px 12px; }
  .prog-tabs.multi .tab-name { font-size: 1rem; }
  footer .foot-dot { display: none; }
  footer .foot-bar a, footer .foot-copy { display: block; }
  :is(body[data-page="about"], body[data-page="instructor"]) h1 { font-size: 32px; }
  :is(body[data-page="about"], body[data-page="instructor"]) .band h2 { font-size: 26px; }
  :is(body[data-page="about"], body[data-page="instructor"]) .band { padding: 64px 0; }
  .big-line { font-size: 26px; }
  .steps h3 { font-size: 22px; }
  .feature h3 { font-size: 20px; }
  .feature p { font-size: 17px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  :root { --section-pad: 56px; }
  body { font-size: 16px; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 2px 0; }
  td:empty { display: none; }
  td::before { content: attr(data-label) " · "; color: var(--muted-soft); font-size: .85rem; }
}

/* 도구함: 첫 화면에서 01 카드가 더 빨리 보이도록 위쪽 여백만 줄임 */
body[data-page="toolbox"] main > .band:first-child { padding: 32px 0 32px; }
body[data-page="toolbox"] .tool-note { margin: 0; padding: 10px 18px; }
body[data-page="toolbox"] .band.tone-gray { padding-top: 32px; }
body[data-page="toolbox"] .prog-tabs.multi { margin-bottom: 20px; gap: 10px; }
body[data-page="toolbox"] .prog-tabs.multi .prog-tab { padding: 12px 16px; }
@media (max-width: 700px) {
  body[data-page="toolbox"] main > .band:first-child { padding: 20px 0 16px; }
  body[data-page="toolbox"] h1 { font-size: 1.6rem; }
  body[data-page="toolbox"] .band.tone-gray { padding-top: 24px; }
  body[data-page="toolbox"] .prog-tabs.multi { margin-bottom: 16px; }
  body[data-page="toolbox"] .prog-tabs.multi .prog-tab { padding: 8px 12px; }
  body[data-page="toolbox"] .prog-tabs.multi { gap: 8px; }
  body[data-page="toolbox"] .prog-tabs.multi .tab-desc { display: none; }
  body[data-page="toolbox"] .tool-note { font-size: .875rem; padding: 8px 14px; }
  body[data-page="toolbox"] .lead { font-size: 1rem; }
}
/* 폭 370px 이상 휴대폰: 탭 번호를 이름 옆에 나란히 둠(더 좁으면 위아래로 쌓임) */
@media (min-width: 370px) and (max-width: 700px) {
  body[data-page="toolbox"] .prog-tabs.multi .tab-no,
  body[data-page="toolbox"] .prog-tabs.multi .tab-name { display: inline; }
  body[data-page="toolbox"] .prog-tabs.multi .tab-no { margin-right: 4px; }
  body[data-page="toolbox"] .prog-tabs.multi .prog-tab { padding: 8px 10px; }
}

/* 홈: 교육 프로그램 대상 카드와 도구함 구역 */
.home-prog h3 { margin: 0 0 .3em; }
.home-prog .home-prog-name { margin: 0 0 .3em; font-weight: 800; font-size: 1.15rem; color: var(--deep); }
.home-prog .muted { margin: 0 0 14px; }
.home-more { margin: 24px 0 0; }

/* 프롬프트북 */
.pb-head { padding: 32px 0 24px; }
.pb-headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.pb-titles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.pb-titles h1 { margin: 0; font-size: 2rem; }
.pb-titles .lead { margin: 0; font-size: 1.05rem; }
.usage { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.usage li { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 8px; }
.usage .step-no { width: 28px; height: 28px; margin: 0; font-size: .95rem; flex: none; }
.usage b { font-size: .98rem; }
.pb-head .tool-note { margin: 14px 0 0; padding: 8px 16px; }
.tabs button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.pb-search { position: relative; max-width: 680px; }
.pb-input { width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 48px 14px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); }
.pb-input:focus { outline: 3px solid var(--accent-dark); outline-offset: 1px; border-color: var(--accent); }
.pb-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.pb-clear:hover { background: var(--bg-alt); }
.pb-clear[hidden] { display: none; }
.pb-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 20px; }
.pb-quick-label { font-size: .9rem; font-weight: 700; color: var(--muted-soft); margin-right: 4px; }
.pb-qbtn { font: inherit; font-size: .95rem; border: 1px solid var(--line); background: var(--bg); color: var(--accent-dark); font-weight: 700; border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.pb-qbtn:hover { border-color: var(--accent); }
.pb-aud { margin-bottom: 8px; }
.pb-ask { margin: 24px 0 14px; font-size: 1.3rem; }
.pb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pb-tiles.searching .pb-tile[aria-selected="true"]:not(:hover) { opacity: .6; }
.pb-tile { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.pb-tile .icon-circle { display: inline-grid; flex: none; width: 44px; height: 44px; margin: 0; }
.pb-tile .icon-circle svg { width: 24px; height: 24px; }
.pb-tile-text { display: block; min-width: 0; }
.pb-tile[aria-selected="true"] .icon-circle { background: rgba(255, 255, 255, .22); }
.pb-tile .tab-desc { font-size: .9rem; }
.pb-result-title { margin: 0 0 4px; font-size: 1.5rem; }
.pb-empty { font-weight: 700; margin: 12px 0; }
.pb-grid { align-items: start; margin-top: 16px; }
.pbook .p-title { margin: 0 0 8px; }
.pb-flag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--mint); color: var(--deep); font-size: .75rem; font-weight: 800; vertical-align: middle; }
.pb-when { margin: 0 0 6px; }
.pb-out { margin: 0 0 8px; font-size: .95rem; color: var(--muted); }
.pb-sum .p-tags { margin-top: 4px; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pb-actions .btn { padding: 7px 18px; font-size: .95rem; min-height: 40px; }
.pb-actions .btn.line { padding: 5.5px 16.5px; }
.pb-slot[hidden] { display: none; }
.pb-detail { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pb-row { margin: 0 0 10px; }
.pb-row b { display: block; font-size: .85rem; font-weight: 800; color: var(--accent-dark); letter-spacing: .02em; }
.pb-caution { margin: 4px 0 12px; padding: 10px 14px; background: var(--mint); border-left: 4px solid var(--accent-dark); border-radius: 6px; color: var(--deep); font-weight: 700; }
.pb-caution b { margin-right: 8px; }
.pb-prompt { margin: 10px 0 10px; }
.pb-prompt .ph { color: var(--accent-dark); font-weight: 700; }
.pb-example { margin-top: 14px; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 14px; }
.pb-example summary { cursor: pointer; font-weight: 700; color: var(--accent-dark); }
.pb-example pre.prompt { white-space: pre-wrap; }
.pb-group { margin: 40px 0 0; font-size: 1.35rem; }
.pb-tips { margin-top: 8px; }
.pb-cautions { list-style: none; padding: 14px 18px; margin: 14px 0; background: var(--mint); border-left: 4px solid var(--accent-dark); border-radius: 8px; color: var(--deep); font-weight: 700; }
.pb-cautions li + li { margin-top: 6px; }
.pb-tipbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; background: var(--bg); }
.pb-tipbox summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; }
.pb-label { margin: 18px 0 4px; font-size: 1rem; }
@media (max-width: 700px) {
  .pb-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pb-tile { gap: 10px; padding: 10px 12px; }
  .pb-tile .icon-circle { width: 36px; height: 36px; }
  .pb-tile .icon-circle svg { width: 20px; height: 20px; }
  .pb-tile .tab-desc { display: none; }
  .pb-tile .tab-name { font-size: 1rem; }
  .pb-head { padding: 24px 0 18px; }
  .pb-titles h1 { font-size: 1.7rem; }
  .usage li { width: 100%; }
}

/* PC(폭 1024px 이상): 본문 폭과 글자 크기는 아래 변수 한 곳에서 고칩니다. 1023px 이하(태블릿·휴대폰)는 위쪽 기존 규칙 그대로입니다. */
@media (min-width: 1024px) {
  :root {
    --content-w: 1240px;      /* 본문 최대 폭(머리글·바닥글 포함) */
    --read-w: 46em;           /* 소개·본문 문단의 한 줄 최대 폭 */
    --fs-body: 20px;          /* 본문·카드 설명 */
    --fs-card-title: 26px;    /* 카드 제목 */
    --fs-tab-name: 20px;      /* 탭 이름 */
    --fs-tab-desc: 16px;      /* 탭 작은 설명 */
    --fs-section-title: 42px; /* 구역 제목 */
    --fs-page-title: 52px;    /* 페이지 제목 */
    --fs-nav: 18px;           /* 메뉴 */
    --fs-lead: 22px;          /* 제목 아래 소개 문장 */
    --fs-small: 17px;         /* 작은 글자·표·상태 줄·버튼 */
    --fs-chip: 15px;          /* 칩·라벨(14px 아래로 내리지 않기) */
    --fs-footer: 17px;        /* 바닥글 */
    --fs-prompt: 17px;        /* 요청문 칸 */
    --lh: 1.7;
    --fs-instructor-name: 32px;   /* 대표 소개: 카드 이름 줄 */
    --fs-instructor-label: 22px;  /* 대표 소개: 항목 이름 */
    --fs-instructor-value: 22px;  /* 대표 소개: 항목 내용 */
    --fs-instructor-chip: 17px;   /* 대표 소개: 바로가기 칩 */
    --fs-instructor-period: 18px; /* 대표 소개: 경력 기간 */
    --fs-instructor-text: 23px;   /* 대표 소개: 경력 내용·이전 경력 보기 */
  }
  .wrap { width: min(100% - 64px, var(--content-w)); }
  body { font-size: var(--fs-body); line-height: var(--lh); }
  h1, .pb-titles h1 { font-size: var(--fs-page-title); }
  h2, .pb-result-title, .pb-ask { font-size: var(--fs-section-title); }
  h3, .nadaum h3, .feature h3 { font-size: var(--fs-card-title); }
  .pcard .p-title { font-size: var(--fs-card-title); }
  .lead, .pb-titles .lead { font-size: var(--fs-lead); }
  .hero p.lead { font-size: var(--fs-lead); }
  .lead, .hero p.lead, .band > .wrap > p { max-width: var(--read-w); }
  .small, .timeline .period { font-size: var(--fs-small); }
  .prog-tab .tab-name { font-size: var(--fs-tab-name); }
  .prog-tab .tab-desc, .pb-tile .tab-desc { font-size: var(--fs-tab-desc); }
  .prog-tab .tab-no, .p-tags li, .tc-type, .chips li, .pb-row b, .pb-quick-label, .tcard .btn.small, .pcard .p-label, th { font-size: var(--fs-chip); }
  .tc-out, .tc-status, .pb-out, .stats .label, table, .pb-actions .btn, .pb-qbtn { font-size: var(--fs-small); }
  .pb-input, .memo { font-size: var(--fs-body); }
  pre.prompt { font-size: var(--fs-prompt); }
  footer { font-size: var(--fs-footer); }
  footer .foot-bar { font-size: var(--fs-chip); }
  nav a.item, nav .btn { font-size: var(--fs-nav); }
  body.dev nav a.item, body.dev nav .btn { font-size: .92rem; }
  :is(body[data-page="about"], body[data-page="instructor"]) { font-size: var(--fs-body); line-height: var(--lh); }
  :is(body[data-page="about"], body[data-page="instructor"]) h1 { font-size: var(--fs-page-title); }
  :is(body[data-page="about"], body[data-page="instructor"]) .band h2 { font-size: var(--fs-section-title); }
  :is(body[data-page="about"], body[data-page="instructor"]) h3 { font-size: var(--fs-card-title); }
  :is(body[data-page="about"], body[data-page="instructor"]) .small, :is(body[data-page="about"], body[data-page="instructor"]) .label { font-size: var(--fs-small); }
  :is(body[data-page="about"], body[data-page="instructor"]) .timeline li { font-size: var(--fs-body); }
  :is(body[data-page="about"], body[data-page="instructor"]) .timeline .period { font-size: var(--fs-small); }
  body[data-page="instructor"] .profile .big-line { font-size: var(--fs-instructor-name); }
  body[data-page="instructor"] .profile .info-row { font-size: var(--fs-instructor-value); }
  body[data-page="instructor"] .profile .info-row b { font-size: var(--fs-instructor-label); font-weight: 700; }
  body[data-page="instructor"] .chips.jump a { font-size: var(--fs-instructor-chip); }
  body[data-page="instructor"] #career .tl li span { font-size: var(--fs-instructor-text); }
  body[data-page="instructor"] #career .tl .period { font-size: var(--fs-instructor-period); }
  body[data-page="instructor"] #career .more .btn { font-size: var(--fs-instructor-text); }
}

/* 함께 설계하기 글자 크기: 아래 변수만 고치면 이 페이지 글자가 바뀝니다(휴대폰 값, PC 값은 바로 아래 블록). */
:root {
  --fs-contact-no: 25px;      /* 카드 번호 01~04 */
  --fs-contact-item: 22px;    /* 카드 제목 */
  --fs-contact-legend: 22px;  /* 소제목(대상·주제·여러 개 선택 가능) */
  --fs-contact-chip: 19px;    /* 칩·입력 칸 */
  --fs-contact-preview: 18px; /* 미리보기 상자 */
  --fs-contact-btn: 19px;     /* 버튼 */
  --fs-contact-note: 24px;    /* 하단 안내 세 단락 */
  --fs-contact-small: 17px;   /* 상태 줄·이메일/주소 */
  --fs-contact-lead: 19px;    /* 소개 문장 */
}
@media (min-width: 1024px) {
  :root {
    --fs-contact-no: 21px;
    --fs-contact-item: 26px;
    --fs-contact-legend: 18px;
    --fs-contact-chip: 18px;
    --fs-contact-preview: 17px;
    --fs-contact-btn: 18px;
    --fs-contact-note: 19px;
    --fs-contact-small: 17px;
    --fs-contact-lead: 20px;
    --contact-band-pad: 32px;   /* 구역 위아래 여백(PC) */
  }
}
body[data-page="contact"] .num-circle { font-size: var(--fs-contact-no); }
body[data-page="contact"] .inq-card h3, body[data-page="contact"] .inq-types h3 { font-size: var(--fs-contact-item); }
body[data-page="contact"] .inq-card legend, body[data-page="contact"] .inq-types legend { font-size: var(--fs-contact-legend); }
body[data-page="contact"] .chip-btn, body[data-page="contact"] .memo { font-size: var(--fs-contact-chip); line-height: 1.4; }
body[data-page="contact"] .chip-btn { padding: 9px 20px; }
body[data-page="contact"] .memo { max-width: none; padding: 12px 16px; }
body[data-page="contact"] .inq-preview { font-size: var(--fs-contact-preview); line-height: 1.7; }
body[data-page="contact"] .inquiry-actions .btn { font-size: var(--fs-contact-btn); }
body[data-page="contact"] .inq-pick, body[data-page="contact"] .inquiry-status, body[data-page="contact"] .small { font-size: var(--fs-contact-small); line-height: 1.7; }
body[data-page="contact"] .inq-note { font-size: var(--fs-contact-note); font-weight: 500; line-height: 1.7; margin: 18px 0 0; color: var(--text); overflow-wrap: anywhere; }
body[data-page="contact"] [data-list] .lead { font-size: var(--fs-contact-lead); }
body[data-page="contact"] .inq-card .chip-row, body[data-page="contact"] .inq-types .chip-row { gap: 10px; }

/* 카드 안 작은 설명(나다움 4요소·3단계·프로그램 특장점) 글자 크기: 아래 변수만 고치면 됩니다(휴대폰 값, PC 값은 바로 아래). */
:root {
  --fs-desc-card: 18px;     /* 나다움·3단계 설명 */
  --fs-desc-feature: 17px;  /* 프로그램 특장점 설명 */
}
@media (min-width: 1024px) {
  :root {
    --fs-desc-card: 20px;
    --fs-desc-feature: 19px;
  }
}
.nadaum p.muted, .steps p.muted { font-size: var(--fs-desc-card); line-height: 1.7; }
.feature p.muted { font-size: var(--fs-desc-feature); line-height: 1.7; }

/* 개인정보 처리방침 */
body[data-page="privacy"] .policy-date { margin: 0 0 8px; }
body[data-page="privacy"] .policy-item { margin: 0 0 32px; }
body[data-page="privacy"] .policy-item p { margin: 0 0 8px; max-width: 46em; overflow-wrap: anywhere; }
body[data-page="privacy"] .policy-title { font-size: 22px; font-weight: 800; margin: 0 0 10px; color: var(--deep); }
@media (min-width: 1024px) { body[data-page="privacy"] .policy-title { font-size: var(--fs-card-title); } }
body[data-page="contact"] .inq-note a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 홈 현장 사진: PC 3열, 휴대폰 1열, 3:2로 잘라 보여 줍니다 */
.field-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.field-photos[hidden] { display: none; }
.field-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
@media (max-width: 700px) { .field-photos { grid-template-columns: minmax(0, 1fr); } }

/* 함께 설계하기 PC 여백(위쪽 --contact-band-pad 변수와 함께 조절): 같은 선택자의 기본 규칙보다 뒤에 둡니다 */
@media (min-width: 1024px) {
  /* PC: 카드·칩·구역 여백을 도구함·교육 프로그램 수준으로 줄입니다 */
  body[data-page="contact"] main > .band:first-child { padding: var(--contact-band-pad) 0; }
  body[data-page="contact"] main > .band:nth-child(2) { padding: var(--contact-band-pad) 0 40px; }
  body[data-page="contact"] main > .band:last-child { padding: var(--contact-band-pad) 0; }
  body[data-page="contact"] .inq-grid { gap: 16px; margin: 16px 0; }
  body[data-page="contact"] .inq-types { margin-top: 16px; }
  body[data-page="contact"] .inq-card { padding: 20px; }
  body[data-page="contact"] .inq-types { padding: 20px; }
  body[data-page="contact"] .inq-card h3, body[data-page="contact"] .inq-types h3 { margin-bottom: 8px; }
  body[data-page="contact"] .inq-card legend, body[data-page="contact"] .inq-types legend { margin-bottom: 6px; }
  body[data-page="contact"] .inq-card fieldset { margin-bottom: 14px; }
  body[data-page="contact"] .inq-card fieldset:last-child { margin-bottom: 0; }
  body[data-page="contact"] .chip-btn { padding: 7px 16px; }
  body[data-page="contact"] .memo { padding: 9px 14px; }
  body[data-page="contact"] .inq-card .chip-row, body[data-page="contact"] .inq-types .chip-row { gap: 8px; }
  body[data-page="contact"] .inq-note { margin-top: 14px; }
}
