/* 文章內文 SVG／HTML 配圖（scripts/figures/build_figures.py 產生的 <figure class="zt-fig">）。
   色系照 ADR-0010：梓同藍 #2e5195、深藍 #1f3a6d、暖橘 #f08c3a；字級守 ADR-0025（內文 ≥ 16px、小字 ≥ 13px、觸控 ≥ 44px）。
   版面：桌機最寬 760px（文章欄寬），手機 390 一欄；比較表在手機改成一列一張卡。 */
.zt-fig{--zt-blue:#2e5195;--zt-navy:#1f3a6d;--zt-orange:#f08c3a;--zt-ink:#1d2433;--zt-muted:#5a6273;--zt-line:#dde3ee;--zt-soft:#f3f6fb;
  margin:28px 0;padding:22px 20px;border-radius:14px;font-size:16px;line-height:1.7;color:var(--zt-ink);background:#fff;border:1px solid var(--zt-line);box-sizing:border-box;max-width:100%}
.zt-fig *{box-sizing:border-box}
.zt-fig--blue{background:var(--zt-blue);border-color:var(--zt-blue);color:#fff}
.zt-fig-title{margin:0 0 6px;font-size:19px;font-weight:800;letter-spacing:.02em;line-height:1.5}
.zt-fig-lead{margin:0 0 12px;color:var(--zt-muted);font-size:15px}
.zt-fig--blue .zt-fig-lead{color:#dfe6f5}
.zt-fig ul,.zt-fig ol{list-style:none;margin:12px 0 0;padding:0}
.zt-fig-ic{flex:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--zt-blue)}
.zt-fig--blue .zt-fig-ic{color:var(--zt-orange)}
.zt-fig-txt{display:flex;flex-direction:column;min-width:0}
.zt-fig-main{font-weight:700;overflow-wrap:anywhere}
.zt-fig-sub{font-size:15px;color:var(--zt-muted);font-weight:400}
.zt-fig--blue .zt-fig-sub{color:#dfe6f5}
.zt-fig-footer{margin:16px 0 0;padding:12px 14px;border-radius:10px;background:var(--zt-orange);color:#1d1406;font-weight:800;text-align:center}
.zt-fig-note{margin:12px 0 0;font-size:13px;color:var(--zt-muted)}
.zt-fig--blue .zt-fig-note{color:#dfe6f5}

/* 重點卡、清單卡 */
.zt-fig-list li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--zt-line)}
.zt-fig-list li:first-child{border-top:0}
.zt-fig--blue .zt-fig-list li{border-color:rgba(255,255,255,.18)}
.zt-fig-num{flex:none;width:26px;height:26px;border-radius:50%;background:var(--zt-orange);color:#1d1406;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;margin-top:1px}
.zt-fig--checklist .zt-fig-ic{color:var(--zt-orange)}

/* 流程圖：手機直向，桌機兩欄 */
.zt-fig-flow{display:grid;gap:12px;counter-reset:none}
.zt-fig-flow li{position:relative;display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:12px;background:var(--zt-soft);border:1px solid var(--zt-line)}
.zt-fig-step{flex:none;width:30px;height:30px;border-radius:50%;background:var(--zt-blue);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.zt-fig-flow .zt-fig-end{background:var(--zt-orange);border-color:var(--zt-orange);color:#1d1406;justify-content:center;text-align:center}
@media(min-width:700px){.zt-fig-flow{grid-template-columns:repeat(2,1fr)}.zt-fig-flow .zt-fig-end{grid-column:1/-1}}

/* 比較表：桌機表格，手機一列一張卡 */
.zt-fig--table{padding:0;overflow:hidden}
.zt-fig-tablewrap{overflow-x:auto}
.zt-fig-table{width:100%;border-collapse:collapse;font-size:16px}
.zt-fig-table caption{caption-side:top;text-align:left;padding:18px 20px 10px;font-size:19px;font-weight:800;color:var(--zt-ink)}
.zt-fig-table th,.zt-fig-table td{padding:12px 14px;border-top:1px solid var(--zt-line);text-align:left;vertical-align:top}
.zt-fig-table thead th{background:var(--zt-blue);color:#fff;font-weight:700;border-top:0;white-space:nowrap}
.zt-fig-table tbody th{font-weight:700;color:var(--zt-navy)}
.zt-fig-table tbody tr:nth-child(even){background:var(--zt-soft)}
.zt-fig--table .zt-fig-note,.zt-fig--table .zt-fig-footer{margin:0;padding:12px 20px 16px}
.zt-fig--table .zt-fig-footer{border-radius:0}
@media(max-width:699px){
  .zt-fig-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .zt-fig-table,.zt-fig-table caption,.zt-fig-table tbody,.zt-fig-table tr,.zt-fig-table th,.zt-fig-table td{display:block;width:100%}
  .zt-fig-table tr{padding:12px 16px;border-top:1px solid var(--zt-line)}
  .zt-fig-table tbody tr:nth-child(even){background:#fff}
  .zt-fig-table th,.zt-fig-table td{border:0;padding:2px 0}
  .zt-fig-table tbody th{font-size:17px;padding-bottom:4px}
  .zt-fig-table td::before{content:attr(data-label)"：";color:var(--zt-muted);font-weight:400;font-size:15px}
}

/* 費用組成橫條 */
.zt-fig-bars li{display:grid;grid-template-columns:1fr;gap:4px;padding:10px 0;border-top:1px solid var(--zt-line)}
.zt-fig-bars li:first-child{border-top:0}
.zt-fig-bar{display:block;height:12px;border-radius:6px;background:var(--zt-soft);overflow:hidden}
.zt-fig-bar>span{display:block;height:100%;background:var(--zt-blue);border-radius:6px}
.zt-fig-bars li:first-child .zt-fig-bar>span{background:var(--zt-orange)}
.zt-fig-val{font-size:15px;color:var(--zt-muted)}
@media(min-width:700px){.zt-fig-bars li{grid-template-columns:200px 1fr;align-items:center;column-gap:16px}.zt-fig-val{grid-column:2}}

/* 區域示意（方塊排列，不畫真實地圖） */
.zt-fig-regions{display:grid;gap:10px}
.zt-fig-regions li{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:12px;background:var(--zt-soft);border:1px solid var(--zt-line)}
.zt-fig-regions .zt-fig-center{background:var(--zt-blue);border-color:var(--zt-blue);color:#fff;justify-content:center}
.zt-fig-regions .zt-fig-center .zt-fig-ic{color:var(--zt-orange)}
@media(min-width:700px){.zt-fig-regions{grid-template-columns:repeat(2,1fr)}.zt-fig-regions .zt-fig-center{grid-column:1/-1}.zt-fig-regions:has(>li:nth-child(4):last-child){grid-template-columns:repeat(3,1fr)}}

/* 並排比較 */
.zt-fig-compare{display:grid;gap:12px;margin-top:12px}
.zt-fig-col{padding:14px;border-radius:12px;border:1px solid var(--zt-line);background:var(--zt-soft)}
.zt-fig-col ul{margin:8px 0 0}
.zt-fig-col li{display:flex;gap:10px;align-items:flex-start;padding:6px 0}
.zt-fig-coltitle{margin:0;font-weight:800;font-size:17px}
.zt-fig-col--good{border-color:#b9cbe9;background:#eef3fb}
.zt-fig-col--good .zt-fig-ic{color:var(--zt-blue)}
.zt-fig-col--bad{border-color:#f3c7a3;background:#fff5ec}
.zt-fig-col--bad .zt-fig-ic{color:#c2560c}
@media(min-width:700px){.zt-fig-compare{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}}

/* 強調（淡橘底／暖橘方塊）與標題列暖橘 */
.zt-fig-table .zt-fig-hl,.zt-fig-table tr.zt-fig-hl>*{background:#fff1e4}
.zt-fig-flow li.zt-fig-hl{background:var(--zt-orange);border-color:var(--zt-orange);color:#1d1406}
.zt-fig-flow li.zt-fig-hl .zt-fig-step{background:#1d1406}
.zt-fig-flow li.zt-fig-hl .zt-fig-sub{color:#3a2a14}
.zt-fig--bar-orange .zt-fig-title{margin:-22px -20px 12px;padding:14px 20px;border-radius:14px 14px 0 0;background:var(--zt-orange);color:#1d1406}

/* 決策流程：問題一路往下，「是」分到旁邊的結果框 */
.zt-fig-decision{display:grid;gap:10px}
.zt-fig-decision>li{display:grid;gap:8px;padding:0}
.zt-fig-start,.zt-fig-no{padding:12px 14px !important;border-radius:12px;background:var(--zt-blue);color:#fff;display:flex !important;gap:10px;align-items:flex-start}
.zt-fig-no .zt-fig-sub{color:#dfe6f5}
.zt-fig-qtext{display:block;padding:12px 14px;border-radius:12px;border:2px solid var(--zt-blue);background:#fff;font-weight:800;color:var(--zt-navy)}
.zt-fig-yes{display:flex;gap:10px;align-items:flex-start;margin-left:18px;padding:10px 14px;border-radius:12px;background:var(--zt-soft);border:1px solid var(--zt-line)}
.zt-fig-yes.zt-fig-hl{background:var(--zt-orange);border-color:var(--zt-orange);color:#1d1406}
.zt-fig-yes.zt-fig-hl .zt-fig-sub{color:#3a2a14}
.zt-fig-tag{flex:none;min-width:30px;height:26px;padding:0 6px;border-radius:13px;background:var(--zt-navy);color:#fff;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center}
.zt-fig-yes.zt-fig-hl .zt-fig-tag{background:#1d1406}
.zt-fig-no .zt-fig-tag{background:var(--zt-orange);color:#1d1406}
@media(min-width:700px){.zt-fig-q{grid-template-columns:1fr 1fr !important;align-items:center}.zt-fig-yes{margin-left:0}}

/* 英日稿：手機表格欄名後的冒號、英文字距 */
@media(max-width:699px){.zt-fig:lang(en) .zt-fig-table td::before{content:attr(data-label)": "}}
.zt-fig:lang(en) .zt-fig-title{letter-spacing:0}
.zt-fig:lang(en) .zt-fig-main{overflow-wrap:break-word;hyphens:auto}

