/* COGO policy reading system. Shared by standalone pages and the isolated dialog. */
:host { all: initial; }
.cp-ui, .cp-ui * { box-sizing: border-box; }
.cp-ui { color: #27364e; font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif; font-size: 15px; line-height: 1.75; letter-spacing: -.015em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
.cp-ui button, .cp-ui a { -webkit-tap-highlight-color: transparent; }
.cp-ui button { font: inherit; cursor: pointer; }
.cp-ui a { color: #3159ad; text-decoration: none; }
.cp-ui a:hover { color: #234491; }
.cp-ui :is(button,a,summary):focus-visible { outline: 3px solid #7292e0; outline-offset: 3px; }
.cp-ui svg { display: block; width: 20px; height: 20px; flex: none; }
body.cp-standalone { margin: 0; min-height: 100vh; background: #f0f3f9; }
.cp-site-head { width: min(1120px, calc(100% - 48px)); margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cp-brand { display: inline-flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.cp-brand a, .cp-brand strong { font-size: 27px; line-height: 1; font-weight: 900; letter-spacing: -.07em; color: #3454c6; }
.cp-brand span { font-size: 12px; color: #6a7890; font-weight: 600; letter-spacing: .02em; }
.cp-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.cp-site-card { width: min(1120px, calc(100% - 48px)); margin: 0 auto 48px; display: grid; grid-template-columns: 224px minmax(0, 1fr); background: #fff; border: 1px solid #e0e6f0; border-radius: 22px; box-shadow: 0 14px 44px #20365b07; overflow: clip; }
.cp-sidebar { min-width: 0; padding: 30px 18px 24px; background: #f7f9fd; border-right: 1px solid #e5eaf3; display: flex; flex-direction: column; gap: 24px; }
.cp-site-card > .cp-sidebar { position: sticky; top: 0; align-self: start; }
.cp-nav-caption { margin: 0 12px 12px; color: #8995a9; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.cp-nav { display: grid; gap: 7px; }
.cp-nav :is(a,button) { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #65748b; font-size: 13px; font-weight: 650; text-align: left; line-height: 1.5; transition: background .15s ease, color .15s ease; }
.cp-nav :is(a,button) svg { width: 18px; height: 18px; }
.cp-nav :is(a,button):hover { color: #304e91; background: #edf2fb; }
.cp-nav [aria-current="page"] { color: #3454b7; background: #e8eefc; border-color: #dce5fb; font-weight: 800; }
.cp-help { padding: 20px 12px 0; margin-top: auto; border-top: 1px solid #e1e7f0; }
.cp-help p { margin: 0 0 5px; color: #7b899e; font-size: 11px; }
.cp-help a { font-size: 15px; color: #435777; font-weight: 750; font-variant-numeric: tabular-nums; }
.cp-main { min-width: 0; }
.cp-document { padding: 38px clamp(24px, 4vw, 54px) 28px; min-width: 0; }
.cp-document > .kicker { display: inline-block; margin-bottom: 8px; color: #5774ba; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.cp-document > h1 { color: #1d2d48; font-size: clamp(25px, 3vw, 32px); font-weight: 800; line-height: 1.35; letter-spacing: -.055em; margin: 0 0 14px; }
.cp-document > .meta { color: #7e8ba1; font-size: 11px; line-height: 1.8; margin: 5px 0; }
.cp-document > .meta + .meta { color: #687990; background: #f6f8fc; border-left: 2px solid #cfdaef; border-radius: 0 7px 7px 0; padding: 10px 13px; margin: 16px 0 20px; font-size: 12px; }
.cp-document section { margin: 27px 0 0; padding-top: 26px; border-top: 1px solid #e9edf4; scroll-margin-top: 20px; }
.cp-document h2 { display: block; color: #243858; font-size: 17px; line-height: 1.55; letter-spacing: -.035em; margin: 0 0 12px; font-weight: 750; }
.cp-document p { margin: 10px 0; color: #526078; font-size: 14px; line-height: 1.95; }
.cp-document p strong, .cp-document li strong { color: #2c405e; font-weight: 750; }
.cp-document ul, .cp-document ol { margin: 12px 0; padding-left: 22px; }
.cp-document li { color: #526078; font-size: 14px; line-height: 1.9; margin: 6px 0; }
.cp-document .callout { padding: 17px 20px; background: #eef3ff; border: 1px solid #dbe5fb; border-radius: 12px; margin: 22px 0; }
.cp-document .callout > strong { color: #365493; font-size: 14px; }
.cp-document .callout p { font-size: 13px; margin: 6px 0 0; }
.cp-document .table-scroll { width: 100%; max-width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid #e1e7f0; border-radius: 11px; }
.cp-document table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; line-height: 1.75; }
.cp-document th, .cp-document td { padding: 13px 14px; vertical-align: top; border-bottom: 1px solid #e6ebf3; }
.cp-document th { color: #536680; background: #f4f7fc; font-weight: 700; white-space: nowrap; }
.cp-document td { color: #526078; min-width: 76px; }
.cp-document tr:last-child td { border-bottom: 0; }
.cp-contents { background: #fbfcfe; border: 1px solid #e2e9f3; border-radius: 12px; margin: 22px 0 26px; padding: 0 16px; }
.cp-contents summary { color: #49617e; font-size: 12px; font-weight: 750; padding: 12px 0; cursor: pointer; }
.cp-contents nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; padding: 0 0 15px; }
.cp-contents a { color: #637793; font-size: 12px; line-height: 1.65; }
.cp-contents a:hover { color: #3454b7; }
.cp-business { border-top: 1px solid #e5eaf3; margin-top: 34px; padding-top: 18px; }
.cp-business .cogo-legal-business { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10px; line-height: 1.9; color: #7e8a9e; }
.cp-business strong { color: #5d6f87; font-weight: 800; }
.cp-business a { color: inherit; }
.cp-dialog { position: fixed; inset: 0; width: min(1100px, calc(100vw - 48px)); height: min(850px, calc(100dvh - 64px)); max-width: none; max-height: none; padding: 0; margin: auto; border: 1px solid #ffffff80; border-radius: 22px; color: #27364e; background: #fff; box-shadow: 0 26px 90px #0f214d40; overflow: hidden; }
.cp-dialog::backdrop { background: #17213980; backdrop-filter: blur(5px); }
.cp-dialog[open] { display: flex; flex-direction: column; animation: cp-arrive .17s ease-out; }
.cp-dialog-head { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 18px; min-height: 74px; padding: 12px 24px; border-bottom: 1px solid #e6ebf3; }
.cp-dialog-head h2 { margin: 0; font-size: 13px; font-weight: 650; color: #697a92; line-height: 1.5; }
.cp-close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid #e2e8f2; color: #647690; background: #fafbfe; }
.cp-close:hover { background: #edf2fb; color: #2d4d8f; }
.cp-dialog-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 224px minmax(0,1fr); }
.cp-dialog-body > .cp-sidebar { min-height: 0; overflow-y: auto; }
.cp-reading { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5d0e2 transparent; scroll-behavior: auto; }
.cp-dialog-foot { min-height: 62px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 24px; border-top: 1px solid #e6ebf3; background: #fbfcfe; }
.cp-open-page { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #6b7e9c !important; }
.cp-done { min-width: 78px; padding: 8px 20px; border: 0; border-radius: 9px; background: #3657bf; color: #fff; font-weight: 700; font-size: 13px !important; }
.cp-done:hover { background: #2c48a4; }
.cp-state { padding: 40px clamp(24px,4vw,54px); }
.cp-state h3 { margin: 0 0 12px; font-size: 20px; color: #283e61; }
.cp-state p { color: #7a89a0; font-size: 14px; }
.cp-skeleton { height: 12px; width: 100%; margin: 17px 0; border-radius: 5px; background: #eef2f8; }
.cp-skeleton:nth-child(3) { width: 88%; }
.cp-skeleton:nth-child(4) { width: 67%; }
@keyframes cp-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
 .cp-site-head { width: calc(100% - 32px); min-height: 72px; }
 .cp-site-card { width: calc(100% - 24px); grid-template-columns: minmax(0,1fr); border-radius: 16px; margin-bottom: 24px; }
 .cp-site-card > .cp-sidebar { position: static; }
 .cp-sidebar { display: block; padding: 12px; border-right: 0; border-bottom: 1px solid #e5eaf3; }
 .cp-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
 .cp-nav :is(a,button) { min-height: 40px; gap: 7px; font-size: 12px; padding: 9px 10px; }
 .cp-nav :is(a,button) svg { width: 16px; height: 16px; }
 .cp-sidebar .cp-nav-caption, .cp-sidebar .cp-help { display: none; }
 .cp-document { padding: 28px 22px 26px; }
 .cp-document > h1 { font-size: 25px; }
 .cp-document h2 { font-size: 16px; }
 .cp-document section { margin-top: 24px; padding-top: 22px; }
 .cp-contents nav { grid-template-columns: minmax(0,1fr); }
 .cp-document th, .cp-document td { padding: 11px; }
 .cp-dialog { width: calc(100vw - 20px); height: calc(100dvh - 24px); border-radius: 18px; }
 .cp-dialog-head { min-height: 64px; padding: 10px 16px; }
 .cp-dialog-head .cp-brand { gap: 11px; }
 .cp-dialog-head .cp-brand strong { font-size: 24px; }
 .cp-dialog-head h2 { font-size: 12px; }
 .cp-dialog-body { display: flex; flex-direction: column; }
 .cp-dialog-body > .cp-sidebar { flex: none; overflow: visible; }
 .cp-reading { flex: 1; }
 .cp-dialog-foot { min-height: 60px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
 .cp-open-page { font-size: 11px; }
 .cp-brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cp-dialog[open] { animation: none; } .cp-nav :is(a,button) { transition: none; } }
@media print {
 body.cp-standalone { background: #fff; }
 .cp-site-head, .cp-sidebar, .cp-contents { display: none !important; }
 .cp-site-card { display: block; width: 100%; border: 0; box-shadow: none; margin: 0; overflow: visible; }
 .cp-document { padding: 0; }
 .cp-document section { break-inside: auto; }
 .cp-document h2 { break-after: avoid; }
 .cp-document .table-scroll { overflow: visible; }
 .cp-document p { font-size: 10.5pt; }
 .cp-business { break-inside: avoid; }
}
