/* Hallmark · shape: app screen · scope: app · theme: 이어온 brand · signature: one chapter with a next action · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: S, preserve the source-reading activities instead of adding decorative sections */
:root{--cp-ink:#24483b;--cp-action:#35634c;--cp-paper:#faf8f2;--cp-tint:#e7eedc;--cp-rule:#cdd5c3;--cp-muted:#526354;--cp-gold:#e8d79d;--cp-focus:#35634c}



.chapter-pages .page-title{margin-top:24px;padding:28px 32px}.chapter-pages .page-title h1{font-size:2.1rem}.chapter-pages .page-actions{margin-block:16px 24px}
.chapter-pages .cp-topic-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;position:sticky;top:0;z-index:14;padding:8px 0;background:var(--cp-paper);border-block:1px solid var(--cp-rule);margin-bottom:0;overflow:visible}
.chapter-pages .cp-topic-nav a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 12px;text-align:center;text-decoration:none;line-height:1.45;border-radius:8px;color:var(--cp-muted);font-size:.9rem}
.cp-topic-nav a:hover{background:var(--cp-tint);color:var(--cp-ink)}
.cp-topic-nav a[aria-selected=true]{background:var(--cp-tint);color:var(--cp-ink);font-weight:700;box-shadow:inset 0 -2px var(--cp-action)}
.chapter-pages [data-chapter-panel]{padding-block:32px 0;scroll-margin-top:72px}
.chapter-pages [data-chapter-panel][hidden]{display:none!important}
.chapter-pages [data-chapter-panel]>.section-title{margin-bottom:24px}
.chapter-pages .cp-inline-prep{padding:16px 0 0;margin:0;border:0}
.chapter-pages .cp-inline-prep .section-title{margin:0 0 16px}.cp-inline-prep .section-title p{margin:0}
.chapter-pages .cp-related{margin-top:24px;padding:0;border-top:1px solid var(--cp-rule);border-bottom:1px solid var(--cp-rule);border-radius:0;background:transparent}
.chapter-pages .cp-related>summary{cursor:pointer;min-height:52px;padding:16px 0;font-weight:700;color:var(--cp-action);font-size:.95rem}
.chapter-pages .cp-related[open]{padding-bottom:20px}.chapter-pages .cp-related .je-faq-item{margin-block:8px;border:0;border-top:1px solid var(--cp-rule);border-radius:0;background:transparent}.chapter-pages .cp-related .je-faq-item>summary{padding-inline:0}
.chapter-pages .cp-related>.je-video-link{max-width:440px}.chapter-pages .cp-related>.je-video-grid{padding-top:12px}
.chapter-pages .cp-pager{margin:32px 0 0;padding:24px 0 32px;border-top:1px solid var(--cp-rule);position:static;background:transparent}
.cp-next-copy{margin:0 0 16px;font-size:.95rem;color:var(--cp-muted);line-height:1.75}
.cp-pager-row{display:flex;justify-content:space-between;gap:16px;align-items:stretch}
.cp-pager-row>a{display:flex;flex-direction:column;gap:4px;justify-content:center;min-height:76px;padding:12px 20px;text-decoration:none;border:1px solid var(--cp-rule);border-radius:8px;color:var(--cp-action);width:min(44%,340px)}
.cp-pager-row small{font-size:.75rem;font-weight:400;color:var(--cp-muted)}.cp-pager-row strong{font-size:1rem;font-weight:700}.cp-pager-row .cp-next{background:var(--cp-tint);border-color:var(--cp-action)}
.cp-pager-row .cp-next:hover{background:var(--cp-gold)}.cp-pager-row .cp-prev:hover{background:var(--cp-tint)}
.chapter-pages a:focus-visible,.chapter-pages button:focus-visible,.chapter-pages summary:focus-visible{outline:3px solid var(--cp-focus);outline-offset:3px}
.chapter-pages footer{margin-top:24px}
@media(max-width:760px){.chapter-pages .page-title{padding:24px 20px}.chapter-pages .page-title h1{font-size:1.7rem}.chapter-pages .cp-topic-nav{gap:4px;padding-block:8px}.chapter-pages .cp-topic-nav a{font-size:.78rem;padding:8px 4px;min-height:48px;word-break:keep-all}.chapter-pages [data-chapter-panel]{padding-top:24px;scroll-margin-top:76px}.cp-pager-row>a{width:calc(50% - 8px);padding:12px}.cp-pager-row strong{font-size:.9rem}.chapter-pages .cp-pager{padding-bottom:24px}.chapter-pages .cp-related>.je-video-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.chapter-pages *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

html,body{overflow-x:clip}
html:has(body.chapter-pages){scroll-behavior:auto}
.chapter-pages [data-chapter-panel]{scroll-margin-top:var(--cp-nav-offset,80px)}
.chapter-pages [data-chapter-panel] :is(h2,h3,details){scroll-margin-top:var(--cp-nav-offset,80px)}
.chapter-pages .cp-topic-nav a{border-radius:8px}
.chapter-pages .cp-topic-nav a[aria-selected=true]{box-shadow:inset 0 -2px var(--cp-action)}
.chapter-pages .cp-topic-nav a:active,.chapter-pages .cp-pager a:active{transform:translateY(1px)}
.chapter-pages .cp-context-questions{margin-top:24px}
.chapter-pages .cp-context-questions h3{font-size:1.1rem;margin-bottom:8px}
.chapter-pages .cp-context-questions .cp-related{margin-top:0}
.chapter-pages .cp-related.je-faq-item summary{padding-inline:0}
.chapter-pages [data-chapter-panel]>h2:focus{outline-offset:8px}
.chapter-pages :is(h1,h2){text-wrap:balance;min-width:0;overflow-wrap:break-word}
body.chapter-pages #content .topic-nav.cp-topic-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 0;margin-inline:0;background:var(--cp-paper);overflow:visible}
body.chapter-pages #content .topic-nav.cp-topic-nav a{border-radius:8px;min-width:0;white-space:normal;word-break:keep-all;padding:8px 12px;min-height:48px;font-size:.9rem;line-height:1.45}
body.chapter-pages #content .topic-nav.cp-topic-nav a[aria-selected=true]{background:var(--cp-tint);color:var(--cp-ink);box-shadow:inset 0 -2px var(--cp-action)}
@media(max-width:760px){body.chapter-pages #content .topic-nav.cp-topic-nav a{padding:8px 4px;font-size:.8rem}}
body.chapter-pages #content #years .aside-card{padding:24px;align-self:start}
body.chapter-pages #content .cp-related{border-inline:0;border-radius:0;background:transparent}
