/* 給福委會印出來的頁面共用樣式（福委會提案包、尾牙主持稿）。
   跟 enterprise.html 同一套淺色紙張：這幾頁的用途是印出來給老闆看、拿在手上念，
   所以不依賴站上的深色樣式；螢幕上是一張白紙，列印時拿掉導覽與按鈕。 */
:root{
  --ink:#241E33; --soft:#5B5270; --line:#DCD6E6; --wash:#F7F5FA;
  /* 金色同 enterprise.html：#856214 在白底 5.59:1（原本的 #9A7318 只有 4.34:1，低於 AA） */
  --gold:#856214; --goldbg:#FDF6E3; --goldline:#EBDCB4;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#EFECF4;color:var(--ink);
  font:15px/1.6 "Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif}
a{color:var(--gold)}
p{margin:0 0 9px}

/* 螢幕上的導覽列與按鈕（列印時整條拿掉） */
.noprint{max-width:860px;margin:16px auto 0;padding:0 16px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.sh-nav{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:13.5px}
.sh-nav a{color:var(--soft);text-decoration:none;display:inline-block;padding:11px 0}
.sh-nav a:hover,.sh-nav a:focus-visible{color:var(--gold)}
/* 觸控目標至少 44px：福委會多半在手機上開、轉給主管 */
.sh-print{font:inherit;font-size:14px;font-weight:700;padding:11px 18px;border-radius:8px;min-height:44px;
  border:2px solid var(--gold);background:var(--gold);color:#fff;cursor:pointer}
.sh-print:hover,.sh-print:focus-visible{background:#6E510F}

.sheet{max-width:860px;margin:12px auto 20px;background:#fff;padding:34px 42px 26px;
  border-radius:4px;box-shadow:0 2px 20px rgba(36,30,51,.13)}

.top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;
  border-bottom:3px solid var(--gold);padding-bottom:12px}
.kicker{font-size:11px;letter-spacing:.22em;color:var(--gold);font-weight:700;margin:0 0 5px}
h1{font-size:26px;line-height:1.28;margin:0 0 7px;letter-spacing:-.01em}
.lede{margin:0;color:var(--soft);font-size:14px;max-width:52ch}
.url{text-align:right;font-size:12px;color:var(--soft);line-height:1.5;white-space:nowrap}
.url b{display:block;font-size:15px;color:var(--ink)}

h2{font-size:11.5px;letter-spacing:.16em;color:var(--gold);margin:18px 0 8px;
  padding-bottom:4px;border-bottom:1px solid var(--line);font-weight:700}
h3{font-size:14.5px;margin:0 0 3px}

/* 填空欄：螢幕上可以直接打字，印出來就是填好的；沒填印出來是一條底線，手寫也行 */
.fills{display:grid;grid-template-columns:repeat(4,1fr);gap:10px 14px;margin:12px 0 0;font-size:12.5px;color:var(--soft)}
.fills label{display:flex;flex-direction:column;gap:2px}
.fills input{font:inherit;font-size:15px;color:var(--ink);border:0;border-bottom:1.5px solid var(--line);
  background:var(--wash);border-radius:4px 4px 0 0;padding:9px 8px;min-height:44px;width:100%}
.fills input:focus{outline:2px solid var(--gold);outline-offset:1px}
.fills .wide{grid-column:span 2}

.cols{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.cols p{font-size:13px;color:var(--soft);margin:0;line-height:1.55}
.cols2{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* 三種流程並排 */
.flows{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.flow{border:1px solid var(--line);border-radius:8px;padding:11px 12px;background:#fff;display:flex;flex-direction:column}
.flow.hi{border:2px solid var(--gold);background:var(--goldbg)}
.flow .min{font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.flow .min small{font-size:12px;font-weight:400;color:var(--soft);margin-left:4px}
.flow .who{font-size:12px;color:var(--soft);margin:2px 0 6px;line-height:1.45}
.flow ol{margin:0;padding-left:0;list-style:none;font-size:12.5px;line-height:1.5}
.flow li{padding:2px 0 2px 26px;position:relative}
.flow li .st{position:absolute;left:0;top:3px;width:20px;height:18px;border-radius:4px;background:var(--gold);color:#fff;
  font-size:11px;font-weight:700;display:grid;place-items:center}
.flow li .st.free{background:var(--soft)}
.flow li .m{color:var(--soft);font-size:11.5px;white-space:nowrap}
.flow .how{margin:7px 0 0;font-size:12px;color:var(--soft);line-height:1.5}
.flow .how b{color:var(--ink)}
/* 三選一：勾了的那張加金框，印出來標「✓ 選用」；勾選本身不印 */
.pick{margin-top:auto;padding-top:6px;display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;color:var(--ink);cursor:pointer}
.pick input{width:20px;height:20px;accent-color:var(--gold);margin:0}
.flow.picked{border:2px solid var(--gold);background:var(--goldbg)}
.flow.picked .min::after{content:"✓ 選用";font-size:12px;font-weight:700;color:var(--gold);margin-left:8px;letter-spacing:0}

table{width:100%;border-collapse:collapse;font-size:13px}
th,td{text-align:left;padding:5px 9px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.5}
th{width:96px;color:var(--soft);font-weight:600;white-space:nowrap}

.card{border:1px solid var(--line);border-radius:8px;padding:11px 13px}
.card.hi{border:2px solid var(--gold);background:var(--goldbg)}
.amt{font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.2}
.amt small{font-size:12.5px;font-weight:400;color:var(--soft)}
.sub{font-size:12.5px;color:var(--soft);margin:3px 0 0;line-height:1.5}
.pay{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:12px;align-items:start}

.qa{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.qa h3{font-size:13.5px}
.qa p{font-size:12.5px;color:var(--soft);line-height:1.55;margin:0 0 5px}

/* 簽核欄：福委會提案多半要走簽呈，留三格給承辦、主委、核准 */
.sign{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:6px;margin-top:8px}
.sign div{padding:6px 10px 34px;font-size:12px;color:var(--soft);border-left:1px solid var(--line)}
.sign div:first-child{border-left:0}

.note{font-size:12.5px;color:var(--soft);line-height:1.55}
.foot{margin-top:18px;padding-top:10px;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--soft)}
.foot b{color:var(--ink)}

/* ---------- 主持稿 ---------- */
/* 台詞：照念的字放大、左邊一條金線；【】裡是動作，不用念 */
.say{margin:6px 0 10px;padding:8px 12px;border-left:4px solid var(--gold);background:var(--wash);border-radius:0 6px 6px 0;
  font-size:15.5px;line-height:1.75}
.say p{margin:0 0 6px}
.say p:last-child{margin:0}
.cue{display:block;font-size:12.5px;color:var(--soft);line-height:1.5;margin:2px 0 0}
.cue b{color:var(--ink)}
.fill-out{font-weight:700;color:var(--ink);border-bottom:1px dashed var(--gold)}
.intros{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.intro{border:1px solid var(--line);border-radius:8px;padding:9px 12px}
.intro h3{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.intro h3 small{font-size:11.5px;font-weight:400;color:var(--soft);white-space:nowrap}
.intro .say{font-size:14px;line-height:1.7;margin:5px 0 4px;padding:6px 10px}
.toc{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;margin:10px 0 0;padding:0;list-style:none}
.toc a{display:inline-block;padding:6px 0}

/* 只給螢幕：A4 扣掉邊界只有 718px，不加 screen 的話列印也會塌成一欄 */
@media screen and (max-width:760px){
  .sheet{margin:8px 0 0;padding:22px 17px;border-radius:0}
  .cols,.cols2,.flows,.pay,.qa,.intros{grid-template-columns:1fr}
  .fills{grid-template-columns:1fr 1fr}
  .url{text-align:left;white-space:normal}
  .top{flex-direction:column;gap:9px}
  .sh-print{width:100%}
}
@media print{
  @page{size:A4;margin:11mm 10mm}
  body{background:#fff;font-size:10pt;line-height:1.45}
  .noprint,.pick{display:none}
  .sheet{margin:0;padding:0;box-shadow:none;max-width:none;border-radius:0}
  h1{font-size:17pt;margin-bottom:4px}
  .lede{font-size:10pt}
  .url b{font-size:12pt}
  h2{margin:10px 0 5px;font-size:9.2pt}
  h3{font-size:10.6pt}
  .fills{margin-top:8px;gap:6px 12px;font-size:9pt}
  .fills input{background:none;border-bottom:1px solid #999;padding:3px 2px;min-height:0;font-size:10.5pt;border-radius:0}
  .fills input::placeholder{color:transparent}   /* 沒填的印成空白底線給人手寫，不要印出「例：…」 */
  .cols p,.qa p,.sub,.note{font-size:9.4pt}
  .flow{padding:8px 9px}
  .flow .min{font-size:15pt}
  .flow .who,.flow .how{font-size:8.8pt}
  .flow ol{font-size:9.3pt}
  .flow li .m{font-size:8.5pt}
  th,td{padding:3.5px 8px;font-size:9.4pt}
  .amt{font-size:15pt}
  .say{font-size:10.5pt;line-height:1.55;padding:4px 10px;margin:3px 0 6px}
  .say p{margin:0 0 3px}
  .intros{gap:7px 12px}
  .intro{padding:7px 10px}
  .intro .say{font-size:9.6pt;line-height:1.5;margin:3px 0 2px}
  .cue{font-size:8.6pt;line-height:1.4}
  .foot{margin-top:10px;padding-top:6px;font-size:8.5pt}
  .flow,.card,.qa>div,.intro,.say,table,.sign,.fills{break-inside:avoid}
  h2{break-after:avoid}
  .pb{break-before:page}
  a{color:var(--ink);text-decoration:none}
  .fill-out{border-bottom:0}
}
