/* 레이아웃: 한 줄 기둥(본문 폭 44rem) 위에 호 → 묶음 → 항목. 수업 질문은 형광펜 밑줄로 강조 */
:root {
  --paper: #f5f6f3;      /* 연한 회록빛 종이 */
  --surface: #ffffff;
  --ink: #1c2421;        /* 먹색 */
  --muted: #5b6662;
  --rule: #d9ded9;
  --accent: #23614f;     /* 짙은 청록 — 교과서 단원 색 */
  --accent-soft: #e3eee9;
  --mark: #f2df74;       /* 형광펜 */
  --mark-ink: #1c2421;
  --font-display: "Gowun Batang", "Nanum Myeongjo", "AppleMyungjo", serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: 0.8125rem; --step-0: 1rem; --step-1: 1.1875rem; --step-2: 1.5rem; --step-3: 2rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141917; --surface: #1b211f; --ink: #e6ebe8; --muted: #9aa6a1; --rule: #2e3734;
    --accent: #7cc4ab; --accent-soft: #1f2e29; --mark: #6b5f1f; --mark-ink: #f5efcf; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141917; --surface: #1b211f; --ink: #e6ebe8; --muted: #9aa6a1; --rule: #2e3734;
  --accent: #7cc4ab; --accent-soft: #1f2e29; --mark: #6b5f1f; --mark-ink: #f5efcf; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.wrap { max-width: 46rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.main { padding-block: 2.5rem 4rem; display: flex; flex-direction: column; gap: 3rem; }

/* 마스트헤드 */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1rem; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: var(--step--1); color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* 호 머리 */
.issue-hero, .latest { display: flex; flex-direction: column; gap: 0.75rem; }
.issue-meta { display: flex; flex-wrap: wrap; gap: 0 1rem; color: var(--accent); margin: 0; }
.issue-meta span + span::before { content: "·"; margin-right: 1rem; color: var(--muted); }
.issue-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.35; margin: 0; text-wrap: balance; }
.issue-title a { text-decoration: none; }
.issue-lead { margin: 0; font-size: var(--step-1); line-height: 1.7; color: var(--muted); max-width: 40rem; }

/* 목차 */
.toc { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding-block: 1rem; }
.toc-label, .latest-label, .box-label { margin: 0 0 0.5rem; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.toc ol, .latest-list { margin: 0; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.toc li::marker, .latest-list li::marker { font-family: var(--font-mono); color: var(--accent); }
.toc a, .latest-list a { text-decoration: none; }
.toc a:hover, .latest-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.toc-sec { display: inline-block; font-size: var(--step--1); color: var(--accent); margin-right: 0.5rem; }

/* 묶음 */
.section { display: flex; flex-direction: column; gap: 1.25rem; }
.section-title { font-family: var(--font-display); font-size: var(--step-2); margin: 0; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }
.section-items { display: flex; flex-direction: column; gap: 2.5rem; }

/* 항목 */
.item { display: flex; flex-direction: column; gap: 1rem; scroll-margin-top: 1rem; }
.item-kicker { margin: 0; font-size: var(--step--1); color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.item-no { font-family: var(--font-mono); font-weight: 500; color: var(--surface); background: var(--accent); min-width: 1.6rem; height: 1.6rem; display: inline-grid; place-items: center; border-radius: 50%; font-size: 0.75rem; }
.item-title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.45; margin: 0.35rem 0 0; text-wrap: balance; }
.item-title a { text-decoration: none; }
.item-title a:hover { color: var(--accent); }
.item-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 40rem) { .item-boxes { grid-template-columns: 1fr; } }
.box { min-width: 0; padding: 1rem 1.1rem; border-radius: 6px; }
.box p { margin: 0; }
.box-q { background: var(--surface); border: 1px solid var(--rule); }
.box-q-text { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.6; }
.box-q-text { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); color: var(--mark-ink); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.box-c { background: var(--accent-soft); font-size: 0.9375rem; line-height: 1.7; }
.item-tags { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; font-size: var(--step--1); }
.item-tags div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; }
.item-tags dt { color: var(--muted); font-weight: 600; min-width: 5.5rem; }
.item-tags dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; min-width: 0; }
.chip { border: 1px solid var(--rule); background: var(--surface); padding: 0.1rem 0.55rem; border-radius: 999px; line-height: 1.6; }
.chip-lens { border-color: var(--accent); color: var(--accent); background: transparent; }

.item-more { border-top: 1px dashed var(--rule); }
.item-more summary { cursor: pointer; list-style: none; padding-block: 0.75rem; font-weight: 600; color: var(--accent); display: flex; gap: 0.6rem; align-items: baseline; }
.item-more summary::-webkit-details-marker { display: none; }
.item-more summary::before { content: "+"; font-family: var(--font-mono); }
.item-more[open] summary::before { content: "−"; }
.item-more summary .mono { color: var(--muted); font-weight: 400; }
.sum-close { display: none; }
.item-more[open] .sum-open { display: none; }
.item-more[open] .sum-close { display: inline; }

.prose { max-width: 40rem; }
.prose h5, .prose h2 { font-family: var(--font-display); font-size: var(--step-1); margin: 1.75rem 0 0.5rem; }
.prose h5:first-child { margin-top: 0.25rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose blockquote { margin: 0 0 1rem; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.prose .editor-note { border: 1px dashed var(--accent); border-radius: 6px; padding: 0.9rem 1rem; color: var(--muted); margin-bottom: 1rem; }
.prose .editor-note strong { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }

.item-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: var(--step--1); padding-top: 0.25rem; }
.item-links a { color: var(--muted); text-decoration: none; }
.item-links a:hover { color: var(--accent); }
.link-detail { color: var(--accent) !important; font-weight: 600; }

/* 홈 */
.home-hero { display: flex; flex-direction: column; gap: 0.4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.home-tag { margin: 0; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; text-wrap: balance; }
.home-desc { margin: 0; color: var(--muted); }
.latest-label { color: var(--accent); }
.btn { align-self: flex-start; background: var(--ink); color: var(--paper); text-decoration: none; padding: 0.55rem 1.1rem; border-radius: 4px; font-weight: 600; font-size: 0.9375rem; }
.btn:hover { background: var(--accent); }
.archive { display: flex; flex-direction: column; gap: 1rem; }
.archive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.archive-list a { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--rule); text-decoration: none; }
.archive-list .mono { color: var(--accent); min-width: 9rem; }
.crumb { margin: 0; color: var(--muted); }
.crumb a { color: var(--accent); text-decoration: none; }

/* 바닥글 */
.footer { border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding-block: 1.75rem 2.5rem; }
.footer-row > div { min-width: 0; flex: 1 1 16rem; }
.footer p { margin: 0 0 0.35rem; }
.footer-name { font-family: var(--font-display); color: var(--ink); font-weight: 700; font-size: 0.9375rem; }
.footer a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
.link-channel { color: var(--accent) !important; font-weight: 600; }
.item-dl { display: flex; flex-direction: column; gap: 0.4rem; }
.item-dl .box-label { margin: 0; }
.dl-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dl { border: 1px solid var(--accent); color: var(--accent); text-decoration: none; padding: 0.35rem 0.8rem; border-radius: 4px; font-size: var(--step--1); font-weight: 600; }
.dl::before { content: "↓ "; }
.dl:hover { background: var(--accent-soft); }
.brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; }
.brand-sub { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.home-by { margin: 0; font-size: var(--step--1); color: var(--muted); }
.home-by a { color: var(--accent); }
.about-hero { display: flex; flex-direction: column; gap: 0.75rem; }
.person { display: flex; flex-direction: column; gap: 0.5rem; }
.person-name { margin: 0; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; }
.person-role { margin: 0; color: var(--accent); font-size: var(--step--1); font-weight: 600; }
.person-contact { margin: 0; font-size: var(--step--1); color: var(--muted); }
.books { display: flex; flex-direction: column; gap: 1rem; }
.book { min-width: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.book p { margin: 0; }
.book-kind { font-size: var(--step--1); font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.book-title { margin: 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; }
.book-meta { color: var(--muted); }
.book-authors { font-size: var(--step--1); color: var(--muted); }
.book-desc { font-size: 0.9375rem; line-height: 1.7; }
.book-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: var(--step--1); }
.book-links a { color: var(--accent); text-decoration: none; }
.book-buy { margin-top: auto; padding-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; border-top: 1px dashed var(--rule); }
.book-buy .box-label { margin: 0 0.25rem 0 0; }
.book-buy .dl::before { content: ""; }
.note { margin: 0; font-size: var(--step--1); color: var(--muted); }
.channel { display: flex; flex-direction: column; gap: 1rem; }
/* 본문 양끝정렬: 한글은 음절 단위 줄바꿈을 허용해야 줄마다 글자 간격이 고르게 맞는다 */
.prose p, .prose li, .issue-lead, .home-desc, .box p, .book-desc, .footer-meta p, .src blockquote p {
  text-align: justify; word-break: normal; line-break: strict; overflow-wrap: break-word; hyphens: manual;
}
.box-q-text { text-align: left; word-break: keep-all; }

/* 원문 상자 */
.src { margin: 0 0 1.25rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.src blockquote { margin: 0; padding: 0; border: 0; color: var(--ink); font-family: var(--font-display); font-size: 1rem; line-height: 1.85; }
.src blockquote p { margin: 0; }
.src figcaption { font-size: var(--step--1); color: var(--muted); line-height: 1.6; }
.src figcaption::before { content: "— "; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }
.vs .src { margin: 0; }
@media (max-width: 40rem) { .vs { grid-template-columns: 1fr; } }
.vs-head { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }

/* 수업 그림 */
.fig { margin: 0 0 1.5rem; padding: 1.1rem 1.15rem 1.2rem; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.fig p { margin: 0; }
.fig-title { font-size: var(--step--1); font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.fig-note { font-size: var(--step--1); color: var(--muted); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; counter-reset: step; }
.flow li { counter-increment: step; position: relative; background: var(--surface); border-radius: 6px; padding: 0.75rem 0.8rem 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.flow li::before { content: counter(step); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--surface); background: var(--accent); width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 50%; }
.flow-step { font-weight: 600; font-size: 0.9375rem; }
.flow-desc { font-size: var(--step--1); color: var(--muted); line-height: 1.6; word-break: keep-all; }
@media (max-width: 40rem) { .flow { grid-template-columns: 1fr; } }
.scale { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; align-items: stretch; }
.scale-cell { background: var(--surface); border-radius: 6px; padding: 0.75rem 0.85rem; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9375rem; min-width: 0; word-break: keep-all; }
.scale-cell-strong { outline: 2px solid var(--accent); outline-offset: -2px; }
.scale-head { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.scale-ex { font-size: var(--step--1); color: var(--muted); }
.scale-arrow { align-self: center; color: var(--accent); font-size: 1.25rem; }
@media (max-width: 30rem) { .scale { grid-template-columns: 1fr; } .scale-arrow { transform: rotate(90deg); justify-self: center; } }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.9375rem; min-width: 26rem; }
.tbl th, .tbl td { border: 1px solid var(--rule); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; word-break: keep-all; }
.tbl th { font-size: var(--step--1); color: var(--muted); font-weight: 600; background: var(--paper); }
.tbl td:first-child { font-weight: 600; white-space: nowrap; }
.tbl td { height: 2.6rem; }
.tbl-ex td { color: var(--accent); }
/* 좁은 상자 안의 글은 왼쪽 정렬로 둔다 (폭이 좁으면 양끝정렬 간격이 벌어진다) */
.prose .fig li, .flow-desc, .vs .src blockquote p, .scale-cell p, .tbl td { text-align: left; }
.vs .src blockquote p { word-break: keep-all; }
.tbl { min-width: 0; table-layout: fixed; }
.tbl th:first-child, .tbl td:first-child { width: 6.5rem; }
.tbl td:first-child { white-space: normal; }
/* 항목 페이지 도구 */
.item-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.btn-print { font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: 4px; padding: 0.35rem 0.8rem; cursor: pointer; }
.btn-print:hover { background: var(--accent-soft); }
.like { font: inherit; font-size: var(--step--1); font-weight: 600; color: #c2410c; background: transparent; border: 1px solid #e8a37f; border-radius: 4px; padding: 0.35rem 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.like:hover { background: #fdf0e8; }
.like.on { background: #fdf0e8; border-color: #c2410c; }
.like-ico { font-size: 1.05em; line-height: 1; }
.like-n:empty { display: none; }
.like:disabled { cursor: progress; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .like { color: #f4a27a; border-color: #8a4a2a; } :root:not([data-theme="light"]) .like:hover, :root:not([data-theme="light"]) .like.on { background: #3a2418; } }
.share { position: relative; display: inline-flex; }
.share-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 11rem; display: flex; flex-direction: column; padding: 0.35rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.share-menu[hidden] { display: none; }
.share-item { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.6rem 0.85rem; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 0.9375rem; color: var(--ink) !important; text-decoration: none; text-align: left; cursor: pointer; }
.share-item:hover, .share-item:focus-visible { background: var(--accent-soft); outline: none; }
.share-copy { color: var(--accent) !important; border-top: 1px solid var(--rule); border-radius: 0 0 6px 6px; margin-top: 0.2rem; padding-top: 0.7rem; }
.save { font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: 4px; padding: 0.35rem 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.save:hover, .save.on { background: var(--accent-soft); }
.save-ico { font-size: 1.05em; line-height: 1; }
.nav-count { font-family: var(--font-mono, monospace); color: var(--accent); }
.saved-list li { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--rule); }
.saved-list li .saved-link { flex: 1 1 auto; border-bottom: 0; min-width: 0; }
.saved-remove { flex: 0 0 auto; font: inherit; font-size: var(--step--1); color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 0.25rem 0.6rem; cursor: pointer; }
.saved-remove:hover { color: var(--ink); border-color: var(--muted); }
@media print { .share, .save { display: none; } }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tool-btns { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(1rem); background: var(--ink); color: var(--paper); font-size: var(--step--1); padding: 0.55rem 1rem; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); word-break: break-all; margin: 0; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media print { .toast { display: none; } }
.print-only { display: none; }

/* 인쇄 · PDF 저장 */
@media print {
  :root { --paper: #fff; --surface: #fff; --ink: #111; --muted: #444; --rule: #bbb; --accent: #1d5446; --accent-soft: #f1f5f3; --mark: #f5e48a; --mark-ink: #111; color-scheme: light; }
  @page { size: A4; margin: 16mm 15mm 18mm; }
  body { font-size: 10.5pt; line-height: 1.7; background: #fff; }
  .masthead, .footer, .no-print, .item-links { display: none !important; }
  .print-only { display: block; }
  .print-head { font-size: 9pt; color: var(--muted); margin: 0 0 4mm; padding-bottom: 2mm; border-bottom: 1px solid var(--rule); }
  .print-foot { font-size: 8.5pt; color: var(--muted); margin-top: 6mm; padding-top: 2mm; border-top: 1px solid var(--rule); }
  .wrap { max-width: none; padding: 0; }
  .main { padding: 0; gap: 0; }
  .item-title { font-size: 16pt; }
  .src, .fig, .box, .vs, .tbl, .flow li, .scale { break-inside: avoid; }
  .prose h5 { break-after: avoid; }
  .tbl { min-width: 0; }
}
.footer .rights { color: var(--ink); }
.mail { color: var(--accent); text-underline-offset: 3px; }
/* 책 표지 */
.book { flex-direction: row; gap: 1rem; align-items: flex-start; }
.book-cover { flex: 0 0 144px; max-width: 144px; }
.book-cover img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.12); }
.book-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.45rem; align-self: stretch; }
@media (max-width: 30rem) { .book-cover { flex-basis: 100px; max-width: 100px; } }
/* 오픈채팅 */
.openchat { display: inline-flex; align-items: center; gap: 0.45rem; background: #fee500; color: #191600 !important; text-decoration: none; font-weight: 600; font-size: var(--step--1); padding: 0.45rem 0.9rem; border-radius: 6px; }
.openchat::before { content: ""; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: radial-gradient(ellipse 50% 42% at 50% 45%, #000 98%, transparent 100%); mask: radial-gradient(ellipse 50% 42% at 50% 45%, #000 98%, transparent 100%); }
.openchat:hover { filter: brightness(0.96); }
.chat-btns { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; }
.openchat.form { background: transparent; color: var(--ink) !important; border: 1.5px solid #e0c800; padding: calc(0.45rem - 1.5px) calc(0.9rem - 1.5px); }
.openchat.form::before { background: var(--accent); -webkit-mask: none; mask: none; border-radius: 2px; }
.talk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding: 0.9rem 1rem; border: 1px dashed var(--rule); border-radius: 6px; }
.talk p { margin: 0; font-size: 0.9375rem; color: var(--muted); }

/* 윤리로 읽는 책 */
.read .item-title { font-size: var(--step-3); }
.read-book { margin-top: 0.25rem; }
.underlines { display: flex; flex-direction: column; gap: 0.75rem; }
.underlines .box-label { margin: 0; }
.underline { margin: 0; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; }
.underline p { margin: 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.75; text-align: left; }
.underline p { background-image: linear-gradient(transparent 62%, var(--mark) 62%); background-repeat: no-repeat; display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.underline cite { display: block; margin-top: 0.4rem; font-style: normal; font-size: var(--step--1); color: var(--muted); }
.read-boxes { grid-template-columns: 1fr; }
.read-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.read-list a { display: flex; gap: 1rem; align-items: center; padding-block: 0.8rem; border-bottom: 1px solid var(--rule); text-decoration: none; }
.read-thumb { flex: 0 0 56px; width: 56px; height: auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.read-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.read-text .mono { color: var(--accent); font-size: var(--step--1); }
.read-title { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; }
.read-list a:hover .read-title { color: var(--accent); }
.empty { color: var(--muted); margin: 0; padding: 1.5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .underline p { background-image: linear-gradient(transparent 62%, rgba(242,223,116,0.28) 62%); } }
:root[data-theme="dark"] .underline p { background-image: linear-gradient(transparent 62%, rgba(242,223,116,0.28) 62%); }
@media print { .underline { break-inside: avoid; } }

/* 길벗 채널 모아 보기 */
.ch-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.5rem; }
.ch-nav a { font-size: var(--step--1); text-decoration: none; color: var(--accent); border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 0.3rem 0.8rem; }
.ch-nav a:hover { border-color: var(--accent); background: var(--accent-soft); }
.ch-group { display: flex; flex-direction: column; gap: 0.6rem; scroll-margin-top: 1rem; }
.ch-about { margin: 0; color: var(--muted); font-size: 0.9375rem; text-align: left; }
.ch-series { margin: 0.9rem 0 0; font-family: var(--font-display); font-size: var(--step-1); }
.ch-series-sub { margin: -0.35rem 0 0; color: var(--muted); font-size: 0.9375rem; text-align: left; }
.ch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ch-link { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.ch-link:hover .ch-title { color: var(--accent); }
.ch-title { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; }
.ch-title::after { content: " ↗"; font-family: var(--font-body); font-size: 0.8em; color: var(--muted); }
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; color: var(--accent); }
.ch-tag { font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0 0.5rem; }
.ch-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; text-align: left; }
.ch-more summary { cursor: pointer; list-style: none; padding: 0.7rem 0; color: var(--accent); font-weight: 600; font-size: var(--step--1); }
.ch-more summary::-webkit-details-marker { display: none; }
.ch-more summary::before { content: "+ "; }
.ch-more[open] summary::before { content: "− "; }
.ch-more .sum-close { display: none; }
.ch-more[open] .sum-open { display: none; }
.ch-more[open] .sum-close { display: inline; }
.ch-note { color: var(--muted); font-size: var(--step--1); border-top: 1px solid var(--rule); padding-top: 1rem; margin: 0; text-align: left; }
