/* GOLDENF 사이트 — 규칙은 launch/goldenf/DESIGN.md. 사진이 주인공, 강조색은 BOBPOOH 목걸이의 파랑 하나. 카드 색 띠·그림자 반복은 쓰지 않는다. */
:root {
  --bg: #f6f3ee; --surface: #fff; --ink: #171b2b; --muted: #5d6271; --line: #e4ded3; --accent: #2350d8; --accent-soft: #e8edfb;
  --display: "Jua", "Pretendard Variable", "Malgun Gothic", sans-serif;
  --sans: "Pretendard Variable", Pretendard, "Malgun Gothic", system-ui, sans-serif;
  --r: 16px; --wrap: 1200px; --head: 68px; --topline: 35px; --screen: calc(100svh - var(--head));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #12141c; --surface: #1a1d28; --ink: #eef0f5; --muted: #a7acba; --line: #2b3040; --accent: #7e9cff; --accent-soft: #222a45; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); }
/* 줄바꿈 규칙(DESIGN.md 3장): 한글은 어절 단위로만 끊고(keep-all), 넘치는 긴 낱말·주소만 예외로 끊는다.
   제목은 줄 길이를 고르게(balance), 문단은 마지막 줄 외톨이 낱말을 피한다(pretty). 의미 단위 줄바꿈은 <br>로 직접 정한다. */
body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, .lead, .kicker { text-wrap: balance; }
p, li, figcaption, small { text-wrap: pretty; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--head) + 12px); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -.025em; line-height: 1.3; margin: 0; }
/* 디자인 폰트(Jua): 첫 화면 제목, 홈 구역 제목, 브랜드 스토리 장 제목에만 쓴다. 굵기는 한 가지(400)라 굵게 만들지 않는다. */
.display, .hero h1, .home .sec-head h2, .home .split h2, .chapter h2, .mascot h2, .figures b { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.22; }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); margin: 14px 0 0; max-width: 680px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }

/* 상단 줄·머리줄 */
.topline { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.topline b { color: var(--ink); font-variant-numeric: tabular-nums; }
.topline small { margin-left: 8px; opacity: .8; }
.topline a { display: inline-flex; align-items: center; min-height: 34px; text-decoration: none; font-weight: 500; }
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 400; font-size: 20px; white-space: nowrap; }
.logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.nav { display: flex; gap: 22px; flex: 1; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-btn { display: none; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; }
.btn:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { color: var(--accent); border-color: var(--accent); background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.textlink { font-weight: 700; text-decoration: none; color: var(--accent); white-space: nowrap; }

/* 첫 화면 */
.hero { min-height: calc(var(--screen) - var(--topline)); display: grid; align-items: center; padding: clamp(24px, 4vh, 56px) 0; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
/* 구역을 grid로 세웠으므로 안쪽 .wrap(margin:auto)이 내용 폭으로 줄지 않게 폭을 채운다. */
.hero > .wrap, .home .section > .wrap { width: 100%; }
.hero h1 { font-size: clamp(40px, min(6vw, 10.5vh), 80px); line-height: 1.16; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero figure { margin: 0; }
.hero figure img { border-radius: 24px; aspect-ratio: 3 / 2; object-fit: cover; max-height: calc(var(--screen) - 120px); width: 100%; }
.hero figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.searchbar { display: flex; gap: 8px; margin-top: 28px; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 20px; }
/* 입력칸은 고유 폭(약 20글자)을 버리고 남는 폭만 쓴다. 그러지 않으면 좁은 휴대폰에서 검색창이 구역 밖으로 밀린다. */
.searchbar input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; text-overflow: ellipsis; }
.searchbar button { border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; padding: 0 20px; min-height: 42px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.chips a { padding: 6px 0; text-decoration: none; }
.chips a:hover { text-decoration: underline; }

/* 구역 */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section.tint { background: var(--surface); }
@media (min-width: 1001px) and (min-height: 640px) {
  .home .section { min-height: var(--screen); display: grid; align-content: center; padding: clamp(32px, 5vh, 80px) 0; }
}
.home .sec-head h2, .home .split h2 { font-size: clamp(32px, 3.6vw, 46px); }
/* 홈 목록은 한 화면에 들어가게 소개 글을 한 줄로 줄인다(전체 글은 각 쪽에서). */
.home .row small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.home .row { padding: 14px 0; }
/* 낮은 화면(1366×768 125% 배율 등): 첫 화면 안에 들어가게 여백·글자를 줄인다. */
@media (min-width: 1001px) and (max-height: 700px) {
  .hero .lead { font-size: 17px; margin-top: 10px; }
  .searchbar { margin-top: 18px; }
  .chips { margin-top: 10px; }
  .hero figure img { max-height: calc(var(--screen) - var(--topline) - 80px); }
}
.home .card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home .product .media { aspect-ratio: 16 / 10; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { margin: 10px 0 0; color: var(--muted); max-width: 620px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; }

/* 잡지형 카드(테두리·그림자 없음) */
/* 칸 폭은 minmax(0, 1fr): 카드 속 그림·긴 낱말이 칸을 넓혀 구역 밖으로 밀어내지 않게 한다. */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; text-decoration: none; color: inherit; }
.card .media { border-radius: var(--r); overflow: hidden; background: var(--line); aspect-ratio: 1200 / 630; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .media img { transform: scale(1.03); }
.card h3 { font-size: 21px; line-height: 1.35; }
.card:hover h3 { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.cat { font-size: 13px; font-weight: 700; color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.count:not([hidden])::before { content: attr(data-label) " "; }

/* 한 줄 목록 */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.row:hover b { color: var(--accent); }
.row .no { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row b { font-size: 18px; font-weight: 500; }
.row small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.row .side { font-size: 13px; color: var(--muted); white-space: nowrap; }
.row.soon { cursor: default; }
.row.soon b { color: var(--muted); }
/* 강의 줄: 왼쪽 유튜브 썸네일(16:9), 공개 전 강의는 차시 번호 자리 */
.row.lesson { grid-template-columns: 168px 1fr auto; align-items: center; padding: 14px 0; }
.row.lesson .thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--line); }
.row.lesson .thumb img { width: 100%; height: 100%; aspect-ratio: 16 / 9; border-radius: 0; object-fit: cover; transition: transform .3s ease; }
.row.lesson small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row.lesson:hover .thumb img { transform: scale(1.04); }
.row.lesson .thumb .len { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 11px; line-height: 1.5; padding: 0 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.row.lesson .thumb.ph { font-family: var(--display); font-size: 22px; color: var(--muted); background: color-mix(in srgb, var(--line) 60%, transparent); }
.row.lesson .no { display: block; margin-bottom: 2px; }
.home .row.lesson { grid-template-columns: 112px 1fr auto; gap: 16px; padding: 8px 0; }
.home .row.lesson small { -webkit-line-clamp: 1; }
.home .row.lesson .no { display: inline; margin-right: 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; margin-left: 6px; }
.badge.grey { background: var(--line); color: var(--muted); }

/* 강의 */
.lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.yt { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(23, 27, 43, .82); }
.yt .play::after { content: ""; position: absolute; left: 27px; top: 13px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.yt:hover .play { background: #e62117; }
.yt .len { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12px; padding: 1px 7px; border-radius: 4px; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chapters { columns: 2; column-gap: 32px; padding: 0; list-style: none; font-size: 15px; }
.chapters li { break-inside: avoid; border-bottom: 1px dashed var(--line); }
.chapters a { display: block; padding: 7px 0; text-decoration: none; }
.chapters time { font-variant-numeric: tabular-nums; color: var(--accent); margin-right: 10px; font-weight: 700; }

/* 커리큘럼: 모듈 지도(번호 + 이름 + 공개 상태)와 모듈별 펼침 목록. 색 띠 없이 테두리·번호 원으로만 구분한다. */
.module-map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 8px; }
.module-map a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.module-map a:hover { border-color: var(--accent); }
.module-map b { display: block; font-size: 14px; line-height: 1.35; }
.module-map small { display: block; font-size: 12px; color: var(--muted); }
.module-map .on a { border-color: var(--accent); }
.module-map .on small { color: var(--accent); font-weight: 700; }
.mno { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--display); font-size: 17px; color: var(--muted); }
.on .mno, .module[open] .mno { background: var(--accent); border-color: var(--accent); color: #fff; }
.rows-label { margin: 22px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.home-lectures { margin-top: 22px; }
.curriculum .module-map { margin-bottom: 28px; }
.modules { border-top: 1px solid var(--ink); }
.module { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head) + 12px); }
.module summary { display: grid; grid-template-columns: 40px 1fr auto 20px; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; }
.module summary::-webkit-details-marker { display: none; }
.module summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); justify-self: center; transition: transform .2s; }
.module[open] summary::after { transform: rotate(-135deg); }
.module .mno { width: 36px; height: 36px; font-size: 19px; }
.mhead b { display: block; font-size: 19px; }
.mhead small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.module summary:hover b { color: var(--accent); }
.module-body { padding: 0 0 22px 56px; }
.module-body .rows { border-top: 1px solid var(--line); }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.topics b { font-size: 13px; color: var(--muted); margin-right: 4px; }
.topics span { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.module-body .fine { margin: 10px 0 0; }

/* 글 쪽 */
.page-head { padding: 48px 24px 32px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 900px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { display: inline-block; padding: 5px 0; text-decoration: none; }
.article { max-width: 720px; margin: 0 auto; padding: 0 24px 40px; font-size: 18px; line-height: 1.85; }
.article h2 { font-size: 26px; margin: 48px 0 14px; }
.article h3 { font-size: 21px; margin: 32px 0 10px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin: 6px 0; }
.article figure { margin: 24px 0; }
.article img { border-radius: 12px; margin: 0 auto; }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; margin: 16px 0 24px; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; white-space: nowrap; }
.article td { white-space: normal; min-width: 6em; }
/* 넓은 표는 옆으로 밀어 본다. 더 볼 칸이 있는 쪽 가장자리에만 그림자가 생긴다(앞 두 겹이 내용과 함께 움직이며 그림자를 덮는다).
   날짜·번호·금액처럼 띄어쓰기 없는 짧은 칸(app.js가 .nw를 단다)은 하이픈에서 끊지 않는다. */
.article table {
  background: linear-gradient(to right, var(--bg) 30%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(to left, var(--bg) 30%, transparent) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--ink) 16%, transparent), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--ink) 16%, transparent), transparent) right / 14px 100% no-repeat scroll;
}
.article td.nw { white-space: nowrap; }
.table-hint { margin: 16px 0 -8px; font-size: 13px; color: var(--muted); }
/* 머리글: thead가 있으면 th, 없으면 첫 줄 td가 머리글이다. */
.article th, .article table:not(:has(thead)) tr:first-child td { font-weight: 700; border-bottom-color: var(--ink); }
.article .cta { margin: 16px 0; }
.cover { max-width: 1000px; margin: 0 auto 40px; padding: 0 24px; }
.cover img { border-radius: 20px; aspect-ratio: 1200 / 630; object-fit: cover; }
.next-box { max-width: 720px; margin: 24px auto 0; padding: 28px; background: var(--surface); border-radius: 20px; }
.next-box h2 { font-size: 22px; margin-bottom: 12px; }
.next-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.next-box a { text-decoration: none; font-weight: 500; }
.article .answer { margin: 0 0 28px; padding: 20px 22px; background: var(--accent-soft); border-radius: 16px; font-size: 17px; line-height: 1.75; }
.article .answer b { display: block; font-size: 13px; color: var(--accent); margin-bottom: 6px; }
.article .answer p { margin: 0; }
.article .toc { margin: 0 0 32px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; font-size: 16px; line-height: 1.6; }
.article .toc b { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.article .toc ol { margin: 0; padding-left: 20px; }
.article .toc a { text-decoration: none; }
.article h2[id] { scroll-margin-top: calc(var(--head) + 12px); }
.related { margin: 40px 0 8px; }
.related h2 { font-size: 22px; margin: 0 0 14px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-card { display: grid; gap: 4px; align-content: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: inherit; line-height: 1.45; }
.related-card:hover { border-color: var(--accent); }
.related-card b { font-size: 16px; }
.related-card small { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* 양식 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button, .month-tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.filters button[aria-pressed="true"], .month-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.form-card .media { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 18px; }
.form-card .media img { width: auto; height: 100%; object-fit: contain; box-shadow: 0 1px 6px rgba(23, 27, 43, .12); }
.ext { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.form-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.form-layout .preview { background: #fff; border-radius: 20px; padding: 24px; position: sticky; top: 96px; }
.form-layout .preview img { box-shadow: 0 1px 8px rgba(23, 27, 43, .14); margin: 0 auto; max-height: 640px; width: auto; }
.source { background: var(--surface); border-radius: 14px; padding: 16px 18px; font-size: 14px; color: var(--muted); }
.source b { color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding: 10px 0 10px 40px; position: relative; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; display: grid; place-items: center; }

/* 이야기 */
.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.chapter:nth-child(even) figure { order: 2; }
.chapter figure { margin: 0; }
.chapter img { border-radius: 20px; aspect-ratio: 3 / 2; object-fit: cover; }
.chapter .when { font-size: 14px; font-weight: 700; color: var(--accent); }
.chapter h2 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0 16px; }
.chapter p { margin: 0 0 12px; font-size: 18px; }
.figures { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 18px; }
.figures b { display: block; font-size: 34px; color: var(--accent); }
.figures span { font-size: 13px; color: var(--muted); }
.mascot { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; padding: 40px; background: var(--surface); border-radius: 24px; margin: 24px 0 64px; }
.mascot img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

/* 제품 */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; }
.product .media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.product .media img { width: 100%; height: 100%; object-fit: cover; }
.product h3 { font-size: 24px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.product .price { margin: 4px 0 0; }

/* 업무 지도 */
.atlas-map { position: relative; min-height: 520px; border-radius: 20px; overflow: hidden; }
/* 지도 엔진을 불러오기 전 자리: 지도 창과 같은 남색·같은 높이로 두어 바뀔 때 겹치거나 밀리지 않게 한다(사진을 두지 않는다). */
.atlas-placeholder { display: grid; place-items: center; height: calc(max(380px, min(560px, calc(var(--screen) - 140px))) + 94px); border-radius: 20px;
  background: radial-gradient(ellipse 60% 55% at 50% 48%, #1b2444 0%, #141b35 55%, #0e1328 100%); color: #8f9bc0; font-size: 14px; }
/* GA-Atlas 지도 창(AtlasWindow)이 쓰는 변수·모양 — 이전 브랜드 페이지에서 그대로 가져옴 */
/* GA-Atlas 지도 창(AtlasWindow)의 색은 엔진이 CSS 변수에서 읽는다(palette.ts). 사이트에서는 "남색 밤하늘" 테마로 덮는다:
   바탕 BOBPOOH 니트 남색, 과업 별 목걸이 파랑 계열, 분야 중심·선은 흰빛, 사례는 민트, 고른 과업은 산호색(범례의 "붉은 점"). */
.atlas-map { --line: rgba(160, 178, 230, .16); --font-serif: var(--sans); --font-mono: ui-monospace, Consolas, monospace; --stage-raised: #1b2444;
  display: grid; min-height: 450px; }
.atlas-map .atl-stage { --stage: #141b35; --stage-edge: #0e1328; --gold: #7fa2ff; --bone: #e9edfb; --bone-2: #b3bddb; --bone-3: #7381a8;
  --slate: #3a4670; --verdigris: #5ccfbf; --vermilion: #ff6f5c; }
.atlas-map .atl-lbl { color: #c9d2ee; font-weight: 500; }
.atlas-map .atl-lbl-domain { color: #fff; font-weight: 700; }
.atlas-map .stars { aspect-ratio: auto; min-height: 450px; }
.atlas-window { margin: 0; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #0e1328; color: #b3bddb; }
.atlas-bar, .atlas-legend { display: flex; align-items: center; gap: 6px 12px; padding: 10px 16px; font-size: 13px; line-height: 1.5; }
.atlas-bar { justify-content: space-between; border-bottom: 1px solid var(--line); }
.atlas-title { font-weight: 700; color: #fff; letter-spacing: .02em; }
.atlas-toggle { min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(201, 210, 238, .3); background: transparent; color: #e9edfb; font: inherit; font-size: 13px; cursor: pointer; }
.atlas-toggle:hover { border-color: #7fa2ff; color: #fff; }
.atlas-toggle:disabled { opacity: .5; cursor: default; }
.atlas-stage { position: relative; height: min(560px, calc(var(--screen) - 140px)); min-height: 380px; }
.atlas-legend { flex-wrap: wrap; border-top: 1px solid var(--line); color: #8f9bc0; }
.atlas-legend-sel { margin-left: auto; color: #ff8a7a; font-weight: 700; }
.atlas-fallback { margin: 0; padding: 20px; }
.atlas-fallback p { margin: 8px 0 0; font-size: 14px; }
.domain-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
/* 영역 이름은 details의 summary다. 큰 화면에서는 늘 펼쳐 두고(app.js) 누를 수 없게 하며, 휴대폰에서만 접고 편다. */
.domain summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; list-style: none; pointer-events: none; }
.domain summary::-webkit-details-marker { display: none; }
.domain-list h3 { font-size: 20px; }
.domain-list ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.domain-list li { border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.domain-list a { padding: 5px 0; text-decoration: none; }
.domain-list li.muted { padding: 7px 0; font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.facts div { background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.facts b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.lock { background: var(--surface); border-radius: 20px; padding: 28px; margin: 32px 0; }

/* 달력·검색·404 */
.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.months section h3 { font-size: 22px; margin-bottom: 8px; }
.months ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.months li { padding: 1px 0; border-bottom: 1px solid var(--line); }
.months li a { display: inline-block; padding: 5px 0; }
.months section.now h3 { color: var(--accent); }
/* 달 단추: 휴대폰에서 app.js가 켜면(.calendar.js) 한 달씩 본다. 큰 화면은 열두 달을 모두 펼친다. */
.month-tabs { display: none; }
.search-page input { width: 100%; font: inherit; font-size: 20px; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); text-overflow: ellipsis; }
.results { margin-top: 24px; }
/* .wrap의 좌우 여백을 지우지 않게 위아래만 준다. */
.notfound { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 64px; }
.notfound img { border-radius: 20px; }

/* 꼬리말 */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 48px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid b { display: block; color: var(--ink); margin-bottom: 8px; }
.foot-grid a { display: block; text-decoration: none; padding: 3px 0; }
.foot-grid a.logo { display: inline-flex; padding: 0; }
.foot-grid p { margin: 12px 0 0; }
.biz { margin: 32px 0 6px; font-size: 13px; }
.sign { margin: 0; font-size: 13px; }

@media (max-width: 1000px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-grid; }
  .site-head .wrap { gap: 12px; }
  .site-head .nav + .icon-btn { margin-left: auto; }
  .hero .wrap, .split, .chapter, .form-layout, .notfound, .mascot { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chapter:nth-child(even) figure { order: 0; }
  .form-layout .preview { position: static; }
  .grid, .grid.four, .products, .domain-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mascot img { max-width: 200px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .page-head { padding: 32px 16px 24px; }
  .article { padding: 0 16px 32px; font-size: 17px; }
  .cover { padding: 0 16px; }
  .section { padding: 64px 0; }
  .grid, .products, .lesson-grid, .domain-list, .facts { grid-template-columns: minmax(0, 1fr); }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .grid.four .card h3 { font-size: 16px; }
  .hero { min-height: auto; }
  .hero figure img { aspect-ratio: 16 / 10; }
  .months { grid-template-columns: minmax(0, 1fr); }
  .search-page input { font-size: 17px; padding: 12px 18px; }
  /* 분류·달 단추는 여러 줄로 쌓지 않고 한 줄로 옆으로 민다. 줄은 화면 끝까지 닿고 첫·끝 단추는 본문 여백에 맞춘다. */
  .filters, .month-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 2px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .filters::-webkit-scrollbar, .month-tabs::-webkit-scrollbar { display: none; }
  .filters button, .month-tabs button { flex: none; min-height: 40px; white-space: nowrap; }
  .calendar.js .month-tabs { display: flex; position: relative; gap: 8px; }
  .calendar.js .months > section:not(.on) { display: none; }
  /* 업무 지도 영역별 목록: 영역 이름을 눌러 펼친다(app.js가 처음에 접어 둔다). */
  .domain-list { gap: 0; border-top: 1px solid var(--ink); }
  .domain { border-bottom: 1px solid var(--line); }
  .domain summary { align-items: center; margin: 0; padding: 14px 0; cursor: pointer; pointer-events: auto; }
  .domain summary h3 { flex: 1; font-size: 18px; }
  .domain summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 4px 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
  .domain[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
  .domain ul { margin-bottom: 16px; border-top: 1px solid var(--line); }
  .domain-list a { padding: 9px 0; }
  .sec-head { flex-direction: column; align-items: start; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .row.lesson, .home .row.lesson { grid-template-columns: 116px 1fr; gap: 4px 12px; }
  .row.lesson .side { grid-column: 2; }
  .row.lesson .side:empty { display: none; }
  .chapters { columns: 1; }
  .module summary { grid-template-columns: 32px 1fr 16px; gap: 12px; }
  .module summary .badge { grid-column: 2; grid-row: 2; justify-self: start; margin: 0; }
  .module summary::after { grid-column: 3; grid-row: 1; }
  .module-body { padding-left: 0; }
  .module-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topline small { display: none; }
  .next-box { margin: 24px 16px 0; padding: 22px; }
  .mascot { padding: 24px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .foot-grid a { padding: 6px 0; }
}

/* 휴대폰 가로(낮은 화면): 폭만 보면 태블릿 배치가 나오지만 높이가 400px 안팎이다.
   상단 줄을 숨기고 고정 머리줄을 줄여 내용이 먼저 보이게 하고, 지도·미리보기는 화면 높이에 맞춘다. */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --head: 56px; --topline: 0px; }
  .topline { display: none; }
  .site-head .wrap { min-height: 56px; }
  .logo img { width: 34px; height: 34px; }
  .hero { min-height: auto; padding: 20px 0 32px; }
  .hero .lead { font-size: 16px; margin-top: 10px; }
  .searchbar { margin-top: 16px; }
  .page-head { padding-top: 24px; padding-bottom: 20px; }
  .section { padding: 48px 0; }
  .atlas-map, .atlas-map .stars { min-height: 0; }
  .atlas-stage { height: calc(100svh - var(--head) - 120px); min-height: 200px; }
  .atlas-placeholder { height: calc(100svh - var(--head) - 26px); min-height: 294px; }
  .form-layout .preview img { max-height: calc(100svh - var(--head) - 72px); }
}
/* 가로 폭이 넉넉하면(560px 이상) 사진과 글을 나란히 둔다. */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 560px) {
  .hero .wrap, .split, .chapter, .notfound, .form-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .chapter:nth-child(even) figure { order: 2; }
  .hero figure img { aspect-ratio: 4 / 3; max-height: calc(100svh - var(--head) - 56px); }
  .form-layout .preview { position: sticky; top: calc(var(--head) + 12px); padding: 12px; }
}
