/* =============================================================================
   KilusNa — tokens, base typography and components

   This is the base layer. design.css, loaded after it, holds the live-aligned
   look and overrides only what differs; a rule that would be identical in both
   files belongs here, once.

   Three rules are load-bearing:

     1. Colour never carries a verdict. Every chip is neutral and says its word.
     2. Interactive gold is never bare: a gold fill on paper is 1.55:1, so filled
        controls carry a bronze edge (#8a5a00, 5.9:1 on white) and gold used as
        text is bronze instead.
     3. A card is a border on the page ground. There is no resting shadow; the
        lift belongs to hover on a linked card.

   No JavaScript is required for any of it.
   ============================================================================= */

:root {
  color-scheme: light;

  /* The live KilusNa brand: logo gold, warm ink, warm paper. */
  --accent: #ffc80d;
  --accent-dark: #e0a800;
  --accent-soft: #fff4cc;
  --accent-line: #f0dda0;
  --accent-text: #8a5a00;
  --on-accent: #111827;

  /* Warm neutrals */
  --ink: #15120e;
  --ink-2: #3f3a32;
  --ink-3: #676055;
  --bg: #f8f7f4;
  --card: #ffffff;
  --surface: #f5f3ee;
  --line: #e7e3dc;
  --line-strong: #d5cfc5;
  --chip-bg: #f5f3ee;
  --input-border: #858d99;

  /* Validation and destructive actions only. Never a verdict. */
  --alert: #d62217;

  --radius: 7px;
  --radius-card: 10px;
  --radius-pill: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 48px;
  --sp-9: 64px;

  --fs: 15px;
  --fs-sm: 13.5px;
  --fs-xs: 12.5px;
  --fs-meta: 12px;
  --fs-tiny: 12px;
  --fs-h1: 22px;
  --fs-h2: 19px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1440px;
  --col-left: 250px;
  --col-right: 340px;
  --gap: 24px;
  --measure: 68ch;
  /* Where a sticky rail starts: the 60px header plus the 61px section row, and
     a little air. One token, so a sticky rail and anything else that sticks
     below the header can never disagree. */
  --rail-top: 137px;

  /* The light "repository" panel that sits on a dark page, as on kilusna.ph. */
  --hero-paper: #ece4d2;
  --hero-ink: #15120e;
  --hero-line: #d8cdb6;
  --hero-glow: radial-gradient(120% 150% at 88% -30%, rgba(255, 200, 13, .18), transparent 62%);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ring: 0 0 0 3px var(--accent-text);
}

[data-theme="dark"] {
  color-scheme: dark;

  --accent: #ffd11a;
  --accent-dark: #e6bb00;
  --accent-soft: #3a2e06;
  --accent-line: #57430d;
  --accent-text: #ffd11a;
  --on-accent: #111827;

  --ink: #eef0f3;
  --ink-2: #c9cdd4;
  --ink-3: #9aa1ab;
  --bg: #0e1013;
  --card: #16191f;
  --surface: #1e222a;
  --line: #2a2f38;
  --line-strong: #3a4150;
  --chip-bg: #1e222a;
  --input-border: #616a7a;

  --alert: #ff5f52;

  --hero-paper: #ece4d2;
  --hero-ink: #15120e;
  --hero-line: #d8cdb6;
  --hero-glow: radial-gradient(120% 150% at 88% -30%, rgba(255, 209, 26, .28), transparent 62%);

  --ring: 0 0 0 3px var(--accent);
}

/* =============================================================================
   Base
   ============================================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.62;
  font-synthesis-weight: none;
}

img, svg, video { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: var(--accent-text); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}

h1, h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -.02em;
}

h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
p { text-wrap: pretty; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

::selection { background: var(--accent-soft); color: var(--ink); }
::placeholder { color: var(--ink-3); opacity: 1; }

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: var(--ring);
}

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 300;
  padding: 8px 14px;
  background: var(--accent);
  border: 1px solid var(--accent-text);
  border-radius: var(--radius);
  color: var(--on-accent);
  font-size: var(--fs-sm);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .15s ease;
}

.skip-link:focus { transform: none; text-decoration: none; }

/* =============================================================================
   Header — one row on desktop, a scrolling section row on phones
   ============================================================================= */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: var(--shell);
  min-height: 56px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 40px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.wordmark:hover { text-decoration: none; }

.wordmark-logo {
  height: 40px;
  width: auto;
  max-width: min(48vw, 220px);
  object-fit: contain;
}

/* The search is Reddit's pill: a filled track that becomes a field on focus. */
.header-search {
  display: none;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--sp-2);
  max-width: 560px;
  min-height: 40px;
  margin: 0 auto;
  padding: 2px 4px 2px 14px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background .15s ease, border-color .15s ease;
}

.header-search:focus-within {
  background: var(--card);
  border-color: var(--accent-text);
  box-shadow: var(--ring);
}

.header-search input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: var(--fs-sm);
}

.header-search input:focus-visible { box-shadow: none; }

.header-search .search-submit {
  min-height: 32px;
  width: 32px;
  padding: 0;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent);
  border: 1px solid var(--accent-text);
  border-radius: var(--radius-pill);
  color: var(--on-accent);
}

.header-search .search-submit:hover { background: var(--accent-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  margin-left: auto;
}

.header-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
}

.header-user:hover { border-color: var(--accent-text); text-decoration: none; }

/* Sign-out lives in the header at every width. */
.header-actions .header-signout-form { display: inline-flex; }

.header-actions .header-signout {
  min-height: 40px;
  padding: 0 4px;
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.header-actions .header-signout:hover { color: var(--accent-text); }

.nav-bar {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent-text);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 5px var(--sp-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-bar-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.nav-link:hover { background: var(--surface); color: var(--ink); text-decoration: none; }

.nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
}

@media (min-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
}

/* =============================================================================
   The three columns
   ============================================================================= */

.page {
  flex: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* Default: one column, gaining the about rail at 1280. The feed opts into a
   left topics rail with .page--with-left; desks and reading pages use
   .page--wide. */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--sp-4) 0 var(--sp-7);
  align-items: start;
}

.main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.rail { display: none; }
.rail-right { display: none; }
.rail-left,
.rail-right { min-width: 0; }

@media (min-width: 1024px) {
  .page--with-left .page-layout {
    grid-template-columns: var(--col-left) minmax(0, 1fr);
  }
  .rail-left {
    display: block;
    position: sticky;
    top: var(--rail-top);
    max-height: calc(100vh - var(--rail-top) - 16px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .rail-left::-webkit-scrollbar { display: none; }
}

/* 1280–1439: the right rail sits under the content instead of beside it, so the
   reading column keeps its width. Three columns return at 1440. */
@media (min-width: 1280px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail-right { display: block; }
  .page--with-left .page-layout {
    grid-template-columns: var(--col-left) minmax(0, 1fr);
  }
  .page--with-left .rail-left { grid-column: 1; grid-row: 1 / span 2; }
  .page--with-left .main-col { grid-column: 2; grid-row: 1; }
  .page--with-left .rail-right { grid-column: 2; grid-row: 2; }
}

@media (min-width: 1440px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) var(--col-right);
  }
  .page--with-left .page-layout {
    grid-template-columns: var(--col-left) minmax(0, 1fr) var(--col-right);
  }
  .page--with-left .rail-left,
  .page--with-left .main-col,
  .page--with-left .rail-right { grid-column: auto; grid-row: auto; }
}

/* Review desks, forms and reading pages keep the full width. */
.page--wide .page-layout { grid-template-columns: minmax(0, 1fr); }
.page--wide .rail-right { display: none; }

@media (min-width: 1024px) {
  .page--wide .page-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ----- Right rail --------------------------------------------------------- */

.rail-facts {
  display: grid;
  gap: 0;
  margin: var(--sp-2) 0 0;
}

.rail-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
}

.rail-facts > div:last-child { border-bottom: 0; }
.rail-facts dt { color: var(--ink-3); }
.rail-facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* =============================================================================
   Chips and inline status
   ============================================================================= */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 1px 7px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.6;
  vertical-align: middle;
  white-space: nowrap;
}

a.chip { color: var(--ink); }
a.chip:hover { border-color: var(--accent-text); color: var(--accent-text); text-decoration: none; }

/* The alias is a permanent label, marked as one. Brand gold, not a verdict. */
.chip--alias {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text);
  font-weight: 700;
}

.chip--presentation {
  border-style: dashed;
  font-style: italic;
  font-weight: 500;
}

/* Provisional / attention needed: a dashed edge, no colour semantics. */
.chip--warn {
  background: transparent;
  border: 1px dashed var(--ink-3);
  color: var(--ink);
  font-style: italic;
  font-weight: 600;
}

.not-reviewed {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: var(--fs-xs);
  line-height: 1.45;
}

.not-reviewed strong { color: var(--ink); }

.status-line {
  display: block;
  margin: 0 0 var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  border-left: 2px solid var(--line-strong);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.status-line strong { color: var(--ink); }

.banner {
  margin: var(--sp-2) 0;
  padding: var(--sp-2) var(--sp-3);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 2px solid var(--accent-text);
  color: var(--ink-2);
  font-size: var(--fs-xs);
}

.banner strong { color: var(--ink); }
.banner--attention { border-left-width: 4px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px var(--sp-2);
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.meta a { color: var(--ink-2); font-weight: 600; }
.meta a:hover { color: var(--accent-text); }

.meta-inline { color: var(--ink-3); font-size: var(--fs-xs); }

.help {
  margin: var(--sp-1) 0 0;
  max-width: var(--measure);
  color: var(--ink-3);
  font-size: var(--fs-xs);
  line-height: 1.55;
}

.error { margin: var(--sp-1) 0 0; color: var(--alert); font-size: var(--fs-xs); font-weight: 600; }

/* =============================================================================
   Buttons and forms
   ============================================================================= */

.btn,
button[type="submit"]:not(.link-button):not(.nav-link--button):not(.button-secondary):not(.btn-secondary):not(.vote-arrow):not(.search-submit):not(.vote-icon),
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary,
button[type="submit"]:not(.link-button):not(.nav-link--button):not(.button-secondary):not(.btn-secondary):not(.vote-arrow):not(.search-submit):not(.vote-icon) {
  background: var(--accent);
  border-color: var(--accent-text);
  color: var(--on-accent);
}

.btn-primary:hover,
button[type="submit"]:not(.link-button):not(.nav-link--button):not(.button-secondary):not(.btn-secondary):not(.vote-arrow):not(.search-submit):not(.vote-icon):hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-secondary,
.button-secondary {
  background: var(--card);
  border-color: var(--input-border);
  color: var(--ink);
}

.btn-secondary:hover,
.button-secondary:hover { background: var(--surface); border-color: var(--ink-3); text-decoration: none; }

button[disabled],
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 1px;
  color: var(--accent-text);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.link-button:hover { text-decoration: underline; }

.inline-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  vertical-align: middle;
}

.inline-form input[type="text"] {
  width: auto;
  max-width: 15rem;
  min-height: 36px;
  padding: 5px 9px;
}

.form {
  max-width: 640px;
  margin-top: var(--sp-3);
}

.form--tight { max-width: none; margin-top: var(--sp-2); }

.field { margin: 0 0 var(--sp-3); }

.field label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* A checkbox reads as one control: box, then label, on one line. */
.field .check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}

.field .check-label input[type="checkbox"] { margin-right: 0; }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not(.search-input),
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  background: var(--card);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
}

textarea { resize: vertical; line-height: 1.5; }
select { padding-right: 28px; }

.field--error input:not([type="checkbox"]):not([type="radio"]),
.field--error select,
.field--error textarea { border-color: var(--alert); }

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  accent-color: var(--accent-text);
}

input[type="file"] {
  width: 100%;
  padding: 6px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: var(--fs-xs);
}

input[type="file"]::file-selector-button {
  margin-right: var(--sp-3);
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-3);
  max-width: 640px;
  margin-top: var(--sp-3);
}

.search-form .field { flex: 1 1 260px; margin-bottom: 0; }

/* =============================================================================
   The card family

   Three recipes, and no more: the quiet card below, the inset (a tinted block
   inside a card, no border so it never reads as a card), and the row (no box at
   all, separated by a rule). A bordered box inside a bordered box is a row.
   ============================================================================= */

/* The quiet card: fill, hairline, 10px corners, 20px of padding, no shadow. */
.panel,
.card,
.claim,
.report-card,
.section-panel,
.sidebar-card {
  padding: var(--sp-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.section-panel { margin-top: var(--sp-3); }

.section-panel > h2 { margin-top: 0; }

.page-head { padding: var(--sp-1) 0 var(--sp-2); }
.page-head h1 { margin: 0 0 3px; }
.page-head p { max-width: var(--measure); color: var(--ink-3); font-size: var(--fs-xs); }

.main-col > p,
.main-col > h2 { max-width: var(--measure); }

.main-col > .status-line { max-width: none; }

.main-col > h2 { margin: var(--sp-4) 0 var(--sp-2); }

.empty-state {
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

.empty-state p + p { margin-top: var(--sp-1); }
.empty-state .btn { margin-top: var(--sp-3); }

.messages {
  margin: 0;
  padding: var(--sp-2) var(--sp-3);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 2px solid var(--accent-text);
  color: var(--ink-2);
  font-size: var(--fs-xs);
}

.messages li + li { margin-top: 2px; }

/* =============================================================================
   Post detail
   ============================================================================= */

.vote-form { display: flex; margin: 0; }

.inline-heading {
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: 14px;
}

/* =============================================================================
   Claims and assessments
   ============================================================================= */

.claim-list {
  display: grid;
  gap: var(--sp-2);
}

.quote {
  margin: 0 0 var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  border-left: 2px solid var(--accent-line);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
}

.claim > .meta { margin-bottom: var(--sp-2); }

.assessment {
  margin-top: var(--sp-2);
  padding: var(--sp-3);
  background: var(--surface);
  border-radius: var(--radius);
}

.assessment .meta { margin-bottom: var(--sp-1); }

.assessment.withdrawn { opacity: .74; }
.assessment.withdrawn .chip[data-testid="truth-stance"] { text-decoration: line-through; }

.citations {
  display: grid;
  gap: var(--sp-1);
  margin: var(--sp-2) 0 0;
}

.citation {
  padding-top: var(--sp-1);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.citation:first-child { border-top: 0; padding-top: 0; }
.citation .stance { color: var(--ink); font-weight: 700; }

.response {
  margin-top: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  border-radius: var(--radius);
}

.response > p:last-child { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }

/* =============================================================================
   Attachments
   ============================================================================= */

.attachments {
  display: grid;
  gap: var(--sp-2);
  margin: var(--sp-2) 0;
}

.attachment {
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: var(--fs-xs);
}

.attachment a { font-weight: 600; }

.attachment .hash {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  word-break: break-all;
}

/* =============================================================================
   Threaded discussion
   ============================================================================= */

/* The comment itself is an inset, defined in the discussion section below. */
.comment-body { min-width: 0; }

/* =============================================================================
   Records, accounts and desks
   ============================================================================= */

.summary-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: 0;
}

@media (min-width: 768px) {
  .summary-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  padding: var(--sp-2) var(--sp-3);
}

.stat b { display: block; color: var(--ink); font-size: 20px; line-height: 1.2; }
.stat b a { color: inherit; }
.stat b a:hover { color: var(--accent-text); text-decoration: none; }

.stat span {
  display: block;
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.card > p:last-child { margin-bottom: 0; }
.card .meta { margin-bottom: 2px; }

/* ----- Review desk -------------------------------------------------------- */

.source-text {
  margin: var(--sp-2) 0 var(--sp-3);
  padding: var(--sp-3);
  max-height: 420px;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.table {
  width: 100%;
  margin: var(--sp-2) 0;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody tr:hover { background: var(--surface); }
.table td .inline-form + .inline-form { margin-top: 4px; }

@media (max-width: 767px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }

  .table tr {
    margin-bottom: var(--sp-2);
    padding: var(--sp-3);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .table tbody tr:hover { background: var(--card); }
  .table td { padding: 4px 0; border-bottom: 0; }

  .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
}

/* =============================================================================
   Details, notices, footer
   ============================================================================= */

details > summary {
  color: var(--accent-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}

details > summary:hover { text-decoration: underline; }
details[open] > summary { margin-bottom: var(--sp-2); }

.section-panel > summary {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.section-panel[open] > summary { margin-bottom: var(--sp-3); }

.tombstone {
  margin: var(--sp-5) 0;
  padding: var(--sp-6) var(--sp-5);
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  text-align: center;
}

.tombstone h1 { margin-bottom: var(--sp-2); }
.tombstone p { max-width: 52ch; margin: 0 auto var(--sp-1); color: var(--ink-2); font-size: var(--fs-sm); }
.tombstone .meta { justify-content: center; }

/* =============================================================================
   Footer

   The live site's footer, as kilusna.ph renders it: the logo, "Follow KilusNa"
   over the social row, the channels still to come, then one copyright line with
   its links. Nothing else lives here.
   ============================================================================= */

.site-footer {
  margin-top: var(--sp-7);
  padding: var(--sp-6) var(--sp-4) var(--sp-5);
  background: var(--card);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--fs-xs);
  text-align: center;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.footer-socials-title {
  margin-top: var(--sp-3);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-3);
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}

.social-row a:hover { background: var(--surface); color: var(--accent-text); }
.social-row svg { width: 18px; height: 18px; }

.footer-pending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  color: var(--ink-2);
  font-size: var(--fs-xs);
}

.footer-soon {
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: var(--radius-pill);
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.footer-bottom {
  max-width: var(--shell);
  margin: var(--sp-4) auto 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

.footer-bottom a { color: var(--ink-2); }
.footer-bottom a:hover { color: var(--accent-text); text-decoration: underline; }

/* =============================================================================
   Case file — intake form and sourced display
   ============================================================================= */

.form-section { margin-top: var(--sp-3); }
.form-section > h2 { margin: 0 0 var(--sp-2); }
.form-section > summary {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.form-section[open] > summary { margin-bottom: var(--sp-2); }
.form-section > .help:first-of-type { margin-top: calc(-1 * var(--sp-1)); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 var(--sp-4);
}

.form-grid .field { margin-bottom: var(--sp-3); }

.formset { display: grid; gap: var(--sp-3); }

.formset-row {
  margin: 0;
  padding: var(--sp-3);
  background: var(--surface);
  border-radius: var(--radius);
}

.formset-row legend {
  padding: 0 4px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.formset-row .field { margin-bottom: var(--sp-2); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.errorlist {
  margin: 0 0 var(--sp-2);
  padding: 0;
  list-style: none;
  color: var(--alert);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-3) var(--sp-4);
  margin: 0;
}

.case-facts dt {
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.case-facts dd { margin: 2px 0 0; color: var(--ink); font-size: 14px; }

.case-block { margin-top: var(--sp-4); }
.case-block:first-child { margin-top: 0; }
.case-block h3 { margin: 0 0 var(--sp-2); font-size: 13px; font-weight: 700; }

.case-block > p {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.case-parties { display: grid; gap: 6px; }

.case-parties li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 14px;
}

.case-parties a { font-weight: 600; }

.case-timeline {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
}

.case-timeline li {
  padding-left: var(--sp-3);
  border-left: 2px solid var(--accent-line);
}

.case-timeline p {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.case-timeline .meta { margin-bottom: 2px; }

/* =============================================================================
   Dialog windows (curation forms)
   ============================================================================= */

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 var(--sp-4);
}

/* Without the js-dialogs class the same <dialog> elements are ordinary inline
   panels. The head script adds the class only when showModal() exists. */
dialog.modal {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  max-height: none;
  margin: var(--sp-4) 0;
  overflow: visible;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.modal-close {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  border-radius: var(--radius);
  color: var(--ink-3);
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover { background: var(--surface); color: var(--ink); }

.modal-body { padding: var(--sp-4); }

.modal-body > .help:first-child { margin: 0 0 var(--sp-3); }

/* ----- Upgraded to modal windows ------------------------------------------ */

.js-dialogs dialog.modal {
  position: fixed;
  inset: 0;
  width: min(640px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100vh - 48px);
  margin: auto;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(21, 18, 14, .25);
}

.js-dialogs dialog.modal:not([open]) { display: none; }

/* A dialog that carries a workbench beside a form needs the room for two columns. */
.js-dialogs dialog.modal--wide { width: min(920px, calc(100vw - 32px)); }

.js-dialogs dialog.modal::backdrop { background: rgba(21, 18, 14, .55); }

.js-dialogs .modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
}

.js-dialogs .modal-close { display: grid; }

body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 520px) {
  .js-dialogs dialog.modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
  .modal-body { padding: var(--sp-3); }
}

/* =============================================================================
   Motion and reflow
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 520px) {
  .page { padding: 0 var(--sp-4); }
  .page-layout { padding-top: var(--sp-2); }







  .header-inner { gap: var(--sp-2); }
  .section-panel { padding: var(--sp-3); }
}

/* The logo and the header actions are sized by design.css, which owns the
   header below 900: 34px and a hidden action row. Nothing here restates them. */

/* =============================================================================
   Frontend alignment — cards, sidebar panels, publication sections
   -----------------------------------------------------------------------------
   The class names here mirror the design in ../frontend so the app reads as the
   same product: report cards, hero, feed tabs, card sections, entity pills,
   meta rail. No component is added for its own sake; the buttons are the ones
   the app already needs.
   ============================================================================= */

/* ----- Heterogeneous page shells ----------------------------------------- */

.pub-page {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.pub-back { align-self: flex-start; }

.pub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.pub-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* The section jump bar: anchors only, no tabs and no scroll-spy, so it cannot
   move the page on its own. On a wide screen it sticks under the header. */
.jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.jump-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.jump-bar a:hover { color: var(--accent-text); }

/* A jump must not park the heading under the sticky bar. */
.pub-body[id],
.pub-section[id],
h2[id] { scroll-margin-top: calc(var(--rail-top) + var(--sp-4)); }

@media (min-width: 1024px) {
  .jump-bar {
    position: sticky;
    top: var(--rail-top);
    z-index: 20;
  }
}

@media (min-width: 1024px) {
  .pub-layout { grid-template-columns: minmax(0, 1fr) var(--col-right); }
}

/* ----- Hero (feed heading, no calls to action) --------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-card);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 150% at 88% -30%, rgba(255, 200, 13, .18), transparent 62%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 640px; }

.hero-eyebrow {
  color: var(--accent-text);
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: var(--sp-3);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
}

.hero-title span { color: var(--accent-text); }

.hero-description {
  margin-top: var(--sp-3);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px var(--sp-4);
  margin-top: var(--sp-4);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.hero-feature-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 50%;
}

/* ----- Feed tabs --------------------------------------------------------- */

.feed-tabs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.feed-tabs::-webkit-scrollbar { display: none; }

.feed-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.feed-tab:hover { border-color: var(--line); color: var(--ink); text-decoration: none; }

.feed-tab[aria-current="page"],
.feed-tab[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text);
}

/* ----- Report cards ------------------------------------------------------ */

.reports-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.report-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  transition: border-color .15s ease;
}

.report-card:hover { border-color: var(--line-strong); }

.report-card > .vote { grid-column: 1; }
.report-card > .report-body { grid-column: 2; min-width: 0; }

.vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 2px;
}

.vote-form { display: flex; margin: 0; }

.vote-icon {
  width: 24px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1;
  transition: color .12s ease, background .12s ease;
}

button.vote-icon { cursor: pointer; }
.vote-icon:hover { background: var(--surface); color: var(--accent-text); }
.vote-icon svg { width: 15px; height: 15px; }

.vote-num {
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--sp-2);
  margin-bottom: 6px;
  color: var(--ink-3);
  font-size: var(--fs-meta);
  line-height: 1.4;
}

.report-category {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  color: var(--accent-text);
  font-size: var(--fs-meta);
  font-weight: 600;
}

.report-time { color: var(--ink-3); }

.report-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.005em;
}

.report-title a { color: var(--ink); }
.report-title a:hover { color: var(--accent-text); text-decoration: none; }

.report-summary {
  margin: 0 0 8px;
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.pub-rel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pub-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: var(--fs-meta);
  line-height: 1.5;
}

.pub-pill a { color: var(--ink); font-weight: 600; }
.pub-pill a:hover { color: var(--accent-text); text-decoration: none; }
.pub-pill small { color: var(--ink-3); font-size: var(--fs-tiny, 11px); }

.pub-pill-topic {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text);
  font-weight: 600;
}

.pub-pill-topic a { color: var(--accent-text); }

.report-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

.report-author { color: var(--ink-3); }
.report-author a { color: var(--ink-2); font-weight: 600; }
.report-author a:hover { color: var(--accent-text); }

.report-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.react-btn,
.react-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: var(--radius);
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}

.react-btn:hover { background: var(--surface); color: var(--accent-text); text-decoration: none; }

/* ----- Sidebar cards ----------------------------------------------------- */

.sidebar-card {
  margin-bottom: var(--sp-3);
}

.sidebar-card:last-child { margin-bottom: 0; }

.sidebar-card-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.sidebar-note {
  color: var(--ink-2);
  font-size: var(--fs-xs);
  line-height: 1.55;
}

.sidebar-note + .sidebar-note { margin-top: var(--sp-2); }

.sidebar-list {
  display: grid;
  gap: 7px;
  margin: 10px 0;
  color: var(--ink-2);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.sidebar-list li { position: relative; padding-left: 13px; }

.sidebar-list li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 1px;
  width: 5px;
  height: 5px;
  background: var(--accent-text);
  border-radius: 50%;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent-text);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.35;
}

.sidebar-nav-link:hover { background: var(--surface); color: var(--ink); text-decoration: none; }

.sidebar-nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

/* ----- Publication cards ------------------------------------------------- */

.pub-hero,
.pub-section,
.pub-body,
.meta-rail { padding: 0; }

.pub-hero { overflow: hidden; }

.pub-titleblock {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}

.pub-titleblock h1 {
  margin: 0 0 var(--sp-2);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -.01em;
}

.pub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.pub-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--sp-3);
  color: var(--ink-3);
  font-size: 13px;
}

.pub-meta-row a { color: var(--ink-2); }
.pub-meta-row a:hover { color: var(--accent-text); }

.pub-body { padding: var(--sp-5); }

.rich-content p {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.rich-content p + p { margin-top: var(--sp-4); }
.rich-content strong { color: var(--ink); }

.eng-bar { padding: var(--sp-2) var(--sp-4); }

.engagement-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.eng-curate { margin-left: auto; }

.engagement-actions .vote-num {
  min-width: 24px;
  font-size: var(--fs-xs);
  text-align: center;
}

.pub-section { padding: var(--sp-5); }

.pub-section-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.pub-section h2 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 700;
}

.section-count {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.pub-empty {
  color: var(--ink-3);
  font-size: 13.5px;
}

.claim-summary {
  margin: 0 0 var(--sp-3);
  color: var(--ink-3);
  font-size: 13px;
}

.claim-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.claim-item {
  padding: var(--sp-3);
  background: var(--surface);
  border-radius: var(--radius);
}

.claim-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.claim-text {
  margin: 0 0 var(--sp-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.claim-explanation {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.claim-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--fs-meta);
}

/* ----- Entity lists and the meta rail ------------------------------------ */

.entity-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entity-link { color: var(--accent-text); }
.entity-link:hover { text-decoration: underline; }

.meta-rail { padding: var(--sp-4); }

.meta-section + .meta-section {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.meta-section h2 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

/* ----- Comments ---------------------------------------------------------- */

.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment {
  display: block;
  padding: 10px var(--sp-3);
  background: var(--surface);
  border-radius: var(--radius);
}

.comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--sp-2);
  margin-bottom: var(--sp-1);
}

.comment-header strong { color: var(--ink); font-size: 14px; }

.comment-time { color: var(--ink-3); font-size: 13px; }

.comment-body {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px var(--sp-2);
  margin-top: var(--sp-1);
}

.comment-actions .vote-icon { width: 24px; height: 24px; }

.comment-actions .vote-num { font-size: var(--fs-xs); }

.comment-replies {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: var(--sp-3) 0 0;
  padding: 0 0 0 var(--sp-4);
  border-left: 1px solid var(--line);
  list-style: none;
}

.comment.reply {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.comment.reply .comment-body { font-size: 14px; }

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.comment-input {
  min-height: 92px;
  resize: vertical;
}

.comment-form-actions { display: flex; justify-content: flex-end; }

.comment-login {
  margin-bottom: var(--sp-4);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

@media (max-width: 767px) {
  .report-card { grid-template-columns: 26px minmax(0, 1fr); padding: var(--sp-4); gap: 10px; }
  .hero { padding: var(--sp-5) var(--sp-4); }
  .pub-titleblock { padding: var(--sp-4); }
  .pub-body, .pub-section { padding: var(--sp-4); }
  .meta-rail { padding: var(--sp-3); }
  .pub-titleblock h1 { font-size: 1.35rem; }
  .comment-replies { padding-left: var(--sp-2); }
}

/* ----- Small reconciliations with the app's existing components ---------- */

@media (min-width: 768px) {
  .pub-titleblock h1 { font-size: 1.5rem; }
}

.vote-icon--on { color: var(--accent-text); }

.claim-item .assessment {
  background: var(--card);
}

.pub-section .stat { background: var(--surface); }

.comment-form > label {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.comment-reply-form { margin-top: var(--sp-2); }
.comment-reply-form > summary { display: inline-flex; align-items: center; }
.comment-reply-form .comment-form { margin-bottom: 0; margin-top: var(--sp-2); }

.desk-tabs { margin: 0 0 var(--sp-4); }

/* Curation form disclosures and the internal note */
.form-disclosure {
  margin: 0 0 var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface);
  border-radius: var(--radius);
}

.form-disclosure > summary { font-weight: 700; }
.form-disclosure[open] > summary { margin-bottom: var(--sp-2); }
.form-disclosure .field:last-child { margin-bottom: 0; }

.curation-note { margin-top: var(--sp-2); }
.curation-note > summary { font-size: var(--fs-xs); font-weight: 600; }
.curation-note .sidebar-note { margin: var(--sp-1) 0 var(--sp-2); }
