/* Structured Entity Reference — base stylesheet (SER generator; themeable via --accent)
   Self-contained, no external dependencies (works from file://).
   Ink-on-white, readable; a restrained reference-document aesthetic. */

:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --rule: #e4e4e4;
  --bg: #ffffff;
  --panel: #f7f7f5;
  --accent: #7a2531;      /* neutral accent placeholder; theme per client */
  --link: #0b5cad;
  --chip-bg: #efeee9;
  --code-bg: #1e1e22;
  --code-ink: #e6e6e6;
  --max: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 17px/1.62 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  padding: 0 20px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 0 72px; }

/* Breadcrumb / top nav */
.sitenav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--faint);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 26px;
}
.nav-crumb a, .nav-home { color: var(--muted); text-decoration: none; }
.nav-crumb a:hover { color: var(--link); text-decoration: underline; }
.nav-site { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-site:hover { color: var(--link); text-decoration: underline; }

a { color: var(--link); }

h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); margin: 36px 0 12px; font-weight: 600;
}
h3 { font-size: 19px; margin: 26px 0 8px; }

p { margin: 0 0 14px; }
.lede { font-size: 19px; color: #333; }

/* Type chip — shows the schema.org @type on every page */
.typechip {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--chip-bg);
  color: #444;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.typechip b { color: var(--accent); font-weight: 700; }

/* Fact list — the dual (human) surface mirroring the JSON-LD */
dl.facts { margin: 0; padding: 0; }
dl.facts > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 4px 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
dl.facts dt {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px; color: var(--muted); padding-top: 2px;
}
dl.facts dd { margin: 0; }
@media (max-width: 560px) {
  dl.facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Relationship links — links that encode a typed edge, not just nav */
ul.rels { list-style: none; margin: 0; padding: 0; }
ul.rels li { padding: 7px 0; border-bottom: 1px solid var(--rule); }
ul.rels .pred {
  display: inline-block; min-width: 132px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--accent);
}

/* Canonical links — the client's own pages. No predicate column: these are pointers, not claims. */
ul.sitelinks em { font-style: normal; color: var(--muted); font-size: 13px; }

/* Verifiability grading */
.claim {
  border-left: 3px solid var(--rule);
  padding: 2px 0 2px 16px;
  color: #333;
  font-style: italic;
}
.claim .who {
  display: block; font-style: normal; font-size: 12px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--faint); margin-top: 6px; letter-spacing: .02em;
}

/* Freshness stamp */
.verified {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px; color: var(--faint);
  margin-top: 30px;
}
.verified b { color: var(--muted); font-weight: 600; }

/* Hub grid */
ul.hub { list-style: none; margin: 8px 0 0; padding: 0; }
ul.hub li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
ul.hub a { font-size: 19px; text-decoration: none; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600; }
ul.hub a:hover { text-decoration: underline; }
ul.hub .t {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--faint); margin-left: 8px;
}
ul.hub p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* Page footer */
.pagefoot {
  margin-top: 46px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px; color: var(--faint);
}
.pagefoot a { color: var(--muted); }

.callout {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 6px;
  padding: 14px 16px; margin: 20px 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13.5px; color: #444;
}
.callout b { color: var(--ink); }
