@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;1,9..144,500&display=swap");
@import url("/atlas/peek.css");
/* Shared reading-page styles for the design boards (breed page, guides). TEMPORARY with the boards. */
/* Golden hour glass on a reading page. Body text per the readability research: warm off-white,
   dark grey (AAA), 18px serif, 1.6 line height, about 65 characters a line. */
:root {
  --paper: #faf6ee;
  --paper-2: #f1ebdf;
  --ink: #1f2328;
  --muted: #56606b;
  --rule: #e7dfd0;
  --gold: #8fb3d6;
  --gold-ink: #3f6f95;
  --glass: #f7fbff47;
  --glass-line: #ffffffa6;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --measure: 40rem;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.2rem 0 0.6rem;
}
p,
ul {
  margin: 0 0 1.1rem;
}
ul {
  padding-left: 1.2rem;
}
li {
  margin-bottom: 0.4rem;
}
a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.xref::after {
  content: " ↗";
  font-family: var(--sans);
  font-size: 0.7em;
}
img {
  display: block;
  max-width: 100%;
}
.kicker {
  font: 600 0.7rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.num {
  font-variant-numeric: tabular-nums;
}
.progress {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--read, 0));
  background: linear-gradient(90deg, #a9c6df, var(--gold));
}
/* Glossary term: dotted underline, definition on hover or tap */
.term {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: help;
  text-decoration: underline dotted var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.define {
  position: fixed;
  z-index: 45;
  max-width: 18rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  font: 400 0.85rem/1.45 var(--sans);
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: 0 10px 30px #3a2a1033;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.define.on {
  opacity: 1;
}
.define b {
  display: block;
  margin-bottom: 0.2rem;
  text-transform: capitalize;
}
/* Hero: golden hour photo, title on glass */
.hero {
  position: relative;
  min-height: min(66vh, 42rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
/* Phones: the photo shows first (dog in view, not the ram), the card overlaps its lower edge. */
@media (max-width: 700px) {
  .hero {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  .hero > img {
    position: relative;
    height: 52vh;
    object-position: 72% 40%;
  }
  .hero::after {
    display: none;
  }
  .hero-card {
    margin: -3.5rem auto 0;
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--paper));
}
.hero-card {
  position: relative;
  z-index: 1;
  width: min(76rem, 100% - 2rem);
  margin: 0 auto 2.5rem;
}
/* Top navigation: search + menu, the same on every page. */
.topnav {
  flex: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: relative;
}
.menu a {
  color: inherit;
  text-decoration: none;
}
.menu a:hover,
.menu a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.search {
  position: relative;
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  border-radius: 2rem;
  transition: width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  background: #17130d40;
  border: 1px solid #ffffff26;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: #fff;
}
.search svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.search:focus-within {
  width: 13rem;
}
.search svg {
  pointer-events: none;
}
.search input {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0 0.8rem 0 2rem;
  opacity: 0;
  cursor: pointer;
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  font: 500 0.85rem inherit;
}
.search input::placeholder {
  color: #ffffffb3;
}
.search:focus-within {
  border-color: #ffffff80;
}
.search:focus-within input {
  opacity: 1;
  cursor: text;
}
.results {
  position: absolute;
  z-index: 70;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(20rem, calc(100vw - 2rem));
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  border-radius: 0.9rem;
  background: #17130dd9;
  border: 1px solid #ffffff2e;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px #0007;
}
.results[hidden] {
  display: none;
}
.results a,
.results button {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: #fff;
  font: 500 0.86rem inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.results a:hover,
.results button:hover,
.results .active {
  background: #ffffff1f;
}
.results small {
  opacity: 0.7;
  font-size: 0.72rem;
}
@media (max-width: 760px) {
  .topnav {
    align-self: flex-end;
  }
  .search:focus-within {
    width: min(16rem, calc(100vw - 2rem));
  }
  /* While typing on a phone, the field takes the menu's place. */
  .topnav:has(.search:focus-within) .menu {
    display: none;
  }
}
.topbar {
  position: absolute;
  z-index: 30;
  top: 1.2rem;
  left: 0;
  right: 0;
  width: min(76rem, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  color: #fff;
  font-family: var(--sans);
}
.brand {
  color: #fff;
  text-decoration: none;
  font: 700 1.05rem var(--sans);
  letter-spacing: -0.01em;
  padding-top: 0.4rem;
  text-shadow:
    0 1px 2px #0009,
    0 2px 16px #000a;
}
.menu {
  display: flex;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  padding: 0.5rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  background: #17130d40;
  border: 1px solid #ffffff26;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .topnav .menu {
    align-self: flex-end;
    max-width: 100%;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }
}
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 1.2rem;
  box-shadow: 0 12px 40px #3a2a1026;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.hero-card .glass {
  max-width: 30rem;
  padding: 1.1rem 1.3rem 1rem;
}
.hero-card h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.4rem;
}
.hero-card .lede {
  font-size: 1.02rem;
  line-height: 1.5;
}
.opening {
  font-size: 1.3rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}
.crumbs {
  font: 0.8rem var(--sans);
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.crumbs a {
  color: inherit;
}
h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 0 0 0.7rem;
}
.lede {
  font-size: 1.1rem;
  margin: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  font: 500 0.78rem var(--sans);
}
.chips a,
.chips span {
  padding: 0.28rem 0.7rem;
  border-radius: 2rem;
  border: 1px solid #1f232826;
  color: var(--ink);
  text-decoration: none;
  background: #ffffff80;
}
.chips a:hover {
  border-color: var(--gold);
}
.chips .sure {
  border-color: var(--gold);
  color: var(--gold-ink);
}
/* Page: contents | text (side notes float into the right margin on wide screens) */
.page {
  width: min(76rem, 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 13rem minmax(0, var(--measure)) 12rem;
  column-gap: 3rem;
  padding: 1rem 0 6rem;
}
main {
  grid-column: 2;
  grid-row: 1;
}
.toc {
  grid-column: 3;
  grid-row: 1;
  position: sticky;
  top: 1.5rem;
  align-self: start;
  font: 0.85rem/1.3 var(--sans);
}
.toc ol {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  border-left: 1px solid var(--rule);
}
.toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
}
.toc a.on {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--gold);
}
.toc details {
  display: none;
}
main > section {
  padding-top: 3.2rem;
}
main > section:first-child {
  padding-top: 1rem;
}
/* Margin cards: facts and related reading beside the paragraph they belong to. */
.side {
  display: block;
  font: 0.82rem/1.5 var(--sans);
  color: var(--ink);
  margin: 0 0 1.2rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.8rem;
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
}
.side b {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.25rem;
}
.side a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
}
@media (min-width: 1280px) {
  .side {
    float: left;
    clear: left;
    width: 13rem;
    margin: 0.4rem 0 1rem -16rem;
    opacity: 0;
    translate: -0.6rem 0;
    transition:
      opacity 0.5s,
      translate 0.5s;
  }
  .side.in {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  .page {
    grid-template-columns: minmax(0, var(--measure)) 12rem;
    justify-content: center;
  }
  main {
    grid-column: 1;
  }
  .toc {
    grid-column: 2;
  }
}
figure {
  margin: 1.6rem 0;
}
/* Golden hour tone over every photo, so mixed sources read as one set. */
.hero > img,
figure img,
.band img {
  filter: sepia(0.14) saturate(0.92) brightness(1.02);
}
.gallery {
  display: grid;
  gap: 0.8rem;
  margin: 1.6rem 0;
}
.gallery.row {
  grid-template-columns: repeat(var(--n), 1fr);
}
.gallery figure {
  margin: 0;
}
.gallery.row img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.gallery.row figcaption {
  font-size: 0.72rem;
}
@media (max-width: 700px) {
  .gallery.row {
    grid-template-columns: repeat(min(var(--n), 2), 1fr);
  }
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.6rem 0;
}
.pair figure {
  margin: 0;
}
.pair img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.aside-photo {
  float: right;
  width: 42%;
  margin: 0.3rem 0 1rem 1.4rem;
}
.aside-photo img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
@media (max-width: 700px) {
  .aside-photo {
    float: none;
    width: 100%;
    margin: 1.2rem 0;
  }
}
figure img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
}
figcaption {
  font: 0.8rem/1.4 var(--sans);
  color: var(--muted);
  margin-top: 0.5rem;
}
.band {
  position: relative;
  margin: 2.4rem 0;
  border-radius: 1.2rem;
  overflow: hidden;
}
.band img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.band .glass {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: 22rem;
  padding: 0.8rem 1rem;
  font: 0.85rem/1.45 var(--sans);
}
.fig {
  margin: 2rem 0;
  font-family: var(--sans);
}
.fig-title {
  font: 600 0.95rem/1.3 var(--sans);
  margin-bottom: 0.2rem;
}
.fig-sub {
  font: 0.8rem/1.45 var(--sans);
  color: var(--muted);
  margin: 0 0 1rem;
}
.ends {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font: 0.75rem var(--sans);
  color: var(--muted);
}
/* Facts */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  font-family: var(--sans);
}
.stats div {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 0.8rem;
  border-radius: 0.9rem;
  background: var(--paper-2);
}
.stats svg {
  flex: none;
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--gold-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stats span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}
.stats b {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.stats small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
}
.facts div {
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--rule);
}
.facts div:nth-child(odd) {
  padding-right: 1.2rem;
}
.facts dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}
/* Years */
.years {
  position: relative;
  height: 7.4rem;
  margin: 1.2rem 0 0.6rem;
}
.years .era {
  position: absolute;
  top: 0;
  height: 1.6rem;
  border-radius: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  color: var(--gold-ink);
  background: #8fb3d61f;
  border-left: 2px solid var(--paper);
}
.years .axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 4.6rem;
  height: 1.5px;
  background: #1f232840;
}
.years .tick {
  position: absolute;
  top: 5.4rem;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--muted);
}
.years button {
  position: absolute;
  top: calc(4.6rem - 0.5rem);
  width: 1rem;
  height: 1rem;
  margin-left: -0.5rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
}
.years button.key {
  background: var(--gold);
}
.years button[aria-pressed="true"] {
  box-shadow: 0 0 0 5px #8fb3d640;
}
.years .label {
  position: absolute;
  top: 2.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}
.event-detail {
  min-height: 3.2rem;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: var(--paper-2);
}
.event-detail b {
  color: var(--gold-ink);
  margin-right: 0.5rem;
}
/* Hemp */
.descent {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 1.6rem;
  align-items: center;
}
.descent svg {
  width: 100%;
  height: auto;
}
.descent .pup {
  fill: #1f232833;
}
.descent .pup.win {
  fill: var(--gold);
}
.key-list {
  font-size: 0.85rem;
  display: grid;
  gap: 0.6rem;
}
.key-list i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: -1px;
}
/* Relatives */
.kin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  font-size: 0.88rem;
}
.kin h4 {
  margin: 0 0 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.kin ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kin li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.kin li small {
  color: var(--muted);
  white-space: nowrap;
}
.kin .low a {
  text-decoration-style: dashed;
}
.extinct {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--muted);
  border-radius: 0.3rem;
  padding: 0 0.3rem;
  margin-left: 0.3rem;
}
/* DNA */
.genome {
  position: relative;
  height: 1.1rem;
  border-radius: 0.55rem;
  background:
    repeating-linear-gradient(90deg, #1f232814 0 2px, transparent 2px 9px),
    var(--paper-2);
  margin: 0.4rem 0 0.4rem;
  overflow: hidden;
}
.genome span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--gold);
}
.dna {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.dna li {
  display: grid;
  grid-template-columns: 2.2rem 10.5rem 1fr 6.6rem;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.85rem;
  margin: 0;
}
.dna .ph {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
}
.dna .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dna .bar {
  height: 0.6rem;
  border-radius: 0.3rem;
  background: var(--paper-2);
  overflow: hidden;
}
.dna .bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  opacity: 0.6;
}
.dna li:first-child .bar span {
  background: var(--gold);
  opacity: 1;
}
.dna .mb {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dna .mb small {
  color: var(--muted);
}
/* Size */
.ruler {
  position: relative;
  height: 3.4rem;
  margin: 2rem 0 0.4rem;
}
.ruler .axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.6rem;
  height: 1.5px;
  background: #1f232840;
}
.ruler .range {
  position: absolute;
  top: 1.1rem;
  height: 1rem;
  border-radius: 0.5rem;
  background: #1f232829;
}
.ruler .range.f {
  top: 2.3rem;
  height: 0.7rem;
  background: #1f232814;
}
.ruler .range em {
  position: absolute;
  left: 0.4rem;
  bottom: calc(100% + 0.2rem);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}
.ruler .mark {
  position: absolute;
  top: 0.5rem;
  height: 2.2rem;
  width: 2px;
  background: var(--gold);
}
.ruler .mark span {
  position: absolute;
  bottom: calc(100% + 0.15rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-ink);
}
.ruler .tick {
  position: absolute;
  top: 3.3rem;
  transform: translateX(-50%);
  font-size: 0.66rem;
  color: var(--muted);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
  font: 0.72rem/1.25 var(--sans);
  text-align: center;
}
.swatches i {
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: conic-gradient(var(--a) 0 62%, var(--b) 62% 100%);
}
.swatches i.merle {
  background:
    radial-gradient(circle at 30% 35%, var(--b) 0 18%, transparent 19%),
    radial-gradient(circle at 68% 60%, var(--b) 0 14%, transparent 15%),
    radial-gradient(circle at 45% 75%, var(--b) 0 10%, transparent 11%),
    var(--a);
}
.swatches i.brindle {
  background: repeating-linear-gradient(
    115deg,
    var(--a) 0 4px,
    var(--b) 4px 8px
  );
}
.swatches small {
  color: var(--muted);
}
/* The eye */
.hunt {
  display: grid;
  grid-template-columns: 7rem repeat(6, 1fr);
  gap: 0.35rem;
  font-size: 0.8rem;
}
.hunt .who {
  font-weight: 600;
  align-self: center;
}
.hunt button {
  font: 600 0.78rem var(--sans);
  padding: 0.55rem 0.3rem;
  border-radius: 0.5rem;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}
.hunt button.kept {
  background: #8fb3d626;
  border-color: var(--gold);
}
.hunt button.gone {
  color: #1f232873;
  text-decoration: line-through;
  background: transparent;
  border-style: dashed;
}
.hunt button[aria-pressed="true"] {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.hunt-note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.4rem;
}
.spectrum {
  position: relative;
  height: 0.7rem;
  border-radius: 0.35rem;
  margin: 2.4rem 0 0.5rem;
  background: linear-gradient(90deg, var(--gold), #1f232826);
}
.spectrum span {
  position: absolute;
  bottom: calc(100% + 0.3rem);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.spectrum span.r {
  right: 0;
}
/* Health */
.life {
  position: relative;
  height: 6.4rem;
  margin: 1rem 0 0.4rem;
}
.life .axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 3rem;
  height: 1.5px;
  background: #1f232840;
}
.life .span {
  position: absolute;
  top: 2.6rem;
  height: 0.9rem;
  border-radius: 0.45rem;
  background: #8fb3d633;
}
.life .dot {
  position: absolute;
  top: 2.65rem;
  width: 0.8rem;
  height: 0.8rem;
  margin-left: -0.4rem;
  border-radius: 50%;
  background: var(--ink);
}
.life .dot.me {
  background: var(--gold);
}
.life .dot.other {
  background: #1f232866;
}
.life .dot span {
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.life .dot.below span {
  bottom: auto;
  top: calc(100% + 1.5rem);
}
.life .tick {
  position: absolute;
  top: 3.6rem;
  transform: translateX(-50%);
  font-size: 0.66rem;
  color: var(--muted);
}
.foot {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  font-family: var(--sans);
}
.foot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 34rem;
  padding: 0.9rem 1.6rem 0.8rem;
  border-radius: 1rem;
  text-align: center;
  background: #1f232808;
  border: 1px solid var(--rule);
}
.foot-name {
  margin: 0;
  font-weight: 600;
}
.foot-line {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.2rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}
.foot nav a {
  color: var(--muted);
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.tablewrap {
  overflow-x: auto;
  margin: 1.2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font: 0.82rem/1.4 var(--sans);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
th {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
td.lead {
  font-weight: 600;
}
.punnett {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.2rem;
  border-radius: 1rem;
  background: var(--paper-2);
}
.parents {
  display: grid;
  gap: 0.8rem;
  font-size: 0.8rem;
}
.parents div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.parents b {
  width: 100%;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.parents button {
  font: 500 0.8rem var(--sans);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.parents button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}
.pups div {
  aspect-ratio: 1.7;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.pups .carrier {
  background: #8fb3d640;
  border-color: var(--gold);
}
.pups .affected {
  background: var(--ink);
  color: var(--paper);
}
.odds {
  font-size: 0.85rem;
  margin: 0.6rem 0;
}
/* Intelligence */
.words {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
.words svg {
  width: 100%;
  height: auto;
}
.words circle {
  fill: #1f232838;
}
.words .chaser circle {
  fill: var(--gold);
}
.words .big {
  font: 500 2.2rem/1 var(--sans);
  letter-spacing: -0.04em;
  margin-bottom: 0.6rem;
}
.words p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}
/* FAQ, sources, next */
details {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0;
  font: 600 1rem var(--sans);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  color: var(--gold-ink);
}
details[open] summary::after {
  content: "–";
}
details p {
  margin: 0 0 1rem;
}
.sources {
  margin-top: 3rem;
  border: 0;
  font: 0.75rem/1.5 var(--sans);
  color: var(--muted);
}
.sources summary {
  font: 500 0.78rem var(--sans);
  justify-content: flex-start;
  padding: 0.3rem 0;
}
.sources summary::after {
  content: "";
}
.sources ol {
  padding-left: 1.3rem;
}
.next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
  font-family: var(--sans);
}
.next a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}
.next a:hover {
  border-color: var(--gold);
}
.next small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.25rem;
}
.next span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
/* Narrower screens: contents become a glass pill fixed at the top right, opening into a list. */
@media (max-width: 1100px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--measure);
  }
  main {
    grid-column: 1;
  }
  .toc {
    position: sticky;
    z-index: 42;
    top: 0.8rem;
    justify-self: end;
    margin-bottom: 0.4rem;
    max-width: calc(100% - 1.6rem);
  }
  .toc > .kicker,
  .toc > ol {
    display: none;
  }
  .toc details {
    display: block;
    border-radius: 1.2rem;
    background: #f7fbffd9;
    border: 1px solid #ffffffb3;
    box-shadow: 0 8px 24px #3a2a1026;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
  }
  .toc summary {
    padding: 0.45rem 0.95rem;
    font: 600 0.8rem var(--sans);
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .toc details ol {
    border: 0;
    margin: 0;
    padding: 0 0.6rem 0.6rem;
    max-height: 60vh;
    overflow: auto;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 1.0625rem;
  }
  .facts,
  .kin,
  .punnett,
  .words,
  .descent,
  .next {
    grid-template-columns: 1fr;
  }
  .descent svg {
    max-width: 17rem;
    margin: 0 auto;
  }
  .hunt {
    grid-template-columns: repeat(3, 1fr);
  }
  .hunt .who {
    grid-column: 1 / -1;
  }
  .swatches {
    grid-template-columns: repeat(4, 1fr);
  }
  .dna li {
    grid-template-columns: 2rem 1fr auto;
  }
  .dna .bar {
    grid-column: 2 / 4;
    grid-row: 2;
  }
  .band img {
    aspect-ratio: 4 / 3;
  }
  .band .glass {
    position: static;
    max-width: none;
    border-radius: 0;
    border: 0;
  }
  .years .label,
  .years .era {
    font-size: 0.6rem;
  }
  .years .label {
    display: none;
  }
  .hero-card .glass {
    padding: 1.1rem 1.2rem;
  }
  .ruler .range em {
    left: auto;
    right: 0;
  }
}
    
/* ---------- Polish, round 7: top bar, brand, title window, photo fade, phone contents ---------- */
.topbar {
  top: 0.75rem;
  align-items: center;
}
/* Brand: large, tinted gold-white, slightly see-through. */
.brand {
  padding-top: 0;
  font: 700 clamp(1.5rem, 2.6vw, 2.1rem) / 1.05 var(--sans);
  letter-spacing: -0.035em;
  background: linear-gradient(100deg, #f5f9fd 0%, #dbe8f4 55%, #a9c6df 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.92;
  text-shadow: none;
  filter: drop-shadow(0 1px 1px #0006) drop-shadow(0 2px 14px #0007);
}
@media (max-width: 760px) {
  .topbar {
    top: 0.6rem;
    gap: 0.45rem;
  }
  .brand {
    font-size: 1.55rem;
  }
}
/* Title window: clear glass with a light edge, the photo shows through. */
.hero-card .glass {
  background: linear-gradient(135deg, #f7fbff5c, #f7fbff24 60%, #f7fbff14);
  border: 1px solid #ffffff73;
  box-shadow:
    inset 0 1px 0 #ffffffb3,
    0 18px 50px #16283a33;
  backdrop-filter: blur(26px) saturate(1.5) brightness(1.06);
  -webkit-backdrop-filter: blur(26px) saturate(1.5) brightness(1.06);
  text-shadow: 0 1px 12px #f7fbffb3;
}
/* The photo fades down into the page. */
.hero::after {
  height: 45%;
  background: linear-gradient(transparent, #faf6ee8c 55%, var(--paper));
}
@media (max-width: 700px) {
  .hero > img {
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
  }
}
/* Phones and tablets: "On this page" is one tap to open or close, no symbols, and stays with the reader. */
@media (max-width: 1100px) {
  .toc {
    grid-column: 1;
    grid-row: 1;
  }
  main {
    grid-row: 2;
  }
  .toc summary {
    cursor: pointer;
  }
  .toc summary::after {
    content: none;
  }
  .toc summary .now {
    font-weight: 500;
    color: var(--muted);
  }
  .toc summary .now:not(:empty)::before {
    content: "· ";
  }
}
@media (max-width: 1100px) {
  .toc details[open] summary::after {
    content: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
  }
  .brand {
    align-self: flex-start;
  }
}
/* The open contents list is solid, so it reads over the text. */
@media (max-width: 1100px) {
  .toc details[open] {
    background: #faf6eefa;
    border-color: var(--rule);
    box-shadow: 0 14px 40px #3a2a1033;
  }
}

/* ---------- Round 8: symmetric columns, title window below the photo ---------- */
/* Left card column mirrors the right contents column (wide screens only). */
@media (min-width: 1280px) {
  .page {
    grid-template-columns: 12rem minmax(0, var(--measure)) 12rem;
  }
}
@media (min-width: 1280px) {
  .side {
    width: 12rem;
    margin: 0 0 1.2rem -15rem;
  }
}
/* The photo stays whole: the title window sits on its faded lower edge, in line with the text column. */
.hero {
  display: block;
  min-height: 0;
  overflow: visible;
}
.hero > img {
  position: relative;
  inset: auto;
  height: min(70vh, 44rem);
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
}
.hero::after {
  display: none;
}
.hero-card {
  margin: -9rem auto 0;
}
@media (min-width: 1280px) {
  .hero-card .glass {
    margin-left: 15rem;
  }
}
@media (max-width: 700px) {
  .hero > img {
    height: 52vh;
  }
  .hero-card {
    margin-top: -3.5rem;
  }
}

/* ---------- Round 9 ---------- */
/* Title windows: wider and lower, about a quarter less tall. */
.hero-card .glass {
  max-width: 46rem;
  padding: 1rem 1.4rem 0.95rem;
}
.hero-card h1 {
  margin-bottom: 0.25rem;
}
.hero-card .chips {
  margin-top: 0.7rem;
}
@media (max-width: 1100px) {
  /* Open contents: see-through glass again, still readable. */
  .toc details[open] {
    background: #faf6eecc;
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
  }
  .toc details ol a {
    display: inline-block;
  }
}
/* Two working styles, side by side. */
.eyes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  font-family: var(--sans);
}
.eyes div {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: var(--paper-2);
}
.eyes div:first-child {
  border-left: 3px solid var(--gold);
}
.eyes b {
  display: block;
  font-size: 1rem;
}
.eyes p {
  margin: 0.3rem 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.eyes small {
  font-size: 0.75rem;
  color: var(--muted);
}
/* Life span: one dot per year, a part-filled dot for the last part-year. */
.lifedots {
  display: grid;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.88rem;
}
.lifedots > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr 4rem;
  gap: 0.8rem;
  align-items: center;
}
.lifedots .dots {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.lifedots i {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1.5px solid #1f232833;
  background: linear-gradient(90deg, #1f23288c calc(var(--f) * 100%), transparent 0);
}
.lifedots .me i {
  border-color: #8fb3d680;
  background: linear-gradient(90deg, var(--gold) calc(var(--f) * 100%), transparent 0);
}
.lifedots b {
  text-align: right;
}
/* Intelligence: Chaser first and larger. */
.words {
  grid-template-columns: 2fr 1fr;
}
/* Read next: three columns on every size. */
@media (max-width: 700px) {
  .next {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .next a {
    padding: 0.7rem 0.7rem;
    font-size: 0.85rem;
  }
  .next span {
    font-size: 0.72rem;
  }
  .eyes {
    grid-template-columns: 1fr;
  }
  .lifedots > div {
    grid-template-columns: 1fr auto;
  }
  .lifedots .dots {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .lifedots i {
    width: 0.9rem;
    height: 0.9rem;
  }
}
/* Less room between the sources and the footer. */
.page {
  padding-bottom: 1.5rem;
}
.sources {
  margin-top: 2rem;
}
.foot {
  padding-top: 0.5rem;
}

/* ---------- Round 10: title window across the full page width ---------- */
.hero-card .glass {
  max-width: none;
  margin-left: 0;
  padding: 2rem 2.6rem 1.8rem;
  border-radius: 1.4rem;
  background: linear-gradient(115deg, #f7fbff5c 0%, #f7fbff2e 45%, #f7fbff0d 100%);
  border: 1px solid #ffffff59;
  box-shadow:
    inset 0 1px 0 #ffffff99,
    0 18px 50px #16283a26;
}
@media (min-width: 1280px) {
  .hero-card .glass {
    margin-left: 0;
  }
}
.hero-card h1 {
  margin-bottom: 0.5rem;
}
.hero-card .lede {
  max-width: 46rem;
}
.hero-card .chips {
  margin-top: 1rem;
}
@media (max-width: 700px) {
  .hero-card .glass {
    padding: 1.4rem 1.4rem 1.3rem;
  }
}

/* ---------- Round 11: "Jump to" card in the empty left column, more air under the window ---------- */
.jump b {
  margin-bottom: 0.5rem;
}
.jump a {
  display: block;
  margin: 0.15rem 0 0;
  padding: 0.3rem 0;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.jump a:last-child {
  border-bottom: 0;
}
.jump a:hover {
  color: var(--ink);
}
.jump a::after {
  content: " ↓";
  font-size: 0.75em;
  opacity: 0.6;
}
/* Wide screens show the card in the margin; narrower ones keep the inline version where a page has one. */
@media (min-width: 1280px) {
  .jump-inline {
    display: none;
  }
}
@media (max-width: 1279px) {
  .jump.has-inline {
    display: none;
  }
}
/* Title window: lighter still, a little lower; three times the room before the text. */
.hero-card {
  margin-top: -6rem;
}
.hero-card .glass {
  background: linear-gradient(115deg, #f7fbff3d 0%, #f7fbff1a 45%, #f7fbff05 100%);
}
.page {
  padding-top: 3.5rem;
}
@media (max-width: 700px) {
  .hero-card {
    margin-top: -2.5rem;
  }
  .page {
    padding-top: 2rem;
  }
}
@media (min-width: 1280px) {
  .jump-inline.jump-inline {
    display: none;
  }
}

/* ---------- Round 9: menu and search stay at the top while scrolling (same as the home page) ---------- */
html {
  scroll-padding-top: 4.5rem;
}
.topbar .topnav {
  position: fixed;
  z-index: 66;
  top: 0.75rem;
  right: max(1rem, (100% - 76rem) / 2);
}
/* Over the light page the glass is darker, so the white links stay readable. */
.topbar .menu,
.topbar .search {
  background: #17130d99;
  border-color: #ffffff38;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.toc {
  top: 4rem;
}
@media (max-width: 760px) {
  .topbar .topnav {
    top: 0.6rem;
    right: 1rem;
    left: auto;
    max-width: calc(100% - 2rem);
  }
  /* The brand sits under the fixed menu row. */
  .topbar {
    padding-top: 2.9rem;
  }
}
@media (max-width: 1100px) {
  .toc {
    top: 3.6rem;
  }
}

/* ---------- Round 10: one glass for every window, golden-hour menu, "More to explore" rail ---------- */
/* Golden-hour light behind the page, so the glass has something to catch. */
body {
  background:
    radial-gradient(55rem 38rem at 92% 8%, #dbe8f44d, transparent 70%),
    radial-gradient(48rem 36rem at 4% 55%, #a9c6df1f, transparent 70%),
    radial-gradient(42rem 30rem at 85% 95%, #8fb3d61a, transparent 70%),
    var(--paper);
  background-attachment: fixed;
}
:root {
  --g-fill: linear-gradient(140deg, #ffffff8c, #ffffff40 55%, #ffffff1f);
  --g-edge: #ffffffb3;
  --g-line: #e7dfd080;
  --g-shadow: 0 10px 30px #3f6f9512, inset 0 1px 0 #ffffffcc;
  --g-blur: blur(16px) saturate(1.4);
  --g-round: 1.1rem;
}
/* The pane: side notes, contents, figures, stat tiles, read-next cards, the glossary popup, the footer. */
.side,
.jump,
.stats div,
.next a,
.define,
.fig,
.foot-box,
.more {
  background: var(--g-fill);
  border: 1px solid var(--g-edge);
  box-shadow: var(--g-shadow);
  backdrop-filter: var(--g-blur);
  -webkit-backdrop-filter: var(--g-blur);
  border-radius: var(--g-round);
}
/* Variation: a side note keeps its gold edge. */
.side {
  border-left: 3px solid var(--gold);
}
.fig {
  padding: 1.1rem 1.2rem;
}
.next a:hover,
.more:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 36px #3f6f9524, inset 0 1px 0 #ffffffcc;
}
@media (min-width: 1101px) {
  .toc > ol {
    padding: 0.4rem 0.4rem 0.4rem 0;
    border-radius: var(--g-round);
    background: var(--g-fill);
    border: 1px solid var(--g-edge);
    box-shadow: var(--g-shadow);
    backdrop-filter: var(--g-blur);
    -webkit-backdrop-filter: var(--g-blur);
  }
  .toc a {
    border-left-width: 2px;
  }
}
/* The title window: the clearest glass of all. */
.hero-card .glass {
  background: linear-gradient(120deg, #f7fbff4d, #f7fbff1a 55%, #f7fbff08);
}
/* Menu and search: golden-hour glass with dark text, readable over photos and over the page. */
.topbar .menu,
.topbar .search {
  background: linear-gradient(120deg, #f3f8fdcc, #dbe8f499 60%, #a9c6df73);
  border: 1px solid #ffffffb3;
  color: #1f3346;
  box-shadow: 0 6px 22px #3f6f9526, inset 0 1px 0 #ffffffcc;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.topbar .menu a[aria-current="page"] {
  color: #3f6f95;
}
.topbar .search input::placeholder {
  color: #1f334699;
}
.topbar .search:focus-within {
  border-color: var(--gold);
}
.topbar .results {
  background: linear-gradient(160deg, #f5f9fdf2, #e3eef8eb);
  border: 1px solid #ffffffcc;
  box-shadow: 0 14px 36px #3f6f9533;
}
.topbar .results a,
.topbar .results button {
  color: var(--ink);
}
.topbar .results a:hover,
.topbar .results .active {
  background: #a9c6df33;
}
/* "More to explore": a window with a picture. In the right rail (one section at a time) or inline. */
.more {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
}
.more img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.more-text {
  display: block;
  padding: 0.65rem 0.8rem 0.75rem;
}
.more small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.more b {
  display: block;
  margin: 0.15rem 0 0.2rem;
  font-size: 0.92rem;
  line-height: 1.25;
}
.more-text > span {
  display: block;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}
.rail {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.rail > .kicker {
  display: block;
}
.rail .more {
  display: none;
}
.rail .more.on {
  display: block;
  animation: rail-in 0.35s ease;
}
@keyframes rail-in {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}
.more-inline {
  display: none;
}
@media (max-width: 1100px) {
  .toc .rail {
    display: none;
  }
  .more-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 1.6rem 0 0.4rem;
  }
}
@media (max-width: 420px) {
  .more-inline {
    grid-template-columns: 1fr;
  }
  .more-inline .more {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
  }
  .more-inline .more img {
    height: 100%;
    aspect-ratio: auto;
  }
}
/* In the rail the windows are compact (picture beside the text), so contents + windows fit one screen. */
.rail {
  gap: 0.5rem;
}
.rail .more.on {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  align-items: center;
}
.rail .more img {
  height: 100%;
  min-height: 3.6rem;
  aspect-ratio: auto;
}
.rail .more-text {
  padding: 0.45rem 0.6rem;
}
.rail .more b {
  font-size: 0.8rem;
}
.rail .more-text > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.7rem;
}
/* The first window of a section gets the full picture. */
.rail .more.on.lead {
  display: block;
}
.rail .more.lead img {
  height: auto;
  aspect-ratio: 16 / 9;
}
@media (min-width: 1101px) {
  .toc > ol a {
    padding-block: 0.2rem;
    font-size: 0.8rem;
  }
}
/* The rail sits inside the contents column: undo the contents-link look on its windows. */
.toc .rail a.more,
.toc .rail a.more.on {
  margin: 0;
  padding: 0;
  border: 1px solid var(--g-edge);
  color: var(--ink);
  font-weight: 400;
}
.toc .rail a.more:hover {
  border-color: var(--gold);
}
/* A text diagram from an article (a family tree drawn with characters), kept exactly as written. */
.textfig {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font: 0.78rem/1.55 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink);
  background: var(--g-fill);
  border: 1px solid var(--g-edge);
  border-radius: var(--g-round);
  box-shadow: var(--g-shadow);
}
/* Long contents lists scroll inside their pane, so the rail under them stays on screen. */
@media (min-width: 1101px) {
  .toc > ol {
    max-height: 46vh;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* ---------- Round 11: lighter menu, brand at heading-2 size, relatives as a neat grid ---------- */
.topbar .menu,
.topbar .search {
  background: linear-gradient(120deg, #f3f8fd59, #dbe8f438 60%, #a9c6df26);
  border-color: #ffffff8c;
  box-shadow: 0 4px 16px #3f6f9514, inset 0 1px 0 #ffffffa6;
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
}
/* "Dogs Atlas" is always the size of a heading 2: one step below the page's own title. */
.brand,
h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
/* Relatives: sister breeds and descendants as tiles that fill the column (no half-empty table). */
.kin {
  display: block;
}
.kin > div + div {
  margin-top: 1.3rem;
}
.kin ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.45rem;
}
.kin li {
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--g-edge);
  border-radius: 0.8rem;
  background: #ffffff66;
  box-shadow: 0 2px 8px #3f6f950d;
}
.kin li a {
  font-weight: 600;
  line-height: 1.3;
}
.kin li small {
  white-space: normal;
  font-size: 0.74rem;
}
.kin li:hover {
  border-color: var(--gold);
}
/* Picture windows in the left column, beside their section (wide screens); elsewhere they join the inline row. */
.side-pic {
  display: none;
}
@media (min-width: 1280px) {
  main .side-pic {
    display: block;
    float: left;
    clear: left;
    width: 12rem;
    margin: 0.4rem 0 1.2rem -15rem;
  }
  main .side-pic img {
    aspect-ratio: 4 / 3;
  }
  .more-inline .side-pic {
    display: none;
  }
}
@media (max-width: 1100px) {
  .more-inline .side-pic {
    display: block;
  }
}
@media (max-width: 420px) {
  .more-inline .side-pic {
    display: grid;
  }
}

/* ---------- Round 12: wider side columns, sticky "Jump to", did-you-know notes, family cards ---------- */
@media (min-width: 1280px) {
  :root {
    --side: 13rem;
  }
  .page {
    grid-template-columns: var(--side) minmax(0, var(--measure)) var(--side);
  }
  .side,
  main .side-pic {
    width: var(--side);
    margin-left: calc(-1 * (var(--side) + 3rem));
  }
  /* "Jump to" stays in reach; the notes and windows below it scroll past underneath. */
  .side.jump {
    position: sticky;
    top: 4.5rem;
    z-index: 6;
    margin-bottom: 2.5rem;
    background: linear-gradient(140deg, #f7fbfff2, #f7fbffd9);
  }
}
@media (min-width: 1440px) {
  :root {
    --side: 16rem;
  }
}
/* "Did you know": a short fact from the article, in the left column beside a section. */
.side.did b::before {
  content: "✦ ";
  color: var(--gold);
}
.side.did {
  font-size: 0.86rem;
}
/* Family cards (Dog Families page and the family tree article): one shared look. */
.fam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 0.5rem;
  font-family: var(--sans);
}
.read-next .next,
.next {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
/* Inline windows (narrow screens): never a lone window beside an empty half. */
.more-inline:has(> .more:only-child) {
  grid-template-columns: minmax(0, 22rem);
}

/* Dog Families page and family cards (moved from the page). */
/* Branch bar: every lineage's share of the breeds, each part a link to its section. */
.branches {
  display: flex;
  height: 2.6rem;
  margin: 0 0 0.6rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--g-edge);
  box-shadow: var(--g-shadow);
  font: 600 0.72rem var(--sans);
}
.branches a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 0.4rem;
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  background: color-mix(in srgb, var(--gold) calc(var(--shade) * 100%), #ffffff99);
  border-right: 1px solid #ffffffcc;
}
.branches a:last-child {
  border-right: 0;
}
.branches a:hover {
  background: color-mix(in srgb, var(--gold) calc(var(--shade) * 100% + 15%), #ffffff99);
}
.branch-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0 0 2rem;
  font: 0.78rem var(--sans);
  color: var(--muted);
}
.branch-key i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 0.2rem;
  vertical-align: -1px;
  background: color-mix(in srgb, var(--gold) calc(var(--shade) * 100%), #ffffff99);
  border: 1px solid var(--g-edge);
}
.fam-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.2rem;
  background: var(--g-fill);
  border: 1px solid var(--g-edge);
  box-shadow: var(--g-shadow);
  backdrop-filter: var(--g-blur);
  -webkit-backdrop-filter: var(--g-blur);
}
.fam-card:hover {
  border-color: var(--gold);
}
.fam-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.fam-body {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}
.fam-card h3 {
  margin: 0;
  font-size: 1.15rem;
}
.fam-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.fam-card p {
  margin: 0;
  font: 0.86rem/1.5 var(--serif);
}
/* Size of the family against the biggest one, with its DNA-tested and extinct parts. */
.fam-bar {
  position: relative;
  height: 0.5rem;
  border-radius: 1rem;
  background: #1f232812;
}
.fam-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 1rem;
}
.fam-bar .all {
  background: linear-gradient(90deg, #a9c6df, var(--gold));
}
.fam-bar .tested {
  background: var(--gold-ink);
}
.fam-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  font-size: 0.74rem;
  color: var(--muted);
}
.fam-stats b {
  color: var(--ink);
}
.fam-eg {
  font-size: 0.8rem;
}
.fam-eg small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.fam-go {
  align-self: start;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
}


/* Wide pages: the main column grows for card grids; paragraphs keep the reading width. */
.page.wide {
  --measure: 56rem;
}
.page.wide main p {
  max-width: 40rem;
}
.page.wide {
  width: min(96rem, 100% - 2rem);
}

/* ---------- Round 13: left rail, did-you-know, compact phone windows, pastel-blue charts ---------- */
:root {
  --chart: #8fb3d6;
  --chart-deep: #5d89b3;
  --chart-soft: #d7e5f2;
}
/* Phones: "On this page" sits right under the menu row. */
@media (max-width: 1100px) {
  .toc {
    top: 4.3rem;
  }
}
/* Left rail (wide screens): "Jump to" and the notes and windows of the section being read, held in view like
   the right rail (built by rail.js from the page's side notes). */
.lrail {
  display: none;
}
@media (min-width: 1280px) {
  .lrail {
    display: grid;
    gap: 0.8rem;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 4.5rem;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .lrail .side,
  .lrail .side-pic,
  .lrail .side.jump {
    float: none;
    position: static;
    width: auto;
    margin: 0;
    opacity: 1;
    translate: none;
  }
  .lrail [data-for]:not(.on) {
    display: none;
  }
}
/* "Jump to": numbered, the section being read lit in gold. */
.side.jump {
  counter-reset: jump;
  border-left: 1px solid var(--g-edge);
  background: var(--g-fill);
}
.side.jump a {
  counter-increment: jump;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  align-items: baseline;
  color: var(--ink);
  font-weight: 500;
}
.side.jump a::before {
  content: counter(jump, decimal-leading-zero);
  font: 600 0.66rem var(--sans);
  color: var(--chart-deep);
}
.side.jump a::after {
  content: none;
}
.side.jump a.on {
  color: var(--gold-ink);
  font-weight: 700;
}
/* "Did you know": a quiet card with a big quote mark. */
.side.did {
  position: relative;
  padding-top: 1.6rem;
  border-left: 1px solid var(--g-edge);
  background:
    radial-gradient(120% 80% at 0% 0%, #d7e5f2a6, transparent 70%),
    var(--g-fill);
  font: italic 400 0.95rem/1.45 var(--serif);
}
.side.did b {
  position: absolute;
  top: 0.65rem;
  left: 0.95rem;
  font-style: normal;
  color: var(--chart-deep);
}
.side.did b::before {
  content: none;
}
/* Charts in pastel blue. */
.fam-bar {
  background: var(--chart-soft);
}
.fam-bar .all {
  background: var(--chart);
}
.fam-bar .tested {
  background: var(--chart-deep);
}
.branches a {
  background: color-mix(in srgb, var(--chart) calc(var(--shade) * 100%), #ffffffb3);
}
.branches a:hover {
  background: color-mix(in srgb, var(--chart) calc(var(--shade) * 100% + 15%), #ffffffb3);
}
.branch-key i {
  background: color-mix(in srgb, var(--chart) calc(var(--shade) * 100%), #ffffffb3);
}
/* A window's mini timeline: the nine periods, the breed's own lit. */
.more-ribbon {
  display: flex;
  gap: 2px;
  margin-top: 0.4rem;
}
.more-ribbon i {
  flex: 1;
  height: 0.3rem;
  border-radius: 1rem;
  background: var(--chart-soft);
}
.more-ribbon i.here {
  background: var(--chart-deep);
}
/* Phones: windows are compact links (small picture, title, one line, mini timeline). */
@media (max-width: 700px) {
  .more-inline {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .more-inline .more,
  .more-inline .side-pic {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    align-items: center;
  }
  .more-inline .more img {
    width: 4.5rem;
    height: 100%;
    min-height: 4.5rem;
    aspect-ratio: auto;
  }
  .more-inline .more-text {
    padding: 0.5rem 0.75rem;
  }
  .more-inline .more-text > span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Read next: three on phones. */
  .next a:nth-child(n + 4) {
    display: none;
  }
}
.more-text > .more-ribbon {
  display: flex;
}
@media (max-width: 700px) {
  .more-inline .more-text > .more-ribbon {
    display: flex;
  }
}

/* Card pictures keep their shape (never stretched by the img height attribute), framed on the dog. */
.fam-card img,
.card img,
.featured img {
  height: auto;
}
/* Hover: a blue edge on every window and card. */
.more:hover,
.toc .rail a.more:hover,
.next a:hover,
.fam-card:hover,
.kin li:hover,
.members a:hover,
a.card:hover,
.featured:hover,
.breeds-strip a:hover,
.cards a:hover {
  border-color: var(--chart-deep);
}
/* Family cards fill each row: a short last row (or a short list) spreads its cards across the width, and a
   wider card gets a lower picture instead of a taller one. */
.fam-grid {
  display: flex;
  flex-wrap: wrap;
}
.fam-grid > .fam-card {
  flex: 1 1 13rem;
  container-type: inline-size;
}
@container (min-width: 22rem) {
  .fam-card img {
    aspect-ratio: 5 / 2;
  }
}
@container (min-width: 34rem) {
  .fam-card img {
    aspect-ratio: 3 / 1;
  }
}
/* Phones: family cards are photo tiles, two by two, the name on the picture; the whole tile opens the family. */
@media (max-width: 700px) {
  .fam-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .fam-card {
    position: relative;
  }
  .fam-card img,
  .fam-grid > .fam-card img {
    aspect-ratio: 1 / 1;
  }
  .fam-body {
    position: static;
    padding: 0;
  }
  .fam-body > :not(h3) {
    display: none;
  }
  .fam-card h3 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 0.65rem 0.55rem;
    font-size: 0.95rem;
    line-height: 1.2;
    background: linear-gradient(transparent, #17130dcc);
  }
  .fam-card h3 a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 6px #000a;
  }
  /* The name's link covers the whole tile. */
  .fam-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
  }
}

/* ---------- Round 14: both rails from 1101px; no "Jump to" on phones and tablets ---------- */
@media (min-width: 1101px) {
  :root {
    --side: 11rem;
  }
  .page {
    grid-template-columns: var(--side) minmax(0, var(--measure)) var(--side);
    justify-content: center;
  }
  main {
    grid-column: 2;
  }
  .toc {
    grid-column: 3;
  }
  .side,
  main .side-pic {
    float: left;
    clear: left;
    width: var(--side);
    margin-left: calc(-1 * (var(--side) + 3rem));
  }
  .lrail {
    display: grid;
    gap: 0.8rem;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 4.5rem;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .lrail .side,
  .lrail .side-pic,
  .lrail .side.jump {
    float: none;
    position: static;
    width: auto;
    margin: 0;
    opacity: 1;
    translate: none;
  }
  .lrail [data-for]:not(.on) {
    display: none;
  }
  .jump.has-inline {
    display: block;
  }
  .jump-inline.jump-inline {
    display: none;
  }
}
@media (min-width: 1280px) {
  :root {
    --side: 13rem;
  }
}
@media (min-width: 1440px) {
  :root {
    --side: 16rem;
  }
}
@media (max-width: 1100px) {
  .side.jump,
  .jump-inline.jump-inline {
    display: none;
  }
}
/* "More to explore" changes on its own, with a soft fade (no slide). */
.rail .more.on {
  animation: none;
}
.rail .more {
  transition: opacity 0.7s ease;
}
.rail.fading .more {
  opacity: 0;
}

/* ---------- Round 15: one glass for every box, very transparent, on every page and screen ---------- */
:root {
  --g-fill: linear-gradient(140deg, #ffffff66, #ffffff26 55%, #ffffff0d);
  --g-edge: #ffffff99;
  --g-shadow: 0 8px 26px #3f6f950f, inset 0 1px 0 #ffffffb3;
  --g-blur: blur(14px) saturate(1.35);
}
/* "html" in front outweighs the page-level styles that set their own solid backgrounds. */
html :is(
    .side,
    .side.jump,
    .side.did,
    .stats div,
    .event-detail,
    .hunt button,
    .next a,
    .eyes div,
    .problems a,
    #quick ul,
    .tabs button,
    .topics button,
    .find,
    .featured,
    .card:not(.planned),
    .breeds-strip a,
    .filter-row button[aria-pressed="false"],
    .kin li,
    .more,
    .fig,
    .foot-box,
    .define,
    .fam-card,
    .members a,
    .textfig,
    .tablewrap,
    .toc > ol
  ) {
  background: var(--g-fill);
  border-color: var(--g-edge);
  box-shadow: var(--g-shadow);
  backdrop-filter: var(--g-blur);
  -webkit-backdrop-filter: var(--g-blur);
}
html .side.did {
  background:
    radial-gradient(120% 80% at 0% 0%, #d7e5f266, transparent 70%),
    var(--g-fill);
}
html .tablewrap :is(table, th, td, tr) {
  background: transparent;
}
/* Panels that sit over text keep enough blur to stay readable while staying see-through. */
html .toc details[open] {
  background: linear-gradient(140deg, #f7fbffa6, #f7fbff59);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
html .topbar .results {
  background: linear-gradient(160deg, #f5f9fda6, #e3eef873);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
html .alphabet {
  background: linear-gradient(140deg, #ffffff73, #ffffff2e);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
/* Tables: numbers centred; long "X with Y (unit)" headings shorten on phones, "with Y" under the first heading. */
.tablewrap :is(th, td).num {
  text-align: center;
}
.th-short {
  display: none;
}
@media (max-width: 700px) {
  .th-long {
    display: none;
  }
  .th-short {
    display: inline;
  }
  th small.th-short {
    display: block;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.75;
  }
}
/* "Did you know" notes take turns in their own box (left rail), two at a time, with a soft fade. */
.did-box {
  display: grid;
  gap: 0.8rem;
}
.did-box .side.did:not(.on) {
  display: none;
}
.did-box .side.did {
  transition: opacity 0.7s ease;
}
.did-box.fading .side.did {
  opacity: 0;
}
/* Folded tables: the first rows show; the button opens the rest. */
.tablewrap.folds:not(.open) tr.fold {
  display: none;
}
.table-more {
  display: block;
  margin: 0.6rem auto 0.8rem;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  border: 1px solid var(--g-edge);
  background: var(--g-fill);
  box-shadow: var(--g-shadow);
  color: var(--chart-deep);
  font: 600 0.82rem var(--sans);
  cursor: pointer;
}
.table-more:hover {
  border-color: var(--chart-deep);
}
/* "On this page" keeps clear of the fixed menu above it. */
@media (min-width: 1101px) {
  .toc {
    top: 5.4rem;
  }
  .toc > ol {
    max-height: 42vh;
  }
}
/* Narrower screens: the page column is centred, the menu is pinned 1rem from the screen edge; "On this page"
   lines up with the menu, not with the column. */
@media (max-width: 1100px) {
  .toc {
    margin-right: calc(1rem - (100vw - var(--scrollbar, 0px) - 100%) / 2);
  }
}

/* ---------- Wordmark: "Dogs Atlas" in Fraunces, "Atlas" in italic, golden tint ---------- */
:root {
  --wordmark: "Fraunces", "Newsreader", Georgia, serif;
}
.topbar .brand {
  font-family: var(--wordmark);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
  line-height: 1;
}
.brand em,
.foot-name em {
  font-style: italic;
  font-weight: 500;
  padding-right: 0.05em;
}
.foot-name {
  font-family: var(--wordmark);
  font-size: 1.6rem;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}
@media (max-width: 760px) {
  .topbar .brand {
    font-size: 2.2rem;
  }
}
.topbar .brand {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  filter: drop-shadow(0 1px 2px #000a) drop-shadow(0 4px 22px #000c);
}
@media (max-width: 760px) {
  .topbar .brand {
    font-size: 2.5rem;
  }
}

/* ---------- Diagrams in pastel blue (breed pages, all figures): no brown in charts ---------- */
html .stats svg {
  stroke: var(--chart-deep);
}
html .years .era {
  color: var(--chart-deep);
  background: #8fb3d626;
}
html .years button {
  border-color: var(--chart-deep);
}
html .years button.key {
  background: var(--chart-deep);
}
html .years button[aria-pressed="true"] {
  box-shadow: 0 0 0 5px #5d89b340;
}
html .event-detail b {
  color: var(--chart-deep);
}
html .descent .pup.win {
  fill: var(--chart-deep);
}
html .genome {
  background:
    repeating-linear-gradient(90deg, #5d89b31a 0 2px, transparent 2px 9px),
    var(--chart-soft);
}
html .genome span {
  background: var(--chart-deep);
}
html .dna .bar {
  background: var(--chart-soft);
}
html .dna .bar span {
  background: var(--chart);
  opacity: 1;
}
html .dna li:first-child .bar span {
  background: var(--chart-deep);
}
html .ruler .mark {
  background: var(--chart-deep);
}
html .ruler .mark span {
  color: var(--chart-deep);
}
html .hunt button.kept {
  background: #8fb3d633;
  border-color: var(--chart-deep);
}
html .hunt button[aria-pressed="true"] {
  outline-color: var(--chart-deep);
}
html .spectrum {
  background: linear-gradient(90deg, var(--chart-deep), #1f232826);
}
html .life .span {
  background: #8fb3d64d;
}
html .life .dot.me {
  background: var(--chart-deep);
}
html .pups .carrier {
  background: #8fb3d640;
  border-color: var(--chart-deep);
}
html .words circle {
  fill: #5d89b333;
}
html .words .chaser circle {
  fill: var(--chart-deep);
}
html .eyes div:first-child {
  border-left-color: var(--chart-deep);
}
html .lifedots .me i {
  border-color: #5d89b380;
  background: linear-gradient(90deg, var(--chart-deep) calc(var(--f) * 100%), transparent 0);
}
/* Wordmark, larger. */
.topbar .brand {
  font-size: clamp(3.6rem, 7vw, 6rem);
}
@media (max-width: 760px) {
  .topbar .brand {
    font-size: 3rem;
  }
}

/* ---------- Plain pages (About, Contact, Privacy, Terms, Sitemap, Search) ---------- */
/* A short photo band behind the top bar, then the page in one glass window overlapping it. */
.plain-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 22rem;
  background:
    linear-gradient(#12202d99, #12202d33 60%, var(--paper)),
    url(/atlas/hero-6.webp) 50% 35% / cover;
  z-index: 0;
}
.plain {
  position: relative;
  z-index: 1;
  padding: 11rem 1rem 1rem;
}
.plain-card {
  width: min(52rem, 100%);
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: var(--g-round);
  background: linear-gradient(140deg, #ffffffd9, #ffffffb3 55%, #ffffff99);
  border: 1px solid #c9dcee;
  box-shadow: var(--g-shadow);
  backdrop-filter: var(--g-blur);
  -webkit-backdrop-filter: var(--g-blur);
}
.plain-card .crumbs {
  font: 500 0.8rem var(--sans);
  color: var(--muted);
}
.plain-card h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3rem);
}
.plain-card form {
  display: none;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.5rem 2rem;
}
.map-grid h2 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.4rem;
}
.map-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 0.95rem/1.9 var(--sans);
}
@media (max-width: 700px) {
  .plain-page::before {
    height: 16rem;
  }
  .plain {
    padding: 8rem 0.75rem 1rem;
  }
}

/* ---------- Dogs Atlas blue: headings, borders, popups and windows ---------- */
:root {
  --blue-ink: #2f5f86;
  --blue: #8fb3d6;
  --blue-soft: #c9dcee;
  --g-edge: #c9dceecc;
}
main h2,
.plain-card h1,
.hero-card h1 {
  color: var(--blue-ink);
}
main h3 {
  color: #3f6f95;
}
.foot-box {
  border-color: var(--blue-soft);
  background: linear-gradient(140deg, #fffcf6, #f4eee3);
}
.foot-name em,
.foot nav a {
  color: var(--blue-ink);
}
.toc a.on {
  color: var(--blue-ink);
  border-left-color: var(--blue);
}
.define,
.side,
.jump,
.more,
.next a,
.stats div,
.tablewrap {
  border-color: var(--blue-soft);
}

/* Header photo shown whole (every dog in view; Breeds A to Z, Dog Families): full width at its own shape, fading
   softly into the page like every other header; the title window overlaps only its lower edge. */
.hero.whole {
  display: block;
  min-height: 0;
  height: auto;
  overflow: visible;
}
.hero.whole img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.hero.whole .hero-card {
  margin: -8vw auto 0;
}
@media (max-width: 700px) {
  .hero.whole img {
    -webkit-mask-image: linear-gradient(#000 82%, transparent);
    mask-image: linear-gradient(#000 82%, transparent);
  }
  .hero.whole .hero-card {
    margin-top: -1.2rem;
  }
}
