/* 會考四科考古題的 HTML 圖（表格、資訊卡、看板、對話框；tl-coord #70，契約 v3 §3）。
 * 來源：內容線交付包 02_圖/數學/exam-table.css（sha256 c356f247219432c22d0a0ef51c6471267172d8964237c4fe551311569cf7ae4f），只做一件機械轉換：
 * 每個選擇器前面加 .cap-fig-html（圖的外框），免得 .row、.unit、.n 這類名字影響頁面的其他地方。規則與數值照原樣。
 * 由 components/past-exams/cap/ 的頁面用 <link> 掛（不進 JS bundle）。守衛 __tests__/config/capFigureCss.test.ts。 */
.cap-fig-html .tbl-wrap{margin:0 auto;width:100%;font-family:Nunito,"Noto Sans TC",-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif;color:#1A1A1A}
.cap-fig-html .tbl-wrap figcaption{text-align:center;font-weight:900;margin:0 0 6px}
.cap-fig-html .tbl-wrap .cap-bottom{text-align:center;font-weight:900;margin:8px 0 0;color:#64748B}
.cap-fig-html .tbl-scroll{overflow-x:auto}
.cap-fig-html table.exam{border-collapse:collapse;margin:0 auto;font-size:15px;text-align:center;font-variant-numeric:tabular-nums}
.cap-fig-html table.exam th,.cap-fig-html table.exam td{border:1.5px solid #1A1A1A;padding:6px 8px;line-height:1.35}
.cap-fig-html table.exam thead th{background:#D6F366;font-weight:900}
.cap-fig-html table.exam tbody th{background:#FBFBF7;font-weight:900;white-space:nowrap}
.cap-fig-html table.exam td{font-weight:800}
.cap-fig-html table.exam td.l{text-align:left}
.cap-fig-html table.exam tr.sum th,.cap-fig-html table.exam tr.sum td{border-top:4px double #1A1A1A}
.cap-fig-html table.exam .vsum{border-left:4px double #1A1A1A}
.cap-fig-html table.exam td.slash,.cap-fig-html table.exam th.slash{background:linear-gradient(to top right,transparent calc(50% - 1px),#1A1A1A calc(50% - 1px),#1A1A1A calc(50% + 1px),transparent calc(50% + 1px))}
.cap-fig-html table.exam td.note{font-weight:700;text-align:left}
.cap-fig-html .unit{text-align:right;font-weight:700;font-size:14px;margin-top:4px}
.cap-fig-html .card-box{border:2px solid #1A1A1A;border-radius:14px;padding:12px 16px;max-width:420px;margin:0 auto;background:#fff;font-weight:800;line-height:1.7}
.cap-fig-html .card-box h4{margin:0 0 6px;text-align:center;font-size:16px;font-weight:900}
.cap-fig-html .card-box ul{margin:0;padding-left:1.3em}
.cap-fig-html .card-box ol{margin:0;padding-left:0;list-style:none}
.cap-fig-html .board{border:3px solid #1A1A1A;border-radius:16px;padding:14px 18px;max-width:460px;margin:0 auto;background:#FBFBF7;font-weight:800;line-height:1.6}
.cap-fig-html .board .hl{background:#1A1A1A;color:#fff;border-radius:12px;padding:8px 12px;text-align:center;font-weight:900;font-size:17px;margin-bottom:10px}
.cap-fig-html .board .row{display:flex;justify-content:space-between;gap:12px}
.cap-fig-html .board .grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;text-align:center}
.cap-fig-html .board .two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.cap-fig-html .board .two>div{border:2px solid #1A1A1A;border-radius:10px;padding:8px;background:#fff}
.cap-fig-html .board .two b{display:block;color:#C13E1D}
.cap-fig-html .board u.dbl{text-decoration:underline double}
.cap-fig-html .dropdown{max-width:300px;margin:0 auto;font-weight:800}
.cap-fig-html .dropdown .lab{font-size:14px;color:#64748B;margin-bottom:4px}
.cap-fig-html .dropdown ul{list-style:none;margin:0;padding:0;border:2px solid #1A1A1A;border-radius:8px;overflow:hidden}
.cap-fig-html .dropdown li{padding:4px 12px;border-top:1px solid #E0E0D8;font-variant-numeric:tabular-nums}
.cap-fig-html .dropdown li:first-child{border-top:none}
.cap-fig-html .dropdown li.sel{background:#64748B;color:#fff}
.cap-fig-html .chat{max-width:460px;margin:0 auto;display:flex;flex-direction:column;gap:10px;font-weight:700;line-height:1.55}
.cap-fig-html .chat .who{font-size:13px;color:#64748B;font-weight:900;margin-bottom:2px}
.cap-fig-html .chat .msg{max-width:78%;border:2px solid #1A1A1A;border-radius:16px;padding:8px 12px;background:#fff}
.cap-fig-html .chat .left{align-self:flex-start}
.cap-fig-html .chat .right{align-self:flex-end;text-align:left}
.cap-fig-html .chat .right .msg{background:#D6F366}
.cap-fig-html .chat .head{border-bottom:2px solid #1A1A1A;padding-bottom:6px;font-weight:900}
.cap-fig-html .chat .head small{display:block;color:#64748B;font-weight:700}
.cap-fig-html .comic{max-width:520px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cap-fig-html .comic .panel{border:2px solid #1A1A1A;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px;background:#fff}
.cap-fig-html .comic .panel .n{font-size:12px;color:#64748B;font-weight:900}
@media (max-width:420px){.cap-fig-html table.exam{font-size:13px}.cap-fig-html table.exam th,.cap-fig-html table.exam td{padding:4px 4px}.cap-fig-html .comic{grid-template-columns:1fr}}
