@charset "UTF-8";
/* ==========================================================================
   Before the tree: components used only by /heritage/history/. Loaded after
   css/styles220820261.css and css/heritage250820261.css, and reuses both —
   nothing from either is redefined here. The page's sections, claims, stats,
   plates, timeline, notices and source list are all theirs.
   ========================================================================== */

/* --- The span a section covers, beside its title -------------------------- */

.section__span {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: var(--step-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Four-up plate grid --------------------------------------------------- */
/* The overview compares four lines rather than two, so it needs a narrower
   minimum than .plates alone would give. */

/* Fixed at two columns rather than auto-fit: four cards in an auto-fit grid
   land three-up inside this measure and leave a fifth cell showing the
   container's rule colour. Two columns is always two full rows. */
.plates--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plates--four .plate dl { grid-template-columns: 5.5rem minmax(0, 1fr); }

@media (max-width: 40rem) {
  .plates--four { grid-template-columns: minmax(0, 1fr); }
}

/* --- Chronology ----------------------------------------------------------- */
/* Inline SVG, so the coastline of the record follows the theme. Generated by
   tools/make-chronology.py, which emits the dated list below it from the same
   table — the figure and the list cannot disagree. */

.chrono { margin: clamp(1.5rem, 3vw, 2rem) 0 0; }
.chrono__frame {
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow-x: auto;
}
/* Below about 40rem the four lanes stop being legible squeezed to width, so
   the figure keeps its natural size and the frame scrolls instead. */
.chrono svg { display: block; width: 100%; min-width: 34rem; height: auto; }
.chrono figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 58ch;
}

.cr-era {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink-3);
  text-anchor: middle;
}
.cr-seg { stroke: var(--rule-strong); stroke-width: 1; }
.cr-break path { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.cr-lane {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink);
}
.cr-track { stroke: var(--rule); stroke-width: 1; }
.cr-mark { fill: var(--accent); }
.cr-join { stroke: var(--accent); stroke-width: 1.2; }
.cr-rule { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.cr-axis, .cr-tick { stroke: var(--rule-strong); stroke-width: 1; }
.cr-year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  fill: var(--ink-2);
}

/* Legend swatches, matching the two mark types in the figure. */
.tree__key .k-mark {
  border: 0;
  background: var(--accent);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}
.tree__key .k-rule {
  border: 0;
  border-left: 2px dashed var(--ink-3);
  background: transparent;
  width: 0.4rem;
}

/* --- Evidence grading ----------------------------------------------------- */
/* The four bands from the source document, kept as bands rather than folded
   into prose: the difference between a charter date and a castle legend is
   the argument of the whole page. */

.grades {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}
.grade {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.grade__label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--step-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.3em;
}
.grade--solid .grade__label { color: var(--ink); }
.grade--probable .grade__label { color: var(--ink-2); }
.grade--tradition .grade__label { font-style: italic; }
.grade--false .grade__label { color: var(--accent); }

.grade__body { max-width: 62ch; }
.grade__gloss {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}
.grade__body ul { list-style: none; padding-left: 0; margin: 0; }
.grade__body li {
  position: relative;
  padding-left: 1.1rem;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.grade__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 1px;
  background: var(--rule-strong);
}
.grade--false .grade__body li::before { background: var(--accent); height: 2px; }

@media (max-width: 34rem) {
  .grade { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
}

/* --- A preprint is not a paper -------------------------------------------- */

.tag--preprint { border-style: dashed; border-color: var(--accent); color: var(--accent); }

/* --- Print ---------------------------------------------------------------- */

@media print {
  .chrono, .grade, .plate { break-inside: avoid; }
  .chrono__frame { overflow: visible; }
}
