/* Shared styles for the text pages (policy/, spot/, about/).
   Sizes are in rem so the 字級 toggle (html[data-size]) scales the whole page. */
:root {
  --bg: #f7f4ee;
  --ink: #1f2328;
  --muted: #5b6370;
  --card: #fffdf8;
  --line: #e3dccd;
  --accent: #b8492a; /* 4.7:1 on the page background; the app's brighter #e0663d is too light for small text */
}
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html[data-size="l"] { font-size: 19px; }
html[data-size="xl"] { font-size: 22px; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.75; font-size: 1rem;
  font-family: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
}
a { color: var(--accent); }
.site-header, main, .site-footer { max-width: 47.5rem; margin: 0 auto; padding: 0 16px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 18px; padding-bottom: 6px; }
.site-header .brand { color: var(--ink); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .875rem; }
.textsize { display: flex; align-items: center; gap: 4px; font-size: .8125rem; color: var(--muted); }
.textsize span { margin-right: 2px; }
.textsize button {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 2px 10px; cursor: pointer;
}
.textsize button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.breadcrumb { margin: 18px 0 4px; font-size: .8125rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
h1 { margin: 8px 0; font-size: 1.75rem; line-height: 1.35; }
h2 { margin: 32px 0 8px; font-size: 1.25rem; }
.tag { display: inline-block; padding: 2px 12px; border-radius: 999px; color: #fff; font-size: .8125rem; font-weight: 600; }
.lead { font-size: 1.0625rem; color: var(--muted); }
.points { padding-left: 1.4em; }
.points li + li { margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.button {
  display: inline-block; padding: .6em 1.1em; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; font-size: .9375rem; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.list a:hover { border-color: var(--accent); }
.list .t { font-weight: 600; }
.list .s { display: block; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.note { margin-top: 28px; padding: 12px 14px; border-radius: 12px; background: #efe9dd; color: var(--muted); font-size: .875rem; }
.note a { color: #9c3d22; } /* the note's darker background needs a deeper link colour for 4.5:1 */
.site-footer { padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: .8125rem; }
.release { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.release h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.release h2 time { font-size: .9375rem; font-weight: 600; color: var(--accent); }
.release-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.release-items li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.release-items b { display: block; margin-bottom: 2px; }
.release-items .credit { display: block; margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.vote-day { display: grid; gap: 4px; margin: 16px 0 8px; padding: 18px; border-radius: 14px; background: #0f766e; color: #fff; }
.vote-date { font-size: 1.75rem; font-weight: 800; }
.vote-hours { font-size: 1.0625rem; }
.vote-count:not(:empty) { margin-top: 6px; font-weight: 600; color: #ccfbf1; }
.faq-q { margin: 16px 0 6px; font-size: 1.05rem; }
.faq-a { margin: 0; line-height: 1.75; }
