:root {
  --bg: #f3efe6;
  --ink: #1a1a1a;
  --muted: #5c564c;
  --rule: #d4cbb8;
  --accent: #6b2d1a;
  --accent-soft: #f3e4dc;
  --fact: #1e3a2f;
  --context: #5a3d1a;
  --card: #fffdf8;
  --header: #fffdf8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --measure: 42rem;
  --sidebar: 18rem;
  --gap: 2rem;
  --radius: 6px;
  --page-width: calc(var(--measure) + var(--sidebar) + var(--gap) + 3rem);
  --header-h: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--card);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.04);
}

.header-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.25rem;
}

.brand { flex: 1 1 14rem; min-width: 0; }
.brand-mark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.brand-mark:hover { color: var(--accent); text-decoration: none; }
.brand-tagline {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 28rem;
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  flex: 2 1 20rem;
  justify-content: flex-end;
  position: relative;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}
.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.primary-nav .nav-external {
  font-weight: 500;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.primary-nav .nav-external .ext-icon {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  opacity: 0.85;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 1 14rem;
  max-width: 18rem;
  width: 100%;
}
.site-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 2.35rem;
  min-height: 2.35rem;
  max-height: 2.35rem;
  padding: 0 0.7rem;
  border: 1px solid var(--rule);
  background: var(--card);
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: var(--radius);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.site-search input::-webkit-search-decoration,
.site-search input::-webkit-search-cancel-button,
.site-search input::-webkit-search-results-button {
  -webkit-appearance: none;
}
.site-search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.site-search button,
.btn {
  height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font-size: 0.85rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-search button:hover,
.btn:hover { background: var(--accent); border-color: var(--accent); }

.search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(22rem, calc(100vw - 2rem));
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  max-height: 20rem;
  overflow: auto;
  z-index: 50;
}
.search-results[hidden] { display: none !important; }
.search-results a {
  display: block;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--accent-soft); }
.search-results .sr-title { font-weight: 600; display: block; }
.search-results .sr-meta { font-size: 0.8rem; color: var(--muted); }
.search-results .sr-empty { padding: 0.85rem; color: var(--muted); font-size: 0.9rem; }

/* —— Layout —— */
.layout {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: var(--gap);
  align-items: start;
}

.layout-wide {
  grid-template-columns: 1fr;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.content { min-width: 0; max-width: var(--measure); }
.layout-wide .content { max-width: none; }

.sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* —— Homepage —— */
.home-hero {
  padding: 1.5rem 0 2.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.75rem;
}
.home-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}
.home-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1.15rem;
  max-width: 18ch;
}
.home-lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  max-width: 38rem;
  color: var(--ink);
}
.home-ai {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.home-section-head {
  margin-bottom: 1.5rem;
}
.home-section-head h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.home-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

.home-find {
  margin-bottom: 3.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.find-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.find-panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.find-panel h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}
.find-hint {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.find-more {
  margin: auto 0 0;
  padding-top: 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.find-more a { text-decoration: none; }
.find-more a:hover { text-decoration: underline; }

.date-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.date-list li {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.date-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.date-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.date-list a:hover .date-list-title { color: var(--accent); }
.date-list time {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.date-list-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}
.date-list-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.type-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.type-list li { margin-bottom: 0.45rem; }
.type-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
}
.type-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.type-list-name { font-weight: 600; font-size: 0.92rem; }
.type-list-count {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.find-years-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.year-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.year-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.year-pill span { color: var(--muted); font-weight: 500; }
.year-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.topic-pill {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.3;
}
.topic-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.name-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.name-list li {
  margin-bottom: 0.4rem;
}
.name-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.name-list a:hover { color: var(--accent); }
.name-list-role {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.name-cloud { margin-bottom: 0.5rem; }

/* —— People directory —— */
.people-section {
  margin-bottom: 2.25rem;
}
.people-section-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--ink);
}
.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.people-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.people-row:last-child { border-bottom: 0; }
.people-name {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}
.people-name:hover { color: var(--accent); }
.people-label {
  font-weight: 600;
  font-size: 1rem;
}
.people-role {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.people-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Person page —— */
.person-header .person-kind {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.person-aliases {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
}
.muted { color: var(--muted); }

.mention-feed {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.mention-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.mention-list li {
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  line-height: 1.45;
}
.mention-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.mention-field {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin-right: 0.45rem;
}
.mention-snippet { color: var(--ink); }
.mention-hit,
mark.mention-hit {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  padding: 0.05em 0.15em;
  border-radius: 2px;
}
a.person-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a.person-link:hover {
  text-decoration-thickness: 2px;
}

.home-latest { margin-bottom: 3.25rem; }
.home-feed { gap: 1.35rem; }
.home-feed .post-card.featured {
  padding: 1.4rem 1.4rem 1.25rem;
}
.home-archive-cta {
  margin: 2rem 0 0;
  text-align: center;
}

.home-how {
  padding-top: 0.5rem;
  margin-bottom: 1rem;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.how-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.how-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.home-back { margin-top: 1.25rem; }

/* —— Page header —— */
.page-header { margin-bottom: 1.5rem; }
.page-title {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}
.page-dek {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

/* —— About —— */
.about-prose {
  font-size: 1.02rem;
  line-height: 1.62;
}
.about-section {
  margin: 0 0 2.25rem;
}
.about-section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  line-height: 1.25;
}
.about-prose p {
  margin: 0 0 1rem;
}
.about-prose p:last-child { margin-bottom: 0; }
.about-quote {
  margin: 0 0 2.25rem;
  padding: 1.1rem 1.25rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-quote p {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.45;
  margin: 0 0 0.7rem;
}
.about-quote footer {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.about-quote cite { font-style: italic; }
.about-table-wrap { margin: 1.15rem 0 1.35rem; overflow-x: auto; }
.about-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--card);
  border: 1px solid var(--rule);
}
.about-table caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  caption-side: top;
}
.about-table th,
.about-table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.about-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  background: var(--bg);
}
.about-table tbody th {
  font-weight: 600;
  width: 48%;
}
.about-table tbody tr:last-child th,
.about-table tbody tr:last-child td { border-bottom: 0; }
.about-table td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.about-table-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem !important;
}
.about-sources {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.about-sources h2 { font-size: 1.15rem; }
.about-sources ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.about-sources li { margin: 0 0 0.7rem; }
.about-sources li:last-child { margin-bottom: 0; }
.about-sources cite { font-style: italic; }
.page-about .how-grid { margin: 0.35rem 0 1.15rem; }

.type-chips-inline {
  display: none;
  margin: -0.35rem 0 1.35rem;
}

/* —— Post cards —— */
.post-feed { display: flex; flex-direction: column; gap: 0.9rem; }

.post-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem;
}
.post-card.compact { padding: 0.85rem 1rem; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}
.post-type { text-transform: capitalize; }

.post-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.post-card.compact .post-title { font-size: 1.1rem; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--accent); }

.post-excerpt {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}
.post-excerpt.muted { color: var(--muted); }
.post-more {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}
.post-more a { text-decoration: none; }
.post-more a:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-weight: 700;
}
.badge.preview { border-color: var(--context); color: var(--context); background: #faf4ea; }
.badge.minutes { border-color: var(--fact); color: var(--fact); background: #eaf3ee; }
.badge.recording { border-color: #1e3a4a; color: #1e3a4a; background: #eaf1f5; }

/* —— Archive —— */
.archive-year { margin-bottom: 2rem; }
.archive-year-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--ink);
}
.archive-year.is-filtered-out { display: none; }
.post-card.is-filtered-out { display: none; }

/* —— Meeting article —— */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.crumb-sep { opacity: 0.5; }

.article-meta { margin-bottom: 0.75rem; }

.brief-headline {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.summary-block {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem 1.15rem;
  margin: 0 0 1.5rem;
}
.summary-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.65rem;
  font-weight: 700;
}
.summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
  white-space: pre-wrap;
  margin: 0;
}
.lede {
  font-family: var(--serif);
  font-size: 1.05rem;
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
}
.muted-lede { color: var(--muted); font-size: 1rem; }

.section {
  margin: 1.75rem 0;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.section h3 {
  font-family: var(--serif);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.label-fact {
  color: var(--fact);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.label-context {
  color: var(--context);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

ul.clean { padding-left: 1.1rem; margin: 0; }
ul.clean li { margin-bottom: 0.45rem; }

.item {
  border-left: 3px solid var(--rule);
  padding-left: 0.85rem;
  margin-bottom: 1rem;
}
.item p { margin: 0.35rem 0; }
.quote {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin: 0.35rem 0;
}
.meta { color: var(--muted); font-size: 0.85rem; }
.gen-meta { margin-top: 1.5rem; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.post-nav a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.post-nav-next { text-align: right; }
.post-nav-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.post-nav-title {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
}
.post-nav-date { font-size: 0.8rem; color: var(--muted); }
.post-nav-prev.is-empty { visibility: hidden; }

/* —— Sidebar widgets —— */
.widget {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.widget-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-weight: 700;
}
.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
}
.widget-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.widget-list.compact li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
}
.widget-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  display: block;
}
.widget-list a:hover { color: var(--accent); }
.widget-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.widget-topics {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.2rem;
  font-style: italic;
}
.widget-howto p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip.is-active .chip-count { opacity: 0.8; }
.chip-count {
  font-size: 0.7rem;
  opacity: 0.65;
  font-weight: 600;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.stat-list li { margin-bottom: 0.4rem; }
.stat-num {
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.25rem;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: var(--header);
  padding: 1.5rem 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.footer-inner { max-width: 40rem; margin: 0 auto; }
.footer-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
}
.legend-fact strong { color: var(--fact); }
.legend-context strong { color: var(--context); }

/* —— Public amendments / corrections —— */
.amendments {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.amendments-lede {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.amendments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.amendment {
  padding: 0.75rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.amendment-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.amendment-kind {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.amendment-summary {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* —— Fact-check form (Netlify) —— */
.fact-check {
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.fact-check-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.fact-check-lede {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.fact-check-id {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.fact-check-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
.fact-check-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 600;
}
.fact-check-field .optional {
  font-weight: 500;
  color: var(--muted);
}
.fact-check-field input,
.fact-check-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.fact-check-field textarea { resize: vertical; min-height: 6.5rem; }
.fact-check-field input:focus,
.fact-check-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.empty { color: var(--muted); font-style: italic; }
.empty code {
  font-style: normal;
  background: var(--card);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--rule);
  font-size: 0.9em;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    order: 2;
  }
  .content { max-width: none; }
  .type-chips-inline { display: block; }
  .page-archive .type-chips-sidebar,
  .page-search .type-chips-sidebar { display: none; }
  .find-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .header-tools {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .header-tools.is-open { display: flex; }
  .primary-nav { flex-direction: column; gap: 0.5rem; }
  .site-search {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    align-items: center;
  }
  .site-search input {
    flex: 1 1 auto;
    height: 2.5rem;
    min-height: 2.5rem;
    max-height: 2.5rem;
    font-size: 16px; /* avoid iOS zoom / oversized controls */
    padding: 0 0.75rem;
  }
  .site-search button {
    height: 2.5rem;
  }
  .search-results { left: 0; right: 0; width: auto; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .page-title { font-size: 1.65rem; }
  .brand-tagline { display: none; }
  .home-hero { padding-top: 0.75rem; margin-bottom: 2rem; padding-bottom: 2rem; }
  .home-title { max-width: none; }
  .home-find { margin-bottom: 2.25rem; padding-bottom: 2rem; }
  .layout-wide { padding-top: 1.25rem; }
}
