/* Compact section bands inspired by the supplied report references. */
#map>.heading,#changes>.heading,#brief>.heading{background:#e4f0ed;border:1px solid #c5dcd6;border-left:4px solid #5d9d92;border-radius:9px;padding:12px 16px;margin-bottom:12px;gap:6px 14px}
#map>.heading .kicker,#changes>.heading .kicker{display:none}
#map>.heading h1,#changes>.heading h1,#brief>.heading h1{font-size:25px;line-height:1.35;margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#map>.heading h1:before,#changes>.heading h1:before,#brief>.heading h1:before{color:#3d8a7e;border-right:2px solid #97bfb6;padding-right:12px;font-size:25px;font-weight:800}
#map>.heading h1:before{content:'01'}#changes>.heading h1:before{content:'02'}#brief>.heading h1:before{content:'03'}
#map>.heading>p,#changes>.heading>p,#brief>.heading>p{font-size:12px;line-height:1.6;margin:5px 0 0;color:#526c6b}
#map>.heading .basis,#changes>.heading .basis{font-size:11px;margin-top:6px}
#brief .brief-conclusion{display:grid;grid-template-columns:minmax(190px,.85fr) minmax(0,2fr);gap:18px;align-items:center;background:transparent;border:0;border-top:2px solid #729d94;border-bottom:1px solid #d4e1dd;border-radius:0;padding:13px 0}
#brief .brief-conclusion-heading{background:#eaf2ef;border-radius:5px;padding:12px;margin:0}
#brief .brief-conclusion-heading h2{font-size:17px;line-height:1.65;color:#245d55;margin:0;font-weight:800}
#brief .brief-conclusion .brief-outline{margin:0;font-size:14px;line-height:1.75}
#brief .brief-integrated-issue{border:0;border-bottom:1px solid #d6e1e2;border-radius:0;padding:13px 0;margin:0}
#brief .brief-ai-panel{display:grid;grid-template-columns:minmax(190px,.85fr) minmax(0,2fr);column-gap:18px;align-items:start}
#brief .brief-ai-panel>header{grid-column:1;grid-row:1/3;display:block;background:#f0f4f3;border-radius:5px;padding:11px 12px}
#brief .brief-ai-panel header>span{display:inline-block;font-size:11px;padding:2px 6px;margin-bottom:6px}
#brief .brief-ai-panel h3{font-size:16px;line-height:1.6;color:#254f49}
#brief .brief-ai-panel>.brief-outline{grid-column:2;margin:0 0 8px;line-height:1.75}
#brief .brief-ai-panel>.brief-ai-action{grid-column:2;padding:7px 10px;font-size:13px}
#brief .brief-integrated-issue>.brief-reading-links{margin:5px 0 0;text-align:right}
#brief .executive-note{font-size:11px}
@media(max-width:750px){#brief .brief-conclusion,#brief .brief-ai-panel{grid-template-columns:1fr;gap:9px}#brief .brief-ai-panel>header{grid-row:auto}#brief .brief-ai-panel>.brief-outline,#brief .brief-ai-panel>.brief-ai-action{grid-column:1}#map>.heading h1,#changes>.heading h1,#brief>.heading h1{font-size:22px}}

/* Gray title frame; full-width issue title above one grouped body. */
#map>.heading,#changes>.heading,#brief>.heading{background:#f5f6f7;border:1px solid #cbd0d5;border-radius:0}
#map>.heading h1:before,#changes>.heading h1:before,#brief>.heading h1:before{color:#65717d;border-right:1px solid #bfc6cd}
#map .heading .month-review-label,#changes .heading .month-review-label,#brief .heading .month-review-label{background:#fff;color:#204957;border:2px solid #668991;border-radius:4px;font-size:16px;font-weight:750;padding:7px 12px;box-shadow:0 1px 3px #263e4914;opacity:1}
#brief .brief-conclusion{display:block;border:0;padding:0;margin:0 0 12px}
#brief .brief-conclusion-heading{background:none;padding:0 0 8px}
#brief .brief-conclusion-heading h2{color:#25424d;font-size:18px}
#brief .brief-conclusion>.brief-outline{background:#f1f4f5;padding:11px 16px 11px 32px;border-radius:3px}
#brief .brief-ai-panel{display:block}
#brief .brief-ai-panel>header{display:flex;flex-wrap:nowrap;align-items:baseline;gap:10px;background:none;padding:0 0 9px;border-radius:0}
#brief .brief-ai-panel header>span{flex:none;margin:0;background:#e9eef0;border:1px solid #cdd7dc;color:#465e69;padding:3px 7px}
#brief .brief-ai-panel h3{font-size:18px;line-height:1.5;word-break:keep-all;overflow-wrap:normal;color:#25424d;flex:1}
#brief .brief-issue-body{background:#f1f4f5;border-radius:3px;padding:10px 14px}
#brief .brief-issue-body .brief-outline{margin:0;padding-left:18px;font-size:14px;line-height:1.75}
#brief .brief-ai-panel .brief-issue-body .brief-ai-action{background:none;border:0;border-top:1px solid #d6dfe2;border-radius:0;margin:8px 0 0;padding:8px 0 0;display:flex;gap:12px;line-height:1.65;font-size:13px}
#brief .brief-ai-panel .brief-ai-action>b{color:#405f70;white-space:nowrap}
#brief .brief-integrated-issue{border-bottom:0;padding:12px 0 6px}
@media(max-width:600px){#brief .brief-ai-panel h3{font-size:16px}#brief .brief-ai-panel>header{gap:7px}#brief .brief-issue-body{padding:10px 12px}}

#brief .brief-conclusion-heading h2{font-size:18px;margin:0 0 2px}#brief .brief-conclusion>.brief-outline li{font-weight:400}#brief .brief-integrated-issues{margin-top:12px}

#brief .brief-ai-panel .brief-issue-body .brief-ai-action{background:#e5edf6;border-top:1px solid #b7c9dc;border-left:3px solid #6f90b6;padding:10px 12px;margin:10px -2px 0;color:#284b70}#brief .brief-ai-panel .brief-issue-body .brief-ai-action>b{color:#234e7a;font-weight:800}

.brief-area-review{margin:22px 0}.brief-area-review h2{font-size:20px;margin:0 0 6px}.brief-area-review table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.brief-area-review th,.brief-area-review td{padding:10px 12px;border-bottom:1px solid #d9e1e5;vertical-align:top;text-align:left}.brief-area-review thead{background:#edf1f3}.brief-area-review th:first-child{width:78px}.brief-area-review th:last-child{width:190px}.brief-area-review tbody th{background:#f6f8f9;white-space:nowrap}.brief-area-note b,.brief-area-note span{display:block}.brief-area-note b{color:#244a5e;margin-bottom:4px}.brief-area-note span{line-height:1.6}.brief-area-links{display:flex;gap:5px;flex-wrap:wrap}.brief-area-links button{font:inherit;font-size:12px;color:#285c78;background:#fff;border:1px solid #c7d6df;border-radius:3px;padding:3px 6px;cursor:pointer}.brief-area-pending{color:#778690}@media(max-width:760px){.brief-area-review th:last-child{width:125px}.brief-area-review th:first-child{width:65px}.brief-area-review th,.brief-area-review td{padding:8px 6px}}

.brief-cautions.brief-cautions-compact{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 18px;margin-top:16px;padding-top:10px}.brief-compact-warning{margin:0;font-size:12px;line-height:1.7;color:#536f80}.brief-compact-warning b{margin-right:8px}.brief-cautions-compact>.brief-reference-drawer{margin:0;padding:0;border:0}.brief-cautions-compact>.brief-reference-drawer>summary{padding:0;font-size:12px;white-space:nowrap}.brief-cautions-compact>.brief-reference-drawer[open]{flex-basis:100%}.brief-cautions-compact>.brief-reference-drawer[open]>summary{margin-bottom:12px}

.brief-area-compact{margin:18px 0 12px}.brief-area-list{border-top:1px solid #d9e1e5;font-size:13px}.brief-area-row{display:grid;grid-template-columns:84px minmax(0,1fr);border-bottom:1px solid #e1e7eb}.brief-area-label{background:#f4f6f7;padding:8px 10px;white-space:nowrap}.brief-area-row>div{padding:6px 10px}.brief-area-line{line-height:1.65;margin:0 0 2px}.area-subject-link{border:0;background:none;padding:0;color:#285c78;font:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:#c3d1da;text-underline-offset:3px}.area-issue-link{border:0;border-radius:3px;background:#edf2f5;color:#506979;font:inherit;font-size:11px;padding:1px 6px;margin-left:10px;white-space:nowrap;cursor:pointer}.area-check-note{display:inline;margin-left:10px;color:#526b79;font-size:12px}.brief-area-pending{font-size:12px}@media(max-width:600px){.brief-area-row{grid-template-columns:76px minmax(0,1fr)}.brief-area-label{padding:8px 6px}.area-check-note{display:block;margin-left:0}}

.area-review-sentence{display:block;line-height:1.55;color:#274b5d;margin-bottom:3px}.area-review-evidence{display:block;font-size:11px;line-height:1.5}.area-review-evidence .area-subject-link{font-size:11px}.brief-area-compact .brief-area-row>div{padding:7px 10px}

.area-action-line{display:flex;align-items:baseline;gap:12px;justify-content:space-between;line-height:1.6}.area-action-line+.area-action-line{margin-top:5px}.area-action-line>span{flex:1;min-width:0;color:#355363}.area-action-line b{color:#244a5e}.area-detail-link{border:0;background:none;padding:0;color:#526f81;white-space:nowrap;font:inherit;font-size:11px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* 교과별 확인은 주요 쟁점의 보조 안내 */
.brief-area-review.brief-area-compact{display:grid;grid-template-columns:112px minmax(0,1fr);gap:0;border:1px solid #dce2e6;margin:20px 0 12px;border-radius:2px}.brief-area-compact>h2{margin:0;padding:14px 12px;background:#edf0f2;color:#536572;font-size:14px;line-height:1.65;font-weight:700;word-break:keep-all}.brief-area-compact .brief-area-list{border-top:0}.brief-area-compact .brief-area-row{grid-template-columns:64px minmax(0,1fr)}.brief-area-compact .brief-area-row:last-child{border-bottom:0}.brief-area-compact .brief-area-label{background:#f7f8f9;color:#536572;font-size:12px;padding:9px 8px}.brief-area-compact .area-action-line{font-size:13px}.brief-area-compact .area-detail-link{font-size:11px}@media(max-width:700px){.brief-area-review.brief-area-compact{grid-template-columns:1fr}.brief-area-compact>h2{padding:6px 10px;font-size:13px}.brief-area-compact .brief-area-row{grid-template-columns:58px minmax(0,1fr)}}

.brief-area-review.brief-area-compact{border:1px solid #20282d}.brief-area-compact>h2{color:#172b36;font-size:15px;font-weight:800}.brief-area-compact .brief-area-label{color:#172b36;font-size:14px;font-weight:800}.brief-action-evidence{margin-top:8px}

/* 주요 구분만 낮은 제목 띠로 강조 */
#changes #subject-list-title{display:inline-block;background:#294955;color:#fff;padding:6px 12px;border-radius:3px;font-size:17px;line-height:1.4;margin-bottom:5px}
#brief .brief-conclusion-heading{background:#294955;border-radius:3px;padding:6px 12px;margin-bottom:10px}
#brief #brief-conclusion-title{color:#fff;font-size:17px;line-height:1.4;margin:0}

/* 과목 상세: 제목보다 목록에 공간 배분 */
#drawer,#drawer.inline-course{padding:12px 16px}
#drawer .drawer-head{padding:0 0 7px;align-items:flex-start;gap:10px}
#drawer .drawer-head>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#drawer #detail-title{order:-1;display:inline-block;background:#e3edef;color:#203f4c;font-size:20px;line-height:1.35;padding:4px 9px;margin:0;border-radius:3px}
#drawer #detail-meta{font-size:11px;line-height:1.5}
#drawer #close{font-size:26px;line-height:1;padding:2px 4px}
#drawer #detail-summary{padding:4px 0;margin:0}#drawer #detail-summary:empty{display:none}
#drawer #detail-body>h3{margin:9px 0 7px;font-size:14px}
#drawer #detail-body>h3:first-child:before{content:'●';color:#257c72;margin-right:7px;font-size:11px}
#drawer .mega-reference{padding:9px 12px;margin:9px 0 0;border-radius:3px;background:#f7f9fa}
#drawer .mega-reference>h3{display:inline-block;margin:0 12px 5px 0;font-size:14px}
#drawer .mega-reference>h3:before{content:'◆';color:#537ca5;margin-right:7px;font-size:11px}
#drawer .mega-reference>.secondary{margin:0 0 5px;padding:3px 8px;font-size:11px}
#drawer .mega-courses ul{margin:3px 0 0}#drawer .mega-courses li{padding:7px 0}
#drawer #detail-body th{padding:7px 6px;white-space:nowrap}
#drawer #detail-body td:last-child{min-width:48px;word-break:keep-all}

.mast{height:auto;min-height:100px;padding-top:16px;padding-bottom:14px}.brand-heading{min-width:0}.brand-heading .brand small{display:none}.mast-flow{margin:5px 0 0 61px;padding:0;background:none;border:0;color:#70828b}.mast-flow ol{display:flex;flex-wrap:wrap;align-items:center;gap:3px 0;margin:0;padding:0;list-style:none}.mast-flow li{display:flex;align-items:center;font-size:11px;line-height:1.5;font-weight:400;white-space:nowrap}.mast-flow li span{padding:0;background:none;border:0;color:inherit}.mast-flow li+li:before{content:'›';padding:0 7px;color:#87979f}.mast-flow li:after{display:none}@media(max-width:700px){.mast{padding-top:12px;padding-bottom:12px;min-height:85px}.mast-flow{margin-left:0;margin-top:7px}.mast-flow li{font-size:10px}.mast-flow li+li:before{padding:0 5px}}

.brand-heading .brand small{display:block;font-size:11px;line-height:1.4;margin-top:3px;color:#6b7e88;font-weight:400;letter-spacing:0}.mast-flow{margin-top:5px}

/* 상세창과 원 표의 경계, 읽기 폭 */
#changes #rows tr.course-inline-row>td{padding:14px!important;background:#e9eff3!important;border:1px solid #bdcbd4!important}
#drawer.inline-course{width:100%;max-width:900px;margin:0 auto;border:1px solid #8fa6b5;border-radius:6px;box-shadow:0 4px 16px #243d4b20;background:#fff;max-height:72vh;overflow:auto}
#drawer:not(.inline-course){width:min(900px,calc(100vw - 48px));max-width:calc(100vw - 48px);height:auto;max-height:84vh;margin:auto;border:1px solid #8fa6b5;border-radius:6px;box-shadow:0 12px 45px #152c4540}
#drawer::backdrop{background:#20334455}
#drawer .drawer-head{position:sticky;top:-12px;z-index:2;background:#fff;padding-top:6px;padding-bottom:8px}
#drawer #detail-body>table{table-layout:fixed;width:100%}
#drawer #detail-body>table th:nth-child(1){width:9%}
#drawer #detail-body>table th:nth-child(2){width:53%}
#drawer #detail-body>table th:nth-child(3){width:13%}
#drawer #detail-body>table th:nth-child(4){width:14%}
#drawer #detail-body>table th:nth-child(5){width:11%}
#drawer #detail-body>table td:nth-child(1),#drawer #detail-body>table td:nth-child(3),#drawer #detail-body>table td:nth-child(4),#drawer #detail-body>table td:nth-child(5){white-space:nowrap}
@media(max-width:700px){#changes #rows tr.course-inline-row>td{padding:8px!important}#drawer.inline-course{padding:10px;max-height:75vh}#drawer #detail-body>table{min-width:580px}#drawer #detail-body{overflow-x:auto}.drawer-head{gap:6px}}

@media(max-width:1000px){#drawer.inline-course{width:calc(100vw - 100px);max-width:900px;margin:0}#drawer .drawer-head{position:sticky}#drawer.inline-course #detail-body{overflow-x:auto}}

.mast-flow{display:flex;align-items:center;gap:12px;white-space:nowrap;max-width:100%;overflow-x:auto;padding-bottom:2px}.mast-flow .flow-purpose{font-size:11px;font-weight:650;color:#49616e;flex-shrink:0;padding-right:12px;border-right:1px solid #d3dce1}.mast-flow ol{flex-wrap:nowrap;flex-shrink:0}.mast-flow li{font-size:11px}.mast-flow li+li:before{content:'›';padding:0 8px;color:#6d8591;font-weight:600}@media(max-width:700px){.mast-flow{gap:8px;margin-left:0}.mast-flow .flow-purpose{font-size:10px;padding-right:8px}.mast-flow li{font-size:10px}.mast-flow li+li:before{padding:0 5px}.brand-heading{max-width:100%}.mast .edition{display:none}}

#drawer.inline-course{width:min(740px,100%);max-width:740px;margin:0 auto}#drawer:not(.inline-course){width:min(740px,calc(100vw - 48px));max-width:740px}@media(max-width:1000px){#drawer.inline-course{width:min(740px,calc(100vw - 100px));margin:0}}
