/* Corporate investigation site: aligned with Lida (primary #0060B0, Noto Sans TC).
   #0090D0 reaches only 3.6:1 on white, so it is used for large figures and
   decoration, never for body text or links. */
:root {
  --primary: #0060b0;
  --primary-deep: #004a8a;
  --accent: #0090d0;
  --ink: #363636;
  --ink-strong: #1f2a36;
  --muted: #566170;
  --line: #d8e0e8;
  --wash: #f2f6fa;
  --white: #fff;
  --radius: 2px;
  --measure: 66ch;
  --tint: #e6f0fa;
  --tint-line: #b4d0ea;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 1rem; line-height: 1.75;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }

.topbar { background: var(--ink); color: #fff; font-size: 0.875rem; text-align: center; padding: 4px 16px; }
.site-head { border-bottom: 3px solid var(--ink-strong); background: var(--white); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { min-width: 0; text-decoration: none; color: var(--ink-strong); display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1.25; margin-right: auto; }
.brand img { display: block; height: 40px; width: 40px; flex: none; }
.brand span { color: var(--primary); font-weight: 700; }
.main-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.button, button.button {
  display: inline-block; background: var(--primary); color: #fff; text-decoration: none;
  padding: 10px 22px; border: 0; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer;
}
.button:hover { background: var(--primary-deep); color: #fff; }
.button.ghost { background: var(--white); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.button.ghost:hover { background: var(--wash); color: var(--primary-deep); }

main { min-height: 60vh; }
.band { background: var(--wash); padding: 56px 0; }
.section { padding: 40px 0; }
.section h2, .band h2 { font-size: 1.6rem; margin: 0 0 8px; color: var(--ink-strong); }
.section .sub, .band .sub { color: var(--muted); margin: 0 0 28px; max-width: var(--measure); }
h1 { color: var(--ink-strong); }
.page-head { padding: 44px 0 28px; border-bottom: 3px solid var(--ink-strong); }
.page-head h1 { margin: 0 0 14px; font-weight: 900; font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
html:lang(zh-Hant) .page-head h1, html:lang(zh-Hans) .page-head h1, html:lang(ja) .page-head h1, html:lang(ko) .page-head h1 { word-break: keep-all; }
html:lang(en) .page-head h1, html:lang(th) .page-head h1 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.01em; }
.page-head p { margin: 0; max-width: 34em; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.8; color: var(--ink-strong); }
.page-head p.crumbs { margin-bottom: 10px; max-width: none; font-family: inherit; font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.crumbs a { color: var(--muted); }
.sec-first .sec-grid { border-top: 0; padding-top: 36px; }
.body-lead { margin: 0; max-width: 40em; font-size: 1.125rem; line-height: 1.8; color: var(--ink-strong); }
.scope-ol { margin: 0; padding-left: 1.6em; max-width: 44em; }
.scope-ol li { margin: 0 0 12px; padding-left: 4px; }
.scope-ol li::marker { font-family: var(--serif); font-weight: 900; color: var(--primary); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink-strong); border-radius: 0; padding: 22px; }
.card h2, .card h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--ink-strong); }
.card p { margin: 0 0 12px; }
.card .more { font-weight: 600; text-decoration: none; }
.big-number { font-size: 2.6rem; line-height: 1; color: var(--accent); font-weight: 700; display: block; margin-bottom: 8px; }

.wrap.prose { max-width: 1080px; }
.prose > p, .prose > ol, .prose > h2, .prose > h3, .prose > ul:not(.items) { max-width: var(--measure); }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }
.items { list-style: none; padding: 0; margin: 0; max-width: 820px; border-bottom: 1px solid var(--line); }
.items li { padding: 16px 0; border-top: 1px solid var(--line); }
.items strong { display: block; margin-bottom: 2px; color: var(--ink-strong); font-weight: 900; font-size: 1.125rem; line-height: 1.5; }
.note-box { background: var(--wash); border: 1px solid var(--line); padding: 14px 18px; max-width: var(--measure); }
.note-box ul { margin: 6px 0 0; padding-left: 1.2em; }
.line-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; padding: 0; list-style: none; }
.line-nav a { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.line-nav a:hover { border-color: var(--ink-strong); }
.line-nav a[aria-current="page"] { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; font-weight: 700; }
.item-tags { margin: 0 0 20px; }
.items li[id] { scroll-margin-top: 96px; }
.scope-lead { margin-bottom: 24px; }

/* 部長探案日誌 */
.quadrants { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); max-width: 820px; }
.q-axis { color: var(--muted); font-size: 0.875rem; }
.q-x1, .q-x2 { grid-row: 1; padding: 0 0 8px 16px; }
.q-x1 { grid-column: 2; } .q-x2 { grid-column: 3; }
.q-y1, .q-y2 { grid-column: 1; padding: 18px 12px 0 0; }
.q-y1 { grid-row: 2; } .q-y2 { grid-row: 3; }
#q-cc { grid-area: 2 / 2; } #q-cs { grid-area: 2 / 3; } #q-sc { grid-area: 3 / 2; } #q-ss { grid-area: 3 / 3; }
.quadrant { padding: 16px; border: 1px solid var(--line); margin: 0 -1px -1px 0; background: var(--white); }
.quadrant h3 { margin: 0; font-size: 1.25rem; font-weight: 900; color: var(--ink-strong); }
.q-kind { margin: 2px 0 12px; color: var(--muted); font-size: 0.875rem; }
.q-entries { list-style: none; margin: 0; padding: 0; }
.q-entries li + li { margin-top: 8px; }
.q-entries a { color: var(--primary); font-weight: 700; line-height: 1.5; }
.q-empty { margin: 0; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 599px) {
  .quadrants { grid-template-columns: minmax(0, 1fr); }
  .q-axis { display: none; }
  #q-cc, #q-cs, #q-sc, #q-ss { grid-area: auto; }
}
.page-head p.journal-note { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.page-head p.journal-updated { margin-top: 2px; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.journal-body { padding-block: 40px 64px; }
.journal-lead { font-size: 1.125rem; line-height: 1.85; color: var(--ink-strong); }
.term-note { max-width: var(--measure); margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--primary); background: var(--white); }
.term-note p { margin: 0; line-height: 1.8; }
.term-note strong { display: block; margin-bottom: 2px; color: var(--primary); }
.journal-quote { max-width: var(--measure); margin: 16px 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
.journal-quote p { margin: 0; }
.journal-quote .translation { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.journal-fineprint { color: var(--muted); font-size: 0.875rem; }
.journal-back { margin-top: 32px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.fee { color: var(--muted); font-size: 0.95rem; }
.tag { display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.group-h { margin: 40px 0 4px; font-size: 1.15rem; color: var(--ink-strong); }
.draft-flag { margin: 28px 0 0; padding: 8px 12px; background: var(--wash); border: 2px dashed var(--muted); color: var(--ink); font-size: 0.9rem; max-width: var(--measure); }

form.stack { max-width: 640px; }
.field { margin-bottom: 22px; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink-strong); padding: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #8a96a3; border-radius: var(--radius);
}
.field ul { list-style: none; padding: 0; margin: 0; }
.field ul li { margin-bottom: 6px; }
.field ul label { font-weight: 400; display: flex; gap: 8px; align-items: baseline; }
.help { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 4px 0; color: #a1260d; font-weight: 600; }
.req { color: #a1260d; }
.error-summary { margin: 0 0 22px; padding: 14px 18px; border: 2px solid #a1260d; border-radius: var(--radius); background: #fdf3f0; max-width: var(--measure); }
.error-summary h2 { margin: 0 0 6px; font-size: 1.05rem; color: #a1260d; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: #a1260d; }
.field [aria-invalid="true"] { border-color: #a1260d; }
.field input[type="radio"][aria-invalid="true"], .field input[type="checkbox"][aria-invalid="true"] { outline: 2px solid #a1260d; outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.messages { list-style: none; padding: 12px 16px; background: var(--wash); border-radius: var(--radius); }

.site-foot { background: var(--ink); color: #e8edf2; margin-top: 56px; padding: 40px 0 24px; font-size: 0.95rem; }
.site-foot a { color: #fff; }
.site-foot .foot-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; max-width: 100%; color: #fff; text-decoration: none; font-weight: 700; line-height: 1.25; }
.site-foot .foot-brand img { display: block; width: 40px; height: 40px; flex: none; }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-foot h2 { font-size: 1rem; margin: 0 0 8px; color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 4px; }

@media (max-width: 640px) {
  .head-row { gap: 12px; }
  .main-nav { gap: 14px; }
}
/* Phones: brand and language menu share the first row, the navigation takes the second, and the
   header scrolls away instead of keeping a quarter of the screen (a longer translation of the menu
   wraps instead of pushing the page wider). */
@media (max-width: 899px) {
  .site-head { position: static; }
  .head-row { gap: 8px 12px; }
  .brand { order: 1; }
  .lang-menu, .account-nav { order: 2; margin-inline-start: 0; }
  .main-nav { order: 3; flex-basis: 100%; }
  /* The home page's headline already carries the same button, so the phone header does not repeat it
     on a row of its own. */
  .main-nav a.button.nav-cta-dup { display: none; }
}
/* A long word or an unspaced script (Thai) wraps inside its box instead of widening the page. */
main :where(p, li, dt, dd, h1, h2, h3, h4, summary, label, legend) { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.after-cards { margin-top: 32px; }
.main-nav a.button { padding: 8px 18px; border-bottom: 0; color: #fff; white-space: nowrap; }
.main-nav a.button:hover { color: #fff; }
.prose > h2:first-child { margin-top: 0; }
.lookup-form { display: flex; max-width: 36rem; }
.lookup-form input[type="search"] {
  flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #8a96a3; border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
}
.lookup-form input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.lookup-form .button { border-radius: 0 var(--radius) var(--radius) 0; }


/* Languages of the service pages. Each language leads with the system fonts that draw its own
   Han or script variants correctly, then the site's self-hosted Noto Sans TC as the fallback
   (CSP: no external fonts). */
html:lang(zh-Hans) body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans TC", sans-serif; }
html:lang(ja) body { font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans TC", sans-serif; }
html:lang(ko) body { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans TC", sans-serif; }
html:lang(th) body { font-family: "Thonburi", "Leelawadee UI", "Noto Sans Thai", "Noto Sans TC", sans-serif; line-height: 1.8; }

/* The language menu: a native <details>, so it needs no script. */
.lang-menu { position: relative; margin-inline-start: 1rem; }
.lang-menu summary { cursor: pointer; list-style: none; padding: .35rem .6rem; border: 1px solid var(--line, #c9d3df); border-radius: var(--radius); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; }
.lang-menu ul { position: absolute; inset-inline-end: 0; z-index: 20; margin: .25rem 0 0; padding: .25rem 0; min-width: 9rem; list-style: none; background: #fff; border: 1px solid var(--line, #c9d3df); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.lang-menu a { display: block; padding: .45rem .9rem; text-decoration: none; }
.lang-menu a[aria-current="true"] { font-weight: 700; }
.topbar.draft-lang { background: var(--ink-strong); }

/* ── 首頁：一份查核報告的第一頁 ─────────────────────────────────────────────
   超粗的黑體標題與粗細對比的宋體交替；章節用粗頂線，標題放在左側邊欄；外框依「紀錄類型」變化，
   不依好壞（紅色只給錯誤訊息）：細線＝登記事實、雙線＝裁判紀錄、粗框＝行政裁罰、淺藍底＝補助與表彰、
   虛線加淺底＝未查。 */
html:lang(zh-Hans) { --serif: "Noto Serif SC", "Songti SC", "Noto Serif TC", serif; }
html:lang(ja) { --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif TC", serif; }
html:lang(ko) { --serif: "Noto Serif KR", "AppleMyungjo", "Batang", "Noto Serif TC", serif; }
html:lang(en), html:lang(th) { --serif: Georgia, "Noto Serif TC", serif; }

.display { margin: 0; color: var(--ink-strong); font-weight: 900; font-size: clamp(2rem, 6.4vw, 5rem); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
/* Break after the commas, not inside a word such as 開戶. */
html:lang(zh-Hant) .display, html:lang(zh-Hans) .display, html:lang(ja) .display, html:lang(ko) .display { word-break: keep-all; }
html:lang(en) .display, html:lang(th) .display { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.01em; }
.display-sub { margin: 14px 0 0; color: var(--muted); font-weight: 700; font-size: clamp(1.0625rem, 2.2vw, 1.375rem); line-height: 1.4; }
.rep-head { padding: 56px 0 56px; }
.rep-grid { display: grid; gap: 40px; margin-top: 40px; align-items: start; }
@media (min-width: 900px) { .rep-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.rep-lead { min-width: 0; }
.lead-ming { margin: 0 0 28px; font-family: var(--serif); font-size: 1.375rem; line-height: 1.8; font-weight: 400; color: var(--ink-strong); }
.lead-ming strong { font-weight: 900; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.rep-anim { min-width: 0; }
.rep-anim-head { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 0 0 14px; }
.rep-anim h2 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 1.25rem; color: var(--ink-strong); }
.rep-anim-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: var(--white); }
.rep-anim .anim-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
.rep-anim .anim-toggle[hidden] { display: none; }
.anim-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.anim-toggle svg[hidden] { display: none; }
.anim-fallback { margin: 0; font-size: 0.9375rem; color: var(--muted); }

.sec-grid { display: grid; gap: 20px 40px; padding-top: 24px; border-top: 3px solid var(--ink-strong); }
.sec { padding-bottom: 56px; }
@media (min-width: 900px) { .sec-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.sec-side { min-width: 0; }
.sec-side h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; color: var(--ink-strong); }
.sec-side .sub { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.7; }
.sec-side .sub + .sub { margin-top: 6px; }
.sec-body { min-width: 0; }

.lookup-form input[type="search"] { border: 3px solid var(--ink-strong); border-right: 0; min-height: 52px; }
.lookup-form .button { min-width: 6rem; }

.scope { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scope li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.scope h3 { margin: 0; font-size: 1.1875rem; font-weight: 900; line-height: 1.4; }
.scope h3 a { color: var(--primary); text-decoration: none; }
.scope h3 a:hover { color: var(--primary-deep); text-decoration: underline; text-underline-offset: 4px; }
.scope p { grid-column: 1; margin: 2px 0 0; font-size: 0.9375rem; line-height: 1.7; }
.scope .n { grid-column: 2; grid-row: 1 / span 2; text-align: right; color: var(--ink-strong); font-weight: 900; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.scope .n small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }

.plans-cols { display: grid; gap: 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .plans-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plans-cols article:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; } }
.plans-cols article { padding: 18px 16px 20px 0; border-top: 1px solid var(--line); min-width: 0; }
.plans-cols h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 900; font-size: 1.5rem; line-height: 1.3; color: var(--ink-strong); }
.plans-cols p { margin: 0 0 12px; }
.plans-cols a { font-weight: 600; }

.notes-list { counter-reset: n; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.notes-list li { counter-increment: n; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.notes-list li::before { white-space: nowrap; content: counter(n); font-family: var(--serif); font-weight: 900; font-size: 1.375rem; line-height: 1.5; color: var(--primary); font-variant-numeric: tabular-nums; }
html:lang(zh-Hant) .notes-list li::before { content: counter(n, trad-chinese-informal) "、"; }
html:lang(zh-Hans) .notes-list li::before { content: counter(n, simp-chinese-informal) "、"; }
.sec-body > .after-notes { margin: 16px 0 0; }

.close-wrap { padding-top: 28px; border-top: 3px solid var(--ink-strong); }
.rep-close { padding-bottom: 8px; }
.rep-close h2 { margin: 0 0 12px; font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink-strong); }
html:lang(en) .rep-close h2, html:lang(th) .rep-close h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.01em; }
.rep-close p { margin: 0 0 24px; max-width: 34em; font-family: var(--serif); font-size: 1.25rem; line-height: 1.8; }

.sec-side h2.h2-sans { font-family: inherit; font-weight: 900; letter-spacing: -0.01em; }

/* 子項介紹頁：作業量圖表 */
.item-more { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 0.9375rem; }
.item-aud { margin: 12px 0 0; color: var(--muted); font-size: 0.9375rem; }
.effort-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.effort-num { margin: 0; display: flex; align-items: baseline; gap: 10px; color: var(--ink-strong); }
.effort-num .n { font-size: 3rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.effort-num .dash { color: var(--muted); font-size: 1rem; }
.effort-num small { margin-left: 4px; color: var(--muted); font-size: 1rem; font-weight: 500; }
.effort-level .lv-label { margin: 0 0 6px; color: var(--muted); font-size: 0.875rem; }
.lv { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lv li { width: 72px; padding: 6px 0; text-align: center; border: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); background: var(--white); }
.lv li.on { background: var(--primary); border-color: var(--primary); color: #fff; opacity: 0.55; }
.lv li.cur { opacity: 1; font-weight: 900; }
.eff-chart { max-width: 760px; margin: 0 0 28px; }
.eff-title { margin: 0 0 10px; font-weight: 900; color: var(--ink-strong); }
.eff-row, .eff-axis { display: grid; grid-template-columns: 14em minmax(0, 1fr) 6em; gap: 12px; align-items: center; margin: 0 0 8px; font-size: 0.9375rem; }
.eff-name a { color: var(--primary); }
.eff-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-strong); }
.eff-track { display: block; width: 100%; height: 18px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 11.1111%); }
.eff-track .lo { fill: var(--primary); }
.eff-track .hi { fill: #8fb9de; }
.eff-legend i { display: inline-block; width: 22px; height: 10px; margin: 0 6px 0 14px; vertical-align: baseline; background: var(--primary); }
.eff-legend i.hi { background: #8fb9de; }
.eff-legend i:first-child { margin-left: 0; }
.eff-total .eff-name, .eff-self .eff-name { font-weight: 900; }
.eff-total .eff-track { border-bottom-color: var(--ink-strong); }
.eff-axis { margin-top: -2px; color: var(--muted); font-size: 0.8125rem; }
.eff-ticks { display: flex; justify-content: space-between; }
.eff-ticks b { font-weight: 500; width: 0; overflow: visible; white-space: nowrap; }
.eff-ticks b:first-child { text-align: left; } .eff-ticks b:last-child { text-align: right; }
.eff-legend { margin: 10px 0 0; color: var(--muted); font-size: 0.8125rem; }
.eff-notes { margin: 0 0 20px; padding-left: 1.2em; max-width: 44em; line-height: 1.8; }
@media (max-width: 599px) {
  .eff-row, .eff-axis { grid-template-columns: 8em minmax(0, 1fr) 4.5em; gap: 8px; }
  .effort-num .n { font-size: 2.25rem; }
  .lv li { width: 56px; }
}

.eff-mini { margin-bottom: 4px; font-size: 0.875rem; }
.eff-mini .eff-track { height: 14px; }
.eff-mini .eff-name { line-height: 1.4; }
.eff-self .eff-name { color: var(--ink-strong); }
.eff-note { margin: 0 0 16px; color: var(--muted); font-size: 0.9375rem; }
.item-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 0.875rem; }
.item-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.item-pager a { text-decoration: none; font-weight: 700; line-height: 1.5; }
.item-pager small { display: block; color: var(--muted); font-weight: 500; }
.item-pager .next { text-align: right; }

.item-article p { max-width: 44em; margin: 0 0 14px; line-height: 1.9; }
.item-article h3 { margin: 24px 0 8px; font-size: 1.125rem; }
.item-figure { margin: 0 0 24px; max-width: 760px; border: 1px solid var(--line); background: var(--white); }
.item-figure img { display: block; width: 100%; height: auto; }
.item-closing { color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

.map-list, .map-list ul { list-style: none; margin: 0; padding: 0; }
.map-list > li { margin: 0 0 14px; font-size: 1.125rem; }
.map-list ul { margin: 8px 0 0; padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--rule, #d5dbe1); }
.map-list ul li { margin: 6px 0; font-size: 1rem; }

/* ── 強調色（琥珀）：只給行動與重點，與插圖共用（Wei 2026-10-31）──────────── */
:root { --amber: #f2a33a; --amber-deep: #d8891f; --amber-wash: #fdf0d8; --head-h: 76px; }
a:hover { text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(242, 163, 58, 0.55); }
.main-nav a:not(.button):hover, .main-nav a[aria-current="page"]:not(.button) { border-bottom-color: var(--amber); }
.main-nav a:not(.button) { border-bottom-width: 3px; }
.main-nav a.button { background: var(--amber); color: var(--ink-strong); }
.main-nav a.button:hover { background: var(--amber-deep); color: var(--ink-strong); }
.line-nav a[aria-current="page"] { text-decoration-color: var(--amber); text-decoration-thickness: 3px; }

/* ── 項目頁：重點格、上下項、頁內導覽 ───────────────────────────────────── */
.item-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 22px 0 0; border-block: 2px solid var(--ink-strong); }
.item-facts > div { padding: 12px 18px; border-left: 1px solid var(--line); }
.item-facts > div:first-child { padding-left: 0; border-left: 0; }
.item-facts dt { margin: 0; color: var(--muted); font-size: 0.8125rem; }
.item-facts dd { margin: 2px 0 0; color: var(--ink-strong); font-size: 1.5rem; font-weight: 900; line-height: 1.25; }
.item-facts dd small { margin-left: 4px; color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.item-facts .dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.item-facts .dots i { width: 14px; height: 14px; border: 2px solid var(--ink-strong); background: var(--white); }
.item-facts .dots i.on { background: var(--primary); border-color: var(--primary); }
.item-facts .dots i.cur { background: var(--amber); border-color: var(--ink-strong); }
.item-nav-top { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0 0; font-size: 0.9375rem; }
.item-nav-top a { max-width: 45%; font-weight: 700; text-decoration: none; }
.item-nav-top a:hover { text-decoration: underline; }
.item-nav-top .pos { color: var(--muted); }
.item-subnav { position: sticky; top: var(--head-h); z-index: 4; background: var(--white); border-bottom: 1px solid var(--line); }
.item-subnav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.item-subnav a { display: block; padding: 10px 0 7px; border-bottom: 3px solid transparent; color: var(--ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.item-subnav a:hover { color: var(--primary); }
.item-subnav a.on { border-bottom-color: var(--amber); color: var(--ink-strong); }
@media (max-width: 899px) { .item-subnav { position: static; } }
.item-subnav ~ section, .item-article h3 { scroll-margin-top: calc(var(--head-h) + 56px); }

/* ── 圖片載入前的佔位（尺寸固定，版面不跳動）────────────────────────────── */
.item-figure, .cat-figure { aspect-ratio: 16 / 9; background: var(--wash); }
.item-figure img, .cat-figure img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .item-figure, .cat-figure { background: linear-gradient(100deg, var(--wash) 30%, #fff 50%, var(--wash) 70%) 0 0 / 220% 100%; animation: shimmer 1.8s linear infinite; }
  @keyframes shimmer { to { background-position: -220% 0; } }
}
.cat-figure { margin: 28px auto 0; border: 1px solid var(--line); }

/* ── 捲動時區塊淡入（只播一次；由 page-detail.js 加上類別）────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(12px); }
  .rv.in { opacity: 1; transform: none; transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
}

/* ── 回到頁首 ────────────────────────────────────────────────────────────── */
.to-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 6; width: 46px; height: 46px; padding: 0; border: 2px solid var(--ink-strong); background: var(--white); color: var(--ink-strong); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--amber); }
.to-top svg { width: 20px; height: 20px; }

/* ── 首頁：報告感的數字列 ────────────────────────────────────────────────── */
.facts-band { margin-top: 8px; }
.facts-band dl { display: grid; border-block: 2px solid var(--ink-strong); grid-template-columns: repeat(3, 1fr); margin: 0; }
.facts-band dl > div { padding: 22px 20px; border-left: 1px solid var(--line); }
.facts-band dl > div:first-child { padding-left: 0; border-left: 0; }
.facts-band dt { margin: 0; color: var(--muted); font-size: 0.875rem; }
.facts-band dd { margin: 4px 0 0; color: var(--ink-strong); font-size: 1.25rem; font-weight: 900; }
.facts-band dd b { margin-right: 4px; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; box-shadow: inset 0 -0.22em 0 var(--amber-wash); }
@media (max-width: 599px) { .facts-band dl { grid-template-columns: 1fr; } .facts-band dl > div { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); } .facts-band dl > div:first-child { border-top: 0; } }

/* ── 探案日誌：長文版面 ─────────────────────────────────────────────────── */
.journal-lead::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; background: var(--amber); }
.journal-quote { border-left: 5px solid var(--amber); padding-left: 20px; }
.term-note { border-left-width: 5px; }
.journal-body h2 { margin-top: 2.2em; }
.journal-body h2::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; background: var(--amber); }

/* ── 列印：項目頁印出來是一份報告 ───────────────────────────────────────── */
@media print {
  .site-head, .site-foot, .to-top, .item-subnav, .item-nav-top, .item-pager, .topbar, .lang-menu, .skip { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .rv { opacity: 1 !important; transform: none !important; }
  .sec, .eff-row, .item-figure { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .item-figure, .cat-figure { background: none; animation: none; }
}
@media (max-width: 599px) {
  .item-nav-top { flex-wrap: wrap; row-gap: 8px; }
  .item-nav-top .pos { order: -1; width: 100%; }
  .item-nav-top a { max-width: 48%; }
  .item-facts > div { border-left: 0; padding-left: 0; }
}

/* /meeting/: preferred slots, one row per day (firm.meeting) */
.slot-scroll{overflow-x:auto}
.slot-table{border-collapse:collapse;min-width:20rem;width:auto;max-width:36rem;font-variant-numeric:tabular-nums}
.slot-table th,.slot-table td{border-bottom:1px solid var(--rule,#d8dde6);padding:.35rem .5rem;text-align:center;font-weight:400}
.slot-table thead th{font-size:.85rem;color:var(--ink-2,#4a5563)}
.slot-table tbody th{text-align:left;white-space:nowrap}
.slot-cell{display:flex;justify-content:center;align-items:center;min-height:2.25rem;cursor:pointer}
.slot-cell input{width:1.15rem;height:1.15rem;cursor:pointer}

/* ── 逐項瀏覽：依情境找（2026-11-23）──────────────────────────────────────── */
.situation-h { margin: 24px 0 0; font-size: 1rem; }
.situation-nav { margin-top: 10px; }
.line-nav .count { margin-left: 6px; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.line-nav a[aria-current="page"] .count { color: inherit; }
.found-big { margin: 28px 0 10px; font-size: 1.0625rem; }
.found-big:first-child { margin-top: 0; }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--ink-strong); color: var(--ink-strong); }
