:root {
  --bg: #f6f3ec;
  --ink: #241f1a;
  --muted: #6d6257;
  --line: #d4c7b5;
  --panel: #fffdf8;
  --panel-2: #ece4d8;
  --header: #d8d0f7;
  --blue: #1d59d1;
  --tab-color: #27675b;
  --purple: #6b4a86;
  --copper: #bf7440;
  --gold: #f3c44f;
  --gold-deep: #996a00;
  --silver: #dfe4ea;
  --silver-deep: #5f6b78;
  --shadow: 0 18px 44px rgba(55, 42, 24, .1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(39, 103, 91, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(39, 103, 91, .045) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  letter-spacing: 0;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  align-items: center;
  background: rgba(255, 253, 248, .92);
  border-bottom: 1px solid rgba(70, 55, 35, .14);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 12px max(16px, calc((100vw - 1180px) / 2 + 18px));
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: #2f6c61;
  border-radius: 8px;
  color: #fffdf8;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-title,
.brand-subtitle {
  display: block;
  line-height: 1.25;
}

.brand-title {
  font-size: 16px;
  font-weight: 900;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.nav-menu {
  position: relative;
}

.site-nav a {
  border-radius: 7px;
  color: #44382d;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  min-height: 34px;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: #e8f0ed;
  color: #1f5d52;
  outline: 0;
}

.nav-submenu {
  background: rgba(255, 253, 248, .98);
  border: 1px solid rgba(70, 55, 35, .16);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(55, 42, 24, .12);
  display: grid;
  gap: 2px;
  left: 0;
  min-width: 220px;
  opacity: 0;
  padding: 6px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 6px);
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 80;
}

.nav-menu:hover .nav-submenu,
.nav-menu:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-submenu a {
  border-radius: 6px;
  color: #3c3329;
  justify-content: flex-start;
  min-height: 32px;
  width: 100%;
}

.scroll-top-button {
  align-items: center;
  background: #2f6c61;
  border: 1px solid rgba(36, 31, 26, .14);
  border-radius: 8px;
  color: #fffdf8;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 34px;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  background: #24574e;
  outline: 2px solid rgba(47, 108, 97, .22);
  outline-offset: 2px;
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px clamp(10px, 2vw, 28px) 38px;
}

.page-view {
  display: none;
}

.page-view.is-active {
  display: block;
}

.home-grid {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.home-copy,
.line-preview,
.content-panel {
  background: rgba(255, 253, 248, .97);
  border: 1px solid rgba(70, 55, 35, .16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  padding: clamp(22px, 4vw, 44px);
}

.eyebrow {
  color: #2f6c61;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.home-copy h1,
.content-panel h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  margin: 0;
}

.home-lead {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  margin: 18px 0 0;
  max-width: 42rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-link,
.secondary-link {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  min-height: 40px;
  padding: 9px 14px;
  text-decoration: none;
}

.primary-link {
  background: #2f6c61;
  border: 1px solid #285d54;
  color: #fffdf8;
}

.secondary-link {
  background: #fffdf8;
  border: 1px solid rgba(70, 55, 35, .2);
  color: #3c3329;
}

.line-preview {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .9), rgba(255, 253, 248, .58)),
    url("assets/sire-line-hero.png"),
    radial-gradient(circle at 78% 20%, rgba(47, 108, 97, .14), transparent 25%),
    radial-gradient(circle at 20% 84%, rgba(215, 167, 43, .12), transparent 26%),
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(244, 247, 244, .96));
  background-position: center;
  background-size: cover;
  display: grid;
  place-items: center;
  min-height: 330px;
  overflow: hidden;
  padding: 30px 32px;
  position: relative;
}

.line-preview::after {
  background:
    linear-gradient(90deg, transparent, rgba(42, 111, 98, .18), transparent);
  content: "";
  height: 1px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 28px;
}

.line-preview::before {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .2), rgba(255, 253, 248, .82)),
    radial-gradient(circle at 75% 26%, rgba(215, 167, 43, .24), transparent 28%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.preview-map {
  display: grid;
  gap: 28px;
  max-width: 470px;
  position: relative;
  width: 100%;
}

.preview-card {
  background: rgba(255, 253, 248, .95);
  border: 1px solid rgba(70, 55, 35, .16);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(58, 48, 35, .1);
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 10px 14px;
  position: relative;
  width: min(250px, 100%);
  z-index: 1;
}

.preview-card::before {
  background: #fffdf8;
  border: 2px solid rgba(47, 108, 97, .34);
  border-radius: 50%;
  content: "";
  height: 12px;
  left: -24px;
  position: absolute;
  top: calc(50% - 6px);
  width: 12px;
}

.preview-card strong {
  color: #16130f;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.preview-card small {
  color: #62574a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.preview-root {
  background: linear-gradient(135deg, #fff0b5, #efc64c);
  border-color: rgba(151, 105, 18, .24);
  justify-self: center;
  width: min(280px, 100%);
}

.preview-root::before {
  display: none;
}

.preview-branches {
  display: grid;
  gap: 18px;
  padding-left: 38px;
  position: relative;
}

.preview-branches::before {
  background: linear-gradient(180deg, rgba(47, 108, 97, .24), rgba(47, 108, 97, .5), rgba(47, 108, 97, .18));
  border-radius: 999px;
  content: "";
  left: 12px;
  position: absolute;
  top: -18px;
  bottom: 28px;
  width: 3px;
}

.preview-branch,
.preview-stack {
  display: grid;
  gap: 14px;
  position: relative;
}

.preview-branch::before,
.preview-stack::before,
.preview-split::before {
  background: rgba(47, 108, 97, .28);
  content: "";
  height: 1px;
  left: -26px;
  position: absolute;
  top: 27px;
  width: 26px;
}

.preview-branch::after {
  background: rgba(47, 108, 97, .22);
  bottom: 27px;
  content: "";
  left: -18px;
  position: absolute;
  top: 27px;
  width: 1px;
}

.preview-branch-wide {
  gap: 16px;
}

.preview-split {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-left: 40px;
  position: relative;
}

.preview-split::after {
  background: rgba(47, 108, 97, .22);
  bottom: 28px;
  content: "";
  left: -14px;
  position: absolute;
  top: 27px;
  width: 1px;
}

.preview-split::before {
  left: -40px;
  width: 40px;
}

.preview-stack {
  padding-left: 28px;
}

.preview-stack::after {
  background: rgba(47, 108, 97, .22);
  bottom: 28px;
  content: "";
  left: 3px;
  position: absolute;
  top: 27px;
  width: 1px;
}

.preview-stack::before {
  left: 3px;
  width: 25px;
}

.preview-leaf {
  border-color: rgba(47, 108, 97, .18);
}

.feature-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.feature-strip article {
  overflow: hidden;
  position: relative;
}

.feature-strip article::after {
  background: url("assets/pedigree-card.png") center / cover no-repeat;
  content: "";
  inset: auto -22px -44px auto;
  opacity: .1;
  pointer-events: none;
  position: absolute;
  width: 148px;
  aspect-ratio: 1;
}

.feature-strip article,
.faq-list article {
  background: rgba(255, 253, 248, .97);
  border: 1px solid rgba(70, 55, 35, .16);
  border-radius: 8px;
  padding: 18px;
}

.feature-strip h2,
.faq-list h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.feature-strip p,
.faq-list p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
}

.content-panel {
  padding: clamp(22px, 4vw, 40px);
}

.article-panel {
  display: grid;
  gap: 20px;
}

.article-panel section {
  border-top: 1px solid rgba(70, 55, 35, .12);
  padding-top: 18px;
}

.article-panel h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.article-panel p {
  color: #3f352b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  margin: 0;
}

.article-panel p + p {
  margin-top: 12px;
}

.article-lead {
  color: var(--muted) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  max-width: 58rem;
}

.article-index {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-index a {
  background: rgba(255, 253, 248, .84);
  border: 1px solid rgba(70, 55, 35, .15);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 6px;
  padding: 14px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.article-index a:hover,
.article-index a:focus-visible {
  border-color: rgba(39, 103, 91, .42);
  box-shadow: 0 10px 24px rgba(44, 35, 24, .08);
  outline: 0;
  transform: translateY(-1px);
}

.article-index span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-index strong {
  font-size: 16px;
  line-height: 1.45;
}

.article-index small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.article-entry {
  scroll-margin-top: 88px;
}

.article-body {
  background: rgba(255, 253, 248, .7);
  border: 1px solid rgba(70, 55, 35, .13);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.pedigree-guide {
  border-top: 1px solid rgba(70, 55, 35, .14);
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
}

.pedigree-guide h3 {
  font-size: 20px;
  line-height: 1.45;
  margin: 0;
}

.pedigree-table-wrap {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .18);
  border-radius: 8px;
  overflow-x: auto;
}

.pedigree-table {
  border-collapse: collapse;
  min-width: 840px;
  width: 100%;
}

.pedigree-table th,
.pedigree-table td {
  border: 1px solid rgba(70, 55, 35, .18);
  padding: 9px 10px;
  vertical-align: middle;
}

.pedigree-table th {
  background: rgba(45, 123, 105, .09);
  color: #214f43;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.pedigree-table td {
  background: #fffdf8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  min-width: 150px;
}

.pedigree-table strong {
  display: block;
}

.pedigree-table small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.pedigree-table .sire-line {
  background: rgba(64, 138, 216, .14);
  border-left: 5px solid #2c76c9;
}

.pedigree-table .family-line {
  background: rgba(226, 63, 146, .12);
  border-left: 5px solid #e23f92;
}

.pedigree-table .damsire {
  background: rgba(95, 107, 120, .14);
  border-left: 5px solid #7a8793;
}

.pedigree-table .third-generation {
  background: rgba(47, 108, 97, .1);
}

.pedigree-table .third-generation.sire-line {
  background: rgba(64, 138, 216, .14);
}

.pedigree-table .third-generation.family-line {
  background: rgba(226, 63, 146, .12);
}

.pedigree-points {
  background: rgba(255, 250, 240, .85);
  border: 1px solid rgba(70, 55, 35, .14);
  border-radius: 8px;
  padding: 12px 14px;
}

.pedigree-points h4 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.pedigree-points ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.4em;
}

.pedigree-points li {
  color: #3f352b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.article-source {
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  margin-top: 8px !important;
}

.article-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 1.2em;
}

.article-list li {
  color: #3f352b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.article-table-wrap {
  margin: 14px 0;
  overflow-x: auto;
}

.article-table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
}

.article-table th,
.article-table td {
  border-bottom: 1px solid rgba(70, 55, 35, .13);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: rgba(45, 123, 105, .08);
  color: #214f43;
  font-size: 13px;
  font-weight: 900;
}

.article-table td {
  color: #3f352b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.source-list ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.source-list a {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.header {
  background: rgba(255, 253, 248, .97);
  border: 1px solid rgba(70, 55, 35, .16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-heading {
  padding: 16px 18px 12px;
  text-align: center;
}

.tool-heading .eyebrow {
  margin-bottom: 4px;
}

.tool-heading h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0;
}

.header-bar {
  align-items: center;
  background: var(--header);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 32px;
  padding: 4px 10px;
}

.search {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .26);
  border-radius: 7px;
  color: var(--ink);
  font-size: 14px;
  min-height: 30px;
  padding: 3px 10px;
  width: min(380px, 44vw);
}

.parent-picker {
  align-items: center;
  color: #3f352b;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
  margin-left: auto;
}

.parent-picker select {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .3);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  min-height: 30px;
  min-width: 180px;
  padding: 3px 8px;
}

.color-toolbar {
  align-items: center;
  background: rgba(235, 226, 211, .72);
  border-bottom: 1px solid rgba(70, 55, 35, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
}

.toolbar-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-right: 2px;
}

.color-choice {
  align-items: center;
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .24);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  min-height: 30px;
  padding: 3px 9px;
}

.color-choice.is-active {
  border-color: var(--tab-color);
  box-shadow: inset 0 0 0 1px var(--tab-color);
}

.uma-search-toggle {
  align-items: center;
  background: #fff0dc;
  border: 1px solid rgba(217, 118, 24, .34);
  border-radius: 7px;
  color: #9b4f0f;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  min-height: 30px;
  min-width: 34px;
  padding: 3px 9px;
}

.uma-search-toggle:hover,
.uma-search-toggle:focus-visible {
  border-color: #d77618;
  outline: 0;
}

.uma-search-toggle.is-active {
  background: #ffe1f0;
  border-color: #e23f92;
  box-shadow:
    inset 0 0 0 1px rgba(226, 63, 146, .28),
    0 0 0 2px rgba(226, 63, 146, .16);
}

.color-swatch {
  border: 1px solid rgba(70, 55, 35, .25);
  border-radius: 50%;
  display: inline-block;
  height: 14px;
  width: 14px;
}

.color-swatch.normal { background: #fffef9; }
.color-swatch.purple { background: linear-gradient(135deg, #8c6aa5, #3e294d); }
.color-swatch.copper { background: linear-gradient(135deg, #ffd1a8, #b5622f); }
.color-swatch.gold { background: linear-gradient(135deg, #fff5bd, #d79b16); }
.color-swatch.silver { background: linear-gradient(135deg, #ffffff, #aeb7c1); }
.color-swatch.rainbow {
  background: conic-gradient(#e75151, #f2c84b, #58b96b, #4a82df, #9b61d9, #e75151);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 10px 0;
}

.tab {
  background: #eee9de;
  border: 1px solid rgba(70, 55, 35, .28);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  color: #3c3329;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 32px;
  padding: 4px 13px;
}

.tab[aria-selected="true"] {
  background: var(--panel);
  color: var(--tab-color);
}

.line-workspace {
  align-items: stretch;
  background: var(--panel);
  border-top: 1px solid rgba(70, 55, 35, .18);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
}

.line-workspace.is-offspring-open {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.tree-panel {
  background: transparent;
  min-height: 640px;
  overflow: auto;
  padding: 12px 14px 26px;
}

.offspring-panel {
  background: #fffaf0;
  border-left: 1px solid rgba(70, 55, 35, .18);
  min-height: 640px;
  padding: 12px;
  overflow: hidden;
}

.offspring-panel.is-closed {
  padding: 8px 6px;
}

.offspring-head {
  border-bottom: 1px solid rgba(70, 55, 35, .16);
  margin-bottom: 10px;
  padding-bottom: 9px;
}

.offspring-panel.is-closed .offspring-head {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.offspring-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.offspring-head h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}

.offspring-panel-toggle {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .24);
  border-radius: 7px;
  color: #3f352b;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 3px 9px;
}

.offspring-panel-toggle:hover,
.offspring-panel-toggle:focus-visible {
  border-color: var(--tab-color);
  outline: 0;
}

.offspring-panel-toggle:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.offspring-panel.is-closed .offspring-title-row {
  justify-content: center;
}

.offspring-panel.is-closed .offspring-head h2,
.offspring-panel.is-closed .offspring-head p,
.offspring-panel.is-closed .offspring-list {
  display: none;
}

.offspring-panel.is-closed .offspring-panel-toggle {
  min-height: 58px;
  padding: 6px 4px;
  writing-mode: vertical-rl;
}

.offspring-head h2.is-clickable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(39, 103, 91, .35);
  text-underline-offset: 3px;
}

.offspring-head h2.is-clickable:hover,
.offspring-head h2.is-clickable:focus-visible {
  color: var(--tab-color);
  outline: 0;
}

.offspring-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin: 2px 0 0;
}

.offspring-list {
  display: grid;
  gap: 7px;
}

.offspring-item {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .18);
  border-radius: 7px;
  color: var(--blue);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 46px;
  padding: 7px 9px;
  text-align: left;
}

.offspring-item:hover,
.offspring-item:focus-visible {
  border-color: var(--tab-color);
  outline: 0;
}

.offspring-name {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.offspring-item[data-sex="female"] .offspring-name {
  color: #d93683;
}

.offspring-item-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.offspring-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  margin: 0;
}

.tree {
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
}

.tree ul {
  border-left: 0;
  list-style: none;
  margin: 3px 0 0 11px;
  padding: 0 0 0 20px;
}

.tree li {
  margin: 3px 0;
  position: relative;
}

.tree li::before {
  background: var(--line);
  content: "";
  height: 1px;
  left: -14px;
  position: absolute;
  top: 14px;
  width: 11px;
}

.tree li::after {
  background: var(--line);
  bottom: -7px;
  content: "";
  left: -14px;
  position: absolute;
  top: -7px;
  width: 1px;
}

.tree li:last-child::after {
  bottom: auto;
  height: 21px;
}

.tree > li::before,
.tree > li::after {
  content: none;
}

details { min-width: 0; }
summary {
  align-items: center;
  cursor: default;
  display: flex;
  gap: 4px;
  list-style: none;
  outline: 0;
}
summary::-webkit-details-marker { display: none; }

.tree-toggle {
  align-items: center;
  background: #efe6d7;
  border: 1px solid rgba(70, 55, 35, .32);
  border-radius: 4px;
  color: #4f463d;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 22px;
  font-size: 15px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 22px;
}

.tree-toggle:hover,
.tree-toggle:focus-visible {
  background: #fff7e8;
  border-color: var(--tab-color);
  outline: 0;
}

.node {
  background: #fffef8;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 6px;
  line-height: 1.35;
  max-width: 100%;
  padding: 2px 6px;
  position: relative;
  text-align: left;
}

.node:hover,
.node:focus-visible {
  background: #f6f1e8;
  border-color: var(--tab-color);
  outline: 0;
}

.node.is-focus-target {
  animation: focusPulse 1.3s ease-out;
  box-shadow: 0 0 0 3px rgba(42, 111, 98, .28);
}

@keyframes focusPulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 111, 98, .46); }
  60% { box-shadow: 0 0 0 8px rgba(42, 111, 98, .12); }
  100% { box-shadow: 0 0 0 3px rgba(42, 111, 98, .28); }
}

.node[data-color="purple"] {
  background: linear-gradient(135deg, #eee3f2, #7c5a94);
  border-color: #5d3e73;
  color: #2f1f3b;
}

.node[data-color="copper"] {
  background: linear-gradient(135deg, #ffe1c2, #c77742);
  border-color: #9f5527;
  color: #4d250c;
}

.node[data-color="gold"] {
  background: linear-gradient(135deg, #fff7c7, #efc34e);
  border-color: #c68b00;
  color: #5c3900;
}

.node[data-color="silver"] {
  background: linear-gradient(135deg, #ffffff, #d7dee6);
  border-color: #9aa6b2;
  color: #34404d;
}

.node[data-color="rainbow"] {
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.3)) padding-box,
    linear-gradient(100deg, #e95050 0%, #f3c74a 18%, #58b96b 36%, #42a5e8 54%, #8260dd 72%, #e35aae 88%, #e95050 100%) border-box;
  border-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .42),
    0 0 0 1px rgba(130, 96, 221, .18);
  color: #3a2468;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.node[data-color="rainbow"] .name {
  background: linear-gradient(90deg, #c71f4f, #b16b00, #087f52, #1268d1, #7a35b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.node[data-uma="true"] {
  border-color: #e23f92;
  box-shadow:
    inset 0 0 0 1px rgba(226, 63, 146, .28),
    0 0 0 2px rgba(226, 63, 146, .18);
}

.node[data-uma="true"]:hover,
.node[data-uma="true"]:focus-visible {
  border-color: #c92579;
  box-shadow:
    inset 0 0 0 1px rgba(226, 63, 146, .34),
    0 0 0 3px rgba(226, 63, 146, .22);
}

.node[data-sex="female"] .name {
  color: #d93683;
}

.node[data-family-line="true"] {
  border-color: rgba(191, 95, 134, .28);
}

.uma-mark {
  align-self: center;
  background: #fff0dc;
  border: 1px solid rgba(217, 118, 24, .42);
  border-radius: 999px;
  color: #b75f12;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 2px 4px;
}

.sex-mark {
  align-self: center;
  background: #ffe4f0;
  border: 1px solid rgba(217, 54, 131, .35);
  border-radius: 999px;
  color: #c22571;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 2px 5px;
}

.family-mark {
  align-self: center;
  background: #f4e9ef;
  border: 1px solid rgba(191, 95, 134, .34);
  border-radius: 999px;
  color: #8a3e5f;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 2px 6px;
}

.node.is-locked {
  box-shadow: inset 0 0 0 2px rgba(36, 31, 26, .22);
}

.lock-mark {
  align-self: center;
  background: rgba(36, 31, 26, .1);
  border: 1px solid rgba(36, 31, 26, .18);
  border-radius: 999px;
  color: #241f1a;
  display: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 2px 4px;
}

.node.is-locked .lock-mark {
  display: inline-flex;
}

.node.is-search-context {
  cursor: default;
}

.node.is-search-context.is-search-muted {
  background: linear-gradient(135deg, #eadfe5, #8a6170) !important;
  border-color: #6c4957 !important;
  color: #3a2630 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.node.is-search-context.is-search-muted .name {
  background: none;
  color: inherit;
  text-shadow: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.node.is-search-context.is-search-muted .uma-mark,
.node.is-search-context.is-search-muted .sex-mark,
.node.is-search-context.is-search-muted .family-mark,
.node.is-search-context.is-search-muted .lock-mark {
  opacity: .82;
}

.year { color: inherit; font-weight: 800; }

.node::after {
  background: #201a14;
  border-radius: 7px;
  color: #fffaf0;
  content: attr(data-tip);
  font-size: 12px;
  font-weight: 600;
  left: 0;
  line-height: 1.45;
  max-width: min(320px, 78vw);
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease;
  visibility: hidden;
  width: max-content;
  z-index: 40;
}

.node:hover::after,
.node:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.hidden { display: none; }
.filter-ancestor > details > summary > .node,
.filter-ancestor > .node {
  opacity: .42;
}

.filter-ancestor > details > summary > .node::after,
.filter-ancestor > .node::after {
  opacity: 0;
}
mark { background: #fff08a; border-radius: 3px; color: inherit; padding: 0 1px; }

.planner {
  background: rgba(255, 250, 240, .96);
  border: 1px solid rgba(70, 55, 35, .26);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 16px;
  overflow: hidden;
}

.planner-head {
  align-items: center;
  background: #f0e7d7;
  border-bottom: 1px solid rgba(70, 55, 35, .18);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 14px;
}

.planner-head h1,
.planner-head h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 3px;
}

.planner-head .eyebrow {
  margin-bottom: 4px;
}

.planner-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.target-stats {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .22);
  border-radius: 7px;
  color: var(--tab-color);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

.planner-controls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px 14px;
}

.planner-controls label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 4px;
}

.control-input {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .26);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  min-height: 32px;
  min-width: min(320px, 84vw);
  padding: 4px 9px;
}

.control-input.compact {
  min-width: 112px;
  width: 132px;
}

.check-control {
  align-items: center;
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .22);
  border-radius: 7px;
  color: var(--ink);
  display: inline-flex !important;
  gap: 7px !important;
  min-height: 32px;
  padding: 4px 9px;
}

.target-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 16px;
}

.quick-panel {
  background: rgba(255, 253, 248, .97);
  border: 1px solid rgba(70, 55, 35, .16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quick-head {
  align-items: center;
  background: #f0e7d7;
  border-bottom: 1px solid rgba(70, 55, 35, .18);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 18px;
}

.quick-head h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.quick-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.quick-controls {
  align-items: end;
  border-bottom: 1px solid rgba(70, 55, 35, .13);
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px 14px;
}

.quick-controls label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 4px;
}

.quick-actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px 0;
}

.quick-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  min-height: 520px;
}

.quick-sire-panel,
.quick-result-panel {
  padding: 14px;
}

.quick-sire-panel {
  background: #fffaf0;
  border-right: 1px solid rgba(70, 55, 35, .18);
}

.quick-sire-panel h2,
.quick-result-panel h2 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.quick-sire-list,
.quick-result-list {
  display: grid;
  gap: 8px;
}

.quick-sire-item {
  align-items: center;
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .18);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  padding: 9px;
}

.quick-sire-item:hover,
.quick-sire-item:focus-within {
  border-color: var(--tab-color);
}

.quick-sire-item input {
  flex: 0 0 auto;
}

.quick-sire-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quick-sire-body strong {
  font-size: 14px;
  line-height: 1.35;
}

.quick-sire-body small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.quick-result-item {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .18);
  border-left: 5px solid var(--tab-color);
  border-radius: 8px;
  color: var(--blue);
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  text-align: left;
}

.quick-result-item:hover,
.quick-result-item:focus-visible {
  border-color: var(--tab-color);
  outline: 0;
}

.quick-result-item strong {
  font-size: 15px;
  line-height: 1.35;
}

.quick-result-item[data-sex="female"] strong {
  color: #d93683;
}

.quick-result-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.score-panel {
  background: rgba(255, 253, 248, .97);
  border: 1px solid rgba(70, 55, 35, .16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.score-head {
  background: #f0e7d7;
  border-bottom: 1px solid rgba(70, 55, 35, .18);
  padding: 16px 18px;
}

.score-head h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.score-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.score-rules {
  border-bottom: 1px solid rgba(70, 55, 35, .13);
  padding: 14px 18px;
}

.score-rules h2 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.score-rules ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
}

.score-rules li {
  color: #3f352b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.score-table-wrap {
  overflow-x: auto;
  padding: 14px;
}

.score-table {
  border-collapse: collapse;
  min-width: 1040px;
  width: 100%;
}

.score-table th,
.score-table td {
  border-bottom: 1px solid rgba(70, 55, 35, .13);
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
}

.score-table th {
  background: rgba(45, 123, 105, .08);
  color: #214f43;
  font-size: 13px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

.score-table th button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.score-table th button::after {
  color: var(--muted);
  content: "↕";
  font-size: 11px;
  margin-left: 5px;
}

.score-table td {
  color: #3f352b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.score-table tbody tr:hover {
  background: rgba(47, 108, 97, .06);
}

.rating-mark {
  color: var(--green);
  display: inline-block;
  font-weight: 900;
  margin-right: 5px;
  min-width: 1.2em;
}

.score-value {
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.score-star {
  color: #b7832f;
  font-size: 16px;
}

.target-card {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .2);
  border-left: 6px solid var(--tab-color);
  border-radius: 8px;
  padding: 12px;
}

.target-card[data-priority="high"] { border-left-color: #c68b00; }
.target-card[data-priority="medium"] { border-left-color: #5f6b78; }
.target-card[data-priority="watch"] { border-left-color: #7c5a94; }

.breeding-panel {
  background: rgba(255, 253, 248, .97);
  border: 1px solid rgba(70, 55, 35, .16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.breeding-head {
  align-items: center;
  background: #f0e7d7;
  border-bottom: 1px solid rgba(70, 55, 35, .18);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 18px;
}

.breeding-head h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.breeding-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.breeding-total {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .22);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  min-width: 96px;
  padding: 8px 12px;
}

.breeding-total span {
  font-size: 12px;
  font-weight: 900;
}

.breeding-total strong {
  color: #1f5d52;
  font-size: 30px;
  line-height: 1.1;
}

.breeding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.breeding-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.breeding-section {
  border: 1px solid rgba(70, 55, 35, .16);
  border-radius: 8px;
  padding: 12px;
}

.breeding-section h2,
.breeding-results h2 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.breeding-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.breeding-grid label,
.breeding-section > label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 4px;
}

.factor-columns {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.factor-columns fieldset {
  border: 1px solid rgba(70, 55, 35, .18);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
}

.factor-columns legend {
  color: var(--tab-color);
  font-size: 12px;
  font-weight: 900;
  padding: 0 4px;
}

.factor-columns label {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.breeding-actions {
  display: flex;
  gap: 8px;
}

.secondary-button {
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .22);
  border-radius: 7px;
  color: #3c3329;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 32px;
  padding: 5px 10px;
}

.breeding-results {
  background: #fffaf0;
  border-left: 1px solid rgba(70, 55, 35, .18);
  padding: 14px;
}

.rule-list {
  display: grid;
  gap: 9px;
}

.rule-card {
  align-items: start;
  background: #fffef9;
  border: 1px solid rgba(70, 55, 35, .18);
  border-left: 5px solid var(--tab-color);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px;
}

.rule-card h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 4px;
}

.rule-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.rule-card strong {
  background: #e8f0ed;
  border-radius: 999px;
  color: #1f5d52;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 7px;
}

.target-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.target-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}

.target-card-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  margin: 2px 0 0;
}

.badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: end;
}

.priority,
.uma {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
}

.priority {
  background: #f6df9a;
  color: #5c3900;
}

.uma {
  background: #e8f0ff;
  color: #264c96;
}

.target-steps {
  display: grid;
  gap: 7px 10px;
  grid-template-columns: 74px 1fr;
  margin: 10px 0;
}

.target-steps dt {
  color: var(--tab-color);
  font-size: 12px;
  font-weight: 900;
}

.target-steps dd {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.target-footer {
  align-items: center;
  border-top: 1px solid rgba(70, 55, 35, .13);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-top: 9px;
}

.lineage {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.jump-button {
  background: var(--tab-color);
  border: 1px solid rgba(36, 31, 26, .16);
  border-radius: 7px;
  color: #fffef9;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  min-height: 32px;
  padding: 5px 10px;
}

.jump-button:hover,
.jump-button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid rgba(39, 103, 91, .25);
}

.empty {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  padding: 14px 0 4px;
}

.note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 2px 0;
}

@media (max-width: 640px) {
  .page { padding: 8px; }
  .site-header { align-items: stretch; flex-direction: column; gap: 10px; padding: 10px; position: static; }
  .site-nav { overflow-x: auto; padding-bottom: 2px; }
  .site-nav a { flex: 0 0 auto; }
  .nav-menu { flex: 0 0 auto; }
  .nav-submenu { left: auto; right: 0; }
  .scroll-top-button { align-self: flex-end; }
  .home-grid,
  .feature-strip,
  .article-index { grid-template-columns: 1fr; }
  .home-copy,
  .line-preview { min-height: 0; }
  .line-preview { padding: 24px 18px; }
  .preview-map { max-width: 340px; }
  .preview-branches { padding-left: 30px; }
  .preview-card { width: min(260px, 100%); }
  .preview-split { grid-template-columns: 1fr; margin-left: 28px; }
  .preview-split::after { bottom: 27px; }
  .preview-stack { padding-left: 24px; }
  .home-copy h1,
  .content-panel h1 { font-size: 28px; }
  .pedigree-table { min-width: 760px; }
  .tool-heading h1 { font-size: 22px; }
  .header-bar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .parent-picker { align-items: stretch; flex-direction: column; margin-left: 0; }
  .parent-picker select { min-width: 0; width: 100%; }
  .line-workspace,
  .line-workspace.is-offspring-open { grid-template-columns: 1fr; }
  .tree-panel { min-height: 580px; padding-left: 9px; }
  .offspring-panel { border-left: 0; border-top: 1px solid rgba(70, 55, 35, .18); min-height: 0; }
  .offspring-panel.is-closed { min-height: 0; padding: 6px 10px; }
  .offspring-panel.is-closed .offspring-title-row { justify-content: flex-end; }
  .offspring-panel.is-closed .offspring-panel-toggle { min-height: 28px; padding: 3px 9px; writing-mode: horizontal-tb; }
  .node { font-size: 14px; }
  .planner-head { align-items: stretch; flex-direction: column; }
  .target-stats { width: fit-content; }
  .control-input,
  .control-input.compact { min-width: 0; width: 100%; }
  .planner-controls label { width: 100%; }
  .target-card-head,
  .target-footer { align-items: stretch; flex-direction: column; }
  .badges { justify-content: start; }
  .target-steps { grid-template-columns: 1fr; }
  .quick-head { align-items: stretch; flex-direction: column; }
  .quick-controls label { width: 100%; }
  .quick-layout { grid-template-columns: 1fr; }
  .quick-sire-panel { border-bottom: 1px solid rgba(70, 55, 35, .18); border-right: 0; }
  .score-table { min-width: 760px; }
  .breeding-head { align-items: stretch; flex-direction: column; }
  .breeding-total { justify-items: start; }
  .breeding-layout,
  .breeding-grid,
  .factor-columns { grid-template-columns: 1fr; }
  .breeding-results { border-left: 0; border-top: 1px solid rgba(70, 55, 35, .18); }
}
