:root {
  --fg: #1a1a1a;
  --bg: #fafaf7;
  --muted: #6b6b6b;
  --accent: #2b5fa5;
  --rule: #e2e1dc;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.brand { font-weight: 700; text-decoration: none; color: var(--fg); font-size: 1.1rem; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; }
main { max-width: 48rem; margin: 0 auto; padding: 2rem; }
footer {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 1rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}
footer details.sources { margin: 0.75rem 0; }
footer details.sources summary {
  cursor: pointer;
  user-select: none;
  color: var(--fg);
  font-weight: 500;
}
footer .source-table {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}
footer .source-table th,
footer .source-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
footer .source-table th {
  font-weight: 600;
  color: var(--fg);
}
footer .licensing-note {
  font-size: 0.8rem;
  margin-top: 0.75rem;
  color: var(--muted);
}
footer .ai-disclaimer {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-left: 3px solid #d4a437;
  font-size: 0.8rem;
}
h1 { font-size: 1.75rem; margin: 0 0 0.25rem; }
.iri {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  margin: 0 0 1.25rem;
}
.iri a { color: var(--muted); text-decoration: none; }
.iri a:hover { color: var(--accent); text-decoration: underline; }
.example {
  background: #fff;
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-style: italic;
}
.supplement {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #fff;
  border-left: 3px solid var(--rule);
  font-size: 0.95rem;
}
.supplement .supp-def { margin: 0 0 0.5rem; }
.supplement .supp-attrib {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.supplement .supp-attrib a { color: var(--muted); }
/* Primary (FIBO / Lexicon extension) — larger type, darker accent, the
 * canonical definition gets visual priority over supplements. */
.supplement.primary {
  border-left-color: var(--accent);
  border-left-width: 4px;
  font-size: 1.05rem;
}
.supplement.primary .supp-def { margin-bottom: 0.75rem; }
.supplement.wiktionary { border-left-color: #8a7a50; }
.supplement.wikipedia  { border-left-color: #4a6b8a; }
.supplement.wikidata   { border-left-color: #5a7a5a; }
.supplement.us_pd      { border-left-color: #8a5a5a; }

.bucket { margin: 2rem 0; }
.bucket h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
}
.bucket .bucket-count {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 0.4rem;
}
.bucket ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2 18rem;
  column-gap: 2rem;
}
.bucket li {
  break-inside: avoid;
  padding: 0.1rem 0;
  font-size: 0.95rem;
}

.neighbors { margin-top: 2rem; }
.neighbors h2 { font-size: 1.1rem; }
.neighbors ul { list-style: none; padding: 0; }
.neighbors li { padding: 0.25rem 0; }
.neighbors .rel { color: var(--muted); font-size: 0.85rem; margin-right: 0.5rem; }
.neighbors .ext-host {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.4rem;
  font-style: italic;
}
.neighbors .ext-name {
  color: var(--muted);
}
a { color: var(--accent); }
