/* Owner pages (STYLE.md, section B; UX rubric v1.2).  A print-like business page, not a generated dashboard: white
   paper, ink type, hairline rules and section rules instead of rounded cards, one restrained brand colour (藏青,
   dark blue) for links and the current section, colour elsewhere only where it means something (不利 red, 有利
   green, 利弊互見 brown).  Light only: a report reads the same on every screen and in the exported image. */
:root {
  --bg: #ffffff; --surface: #ffffff; --sunken: #f5f6f8; --ink: #15181d; --ink-2: #3d434d; --muted: #5f6774;
  --line: #d9dde3; --rule: #15181d; --band: #eef0f3; --accent: #1f4e79; --accent-soft: #eef3f8;
  --warn: #8f5310; --warn-soft: #fbf1e6; --bad: #b42318; --good: #1d6b38;
  --c1: #1f4e79; --c2: #c2611f; --c3: #13706f; --c4: #8a3a6b; --c5: #8a7410; --c6: #7b8594;
  --font-zh: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Archivo", var(--font-zh);
  --font-head: "Source Sans 3", var(--font-zh);     /* heading Latin in the body's face, not the CJK font's */
  --font-body: "Source Sans 3", var(--font-zh);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.35; letter-spacing: .01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
/* a heading's dateline or count sits on its line, in the body face: the edition line of a printed section */
h1 .ed, h2 .ed { font: 400 14px var(--font-body); color: var(--ink-2); margin-left: 14px; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.num, td.num, .mono { font-variant-numeric: tabular-nums; }
.mono, code { font-family: var(--font-mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
button, select, input { font: inherit; color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
/* three kinds of action: primary (ink), secondary (outlined), tertiary (a link) */
button, .btn { background: var(--surface); border: 1px solid #aab1bc; border-radius: 2px; padding: 8px 14px;
  cursor: pointer; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: 14px; }
button:hover, .btn:hover { border-color: var(--ink); }
button.primary, .btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
button.primary:hover, .btn.primary:hover { background: #000; }
button.link, button.tertiary { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font-weight: 400;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
select, input[type="text"], input[type="email"], input:not([type]), input[type="number"] { background: var(--surface);
  border: 1px solid #aab1bc; border-radius: 2px; padding: 6px 8px; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form.inline { display: inline; }

/* masthead: the product, the firm and the person, then the sections as underlined text links */
.stick { position: static; background: var(--surface); }   /* a page, not an app shell: the masthead scrolls away */
header.top { background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 10px max(20px, env(safe-area-inset-left, 0px)) 0; display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 18px; max-width: 1220px; margin: 0 auto; }
header.top .brand { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; }
header.top .wordmark { font: 800 18px var(--font-display); font-stretch: 85%; color: var(--ink); letter-spacing: .01em; }
header.top .edition { color: var(--ink-2); font-size: 13px; padding-left: 10px; border-left: 1px solid var(--line); }
header.top .firm { font-weight: 700; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
header.top .who { color: var(--muted); font-size: 13px; }
header.top > a, header.top > form button.link { font-size: 13px; }
nav.tabs { flex-basis: 100%; display: flex; gap: 0 24px; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a { padding: 10px 0 9px; color: var(--ink-2); text-decoration: none; font-size: 15px; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; }
nav.tabs a:hover { color: var(--ink); }
nav.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.strip { background: var(--sunken); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px;
  padding: 6px max(20px, env(safe-area-inset-left, 0px)); }
.strip form { display: inline; }

/* key figures: a ruled row under the page's own answer, labels above figures, as a quote page sets them */
dl.figs { display: flex; flex-wrap: wrap; margin: 2px 0 0; padding: 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
dl.figs > div { padding: 7px 22px 8px 0; margin-right: 22px; border-right: 1px solid var(--line); min-width: 0; }
dl.figs > div:last-child { border-right: 0; margin-right: 0; }
dl.figs dt { color: var(--ink-2); font-size: 12.5px; line-height: 1.3; }
dl.figs dd { margin: 2px 0 0; font: 700 20px/1.2 var(--font-body); font-variant-numeric: tabular-nums; }
dl.figs > div.note dd { font: 400 14px/1.5 var(--font-body); color: var(--ink); }

/* layout: a main column and, where there are inputs or sources, a side column set off by a rule */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; max-width: 1220px; margin: 0 auto;
  padding: 22px max(20px, env(safe-area-inset-left, 0px)) 28px max(20px, env(safe-area-inset-right, 0px)); align-items: start; }
.layout.side { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 1000px) { .layout.side { grid-template-columns: minmax(0, 1fr); row-gap: 30px; } }
.main, .aside { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
@media (min-width: 1001px) { .aside { border-left: 1px solid var(--line); padding-left: 24px; } }
/* a section is set off by a rule above its heading, as a newspaper sets its sections: no boxes */
.panel { background: none; border: 0; border-top: 2px solid var(--rule); padding: 10px 0 0; display: flex;
  flex-direction: column; gap: 10px; min-width: 0; }
.aside .panel { border-top-width: 1px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.panel-head p { color: var(--ink-2); font-size: 13px; }
.help { color: var(--ink-2); font-size: 13px; }
.fm { display: block; color: var(--muted); font-size: 12.5px; }
.banner { padding: 8px 12px; font-size: 14px; border-left: 3px solid var(--ink); background: var(--sunken); }
.banner.error { border-left-color: var(--bad); color: var(--bad); }
.banner.note { border-left-color: var(--warn); color: var(--warn); }
.banner.ok { border-left-color: var(--accent); }
footer.disclaimer { max-width: 1220px; margin: 0 auto; padding: 10px max(20px, env(safe-area-inset-left, 0px)) 40px;
  color: var(--ink-2); font-size: 12.5px; border-top: 1px solid var(--line); }

/* data as tables: a ruled head, hairline rows; on phones each row stacks, its labels set small */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); font-size: 12.5px; border-bottom: 1px solid var(--rule); }
tbody th { border-bottom-color: var(--line); color: var(--ink-2); font-size: 13px; width: 8em; }   /* a row's label */
td.num, th.num { text-align: right; white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 1px solid var(--rule); }
tr.sel td { background: none; }
tr.sel td:first-child { box-shadow: none; border-left: 3px solid var(--accent); padding-left: 9px; }   /* a rule, not a tint */
td .sub { display: block; color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) {
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { display: none; }
  table.data tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.data td { border: 0; padding: 2px 0; text-align: left; }
  table.data td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12.5px; }
  table.data td.num { white-space: normal; }
}
/* tags are words, not chips: colour only where it means something */
.tag { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; display: inline-block; }
.tag + .tag::before { content: "·"; color: var(--muted); font-weight: 400; margin: 0 5px 0 1px; }
.tag.warn { color: var(--warn); }
.tag.bad { color: var(--bad); }
.tag.good { color: var(--good); }
.tag.accent { color: var(--accent); }
.key { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 0; }
.key.st-proposed { background: var(--c6); }
.key.st-comment { background: var(--c5); }
.key.st-published { background: var(--c2); }
.key.st-inforce { background: var(--c1); }
.key.st-proposed, .key.st-comment, .key.st-published, .key.st-inforce { opacity: .7; }   /* as the chart fills */
.key.st-paused { background: repeating-linear-gradient(45deg, var(--muted) 0 1.5px, transparent 1.5px 4px);
  border: 1px solid var(--muted); }
.key.st-ended { background: var(--band); border: 1px solid var(--line); }
.key.hurt { background: var(--bad); } .key.help { background: var(--good); }
.key.mixed { background: var(--warn); } .key.unknown { background: var(--muted); }
.key.window { border: 1px dashed var(--muted); }
.legend .glyph { color: var(--ink); } .legend .glyph.moved { color: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-2); }

/* forms */
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 1.5; min-height: 44px; }
.check input { margin-top: 4px; flex: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.code { font: 800 32px var(--font-display); letter-spacing: .2em; font-variant-numeric: tabular-nums; }

/* charts: the caption with its number above, sources under in mono */
figure.chart { margin: 0; display: flex; flex-direction: column; gap: 6px; }
figure.chart .caption { color: var(--ink-2); font-size: 13.5px; }
figure.chart .src { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }   /* body face: CJK sources set
   in a monospace font space out unevenly */
figure.chart svg { display: block; width: 100%; height: auto; }
figure.chart.mini .caption { font-size: 12.5px; }
figure.chart.mini .src { font-size: 12px; }
figure.chart.mini { min-width: 300px; }          /* its 300-unit chart never drawn smaller: 12.5 px text stays 12.5 px */

/* chart marks (B7).  SVG attributes cannot take var(), so the charts carry classes and take their colours here.
   Lines 1px --line; labels 12.5px --muted; fills at 60% at most; stages 調查中 --c6, 草案 --c5, 已公告待生效 --c2,
   施行中 --c1, 暫緩 muted and hatched; hurts --bad, helps --good.  The PNG export reads these under the light theme. */
svg text { fill: var(--ink-2); font-family: var(--font-body); }
svg .ax, svg .grid { stroke: var(--line); stroke-width: 1; fill: none; }
svg .lbl { fill: var(--muted); font-size: 12.5px; }
svg .val { fill: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
svg .row { fill: var(--ink); font-size: 13px; font-weight: 600; }
svg .halo { stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
svg line.today { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; }
svg text.today { fill: var(--accent); font-size: 12.5px; font-weight: 600; }
svg .mark { fill: var(--ink); }
svg .bar { fill-opacity: .6; stroke-width: 1; }
svg .bar.open { fill: none; stroke-dasharray: 4 3; }
svg .st-proposed { fill: var(--c6); stroke: var(--c6); }
svg .st-comment { fill: var(--c5); stroke: var(--c5); }
svg .st-published { fill: var(--c2); stroke: var(--c2); }
svg .st-inforce { fill: var(--c1); stroke: var(--c1); }
svg .st-ended, svg .st-none { fill: var(--band); stroke: var(--line); }
svg .paused { stroke: var(--muted); }
svg .hatch { stroke: var(--muted); stroke-width: 1.5; }
svg .window { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; }
svg .moved { stroke: var(--warn); stroke-width: 1; stroke-dasharray: 3 2; }
svg .moved-from { fill: var(--surface); stroke: var(--warn); stroke-width: 1; }
svg .moved-to { fill: var(--warn); }
svg .wf { fill-opacity: .6; stroke-width: 1; }
svg .wf.base { fill: var(--c6); stroke: var(--c6); }
svg .wf.duty { fill: var(--bad); stroke: var(--bad); }
svg .wf.total { fill: var(--c1); stroke: var(--c1); }
svg .wf.maybe { fill-opacity: .2; stroke-dasharray: 4 3; }
svg .wf.zero { fill: none; stroke: var(--line); }
svg .edge { stroke: var(--ink-2); stroke-width: 1.5; opacity: .5; fill: none; }
svg .edge.dashed { stroke-dasharray: 7 4; }
svg .edge.dotted { stroke-dasharray: 2 4; }
svg .edge.lit { opacity: .8; }
svg .edge.dim { opacity: .12; }
svg .edge.hot { opacity: 1; stroke-width: 3; }
svg .edge.hurt { stroke: var(--bad); }
svg .edge.help { stroke: var(--good); }
svg .edge.mixed { stroke: var(--warn); }
svg .edge.unknown { stroke: var(--muted); }
svg .node { stroke-width: 1.5; }
svg .node.plain { fill: var(--surface); stroke: var(--ink-2); }
svg .node.firm { fill: var(--ink); stroke: var(--ink); }
svg .node.measure { fill: var(--surface); stroke-width: 2; }
svg .node.measure.hurt { stroke: var(--bad); }
svg .node.measure.help { stroke: var(--good); }
svg .node.measure.mixed { stroke: var(--warn); }
svg .node.measure.unknown { stroke: var(--muted); }
svg .nlbl { fill: var(--ink); }
svg g.fade { opacity: .5; }
.tl-narrow { display: none; }
/* wide or narrow by the figure's own width, not the window's (UX ticket 8): a chart is never drawn smaller than its
   own units, so its 12.5 px text stays 12.5 px whatever the column */
figure.chart { container-type: inline-size; }
@container (max-width: 759.98px) { .w760 .tl-wide { display: none; } .w760 .tl-narrow { display: block; } }
@container (max-width: 599.98px) { .w600 .tl-wide { display: none; } .w600 .tl-narrow { display: block; } }
.tl-narrow svg { display: block; max-width: 460px; margin-inline: auto; }    /* a phone chart on a tablet: not stretched */

/* items */
.itemtext { font-size: 15px; line-height: 1.55; }
.itemtext.en { font-size: 14px; }
.quote { color: var(--ink-2); font-size: 13.5px; }
.phone { max-width: 320px; border: 1px solid var(--line); background: var(--sunken); padding: 10px; }
.bubble { background: var(--surface); border: 1px solid var(--line); padding: 8px 10px;
  white-space: pre-wrap; font-size: 13.5px; overflow-wrap: anywhere; }
.paths-list a { color: inherit; text-decoration: none; }
.paths-list a.more { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.paths-list td a:not(.more):hover { text-decoration: underline; }
.paths-list tr[aria-current] td:first-child { border-left: 3px solid var(--accent); padding-left: 9px; }

@media (max-width: 760px) {
  .stick { position: static; }
  header.top { gap: 2px 12px; }
  nav.tabs { gap: 0 18px; }
  dl.figs > div { padding-right: 14px; margin-right: 14px; }
}

/* items, until restyle step 3 sets them as table rows */
.oitem { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.otop { display: flex; gap: 8px; align-items: center; }
.olayer { font-size: 12px; border-radius: 5px; padding: 1px 6px; background: var(--band); color: var(--ink-2); }
.otext { font-size: 15px; line-height: 1.55; }
.obody { white-space: pre-wrap; }
.ohead, .owhy, .overdict, .oadded { color: var(--muted); font-size: 12.5px; }
.ohistory ul, .changes, .plinks { padding-left: 18px; margin: 0; }
.plist { padding-left: 20px; margin: 0; }
.plist a { color: inherit; text-decoration: none; display: block; }
.plist a[aria-current] { font-weight: 700; }
.pbar { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--muted); }
.how { font-weight: 600; }                     /* the tier in words, as 公司資料 names it; no underline */
.seg { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; }
nav.seg a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); text-decoration: none;
  border-bottom: 2px solid transparent; font-size: 14px; }
nav.seg a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.grantcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px 16px; }
.grantcols fieldset { border: 0; padding: 0; margin: 0; }
.grantcols legend { font-weight: 700; font-size: 13.5px; padding: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pbar2 { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
table.sheet td:first-child { white-space: normal; }
/* 公司資料: the actions column keeps its heading on one line */
table.profile th { white-space: nowrap; }
table.profile tr:not(.sel) td:last-child { white-space: nowrap; }
@media (max-width: 760px) { table.profile tr:not(.sel) td:last-child { white-space: normal; } }
@media (min-width: 761px) {         /* one column grid for every layer, so 取得方式, 來源 and 操作 line up down the page */
  table.profile { table-layout: fixed; width: 100%; }
  table.profile th:nth-child(1) { width: 43%; } table.profile th:nth-child(2) { width: 13%; }
  table.profile th:nth-child(3) { width: 18%; } table.profile th:nth-child(4) { width: 26%; }
}
/* 隱私權政策 and 服務條款: the links in every owner footer, and the public pages' frame */
footer.disclaimer .legal { display: block; margin-top: 4px; }
nav.legal-links { font-size: 13px; color: var(--muted); }
body.legal .panel p { line-height: 1.75; }
/* 本週動態 and 晨報: what to do (UX ticket 1) */
p.lead { font: 700 18px/1.45 var(--font-head); color: var(--ink); }
/* an item: which way it runs on the left, the item on the right; its three facts as labelled lines; its meta lines */
th.dir, td.dir { width: 7.5em; }
td.dir .tag { display: block; }
td.dir .tag + .tag::before { content: none; }
td.dir .sub { margin-top: 2px; }
dl.act { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1px 12px; margin: 6px 0 2px;
  font-size: 14px; line-height: 1.55; }
dl.act dt { color: var(--muted); font-size: 13px; }
dl.act dd { margin: 0; color: var(--ink); }
.meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.meta a { color: var(--accent); }
p.note { color: var(--ink-2); font-size: 13px; }
tr.urgent td:first-child { border-left: 3px solid var(--bad); padding-left: 9px; }
@media (max-width: 760px) { tr.urgent { border-left: 3px solid var(--bad); padding-left: 10px; }
  tr.urgent td:first-child { border-left: 0; padding-left: 0; }
  td.dir .tag { display: inline-block; } td.dir .tag + .tag::before { content: "·"; margin: 0 5px 0 1px; } }
/* a card's 存成 LINE 圖片 is a link in the item's line, not a button in a column */
.meta figure.chart.card { display: inline; margin: 0; container-type: normal; }
.meta figure.chart.card button.export { display: inline; background: none; border: 0; color: var(--accent); font-weight: 400;
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 0; padding: 12px 6px; margin: -12px -6px; }
/* 影響路徑: the ranked table (UX ticket 5) */
table.paths-list td[data-label="方向"], table.paths-list td[data-label="證據"] { white-space: nowrap; }
table.paths-list td .sub { display: block; }
table.paths-list td.num .sub { white-space: normal; max-width: 15em; margin-left: auto; }   /* the basis wraps under it */
@media (min-width: 1001px) {
  table.paths-list th:nth-child(1) { width: 17%; } table.paths-list th:nth-child(2) { width: 24%; }
  table.paths-list th:nth-child(5) { width: 20%; }
}
/* 措施時程: dates on the markers and the key inside the chart (UX ticket 6) */
svg .dlbl { fill: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
svg .lgd { fill: var(--ink-2); font-size: 12.5px; }
svg .lgd-open { stroke: var(--ink-2); }
/* 公司資料: 確認 first, 更正 second, 標示有誤 and 移除 under 更多; an empty layer says why it matters (UX ticket 7) */
.row-acts details.more summary { cursor: pointer; color: var(--accent); list-style: none; padding: 6px 4px;
  text-decoration: underline; text-underline-offset: 3px; }
.row-acts details.more summary::-webkit-details-marker { display: none; }
.row-acts details.more[open] { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
p.help.empty { color: var(--ink-2); }
/* UX ticket 8: readable and tappable.  Chart text at 12.5 px at least; tap targets 44 px tall; tabs wrap on phones */
button, .btn, select, input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
figure.chart button.export { align-self: flex-start; min-height: 44px; font-size: 13.5px; }
a.more { display: inline-block; padding: 12px 6px; margin: -12px -6px; }       /* a 44 px target, the line unchanged */
.row-acts details.more summary { min-height: 44px; display: inline-flex; align-items: center; }
.row-acts button.link { min-height: 44px; }
@media (max-width: 760px) { nav.tabs { flex-wrap: wrap; overflow-x: visible; } }
/* summary figures: a plain sentence where no figure says anything (UX ticket 9) */
/* sign-in: the masthead, then the sign-in set on the left of the page; staff below a hairline (no centred card) */
body.login .signin-main { max-width: 620px; gap: 34px; }
body.login .panel.signin h1 { font-size: 24px; }
body.login details.staff { border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; }
body.login details.staff summary { cursor: pointer; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; }
body.login .devbar { background: #fff4e5; color: #6b3d00; font-size: 12.5px; padding: 4px 20px; }
/* items on a phone: no column labels; the direction and the layer on one line above the item */
@media (max-width: 760px) {
  table.today td::before, table.items td::before { content: none !important; }
  table.today td.dir, table.items td.dir { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; width: auto; }
  table.today td.dir .sub, table.items td.dir .sub { display: inline; margin: 0; }
}
/* a wide chart is not blown up past about its own size on a wide column */
.w600 .tl-wide svg { max-width: 680px; }
.w760 .tl-wide svg { max-width: 920px; }     /* about its own size: 12.5px labels show at 13–15px, not 19px */
/* sources and citations in the body face (CJK in a monospace font spaces out unevenly) */
.how + .sub, td .mono { font-family: var(--font-body); font-size: 13px; }
/* 公司資料 rows: 確認 is the row's one button (ink outline), 更正 and 更多 are links on the same line */
.row-acts { gap: 4px 14px; flex-wrap: nowrap; }
.row-acts button.confirm { border: 1.5px solid var(--ink); padding: 6px 14px; }
.row-acts a.act-link { display: inline-flex; align-items: center; min-height: 44px; }
.row-acts details.more { display: inline-block; }
@media (max-width: 760px) { .row-acts { flex-wrap: wrap; } }
/* 帳號與權限: a grants matrix, one row per colleague, one column per feature and kind of data */
table.grants th.cb, table.grants td.cb { text-align: center; padding-right: 2px; padding-left: 2px; width: 4.9em;
  min-width: 4.9em; }
table.grants th.cb { line-height: 1.3; vertical-align: bottom; }
table.grants th.grp { text-align: center; border-bottom: 1px solid var(--line); }
table.grants .g2 { border-left: 1px solid var(--line); }     /* 功能 | 資料: the two groups apart */
table.grants td.cb input { width: 20px; height: 20px; margin: 10px 0; }
table.grants td.role select { min-width: 10em; }
table.grants td.acts { white-space: nowrap; }
table.grants td.acts form { display: block; }
table.grants td.acts button.link { min-height: 32px; }
table.grants tr.owner td { color: var(--ink-2); }
@media (max-width: 760px) {
  table.grants td.cb { display: inline-flex !important; width: auto; align-items: center; gap: 6px; margin-right: 14px;
    text-align: left; }
  table.grants td.cb::before { display: inline !important; font-size: 13px !important; color: var(--ink-2) !important; }
  table.grants td.cb input { margin: 0; }
}
/* 本週動態: a matter's row, its lines once, its items under them */
table.today .matter { font-weight: 700; font-size: 15px; }
table.today .entry { border-top: 1px dotted var(--line); padding-top: 8px; margin-top: 8px; }
table.today dl.act + .entry { border-top-style: solid; }
/* sprint 2: 晨報 rows grouped as 本週動態's; the cost page's jump to its conditions on narrow screens; the item's
   English original behind a disclosure; the selected path's name */
table.items .matter { font-weight: 700; font-size: 15px; }
table.items .entry, table.today .entry { border-top: 1px dotted var(--line); padding-top: 8px; margin-top: 8px; }
.meta.share { margin-top: 8px; }
p.jump { display: none; }
@media (max-width: 1000px) { p.jump { display: block; } }
details.orig { margin-top: 6px; }
details.orig summary { color: var(--accent); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
p.path-name { color: var(--ink); }
@media (max-width: 760px) { dl.figs > div { border-right: 0; padding-right: 0; margin-right: 22px; } }
/* sprint 3: an item's own date; the cost sheet stacks on a phone; the grants matrix's targets; row labels on phones */
p.own { font-size: 14px; color: var(--ink); margin-top: 2px; }
@media (max-width: 760px) {
  table.sheet thead { display: none; }
  table.sheet tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; border-bottom: 1px solid var(--line);
    padding: 8px 0; }
  table.sheet td { border: 0; padding: 2px 0; }
  table.sheet td:first-child { grid-column: 1 / -1; }
  table.sheet td.num { text-align: left; white-space: normal; }
  table.sheet td.num[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12.5px; }
  .scroll { overflow-x: visible; }
  tbody th { border-bottom: 0; width: auto; display: block; padding-bottom: 0; }
  tr.sel { border-left: 3px solid var(--accent); padding-left: 10px; }
  tr.sel td:first-child { border-left: 0; padding-left: 0; }
}
table.grants td.cb label { display: flex; justify-content: center; align-items: center; min-height: 44px; cursor: pointer; }
table.grants th.cb { font-size: 12.5px; word-break: keep-all; }
table.grants .email { max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 措施時程: a closed comment period, the next date's label, recent changes a line each */
svg .st-closed { fill: var(--c5); stroke: var(--c5); fill-opacity: .22; }
svg .st-prior { fill: var(--line); stroke: var(--line); }          /* an order a later rulemaking starts from */
.key.st-prior { background: var(--line); }
.nw { white-space: nowrap; }
.key.st-closed { background: var(--c5); opacity: .3; }
svg .dlbl.next { fill: var(--ink); font-weight: 700; }
.chg { display: inline-block; padding: 2px 0; }
/* sprint 4: the page's small print in one place, as a printed page sets its notes: numbered notes, the terms, the
   standing line and the legal links, under one hairline at the foot */
footer.disclaimer ol.notes { margin: 0 0 6px; padding-left: 1.6em; }
footer.disclaimer ol.notes li { margin: 2px 0; }
footer.disclaimer .gloss { margin: 0 0 6px; }
footer.disclaimer .standing { margin: 0 0 4px; }
/* inline links in an item's line take a 44px target without changing the line */
.meta a, .docs a, .chg a, footer.disclaimer .legal a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.docs a, .chg a { white-space: nowrap; }                         /* 來源 never breaks into 來/源 on a phone */
details.docs.narrow { display: none; }
details.docs.narrow summary { color: var(--accent); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 760px) { span.docs.wide { display: none; } details.docs.narrow { display: block; } }
footer.disclaimer .legal { line-height: 2; }
.aside-link { margin: 0 0 8px 28px; }
form.panel h3 { font-size: 15px; font-weight: 600; margin-top: 6px; }
table.grants td.acts button.link { min-height: 44px; }
tr.evidence > td { border-left: 3px solid var(--accent); padding: 10px 14px; }   /* a rule, not a tinted box */
tr.evidence h3 { font-size: 15px; }
/* an event's desk reading (a take approved on its story), under the entry, as one more labelled line */
p.reading { margin: 6px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
p.reading .lbl { color: var(--muted); font-size: 13px; margin-right: 1em; }
