/* Digital Bloodstock
   Navy and gold: navy #13294B, ink #15203A, links #1D4E9E,
   gold #C9A227 for duplicated ancestors only, paper #F7F8FA */

:root {
  --paper: #FCFCFD;
  --ink: #15203A;
  --muted: #4B5468;
  --bay: #1D4E9E;          /* green for text links */
  --racing: #13294B;       /* navy: panels, buttons, footer */
  --bay-dark: #163B78;
  --silk: #C9A227;
  --silk-wash: #F8EDC9;
  --gold-text: #86650C;   /* darker gold for text on light backgrounds */
  --rail: #DDE2EA;
  --head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;          /* 19px: comfortable on phones */
  line-height: 1.62;
  font-optical-sizing: auto;
}

a { color: var(--bay); text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover { color: var(--bay-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--silk); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: #fff; padding: .5rem .75rem; z-index: 10; }

/* ---------- masthead ---------- */
.masthead {
  max-width: 64rem;
  align-items: center !important;
  margin: 0 auto;
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  border-bottom: 1px solid var(--rail);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  color: var(--racing);
  text-decoration: none;
  line-height: 1;
}
.wordmark img { width: 46px; height: auto; display: block; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.masthead nav a {
  font-family: var(--head);
  font-stretch: 87.5%;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--bay); text-decoration: underline; }

main { padding: 0 1rem; }

/* ---------- headings ---------- */
h1, h2, h3 {
  font-family: var(--head);
  font-stretch: 80%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 7vw, 3.9rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 4.2vw, 2rem); margin: 2.6rem 0 .75rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 .5rem; }

/* ---------- article ---------- */
.article { max-width: var(--measure); margin: 0 auto; padding: 2.5rem 0 1rem; }
.article-head { margin-bottom: 2rem; }
.standfirst {
  font-size: 1.35rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 1rem;
}
.byline {
  font-family: var(--head);
  font-stretch: 87.5%;
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

.prose p, .prose ul, .prose ol { margin: 0 0 1.15rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--bay); }
.prose strong { font-weight: 600; }

hr.break {
  border: 0;
  height: 1rem;
  margin: 2.25rem 0 0;
  background:
    linear-gradient(var(--rail), var(--rail)) left center / 3rem 2px no-repeat;
}
hr.break + h2 { margin-top: .75rem; }

/* sire line: the chain of stallions, set like a racebook line */
.sireline {
  font-family: var(--head);
  font-stretch: 87.5%;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.7;
  padding: .85rem 1rem;
  border-left: 4px solid var(--bay);
  background: #fff;
  margin: 1.5rem 0;
}
.sireline strong { font-weight: 800; }

/* the coin-flip sum */
.formula {
  font-family: var(--head);
  font-stretch: 80%;
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  line-height: 1.15;
  margin: 1.75rem 0 !important;
  color: var(--bay);
}
.formula .nw { white-space: nowrap; }

.bottomline { list-style: none; padding-left: 0 !important; }
.bottomline li {
  border-top: 1px solid var(--rail);
  padding: .8rem 0 .4rem;
  margin: 0;
}
.bottomline li:last-child { border-bottom: 1px solid var(--rail); }
.bottomline strong {
  display: block;
  font-family: var(--head);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bay);
}

.sources-h { font-size: 1rem; color: var(--muted); margin-top: 3rem; }
.sources { font-size: .95rem; color: var(--muted); line-height: 1.5; }

/* ---------- pedigree diagram (the one bold element) ---------- */
.pedigree {
  margin: 2rem -0.25rem;
  padding: 1.25rem 1rem 1rem;
  background: #fff;
  border: 1px solid var(--rail);
  border-radius: 4px;
  font-family: var(--head);
}
.ped-top {
  text-align: center;
  padding: .55rem .75rem;
  background: var(--racing);
  color: #fff;
  border-radius: 3px;
  margin-bottom: .75rem;
}
.ped-top .ped-name { font-weight: 800; font-stretch: 80%; font-size: 1.15rem; }
.ped-grid {
  display: grid;
  grid-template-columns: 2.4rem 1fr 1fr;
  gap: .4rem .5rem;
  align-items: stretch;
}
.ped-side, .ped-head {
  font-stretch: 87.5%;
  font-weight: 600;
  font-size: .8rem;
  color: var(--muted);
  padding-bottom: .15rem;
}
.ped-gen {
  font-stretch: 80%;
  font-weight: 800;
  font-size: 1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ped-head { justify-content: center; display: flex; align-items: end; }
.ped-cell {
  padding: .5rem .6rem;
  border-left: 3px solid #C5CEDC;
  background: #F1F4F8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3rem;
}
.ped-name { font-weight: 700; font-stretch: 87.5%; font-size: 1rem; line-height: 1.2; }
.ped-note { font-size: .8rem; font-stretch: 87.5%; color: var(--muted); line-height: 1.25; margin-top: .15rem; }
.ped-hl { background: var(--silk-wash); border-left-color: var(--silk); }
.ped-hl .ped-name { font-weight: 800; }
.ped-empty { background: transparent; border-left: 3px dotted var(--rail); }
.pedigree figcaption {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 1rem;
  color: var(--ink);
}

/* ---------- sign-up ---------- */
.signup {
  background: var(--racing);
  color: #fff;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 4px;
  margin: 2.5rem 0;
}
.signup-heading { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.45rem, 4vw, 1.8rem); }
.signup-text { margin: 0 0 1rem; color: #E1E7F2; }
.signup-form { display: grid; gap: .75rem; }
.field { display: grid; gap: .2rem; }
.field span { font-family: var(--head); font-stretch: 87.5%; font-weight: 600; font-size: .9rem; }
.field input {
  font: inherit;
  font-size: 1.05rem;
  padding: .7rem .75rem;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus-visible { outline: 3px solid var(--silk); outline-offset: 1px; }
.signup button, .button {
  font-family: var(--head);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 1.1rem;
  border: 0;
  border-radius: 3px;
  padding: .8rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.signup button { background: #fff; color: var(--racing); justify-self: start; padding: .85rem 1.2rem; }
.signup button:hover { background: #E1E7F2; }
.signup-status { margin: 0; font-size: 1rem; }
.signup-status:empty { display: none; }
.signup-fine { margin: .75rem 0 0; font-size: .9rem; color: #C5D0E3; }
.signup-fine a { color: #fff; }
@media (min-width: 40rem) {
  .signup { padding: 2rem 2rem 1.5rem; }
  .signup-form { grid-template-columns: 1fr 1.4fr auto; align-items: end; }
  .signup-status { grid-column: 1 / -1; }
}

/* ---------- home ---------- */
.home main > section { max-width: 44rem; margin-left: auto; margin-right: auto; }
.intro p {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 2rem 0 0;
  max-width: 34rem;
}
.feature { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--rail); }
.feature h1 { font-size: clamp(2.5rem, 8vw, 4.4rem); margin: .5rem 0 1rem; }
.feature h1 a { color: var(--ink); text-decoration: none; }
.feature h1 a:hover { color: var(--bay); }
.feature-desc { margin: 0 0 1.5rem; }
.button { background: var(--racing); color: #fff; }
.button:hover { background: var(--bay-dark); color: #fff; }
.start h2, .about-teaser h2 { margin-top: 2.25rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .25rem 0 .5rem; }
.list-title { font-family: var(--head); font-stretch: 80%; font-weight: 800; font-size: 1.45rem; text-decoration: none; }
.list-title:hover { text-decoration: underline; }
.list p { margin: .2rem 0 0; color: var(--muted); }
.about-teaser { padding-bottom: 1rem; }

/* ---------- footer ---------- */
.footer {
  margin-top: 3rem;
  background: var(--racing);
  border-top: 4px solid var(--silk);
  color: #C5D0E3;
  padding: 2rem 1rem 2.5rem;
  font-size: 1rem;
}
.footer-inner { max-width: 64rem; margin: 0 auto; }
.footer p { margin: 0 0 .4rem; }
.footer-logo { display: block; width: 112px; height: auto; margin: 0 0 1rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1rem 0; }
.footer a { color: #fff; }
.copyright { color: #A3B1C8; font-size: .9rem; }

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


/* ---------- navy header bands ---------- */
.band {
  background: var(--racing);
  color: #fff;
  margin: 0 -1rem;
  padding: 2.5rem 1rem 2.25rem;
  border-bottom: 4px solid var(--silk);
  position: relative;
  overflow: hidden;
}

.band .article-head { max-width: var(--measure); margin: 0 auto; position: relative; z-index: 1; }
.band h1, .band h1 a { color: #fff; }
.band .standfirst { color: #E1E7F2; }
.band .byline { color: #C5D0E3; }
.band-slim { padding-top: 2rem; padding-bottom: 1.75rem; }
.band-slim h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); }
.article { padding-top: 2rem; }

/* home hero */
.band-home { padding: 2.5rem 1rem 2.75rem; }
.hero {
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-logo { width: 150px; height: auto; }
.hero-intro { font-size: 1.15rem; color: #E1E7F2; margin: 0 0 1.25rem; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.4rem); margin: .4rem 0 1rem; }
.hero h1 a { text-decoration: none; }
.hero h1 a:hover { text-decoration: underline; text-decoration-color: var(--silk); }
.hero .standfirst { margin-bottom: 1.5rem; }
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1fr 260px; gap: 3rem; }
  .hero-logo { width: 260px; order: 2; }
}
.button-gold { background: var(--silk); color: var(--racing); }
.button-gold:hover { background: #DDB53A; color: var(--racing); }
.feature-desc-wrap { padding-top: 1.75rem; }
.feature-desc { font-size: 1.15rem; color: var(--muted); margin: 0; }

/* section headings get a short gold rule (replaces the grey break) */
hr.break {
  background: linear-gradient(var(--silk), var(--silk)) left center / 2.5rem 3px no-repeat;
}

/* ---------- by the numbers ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rail);
  border: 1px solid var(--rail);
  border-top: 4px solid var(--racing);
  margin: 2rem 0;
}
.stat { background: #fff; padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.stat-num {
  font-family: var(--head);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1;
  color: var(--racing);
}
.stat-label { font-family: var(--head); font-stretch: 87.5%; font-weight: 600; font-size: .85rem; line-height: 1.3; color: var(--muted); }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 40rem) { .stats-3 { grid-template-columns: repeat(3, 1fr); } }
.stats-title { grid-column: 1 / -1; background: #fff; padding: .6rem 1rem 0; font-family: var(--head); font-stretch: 87.5%; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.stats-3 .stat { padding-top: .4rem; }
.stats-3 .stats-title + .stat, .stats-3 .stat { border-top: 0; }

/* ---------- Speed Gene distance chart ---------- */
.engines {
  margin: 2rem -0.25rem;
  padding: 1.25rem 1rem 1rem;
  background: #fff;
  border: 1px solid var(--rail);
  border-radius: 4px;
  font-family: var(--head);
}
.eng-body { position: relative; }
.eng-row { margin-bottom: .9rem; position: relative; z-index: 1; }
.eng-name { font-stretch: 87.5%; font-size: 1rem; margin-bottom: .3rem; }
.eng-name strong { font-weight: 800; color: var(--racing); }
.eng-name span { color: var(--muted); font-weight: 600; margin-left: .25rem; }
.eng-track { position: relative; height: 2rem; background: #F1F4F8; border-radius: 3px; }
.eng-bar { position: absolute; top: 0; bottom: 0; background: var(--racing); border-radius: 3px; }
.eng-open { border-radius: 3px 0 0 3px; background: linear-gradient(90deg, var(--racing) 70%, rgba(19,41,75,.25)); }
.eng-mark { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 3px solid var(--silk); z-index: 2; transform: translateX(-1.5px); }
.eng-axis { position: relative; height: 1.2rem; margin-top: .35rem; }
.eng-axis span { position: absolute; transform: translateX(-50%); font-size: .72rem; font-weight: 600; color: var(--muted); }
.eng-axis span:first-child { transform: none; }
.eng-axis span.eng-unit { transform: none; font-weight: 500; font-style: italic; }
.eng-grid { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed #B8C1CF; transform: translateX(-.5px); }
.eng-row:last-of-type .eng-grid { bottom: -.4rem; }
.engines figcaption { font-family: var(--body); font-size: 1rem; line-height: 1.5; margin-top: .25rem; }
.eng-key { display: inline-block; width: 0; height: 1rem; border-left: 3px solid var(--silk); vertical-align: middle; margin-right: .25rem; }

/* ---------- pull quotes ---------- */
.pull {
  margin: 2rem 0;
  padding: 0 0 0 1.1rem;
  border-left: 5px solid var(--silk);
}
.pull p {
  font-family: var(--head);
  font-stretch: 80%;
  font-weight: 800;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  line-height: 1.15;
  color: var(--racing);
  margin: 0 !important;
}

/* ---------- sign-up: gold button and logo watermark ---------- */
.signup { position: relative; overflow: hidden; }
.signup::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  background: url(/assets/logo-mark-white.png) center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}
.signup > * { position: relative; z-index: 1; }
.signup button { background: var(--silk); color: var(--racing); }
.signup button:hover { background: #DDB53A; }


/* ---------- more gold (13 Oct) ---------- */
.masthead { border-bottom: 0; }
.band { border-top: 3px solid var(--silk); }
.masthead nav a { border-bottom: 2px solid transparent; padding-bottom: 2px; }
.masthead nav a:hover { text-decoration: none; color: var(--racing); border-bottom-color: var(--silk); }
.band .byline, .hero .byline { color: var(--silk); font-weight: 600; }
.hero-intro { color: #fff; }
.band { border-bottom-width: 6px; }
.prose h2 { position: relative; }
.prose li::marker { color: var(--silk); }
.sireline { border-left-color: var(--silk); }
.bottomline strong { color: var(--gold-text); }
.stats { border-top-color: var(--silk); }
.stat-label { color: var(--muted); }
.ped-top { border-bottom: 4px solid var(--silk); }
.signup { border-top: 5px solid var(--silk); }
.signup-heading { color: var(--silk); }
.list-title { color: var(--racing); border-bottom: 3px solid var(--silk); text-decoration: none; padding-bottom: 1px; }
.list-title:hover { color: var(--bay); text-decoration: none; }
.start h2, .about-teaser h2 { padding-top: .9rem; background: linear-gradient(var(--silk), var(--silk)) left top / 2.5rem 3px no-repeat; }
.footer { border-top-width: 6px; }
.footer a:hover { color: var(--silk); }
.sources-h { color: var(--gold-text); }

/* trade mark symbol */
.tm-wrap { position: relative; display: inline-block; }
.tm-wrap img { width: 100%; height: auto; display: block; }
.tm { position: absolute; top: 2%; right: -1.4em; font-family: var(--head); font-weight: 700; font-size: .75rem; color: #fff; line-height: 1; }
.footer-logo .tm { font-size: .6rem; right: -1.3em; }
.tm-text { font-family: var(--head); font-size: .45em; font-weight: 700; margin-left: .1em; vertical-align: super; }

/* pedigree: mares in light pink (same lightness as the blue cells), key notes stand out, bigger side labels */
.ped-f { background: #F8EEF2; border-left-color: #DDBFCC; }
.ped-note.ped-key { font-size: .92rem; font-weight: 800; color: var(--gold-text); margin-top: .25rem; }
.ped-grid .ped-side { font-size: 1.05rem; font-stretch: 80%; font-weight: 800; color: var(--racing); display: flex; align-items: end; line-height: 1.15; }
@media (max-width: 30rem) { .ped-grid .ped-side { font-size: .9rem; } }

/* sign-off at the end of articles */
.signoff { margin: 2rem 0 1.5rem; display: flex; align-items: center; gap: 1rem; }
.signoff-photo { flex: none; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--silk); background: var(--rail); }
.signoff-text { margin: 0; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
/* About page photo, {{headshot}} (27 Oct 2026) */
.headshot { margin: 1.5rem auto 2rem; text-align: center; }
.headshot img { display: block; margin: 0 auto; width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 4px solid var(--silk); background: var(--rail); }
.headshot figcaption { margin-top: .7rem; font-family: var(--body); font-style: italic; font-size: 1rem; color: var(--gold-text); }
.signoff-name { font-family: var(--body); font-weight: 700; font-size: 1.35rem; color: var(--racing); }
.signoff-title { font-family: var(--body); font-style: italic; font-size: 1.05rem; color: var(--gold-text); }

/* Tesio record card */
.tesio-record { margin: 2rem -0.25rem; background: var(--racing); color: #fff; border-radius: 4px; border-top: 4px solid var(--silk); padding: 1.25rem 1.1rem 1rem; font-family: var(--head); }
.tr-head { display: flex; align-items: baseline; gap: .6rem; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: .8rem; margin-bottom: .9rem; }
.tr-big { font-weight: 800; font-stretch: 75%; font-size: 3rem; line-height: 1; color: var(--silk); }
.tr-big-label { font-weight: 700; font-size: 1.1rem; }
.tr-cols { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 40rem) { .tr-cols { grid-template-columns: 1fr 1.25fr; gap: 1.5rem; } }
.tesio-record h4 { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--silk); font-weight: 800; }
.tesio-record ul { list-style: none; margin: 0; padding: 0; }
.tesio-record li { display: flex; justify-content: space-between; gap: .75rem; padding: .35rem 0; border-bottom: 1px dotted rgba(255,255,255,.2); font-size: .95rem; }
.tesio-record li:last-child { border-bottom: 0; }
.tr-name { font-weight: 700; }
.tr-val { color: #D6DCE6; text-align: right; font-weight: 500; }
.tesio-record figcaption { margin-top: .8rem; font-family: var(--body); font-size: .85rem; line-height: 1.4; color: #C3CAD6; }

/* Tesio legacy card */
.tl-groups { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 40rem) { .tl-groups { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.75rem; } }
.tesio-legacy .tr-big-label { font-size: 1.25rem; }
.tl-line { margin: -.2rem 0 .3rem; font-size: .8rem; color: #C3CAD6; font-weight: 600; }
.tesio-legacy li { flex-direction: column; gap: .05rem; justify-content: flex-start; }
.tl-name { font-weight: 700; }
.tl-year { color: var(--silk); font-weight: 700; margin-left: .25rem; }
.tl-route { color: #D6DCE6; font-size: .85rem; font-weight: 500; }
.tesio-record .tr-big-label { font-size: 1.25rem; }
.tesio-record h4.tr-sub { margin-top: 1rem; }
.tr-val.tr-gold { color: var(--silk); font-weight: 800; font-size: 1.1rem; }

/* home: story card (14 Oct 2026) */
.hero-logo { display: none; }
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1fr 200px; gap: 3rem; }
  .hero-logo { display: inline-block; width: 200px; order: 2; }
}
.story-card {
  display: block; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-left: 5px solid var(--silk);
  border-radius: 4px;
  padding: 1.25rem 1.1rem 1.35rem;
  transition: background .15s;
}
.story-card:hover { background: rgba(255,255,255,.1); }
.story-card:hover h1 { text-decoration: underline; text-decoration-color: var(--silk); }
.story-kicker { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: baseline; font-family: var(--head); font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--silk); }
.story-mins { letter-spacing: 0; text-transform: none; font-weight: 600; color: #C5D0E3; font-size: .9rem; }
.story-card h1 { color: #fff; font-size: clamp(2.2rem, 7.5vw, 4rem); margin: .5rem 0 .75rem; }
.story-card .standfirst { color: #E1E7F2; margin: 0 0 .9rem; }
.story-desc { color: #C5D0E3; font-size: 1.05rem; margin: 0 0 1.4rem; }
.button-big { font-size: 1.2rem; padding: 1rem 1.5rem; display: block; text-align: center; }
@media (min-width: 40rem) { .button-big { display: inline-block; padding: 1rem 2rem; } .story-card { padding: 1.75rem 2rem 2rem; } }
.home .signup { margin-top: 2rem; }
.start h2 { font-size: 1.5rem; }

.prose ul.list { padding-left: 0; list-style: none; }
.prose ul.list li { margin-bottom: 1rem; }

.signoff-email { font-family: var(--head); font-size: .95rem; font-weight: 600; margin-top: .35rem; color: var(--link, #1D4E9E); word-break: break-all; }

/* ---------- X (Pedigree Nerd) links, 18 Oct 2026 ---------- */
.x-logo { display: inline-block; flex: none; vertical-align: -0.15em; }
.masthead nav { align-items: center; }
.masthead nav a.nav-x { display: inline-flex; align-items: center; color: var(--racing); padding: 2px; border-bottom: 0; }
.masthead nav a.nav-x:hover { color: var(--gold-text); border-bottom: 0; }

.x-panel { background: var(--racing); border-radius: 8px; padding: 1.1rem 1.25rem 1.25rem; margin: 1.5rem 0; color: #fff; }
.x-panel p { margin: 0; }
.x-panel-head { font-family: var(--head); font-stretch: 87.5%; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--silk); margin-bottom: .35rem !important; }
.x-panel-text { font-size: 1.1rem; line-height: 1.4; margin-bottom: .9rem !important; }
.x-panel-btn, .sb-x, .sb-fb {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--head); font-weight: 700; font-size: 1rem;
  text-decoration: none; border-radius: 6px; padding: .65rem 1.05rem; line-height: 1.1;
}
.x-panel-btn { background: var(--silk); color: var(--racing); }
.x-panel-btn:hover { background: #DDB53A; color: var(--racing); }

.social-box { margin-top: 1.5rem !important; }
.social-box { background: var(--silk-wash); border: 1px solid var(--silk); border-radius: 8px; padding: 12px 14px 14px; margin: 0 0 1.75rem; color: var(--ink); }
.social-box p { margin: 0 0 .7rem; font-size: 1.02rem; line-height: 1.4; }
.social-btns { display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.sb-x { background: var(--racing); color: #fff; border: 2px solid var(--racing); }
.sb-x:hover { background: #0C1C36; color: #fff; }
.sb-fb { background: #fff; color: var(--racing); border: 1px solid var(--racing); font-weight: 600; padding: .55rem .95rem; }
.sb-fb:hover { background: #F1F4F8; color: var(--racing); }

.footer-x { margin: .25rem 0 .9rem !important; }
.footer-x a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.footer-x-note { color: var(--silk); }

/* photos in articles: {{photo|...}} (23 Oct 2026) */
.photo { margin: 2rem 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--rail); }
.photo figcaption { margin-top: .6rem; font-family: var(--body); font-style: italic; font-size: .95rem; line-height: 1.45; color: var(--muted); border-left: 3px solid var(--silk); padding-left: .7rem; }
.photo-portrait { max-width: 20rem; margin-left: auto; margin-right: auto; }

/* arrows between generations in the RF pedigree diagrams (26 Oct 2026) */
.pedigree .ped-arrow { text-align: center; color: var(--silk); font-size: .7rem; line-height: 1; margin: -.3rem 0; }
/* duplicated ancestor in new diagrams (26 Oct 2026): keeps the mare/colt colour, with a gold frame */
.ped-hl-mare, .ped-hl-colt { border: 3px solid var(--silk); border-left-width: 7px; }
.ped-hl-mare { background: #F8EEF2; }
.ped-hl-colt { background: #F1F4F8; }
.ped-hl-mare .ped-name, .ped-hl-colt .ped-name { font-weight: 800; }

/* phones: keep the sign-off email on one line next to the bigger photo (27 Oct 2026) */
@media (max-width: 30rem) { .signoff { gap: .85rem; } .signoff-email { font-size: .82rem; word-break: normal; overflow-wrap: anywhere; } }

/* home page "Meet the Pedigree Nerd": round photo beside heading (27 Oct 2026).
   Phone: photo + heading side by side, paragraph full width below. Desktop: photo beside heading and paragraph. */
.teaser-intro { display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "photo head" "text text"; column-gap: 1rem; align-items: center; margin-top: 2.25rem; }
.teaser-intro .teaser-photo { grid-area: photo; display: block; line-height: 0; }
.teaser-intro .teaser-photo img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--silk); background: var(--rail); }
.about-teaser .teaser-intro h2 { grid-area: head; margin: 0; }
.teaser-intro p { grid-area: text; margin-top: 1rem; }
@media (min-width: 40rem) {
  .teaser-intro { grid-template-columns: 112px 1fr; grid-template-areas: "photo head" "photo text"; column-gap: 1.5rem; align-items: start; }
  .teaser-intro p { margin-top: .6rem; margin-bottom: 0; }
}
