/* Static reference pages: same tokens as the calendar app; a single readable column. */
:root {
  --bg: #ffffff; --surface: #ffffff; --ink: #161a2c; --muted: #5b6072; --line: #e3e5ec;
  --accent: #3340c4; --accent-soft: #e6e8fb;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f1120; --surface: #181b2e; --ink: #eceefa; --muted: #9ca1c0; --line: #2a2e46; --accent: #8f99ff; --accent-soft: #252a52; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0f1120; --surface: #181b2e; --ink: #eceefa; --muted: #9ca1c0; --line: #2a2e46; --accent: #8f99ff; --accent-soft: #252a52; color-scheme: dark; }
.themebtn {
  font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.themebtn:hover { border-color: var(--accent); }
.themebtn::before { content: "☾"; margin-right: 6px; }
:root[data-theme="dark"] .themebtn::before { content: "☀"; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .themebtn::before { content: "☀"; } }
.mainnav { align-items: center; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: var(--accent); }
.bar, .page {
  max-width: 860px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 12px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.mainnav a { color: var(--muted); text-decoration: none; }
.mainnav a:hover { color: var(--accent); }
.page { padding-block: 28px 56px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: 21px; margin: 30px 0 8px; text-wrap: balance; }
p { margin: 0 0 12px; max-width: 68ch; }
.lede { color: var(--muted); }
.eyebrow { margin: 0 0 8px; }
.faith { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
h2 .faith { font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
.nextline { font-weight: 600; color: var(--accent); min-height: 1.6em; }
.tablewrap { overflow-x: auto; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.dates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.dates caption { text-align: left; padding: 12px 14px 4px; font-size: 13px; color: var(--muted); }
table.dates th, table.dates td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.dates thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
table.dates tbody th { font-weight: 600; width: 5.5em; }
tr.is-next { background: var(--accent-soft); }
tr.is-next th, tr.is-next td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { font-size: 14px; color: var(--muted); }
.greeting { font-family: var(--font-display); font-size: 20px; }
ul.links, ul.cols, ul.upcoming, .dayrow ul { list-style: none; padding: 0; margin: 0; }
ul.links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
ul.cols { columns: 3 15em; column-gap: 28px; }
ul.cols li { break-inside: avoid; padding: 3px 0; }
ul.upcoming li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; }
ul.upcoming li span { color: var(--muted); min-width: 9.5em; font-variant-numeric: tabular-nums; }
.group { margin-top: 10px; }
.years, .pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.years a, .years span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; background: var(--surface); }
.years span { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.pager { justify-content: space-between; }
.search { display: grid; gap: 4px; margin: 10px 0 18px; font-size: 13px; color: var(--muted); max-width: 22em; }
.search input { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.days { display: grid; gap: 0; }
.dayrow { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.dhead { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-family: var(--font-body); font-weight: 600; text-align: center; line-height: 1.2; }
.dhead b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--ink); letter-spacing: 0; }
.dayrow li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 3px 0; }
.dayrow .dot { width: 9px; height: 9px; transform: translateY(-1px); }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot .bar { padding-block: 20px 36px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
