@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("/fonts/merriweather-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("/fonts/merriweather-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("/fonts/merriweather-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #163A4A;
  --navy-hover: #1E4D5F;
  --teal: #155A56;
  --gold: #8A5208;
  --gold-bright: #C9A227;
  --cream: #F6F1E7;
  --header-mid: #EEF4F2;
  --chip-bg: #E3EFEB;
  --chip-text: #134A47;
  --chip-border: #B7D0CA;
  --alabaster: #F6F1E7;
  --hairline: #DDD4C4;
  --ink: #1A2E35;
  --muted: #3F555C;
  --faint: #5A7076;
  --link: #155A56;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(22, 58, 74, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 0px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 7.5rem; }
body {
  margin: 0;
  background: var(--alabaster);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.entry-body a,
.source-row a,
.table-wrap a,
.notice-body a,
.arg a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.entry-body a:hover,
.source-row a:hover,
.table-wrap a:hover,
.notice-body a:hover,
.arg a:hover {
  color: var(--navy);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78em;
  background: #f1efe9;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 80;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #F7F1E4 0%, #EEF4F2 58%, #F6F1E7 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #D4CBB6;
  box-shadow: var(--shadow);
}
.draft-banner {
  background: var(--navy);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  text-align: center;
}
.draft-banner strong { font-weight: 700; color: #F0C75E; }
.draft-banner span.detail { font-weight: 500; color: #cbd5e1; }

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8px 16px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: block;
}
.logo-mark .logo-bg { fill: var(--navy); }
.logo-mark .logo-lines { stroke: var(--cream); }
.logo-mark .logo-check { stroke: var(--gold-bright); }
.wordmark-text { min-width: 0; }
.wordmark-text h1,
.brand h1 {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.48rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 700;
}
.name-corroborated { color: var(--navy); }
.name-faith { color: var(--gold); }
.domain {
  margin: 1px 0 0;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.tagline {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.motto {
  margin: 4px 0 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.wordmark-text .motto {
  margin-top: 3px;
  font-size: 12.5px;
}
.footer-inner .motto {
  margin-top: 6px;
  font-size: 13px;
}
.footer-note {
  font-weight: 500;
  color: var(--muted);
}

nav.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--alabaster);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 3px;
}
nav.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
nav.tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--chip-border);
  box-shadow: var(--shadow);
}
nav.tabs .count {
  font-size: 11px;
  font-weight: 500;
  background: #f1f5f9;
  color: var(--muted);
  border-radius: 6px;
  padding: 1px 6px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.panel[hidden] { display: none !important; }

.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px 22px; }

label.field-label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 4px;
}
.hint { font-size: 12px; color: var(--muted); margin: 0 0 12px; }

.search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.search-wrap { position: relative; flex: 1; min-width: 0; }
.search-wrap input {
  width: 100%;
  border: 1px solid var(--hairline);
  background: #f8f7f4aa;
  border-radius: 12px;
  padding: 12px 72px 12px 40px;
  font-size: 14px;
}
.search-wrap input:focus {
  outline: 2px solid rgba(21, 90, 86, 0.35);
  background: #fff;
  border-color: var(--teal);
}
.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--faint);
  pointer-events: none;
}
.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
}
.clear-btn:hover { background: #f1f5f9; color: var(--ink); }
.primary-btn {
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 650;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  white-space: nowrap;
}
.primary-btn:hover { background: var(--navy-hover); }
.ghost-btn {
  border: 1px solid var(--hairline);
  background: var(--alabaster);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 12px;
}

.chip-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.chip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 8px 0 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.chip {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
}
.chip:hover { background: #d4e8e3; }
.chip.amber { background: #F8F1E0; border-color: #E4C988; color: #7A3F00; }
.chip.rose { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }

.cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cat {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
}
.cat:hover { background: #d4e8e3; }
.cat[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 2px;
  margin: 12px 0 8px;
}
.status-bar .legend { color: var(--faint); font-size: 11px; }

.results { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }

.entry-card { overflow: hidden; }
.entry-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  background: #F3EEE466;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: flex-start;
}
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.pill {
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--muted);
}
.pill.num { border: 0; background: transparent; font-weight: 700; color: var(--muted); padding-left: 0; }
.badge-draft {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
.badge-book {
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}
.match-score { font-size: 11px; color: var(--faint); }
.entry-head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.entry-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 16px; }

.answer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  background: var(--alabaster);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  padding: 5px 10px;
  border-radius: 8px;
}
.copy-btn:hover { background: #f1f5f9; }
.answer-text {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.block {
  border-radius: 12px;
  padding: 14px 16px;
}
.block.majority {
  border: 1px solid #B7D0CAcc;
  background: #E3EFEB66;
}
.block.supporting {
  border: 1px solid var(--hairline);
  background: #fcfbf8;
}
.block.disputed {
  border: 1px solid #fde68acc;
  background: #fffbeb66;
}
.block h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.block.majority h3 { color: var(--teal); }
.block.supporting h3 { color: var(--muted); }
.block.disputed h3 { color: #92400e; }
.arg { margin: 0 0 10px; font-size: 14px; color: #334155; line-height: 1.6; }
.arg:last-child { margin-bottom: 0; }
.arg-label { font-weight: 700; color: var(--ink); }
.who {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #78350f;
}
.who .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: #fde68a;
  color: #78350f;
  border-radius: 6px;
  padding: 1px 7px;
  margin-right: 6px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
blockquote.quote {
  margin: 0 0 8px;
  border: 1px solid var(--hairline);
  border-left: 4px solid #334155;
  background: #f8f7f4b3;
  border-radius: 12px;
  padding: 14px 16px;
}
blockquote.quote p {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
}
blockquote.quote footer {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}

.source-row {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 13px;
}
.source-row:last-child { margin-bottom: 0; }
.source-row a { font-weight: 650; text-decoration: none; }
.source-row a:hover { text-decoration: underline; }
.source-row .cite { color: var(--muted); font-size: 12px; margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge {
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: #f8fafc;
  color: #334155;
}
.badge.yes { background: var(--chip-bg); border-color: var(--chip-border); color: var(--chip-text); }
.badge.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.badge.no { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.badge.draft { background: #fffbeb; border-color: #fde68a; color: #92400e; font-weight: 700; }
.pill.consensus { text-transform: capitalize; background: #eef6f6; border-color: #cde3e3; color: #1a4a4a; }


/* Fallback / cutoff / closest */
.notice {
  border-radius: var(--radius);
  border: 1px solid #fecdd3;
  background: #fff;
  overflow: hidden;
}
.notice-head {
  background: #fff1f2cc;
  border-bottom: 1px solid #fecdd3;
  padding: 14px 18px;
}
.notice-head h2 {
  margin: 4px 0 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.15rem;
}
.notice-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9f1239;
}
.notice-body { padding: 16px 18px 20px; font-size: 14px; color: var(--muted); }
.notice.cutoff { border-color: #c4b5fd; }
.notice.cutoff .notice-head { background: #f5f3ff; border-color: #ddd6fe; }
.notice.cutoff .notice-kicker { color: #5b21b6; }
.notice.closest { border-color: #fde68a; }
.notice.closest .notice-head { background: #fffbeb; border-color: #fde68a; }
.notice.closest .notice-kicker { color: #92400e; }
.cutoff-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #4c1d95;
  font-size: 14px;
  line-height: 1.55;
}

/* Sources panel */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.filters input, .filters select {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}
.filters input { flex: 1; min-width: 180px; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
table.registry {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.registry th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--alabaster);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 12px;
  white-space: nowrap;
}
table.registry td {
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
table.registry tr:hover td { background: #f8f7f466; }

.stub-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}
.stub-box h3 { margin: 0 0 6px; font-size: 13px; color: var(--ink); }
.stub-box ul { margin: 6px 0 0; padding-left: 18px; }

footer.site-footer {
  border-top: 1px solid #D4CBB6;
  background: linear-gradient(180deg, #F7F1E4 0%, #F3EEE4 100%);
  margin-top: auto;
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--muted);
  align-items: flex-start;
}
.footer-inner strong { color: var(--ink); font-weight: 700; }

@media (max-width: 640px) {
  .header-inner { padding: 8px 12px 10px; }
  .logo-mark { width: 44px; height: 44px; }
  .wordmark-text h1,
  .brand h1 { font-size: 1.22rem; }
  .search-row { flex-direction: column; }
  .search-wrap input { padding-right: 64px; }
  .primary-btn { width: 100%; }
  main { padding: 14px 12px 32px; }
  .card-pad { padding: 16px; }
  .entry-head, .entry-body { padding-left: 14px; padding-right: 14px; }
  .draft-banner { font-size: 11px; padding: 6px 10px; line-height: 1.4; }
  nav.tabs { width: 100%; }
  nav.tabs button { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Copy-and-paste share answer */
.share-box {
  margin-top: 14px;
  border: 1px solid var(--hairline);
  background: #f8f7f4;
  border-radius: 12px;
  padding: 12px 14px 14px;
}
.share-box.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.share-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.share-preview {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  white-space: pre-wrap;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.share-toggle {
  display: inline-flex;
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.share-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 8px;
}
.share-toggle button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}
.share-copy {
  font-size: 13px;
  padding: 8px 14px;
  min-height: 40px;
}

@media (max-width: 640px) {
  .share-actions { flex-direction: column; align-items: stretch; }
  .share-toggle { width: 100%; }
  .share-toggle button { flex: 1; }
  .share-copy { width: 100%; }
}

.no-match-cats { margin-top: 8px; margin-bottom: 4px; }
.notice .answer-text { margin-top: 8px; }


/* Suggest an argument (private preview only) */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.suggest-nav-link,
.footer-suggest {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  font-weight: 650;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.suggest-nav-link:hover,
.footer-suggest:hover {
  color: var(--navy);
}
.suggest-nav-link.is-active {
  color: var(--navy);
}
.footer-suggest { font-size: 12px; margin-top: 6px; }
.suggest-title {
  margin: 0 0 10px;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy);
}
.suggest-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
}
#suggest-form .field-label { margin-top: 14px; }
#suggest-form textarea,
#suggest-form input[type="text"],
#suggest-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
#suggest-form textarea { resize: vertical; min-height: 8rem; line-height: 1.45; }
.suggest-actions { margin-top: 16px; }
.suggest-this-wrap { margin-top: 16px; }
.suggest-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
  font-size: 14px;
}
.suggest-status.is-visible { display: block; }
.suggest-status.is-ok {
  background: #e8f3f0;
  color: var(--teal);
  border: 1px solid #c5ddd7;
}
.suggest-status.is-offline {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.suggest-status.is-error {
  background: #f8ece8;
  color: #8a2b12;
  border: 1px solid #e4c7c0;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-actions {
  display: flex;
  align-items: center;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--chip-border);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 650;
  padding: 8px 16px;
  border-radius: 10px;
  min-height: 44px;
  box-shadow: var(--shadow);
}
.back-to-top:hover { background: var(--header-mid); }
.back-to-top:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .footer-actions { width: 100%; }
  .back-to-top { width: 100%; }
}

.share-permalink {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--faint);
  word-break: break-all;
}
a.entry-permalink {
  text-decoration: none;
  color: inherit;
}
a.entry-permalink:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
