/* ===== mkt2 배선노 (AI 배움 선생 노트) : 학습 플랫폼형 (잉크 헤더 + 청록 + 앰버 스파크, 코스·노트 구조) ===== */
:root {
  --ink: #0b1d29; --ink-2: #132c3b; --ink-line: #21404f;
  --bg: #f4f7f9; --paper: #edf2f5; --surface: #ffffff;
  --text: #14212b; --muted: #5a6876; --line: #dbe3ea; --line-strong: #14212b;
  --brand: #0e7490; --brand-2: #0891b2; --brand-soft: #e3f3f7; --brand-ink: #0b5a70;
  --accent: #f59e0b; --spark: #fbbf24; --accent-soft: #fff5df; --tip: #ecf7fa;
  --radius: 6px; --radius-btn: 6px; --radius-lg: 8px;
  --serif: "Pretendard", -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(11, 29, 41, .05), 0 4px 14px rgba(11, 29, 41, .05);
}
body { background: var(--bg); letter-spacing: -.005em; }
.wrap { max-width: 1160px; }
.ico { flex: none; }

/* 코스 색 */
.c0 { --cc: #0e7490; --cc-soft: #e3f3f7; }
.c1 { --cc: #6d4bd1; --cc-soft: #efebfb; }
.c2 { --cc: #1d63d8; --cc-soft: #e8f0fd; }
.c3 { --cc: #475569; --cc-soft: #eef1f5; }
.c4 { --cc: #be185d; --cc-soft: #fbe9f1; }
.c5 { --cc: #047857; --cc-soft: #e3f5ee; }

/* ===== 헤더 ===== */
.site-header { background: var(--ink); border: 0; box-shadow: 0 1px 0 var(--ink-line); }
.site-header .wrap { height: 64px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: inherit; color: #fff; text-decoration: none; }
.logo::before { content: none; }
.logo-mark { width: 34px; height: 34px; display: block; }
.logo-word { font-size: 1.22rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.logo-word { display: inline-flex; flex-direction: column; line-height: 1.05; }
.logo-sub { font-size: .62rem; font-weight: 600; letter-spacing: .02em; color: var(--spark); margin-top: 3px; }
.site-header nav { gap: 4px; align-items: center; }
.site-header nav a { color: #c3d1dd; font-size: .92rem; font-weight: 600; padding: 7px 11px; border: 0; border-radius: var(--radius); }
.site-header nav a:hover { color: #fff; background: var(--ink-2); border: 0; }
.site-header nav a[aria-current="page"] { color: #fff; background: var(--ink-2); box-shadow: inset 0 -2px 0 var(--brand-2); }
.site-header nav .nav-res { display: inline-flex; align-items: center; gap: 5px; color: var(--spark); border: 1px solid #5b4a1e; margin-left: 6px; }
.site-header nav .nav-res:hover, .site-header nav .nav-res[aria-current="page"] { color: #1b1300; background: var(--spark); box-shadow: none; border-color: var(--spark); }

/* ===== 공통 ===== */
.crumbs { max-width: none; margin: 20px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--brand); }
.lvl { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--accent-soft); color: #8a5a00; border: 1px solid #f3dca6; line-height: 1.6; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-btn); font-weight: 700; text-decoration: none; font-size: .98rem; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { color: #fff; border-color: #3a5868; }
.btn-ghost:hover { background: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; color: var(--cc); background: var(--cc-soft); padding: 2px 8px 2px 6px; border-radius: 4px; text-decoration: none; line-height: 1.6; }
a.chip:hover { filter: brightness(.96); }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.hero-stats b { color: var(--text); font-size: 1.05rem; margin-right: 3px; }

/* ===== 홈 히어로 ===== */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
  margin: 24px 0 8px; padding: 48px 48px; border-radius: var(--radius-lg); border: 0; color: #e6edf3;
  background: radial-gradient(circle at 1px 1px, #1d3a4a 1px, transparent 1.5px) 0 0 / 22px 22px, var(--ink); }
.hero h1 { color: #fff; font-family: inherit; font-weight: 800; letter-spacing: -.035em; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.25; margin: 0 0 14px; }
.hero h1::before { content: none; }
.hero .eyebrow { color: var(--spark); }
.hero-lead { color: #b9c8d5 !important; font-size: 1.06rem; margin: 0 0 24px !important; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .hero-stats { color: #9fb3c4; border-top: 1px solid var(--ink-line); padding-top: 16px; margin-top: 26px; }
.hero .hero-stats b { color: #fff; }
.hero-slot { display: block; min-height: 0; margin-top: 14px; }
.hero .cta-btn { margin-top: 14px; background: transparent; color: var(--spark); border: 1px solid #5b4a1e; padding: 9px 16px; font-size: .9rem; }
.hero .cta-btn:hover { background: var(--spark); color: #1b1300; }
.path-panel { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 22px 22px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.panel-title { margin: 0 0 12px; font-weight: 800; font-size: 1rem; }
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.path-steps a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--surface); }
.path-steps a:hover { border-color: var(--cc); background: var(--cc-soft); }
.step-no { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: var(--cc); flex: none; }
.step-txt { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.step-txt small { color: var(--muted); font-size: .8rem; }
.step-arrow { color: var(--muted); }
.panel-sub { margin: 16px 0 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.path-extra { display: flex; flex-wrap: wrap; gap: 8px; }
.path-extra a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius); font-size: .88rem; font-weight: 600; color: var(--cc); background: var(--cc-soft); text-decoration: none; }

/* ===== 섹션 ===== */
.block { margin: 52px 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.sec-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.sec-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.sec-head a { color: var(--brand); font-weight: 600; font-size: .92rem; text-decoration: none; }
.sec-head a:hover { text-decoration: underline; }

/* 코스 카드 */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--cc); border-radius: var(--radius); padding: 20px 20px 18px; display: flex; flex-direction: column; }
.course:hover { box-shadow: var(--shadow); }
.course-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.course-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: var(--cc-soft); color: var(--cc); flex: none; }
.course-ico.big { width: 64px; height: 64px; border-radius: 8px; }
.course-step { font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--cc); letter-spacing: .02em; margin-left: auto; }
.course h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.course h3 a { color: var(--text); text-decoration: none; }
.course h3 a:hover { color: var(--cc); }
.course-goal { margin: 0 0 10px; color: #33414d; font-size: .93rem; line-height: 1.6; }
.course-meta { margin: 0 0 12px; font-size: .8rem; color: var(--muted); }
.course-lessons { list-style: none; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px dashed var(--line); counter-reset: l; flex: 1; }
.course-lessons li { counter-increment: l; display: flex; gap: 8px; margin: 0 0 6px; font-size: .9rem; line-height: 1.5; }
.course-lessons li::before { content: counter(l, decimal-leading-zero); font-family: var(--mono); font-size: .74rem; color: var(--cc); padding-top: 2px; }
.course-lessons a { color: var(--text); text-decoration: none; }
.course-lessons a:hover { color: var(--cc); text-decoration: underline; }
.course-more { font-size: .88rem; font-weight: 700; color: var(--cc); text-decoration: none; }

/* 노트 카드 */
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px; gap: 8px; position: relative; }
.card::after { content: none; }
.card:hover { border-color: var(--cc); box-shadow: var(--shadow); }
.card:hover h3 { color: var(--text); text-decoration: none; }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.card-min { font-size: .78rem; color: var(--muted); }
.card h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 0; }
.card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card time { font-size: .78rem; }

/* 홈 자료실 띠 */
.res-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 22px; }
.res-band .sec-head .ico { color: var(--accent); }
.res-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.res-mini { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--bg); }
.res-mini:hover { border-color: var(--accent); background: var(--accent-soft); }
.res-mini b { font-size: .98rem; line-height: 1.45; }
.res-mini small { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.res-fmts { display: inline-flex; gap: 4px; }
.fmt { display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; letter-spacing: .03em; color: #fff; background: #64748b; line-height: 1.6; }
.fmt-pdf { background: #c2410c; }
.fmt-xlsx { background: #15803d; }
.fmt-txt { background: #475569; }

/* ===== 페이지 머리 (코스·자료실) ===== */
.page-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 36px; margin: 14px 0 28px; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.3; }
.page-lead { margin: 0; color: var(--muted); font-size: 1.04rem; max-width: 720px; }
.page-hero .hero-stats { margin-top: 14px; }
.page-hero .btn { margin-top: 18px; }
.course-hero { display: flex; gap: 24px; align-items: flex-start; border-top: 4px solid var(--cc); }
.course-hero .eyebrow { color: var(--cc); }
.res-hero { border-top: 4px solid var(--accent); background: linear-gradient(180deg, #fffaf0, var(--surface) 70%); }
.res-hero .eyebrow { color: #b45309; }

/* 코스 개요 */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; margin-bottom: 20px; }
.goal { background: var(--brand-soft); border: 1px solid #bfe1ea; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 8px; }
.goal p { margin: 0; }
.goal-t { font-weight: 800; color: var(--brand-ink); font-size: .88rem; margin-bottom: 2px !important; }
.syl-h { display: flex; align-items: baseline; gap: 10px; font-size: 1.15rem; font-weight: 800; margin: 28px 0 10px; letter-spacing: -.02em; }
.syl-h small { font-size: .82rem; color: var(--muted); font-weight: 500; }
.syl { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.syl li + li { border-top: 1px solid var(--line); }
.syl a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 18px; text-decoration: none; color: var(--text); }
.syl a:hover { background: var(--bg); }
.syl a:hover b { color: var(--brand); }
.ln { font-family: var(--mono); font-size: .86rem; font-weight: 700; color: var(--brand-2); padding-top: 2px; }
.lt { display: flex; flex-direction: column; gap: 2px; }
.lt b { font-weight: 700; line-height: 1.5; text-wrap: balance; }
.lt small { color: var(--muted); font-size: .86rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lm { font-size: .78rem; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.course-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.side-h { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-weight: 800; font-size: .95rem; }
.side-h .ico { color: var(--accent); }
.side-res, .side-courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-res a { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px 0; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.side-res li:last-child a { border-bottom: 0; }
.side-res a:hover { color: var(--brand); }
.side-courses a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 600; }
.side-courses a .ico { color: var(--cc); }
.side-courses a small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .76rem; }
.side-courses a:hover { background: var(--cc-soft); }

/* ===== 자료실 ===== */
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.res-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; display: flex; flex-direction: column; scroll-margin-top: 20px; }
.res-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.res-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.res-no { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.res-card h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.res-desc { margin: 0 0 10px; color: #33414d; font-size: .95rem; line-height: 1.65; }
.res-who { margin: 0 0 14px; font-size: .86rem; color: var(--muted); display: flex; gap: 8px; }
.res-who b { color: var(--text); white-space: nowrap; }
.dl-list { display: grid; gap: 8px; margin-top: auto; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--bg); }
.dl-row:hover { border-color: var(--brand); background: var(--brand-soft); }
.dl-info { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.dl-info b { font-size: .92rem; }
.dl-info small { color: var(--muted); font-size: .78rem; }
.dl-go { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
.res-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.res-note { margin: 28px 0 8px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.res-note h2 { font-size: 1.05rem; margin: 0 0 8px; }
.res-note ul { margin: 0; padding-left: 20px; color: #33414d; font-size: .94rem; }
.res-note li { margin: 4px 0; }

/* 글 안 관련 자료 상자 */
.res-box { margin: 40px 0 0; border: 1px solid #f0d9a6; border-radius: var(--radius); background: var(--accent-soft); padding: 18px 20px; }
.res-box-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.res-box-head .ico { color: #b45309; }
.res-box-head p { margin: 0; font-weight: 800; }
.res-box-head a { margin-left: auto; font-size: .86rem; color: #8a5a00; text-decoration: none; font-weight: 600; }
.res-box-head a:hover { text-decoration: underline; }
.rb-item + .rb-item { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ecd3a0; }
.rb-title { margin: 0; font-weight: 700; }
.rb-desc { margin: 2px 0 10px; font-size: .9rem; color: #5b4a2a; line-height: 1.6; }
.res-box .dl-row { background: var(--surface); }
.res-box .dl-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===== 글 ===== */
.pager, .related { max-width: none; }
.post { max-width: none; margin-top: 8px; }
@media (min-width: 1000px) {
  .post { display: grid; grid-template-columns: minmax(0, 1fr) 270px; column-gap: 48px; }
  .post > * { grid-column: 1; }
  .post > .toc { grid-column: 2; grid-row: 1 / span 30; position: sticky; top: 20px; align-self: start; margin-top: 14px; max-height: calc(100vh - 40px); overflow: auto; }
  .post-head, .summary, .post-body, .res-box, .post > .cta-slot { max-width: 780px; }
}
.post-head { border-bottom: 1px solid var(--line); padding: 16px 0 22px; }
.post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.post-min { font-size: .82rem; color: var(--muted); }
.post-head h1 { font-family: inherit; font-weight: 800; letter-spacing: -.035em; line-height: 1.32; }
.byline { font-size: .82rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.toc summary { font-size: .88rem; color: var(--text); }
.toc summary::before { content: ""; width: 4px; height: 14px; background: var(--brand-2); border-radius: 2px; margin-right: 2px; }
.toc ol { font-size: .9rem; padding-left: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; display: flex; gap: 8px; padding: 4px 0; line-height: 1.5; }
.toc li::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: .74rem; color: var(--brand-2); padding-top: 3px; }
.toc a { color: #33414d; }
.summary { border: 1px solid #bfe1ea; border-left: 4px solid var(--brand-2); border-radius: var(--radius); background: var(--tip); padding: 16px 20px; }
.summary-title { color: var(--brand-ink); }
.summary-title::before { content: none; }
.post-body { counter-reset: sec; }
.post-body h2 { font-family: inherit; font-weight: 800; letter-spacing: -.025em; counter-increment: sec; display: flex; align-items: baseline; gap: 10px; }
.post-body h2::before { content: counter(sec, decimal-leading-zero); display: inline-block; width: auto; height: auto; margin: 0; padding: 1px 6px; border-radius: 4px; background: var(--brand-soft); font-family: var(--mono); font-size: .78rem; color: var(--brand); flex: none; position: relative; top: -3px; }
.post-body a { color: var(--brand); }
.tip { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
table { border-top: 0; background: var(--surface); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); }
th { background: var(--paper); }
tr:last-child td { border-bottom: 0; }
.faq { border-top: 0; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.faq-item .q::before { content: none; }
.sources { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); }
.post-body pre { border-radius: var(--radius); background: var(--ink); border-left: 3px solid var(--brand-2); }
.post-body code { background: var(--paper); }
.pager { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 8px; }
.pager-link { padding: 16px 18px; }
.pager > span + .pager-link, .pager-link + .pager-link { padding-left: 18px; }
.pager-link:hover .pager-title { color: var(--brand); text-decoration: none; }
.pager-label { font-family: var(--mono); font-size: .74rem; color: var(--brand-2); }
.related h2 { font-family: inherit; font-weight: 800; border-bottom: 1px solid var(--line); margin-bottom: 16px; font-size: 1.25rem; }

/* ===== CTA·프로모션 ===== */
.cta, .cta-slot.cta { background: var(--ink); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.cta-slot { background: var(--paper); border-radius: var(--radius); }
.cta-btn { color: #1b1300; background: var(--spark); }
.float-cta { background: var(--spark); color: #1b1300; border-left: 0; border-radius: var(--radius); }
.promo { background: var(--ink); color: #e6edf3; border-top: 0; margin-top: 56px; }
.promo h2 { font-family: inherit; font-weight: 800; color: #fff; }
.promo .eyebrow { font-family: var(--mono); color: var(--spark); }
.promo-visual { text-decoration: none; background: linear-gradient(160deg, var(--brand), #123b4a); border: 1px solid var(--ink-line); border-radius: var(--radius-lg); }
.promo-visual-title { margin: 10px 0 0; font-weight: 800; font-size: 1.2rem; }
.promo-visual-sub { margin: 2px 0 0; opacity: .85; font-size: .92rem; }
.promo .cta-btn { font-size: 1.05rem; padding: 14px 26px; }
.cta-modal-box { border-top-color: var(--accent); border-radius: var(--radius); }
.cta-modal-title { font-family: inherit; }

/* ===== 푸터 ===== */
.site-footer { background: #08151e; color: #9fb3c4; border-top: 1px solid var(--ink-line); padding: 40px 0 84px; margin-top: 56px; }
.promo + .site-footer { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--ink-line); }
.foot-brand p { margin: 12px 0 0; font-size: .88rem; line-height: 1.7; max-width: 340px; }
.foot-h { margin: 0 0 8px !important; color: #fff; font-weight: 700; font-size: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: #c3d1dd; text-decoration: none; font-size: .88rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo:hover { text-decoration: none; }
.site-footer .logo-word { font-size: 1.1rem; }
.foot-note { font-size: .8rem; margin: 18px 0 4px !important; line-height: 1.7; }
.foot-copy { font-size: .8rem; margin: 0 !important; color: #6f8597; }

/* ===== 반응형 ===== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .course-grid, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-layout { grid-template-columns: 1fr; }
  .course-side { position: static; grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 6px; gap: 6px; flex-direction: column; align-items: flex-start; }
  .site-header nav { gap: 2px; width: 100%; }
  .site-header nav a { padding: 8px 10px; }
  .site-header nav .nav-res { margin-left: 4px; }
  .site-header nav a:last-child { margin-right: 24px; }
  .hero { margin-top: 14px; padding: 28px 20px; border-radius: var(--radius); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .path-panel { padding: 18px 16px; }
  .course-grid, .grid, .res-grid, .res-mini-grid { grid-template-columns: 1fr; }
  .block { margin: 40px 0; }
  .sec-head h2 { font-size: 1.28rem; }
  .res-band { padding: 18px 16px; }
  .page-hero { padding: 24px 20px; }
  .course-hero { flex-direction: column; gap: 14px; }
  .course-ico.big { width: 52px; height: 52px; }
  .course-side { grid-template-columns: 1fr; }
  .syl a { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 13px 14px; }
  .lm { display: none; }
  .res-card { padding: 18px 16px 16px; }
  .res-who { flex-direction: column; gap: 0; }
  .res-box { padding: 16px; }
  .res-box-head { flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot-brand { grid-column: 1 / -1; }
  .site-footer { padding-top: 32px; }
}
@media (max-width: 600px) {
  .site-header nav { width: calc(100% + 32px); }
}

/* 보정 */
.hero .panel-sub { margin: 16px 0 8px; color: var(--muted); font-size: .84rem; }
.hero .panel-title { margin: 0 0 12px; color: var(--text); }
.related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pager-label { font-family: inherit; font-weight: 600; letter-spacing: 0; }
@media (max-width: 760px) {
  .site-header nav .nav-res { order: -1; margin: 0 6px 0 0; }
  .course-hero .course-ico.big { display: none; }
  .related .grid { grid-template-columns: 1fr; }
}
.promo .eyebrow { font-family: inherit; letter-spacing: .02em; }
@media (max-width: 600px) {
  .float-cta { border-radius: 0; }
}

/* ===== 사진 (퍼블릭 도메인·CC0, data/images.json) ===== */
img { max-width: 100%; height: auto; }
.post-figure { margin: 22px 0 0; }
.post-figure img, .hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--paper); }
.post-figure figcaption, .hero-figure figcaption { margin-top: 6px; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.post-figure figcaption a, .hero-figure figcaption a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.post-figure figcaption a:hover, .hero-figure figcaption a:hover { color: var(--brand); }
.post-figure + .summary { margin-top: 22px; }
.hero-figure { margin: 0; min-width: 0; }
/* 노트 카드 썸네일 */
.card.has-thumb { padding-top: 0; overflow: hidden; }
.card-thumb { display: block; margin: 0 -20px 6px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .card-thumb img { transform: scale(1.03); }
/* 홈 코스 카드 사진 띠 */
.course { overflow: hidden; }
.course-pic { display: block; margin: -20px -20px 16px; aspect-ratio: 16 / 6; overflow: hidden; background: var(--paper); }
.course-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 코스 머리 · 자료실 머리 */
.course-hero.has-figure, .res-hero.has-figure { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 400px); align-items: center; }
.res-hero.has-figure { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 28px; }
/* 코스 목록 썸네일 */
.syl a:has(.lthumb) { grid-template-columns: 40px 112px minmax(0, 1fr) auto; }
.lthumb { display: block; width: 112px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--paper); }
.lthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 이미지 출처 페이지 */
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.credit { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.credit-pic img { display: block; width: 140px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.credit-txt p { margin: 0; }
.credit-t { font-weight: 700; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.credit-t a { color: var(--text); text-decoration: none; }
.credit-t a:hover { color: var(--brand); text-decoration: underline; }
.credit-m { font-size: .8rem; color: var(--muted); margin-top: 3px !important; overflow-wrap: anywhere; }
.credit-m a { color: var(--brand); }
.credit-use { list-style: none; margin: 6px 0 0; padding: 0; font-size: .8rem; }
.credit-use li { margin: 2px 0; }
.credit-use a { color: #33414d; }
@media (max-width: 1000px) {
  .course-hero.has-figure { grid-template-columns: auto minmax(0, 1fr); }
  .course-hero.has-figure .hero-figure { grid-column: 1 / -1; }
  .res-hero.has-figure { grid-template-columns: 1fr; }
  .credit-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .course-hero.has-figure { display: flex; }
  .course-hero .hero-figure { width: 100%; }
  .hero-figure img { aspect-ratio: 16 / 7; }
  .card-thumb { margin: 0 -20px 6px; }
  .syl a:has(.lthumb) { grid-template-columns: 30px minmax(0, 1fr); }
  .lthumb { display: none; }
  .credit { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .credit-pic img { width: 96px; }
  .post-figure { margin-top: 16px; }
}

/* ===== 함께 보면 좋은 영상·자료 (data/media_links.json) ===== */
.media-box { margin: 28px 0 8px; padding: 18px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.media-box h3 { margin: 0 0 14px; font-size: 1.08rem; }
.yt-list, .ml-list { list-style: none; margin: 0; padding: 0; }
.yt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.yt-list li, .ml-list li { margin: 0; padding: 0; }
.yt-card { display: flex; flex-direction: column; height: 100%; color: var(--text) !important; text-decoration: none !important; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.yt-card:hover { border-color: var(--brand-2); }
.yt-card:hover .yt-title { color: var(--brand); }
.yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.yt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 32px; margin: -16px 0 0 -23px; border-radius: 8px; background: rgba(11, 29, 41, .78); }
.yt-play::after { content: ""; position: absolute; left: 19px; top: 9px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.yt-card:hover .yt-play { background: #cc0000; }
.yt-meta { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.yt-title { font-weight: 700; font-size: .95rem; line-height: 1.45; }
.yt-ch, .ml-site { font-size: .8rem; color: var(--muted); }
.yt-note, .ml-note { font-size: .86rem; line-height: 1.55; color: #33414d; }
.ml-list { margin-top: 14px; display: grid; gap: 10px; }
.yt-list + .ml-list { border-top: 1px dashed var(--line); padding-top: 14px; }
.ml-list li { display: flex; flex-direction: column; gap: 2px; }
.ml-list a { font-weight: 700; }
.ml-list a::after { content: " ↗"; font-weight: 400; color: var(--muted); }
.post-body .media-foot { margin: 12px 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 600px) {
  .media-box { padding: 14px 12px 10px; }
  .yt-list { grid-template-columns: 1fr; }
}

/* 홈: AI·LLM 용어 흐르는 띠 */
.term-marquee { margin: 18px 0 30px; display: grid; gap: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tm-row { overflow: hidden; }
.tm-track { display: flex; width: max-content; gap: 10px; animation: tm-move 60s linear infinite; }
.tm-dup { display: flex; gap: 10px; }
.tm-rev .tm-track { animation-direction: reverse; animation-duration: 70s; }
.term-marquee:hover .tm-track, .term-marquee:focus-within .tm-track { animation-play-state: paused; }
.tm-chip { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(14,116,144,.25);
  background: #fff; color: #0f1b26; font-size: .92rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
a.tm-chip:hover { border-color: #0e7490; color: #0e7490; }
.tm-rev .tm-chip { background: #f0f9fb; }
@keyframes tm-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tm-track { animation: none; flex-wrap: wrap; width: auto; }
  .tm-dup { display: none; }
}
