/* Utilitarian: system font, plain tables, one accent colour, no decoration that does not carry information. */
:root {
  --bg: #ffffff; --fg: #1a1a1a; --muted: #5f6368; --line: #d9d9d9; --soft: #f4f5f6;
  --accent: #0b57a4; --accent-fg: #fff; --warn: #fff6db; --warn-line: #e0c36a; --ok: #1e7b34; --bad: #a3361f;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141518; --fg: #e6e6e6; --muted: #a0a4ab; --line: #34373d; --soft: #1d1f23;
          --accent: #7cb4f0; --accent-fg: #0d1117; --warn: #352d14; --warn-line: #7a6620; --ok: #6cc784; --bad: #f08a72; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
header.top { border-bottom: 1px solid var(--line); background: var(--soft); }
.bar { max-width: 1100px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; margin-right: auto; }
nav.main { display: flex; flex-wrap: wrap; gap: 2px 14px; }
nav.main a { text-decoration: none; color: var(--fg); padding: 2px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--accent); }
form.qs { display: flex; gap: 4px; }
form.qs input { width: 200px; }

main, footer { max-width: 1100px; margin: 0 auto; padding: 6px 16px 28px; }
footer { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); padding-top: 10px; }
h1 { font-size: 1.45rem; line-height: 1.25; margin: 14px 0 6px; }
h2 { font-size: 1.1rem; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
h3 { font-size: 1rem; margin: 16px 0 6px; }
p { margin: 6px 0; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.crumbs { color: var(--muted); font-size: 13px; margin-top: 10px; }
.lede { max-width: 72ch; }
.meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 14px; }

/* form controls */
input[type=search], input[type=text], select { font: inherit; padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg); color: var(--fg); min-width: 0; }
button, .btn { font: inherit; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent);
  color: var(--accent-fg); cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3; white-space: nowrap; }
button.plain, .btn.plain { background: var(--bg); color: var(--accent); }
button:disabled { opacity: .6; cursor: progress; }

/* the two ways in: search and ask */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 4px; }
.way { border: 1px solid var(--line); padding: 10px 12px; background: var(--soft); }
.way h2 { border: 0; margin: 0 0 2px; padding: 0; font-size: 1rem; }
.way form { display: flex; gap: 6px; margin: 6px 0 4px; } .way input { flex: 1; }
@media (max-width: 720px) { .ways { grid-template-columns: 1fr; } form.qs input { width: 140px; } }

/* tables */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  border-bottom: 2px solid var(--line); white-space: nowrap; }
tbody tr:hover { background: var(--soft); }
td.date { white-space: nowrap; width: 1%; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.docs { white-space: nowrap; width: 1%; }
td.what { max-width: 60ch; }

/* small labels */
.k { display: inline-block; font-size: 11.5px; line-height: 1.5; padding: 0 5px; border: 1px solid var(--line); border-radius: 2px;
  color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
a.k { color: var(--accent); border-color: currentColor; }
.k.minutes { color: var(--ok); border-color: currentColor; }
.k.warn { color: var(--bad); border-color: currentColor; }
.k.money { text-transform: none; color: var(--fg); background: var(--soft); font-weight: 500; }
.status-healthy { color: var(--ok); } .status-stale, .status-degraded, .status-never-run { color: var(--bad); }

.note { background: var(--warn); border-left: 3px solid var(--warn-line); padding: 6px 10px; margin: 8px 0; font-size: 14px; }
.ai { font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 8px; margin: 6px 0 10px; }

/* meeting page */
.summary-block { max-width: 80ch; }
.overview { font-size: 15.5px; }
.status, .keypoints { max-width: 72ch; }
.keypoints { margin: .4em 0 1em; padding-left: 1.3em; }
.keypoints li { margin: .2em 0; }
ol.decisions, ul.discussed, ol.agenda { margin: 6px 0 10px; padding-left: 22px; }
ol.decisions li, ul.discussed li, ol.agenda li { margin: 0 0 8px; }
.decisions .t, .discussed .t, .agenda .t { font-weight: 600; }
.decisions .v, .src, .pg { color: var(--muted); font-size: 13px; }
.pg a { color: var(--muted); }
details { margin: 6px 0; }
details > summary { cursor: pointer; color: var(--accent); }
details.box { border: 1px solid var(--line); padding: 6px 10px; }
details.box > summary { font-weight: 600; }
pre { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.45 var(--mono); background: var(--soft); border: 1px solid var(--line);
  padding: 8px; max-height: 480px; overflow: auto; margin: 4px 0 10px; }
.pagehead { font-size: 13px; font-weight: 600; margin: 10px 0 0; }
object { border: 1px solid var(--line); background: var(--soft); }

/* topics / ask */
ol.timeline { list-style: none; padding: 0; margin: 8px 0; }
ol.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 105px 1fr; gap: 0 12px; }
ol.timeline .when { font-weight: 600; white-space: nowrap; }
ol.timeline .body p { margin: 0 0 3px; }
@media (max-width: 560px) { ol.timeline li { grid-template-columns: 1fr; } }
.readas { font-size: 13.5px; color: var(--muted); }
.chips a { margin-right: 10px; }
blockquote.snip { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--line); color: var(--muted); font-size: 13px; }
#status:empty { display: none; }
#status { padding: 6px 10px; background: var(--soft); border: 1px solid var(--line); }

/* pagefind */
#search { --pagefind-ui-scale: .85; --pagefind-ui-primary: var(--accent); --pagefind-ui-text: var(--fg); --pagefind-ui-background: var(--bg);
  --pagefind-ui-border: var(--line); --pagefind-ui-tag: var(--soft); --pagefind-ui-border-width: 1px; --pagefind-ui-border-radius: 3px;
  --pagefind-ui-font: inherit; }

/* phones: listing tables become stacked rows instead of scrolling sideways */
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
  table.stack td { display: block; border: 0; padding: 1px 4px; width: auto; max-width: none; text-align: left; }
  table.stack td.date { font-weight: 600; }
  table.stack td.num { display: none; }      /* bare counts mean nothing without their column header */
}

/* town filter */
.townpick { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.townpick select { font-size: 14px; padding: 4px 6px; }
[hidden] { display: none !important; }
.meta .ok { color: var(--ok); } .meta .bad { color: var(--bad); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 24px; }
.cols h3 { margin-top: 4px; }
ul.plainlist { list-style: none; padding: 0; margin: 4px 0 8px; }
ul.plainlist li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.feedctl { margin: 4px 0 8px; }
.seg { display: inline-flex; flex-wrap: wrap; }
.seg button { border-radius: 0; margin-right: -1px; }
.seg button:first-child { border-radius: 3px 0 0 3px; } .seg button:last-child { border-radius: 0 3px 3px 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
/* news post attachments */
section.attached { border: 1px solid var(--line); padding: 8px 12px; margin: 8px 0; max-width: 80ch; }
section.attached p { margin: 4px 0; }
img.postimg { max-width: 100%; max-height: 640px; height: auto; border: 1px solid var(--line); background: #fff; }
