@font-face {
  font-family: Bricolage;
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --ink: #1b3437;
  --muted: #516563;
  --deep: #174c48;
  --accent: #12695d;
  --line: #ccd7cf;
  --paper: #f8f9f4;
  --white: #fff;
  --mint: #d8f0cc;
  --title: Bricolage, "DM Sans", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.48 var(--body);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  width: min(1232px, calc(100% - 80px));
  margin-inline: auto;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--title);
  font-weight: 750;
  line-height: 1.07;
  letter-spacing: -0.045em;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  border: none;
  background: transparent;
  line-height: 1.25;
}
a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #256dad;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #183e3b;
  font: 800 1.6rem/1 var(--title);
  letter-spacing: -0.075em;
  white-space: nowrap;
}
.brand-second {
  font-weight: 550;
}
.brand-egg {
  display: inline-block;
  position: relative;
  background: #e6f1b8;
  border: 2.5px solid #23534b;
  border-radius: 53% 53% 48% 48% / 65% 65% 42% 42%;
  height: 33px;
  width: 29px;
  transform: rotate(-9deg);
  box-shadow: inset -3px -3px #bdd89c;
}
.brand-egg::after {
  content: "";
  position: absolute;
  top: 10px;
  right: -5px;
  width: 5px;
  height: 9px;
  background: #f6a5b5;
  border: 1.5px solid #23534b;
  border-radius: 2px;
}
.brand-egg i {
  display: block;
  width: 13px;
  height: 10px;
  position: absolute;
  left: 6px;
  top: 9px;
  background: #79c3a9;
  border: 1.5px solid #23534b;
  border-radius: 3px;
}
.brand-egg i::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 2.7px;
  height: 2.7px;
  background: #23534b;
  border-radius: 50%;
  box-shadow:
    4.3px 0 #23534b,
    8.5px 0 #23534b;
}
.navigation {
  display: flex;
  align-self: stretch;
  gap: 7px;
  align-items: center;
}
.navigation a {
  color: #485f5c;
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 9px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.navigation a[aria-current="page"] {
  color: #174e45;
  background: #e6f1df;
}
.navigation a:hover,
.sources-button:hover {
  background: #eef3eb;
}
.nav-symbol {
  box-sizing: border-box;
  display: inline-block;
  flex: none;
  position: relative;
  color: currentColor;
}
.grid-symbol {
  width: 13px;
  height: 13px;
  background:
    linear-gradient(currentColor 0 0) 0 0/5px 5px,
    linear-gradient(currentColor 0 0) 100% 0/5px 5px,
    linear-gradient(currentColor 0 0) 0 100%/5px 5px,
    linear-gradient(currentColor 0 0) 100% 100%/5px 5px;
  background-repeat: no-repeat;
  border-radius: 2px;
}
.compare-symbol {
  width: 14px;
  height: 13px;
  border: 1.6px solid;
  border-radius: 3px;
}
.compare-symbol::after {
  content: "";
  position: absolute;
  height: 100%;
  left: 5px;
  border-left: 1.5px solid;
}
.search-symbol {
  width: 11px;
  height: 11px;
  border: 1.7px solid;
  border-radius: 50%;
  margin-right: 3px;
}
.search-symbol::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.7px;
  background: currentColor;
  transform: rotate(45deg);
  top: 8px;
  left: 7px;
}
.sources-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 8px 12px;
}
.info-glyph {
  display: inline-grid;
  place-items: center;
  font:
    700 0.68rem/1 Georgia,
    serif;
  width: 14px;
  height: 14px;
  border: 1.3px solid;
  border-radius: 50%;
}
main {
  min-height: 64vh;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #2e534d;
  border-radius: 20px;
  background: linear-gradient(110deg, #143c3b 4%, #19514d 75%, #286c5f);
  color: #fff;
  margin-top: 22px;
  min-height: 205px;
  display: flex;
  align-items: center;
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: 28px 38px 30px;
  width: 59%;
}
.eyebrow,
.micro {
  font-weight: 750;
  line-height: 1.2;
  font-size: 0.76rem;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: #ccedb7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero .eyebrow::before {
  content: "";
  height: 2px;
  width: 24px;
  background: #afd38f;
}
.hero h1 {
  font-size: clamp(2.65rem, 4.4vw, 4.2rem);
  letter-spacing: -0.057em;
  margin: 10px 0 9px;
  font-weight: 750;
  line-height: 0.99;
}
.hero p {
  max-width: 520px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #e3f0e6;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 55%;
  pointer-events: none;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: radial-gradient(#d2f1ae 1px, transparent 1.5px);
  background-size: 17px 17px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
}
.orbit {
  position: absolute;
  left: 50%;
  top: 53%;
  border: 1px solid #8eb99d66;
  border-radius: 50%;
  width: 85%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scaleY(0.63) rotate(-25deg);
}
.orbit.o2 {
  width: 106%;
  border-style: dashed;
  opacity: 0.55;
}
.orbit.o3 {
  width: 65%;
  opacity: 0.8;
}
.hero-art .sun {
  position: absolute;
  width: 164px;
  height: 164px;
  background: #daed9e;
  border-radius: 50%;
  left: 48%;
  top: 49%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 7px #b0d18e33;
}
.hero-art img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 6px 0 #102f314a);
  width: 26%;
  height: 64%;
  z-index: 2;
}
.hero-art .hero-left {
  left: 3%;
  top: 29%;
  transform: rotate(-10deg);
}
.hero-art .hero-center {
  left: 32%;
  top: 9%;
  width: 34%;
  height: 80%;
  transform: rotate(4deg);
  z-index: 3;
}
.hero-art .hero-right {
  left: 65%;
  top: 29%;
  transform: rotate(10deg);
}
.star {
  position: absolute;
  color: #dcefa0;
  font-size: 22px;
  line-height: 1;
  z-index: 1;
}
.st1 {
  left: 17%;
  top: 14%;
}
.st2 {
  right: 12%;
  top: 14%;
  font-size: 16px;
}
.st3 {
  left: 65%;
  bottom: 10%;
  font-size: 14px;
}
.st4 {
  left: 5%;
  bottom: 14%;
  font-size: 12px;
}
.section {
  margin-top: 26px;
}
.heading-row,
.space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.heading-row h2,
.page-title {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
}
.heading-row {
  margin-bottom: 12px;
}
.text-link {
  padding: 5px 0;
  color: #246254;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: #a0b8aa;
}
.text-link:hover {
  color: #173e36;
  text-decoration-color: currentColor;
}
.models {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}
.model-card {
  border: 1px solid #cfdad2;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 61px;
  padding: 5px 7px 5px 5px;
  text-align: left;
  position: relative;
  font: 700 0.9rem/1.09 var(--body);
}
.model-card img {
  width: 43px;
  height: 47px;
  object-fit: contain;
  border-radius: 8px;
  mix-blend-mode: multiply;
  flex: none;
}
.model-card:hover,
.choice:hover,
.branch:hover,
.character-card:hover,
.adult-card:hover,
.stage:hover,
.special-button:hover {
  border-color: #7d9d8c;
  background-color: #f0f6eb;
}
.model-card.selected {
  background: #e5f3db;
  border-color: #2d684c;
  box-shadow: inset 0 0 0 1px #2d684c;
}
.model-card.selected::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #367646;
  position: absolute;
  right: 6px;
  top: 6px;
}
.only-mobile {
  display: none;
}
.chart-panel,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
}
.chart-panel {
  margin-top: 19px;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 25px 16px;
}
.chart-head h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}
.overline {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.habitat-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.field-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 650;
}
.field-tabs,
.switches {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.field-tab,
.soft-button,
.choice,
.toggle,
.page-btn,
.bookmark,
.primary {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 650;
}
.field-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #465c57;
}
.field-tab.active,
.choice.active {
  background: #254e46;
  border-color: #254e46;
  color: white;
}
.field-tab em {
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
}
.cycle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 25px;
  background: #f3f6ee;
  border-block: 1px solid #e2e7dd;
  flex-wrap: wrap;
}
.cycle-label {
  font-size: 0.8rem;
  font-weight: 750;
  color: #596d63;
  margin-right: 4px;
}
.stage {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
}
.stage img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: pixelated;
}
.stage .egg {
  width: 15px;
  height: 19px;
  border: 1.8px solid #345e55;
  border-radius: 52% 52% 46% 46%/68% 68% 38% 38%;
  display: block;
  background:
    radial-gradient(circle at 31% 54%, #8cbd91 0 1.5px, transparent 2px),
    radial-gradient(circle at 64% 27%, #8cbd91 0 1.5px, transparent 2px), #fff9df;
}
.separator {
  width: 13px;
  border-top: 1.5px dotted #82968b;
}
.chart-body {
  padding: 19px 25px 18px;
}
.branch-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.branch {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-height: 60px;
}
.branch img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
.branch strong,
.branch small {
  display: block;
}
.branch strong {
  font-size: 0.94rem;
}
.branch small {
  font-size: 0.79rem;
  color: #577068;
  margin-top: 3px;
}
.branch.active {
  border-color: #42715c;
  background: #eaf4e2;
  box-shadow: inset 0 0 0 1px #42715c;
}
.step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 9px;
}
.step-head h3,
.chart-body h3,
.panel h3 {
  font-size: 1.25rem;
  letter-spacing: -0.032em;
}
.route-instruction {
  color: #48635a;
  font-size: 0.94rem;
  margin: 9px 0 15px;
}
.route-instruction b {
  color: #203f38;
}
.soft-button:hover,
.toggle:hover,
.page-btn:hover,
.bookmark:hover {
  background: #edf3ea;
}
.view-switch {
  display: inline-flex;
  background: #eff2ec;
  padding: 3px;
  border-radius: 9px;
}
.view-switch button {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 650;
  color: #55665d;
}
.view-switch .active {
  background: white;
  color: #1c493e;
  box-shadow: 0 1px 3px #16382927;
}
.adults {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.adult-card {
  position: relative;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(45px, 0.65fr) minmax(0, 1.35fr);
  gap: 9px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 100px;
}
.adult-card strong {
  display: block;
  font: 750 clamp(0.95rem, 1.4vw, 1.13rem)/1.12 var(--title);
  letter-spacing: -0.033em;
  overflow-wrap: anywhere;
}
.portrait {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--tile, #eef5e8);
  border-radius: 10px;
}
.portrait img {
  width: 79%;
  height: 79%;
  object-fit: contain;
  image-rendering: pixelated;
}
.mint {
  --tile: #e0f0d6;
  --tier: #32553b;
}
.blue {
  --tile: #e0edf7;
  --tier: #3a5e77;
}
.apricot {
  --tile: #f8e7d6;
  --tier: #795735;
}
.lilac {
  --tile: #eee4f7;
  --tier: #6c4a7c;
}
.tier {
  display: block;
  color: var(--tier, #4c6659);
  font-size: 0.77rem;
  font-weight: 700;
  margin-top: 5px;
}
.card-hint {
  font-size: 0.74rem;
  color: #58685f;
  margin-top: 2px;
  display: block;
}
.related {
  border-top: 1px solid #e2e8df;
  margin-top: 16px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.related button,
.small-links button {
  color: #286153;
  font-weight: 700;
  font-size: 0.91rem;
  padding: 6px 0;
}
.related button:hover,
.small-links button:hover {
  text-decoration: underline;
}
.small-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
a.cite {
  font-size: 0.83rem;
  color: #476354;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.loading {
  margin: 45px auto;
  font-size: 1.2rem;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 26px 0 32px;
  color: #66756d;
  font-size: 0.83rem;
}
.footer button {
  font-size: 0.83rem;
}
.intro {
  margin: 32px 0 21px;
}
.intro h1 {
  font-size: clamp(2.2rem, 5.3vw, 3.55rem);
  letter-spacing: -0.06em;
  margin: 6px 0 8px;
}
.intro p,
.panel-copy,
.sheet-p {
  color: var(--muted);
  line-height: 1.5;
}
.compare-controls,
.index-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 17px;
}
.control {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.control span {
  font-size: 0.83rem;
  font-weight: 700;
  color: #53675c;
}
.control select,
.control input {
  font-weight: 550;
  background: white;
  border: 1px solid #b9c9c0;
  border-radius: 9px;
  padding: 9px 32px 9px 12px;
  min-height: 42px;
  min-width: 0;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #4c6558 50%), linear-gradient(135deg, #4c6558 50%, transparent 50%) !important;
  background-position:
    calc(100% - 16px) 53%,
    calc(100% - 11px) 53% !important;
  background-size:
    5px 5px,
    5px 5px !important;
  background-repeat: no-repeat !important;
}
.control.search {
  flex: 1 1 230px;
}
.control.search input {
  width: 100%;
  padding-right: 12px;
}
.bookmark[aria-pressed="true"],
.toggle[aria-pressed="true"] {
  background: #e5f2dc;
  border-color: #719366;
  color: #2c573b;
}
.mobile-switch {
  display: none;
}
.pair {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.pair th,
.pair td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #e1e6dd;
  font-size: 0.95rem;
  line-height: 1.45;
}
.pair th {
  width: 22%;
  font-weight: 700;
  color: #40594d;
  background: #f5f7f1;
}
.pair thead th {
  background: white;
  border-top: 0;
}
.pair td + td,
.pair thead th + th {
  border-left: 1px solid #e1e6dd;
}
.pair .model-top {
  width: 39%;
  text-align: left;
  padding: 18px;
}
.model-top div {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 750 1.25rem var(--title);
  letter-spacing: -0.035em;
}
.model-top img {
  width: 64px;
  height: 66px;
  object-fit: contain;
}
.pair .pair-label {
  vertical-align: middle;
}
.pair .symbol-img {
  height: 31px;
  width: 31px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
  margin-right: 7px;
}
.compare-summary {
  border-top: 1px solid var(--line);
  background: #f2f6ee;
  padding: 12px 18px;
  color: #3d5848;
  font-size: 0.93rem;
}
.compare-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.panel-pad {
  padding: 20px 23px;
}
.scroll-table {
  overflow-x: auto;
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.matrix th,
.matrix td {
  border-bottom: 1px solid #e2e7df;
  padding: 8px;
  text-align: center;
  font-size: 0.9rem;
}
.matrix tr:last-child > * {
  border-bottom: 0;
}
.matrix th:first-child,
.matrix td:first-child {
  text-align: left;
}
.matrix th:first-child {
  width: 18%;
}
.matrix thead th {
  background: #f4f7ef;
  color: #3e5747;
  font: 700 0.8rem/1.2 var(--body);
}
.matrix tbody th {
  font-size: 0.9rem;
}
.matrix .field-head {
  padding: 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.91rem;
  text-align: left;
}
.matrix .field-head img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}
.matrix-icon {
  display: inline-block;
  background: #e3eee2;
  border-radius: 50%;
  color: #315837;
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 0.85rem;
}
.matrix-start {
  background: #245546;
  color: white;
}
.legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.83rem;
  color: #496153;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mobile-coverage {
  display: none;
}

.grid-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 16px 0 10px;
}
.grid-title h2 {
  font-size: 1.24rem;
}
html:has(.index-controls) {
  scrollbar-gutter: stable;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.character-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  padding: 9px;
}
.character-card .portrait {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 3;
}
.character-card .portrait img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 75%;
  height: 84%;
}
.character-card strong {
  font-family: var(--title);
  font-size: 1rem;
  line-height: 1.2;
  margin: 8px 2px 3px;
  overflow-wrap: anywhere;
}
.character-card small {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 2px;
}
.page-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 16px 0;
  font-size: 0.9rem;
}
.empty {
  padding: 28px 20px;
  background: #f1f5ec;
  border: 1px solid var(--line);
  border-radius: 12px;
}
dialog {
  border: 1px solid #bbccc0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 19px;
  width: min(610px, calc(100% - 28px));
  max-height: 86dvh;
  padding: 0;
  box-shadow: 0 25px 90px #0c2d2a40;
}
dialog::backdrop {
  background: #102d2c80;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.sheet-inner {
  padding: 21px 25px 24px;
}
.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8f9f4f5;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.sheet-top h2 {
  font-size: 1.5rem;
}
.close {
  width: 35px;
  height: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
}
.sheet-inner h3 {
  font-size: 1.08rem;
  margin: 17px 0 6px;
}
.sheet-inner h3:first-child {
  margin-top: 0;
}
.sheet-inner p + p {
  margin-top: 10px;
}
.route-cover {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 13px;
}
.route-cover .portrait {
  width: 90px;
  height: 90px;
  flex: none;
  background: #e4efd7;
}
.route-cover h3 {
  margin: 0 0 5px;
  font-size: 1.65rem;
}
.route-cover p {
  font-size: 0.88rem;
}
.route-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.route-tabs button {
  padding: 6px 9px;
  font-size: 0.82rem;
}
.route-steps {
  list-style: none;
  counter-reset: steps;
  margin: 10px 0 14px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.route-steps li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e0e7de;
}
.route-steps li:last-child {
  border: 0;
}
.route-steps li::before {
  counter-increment: steps;
  content: counter(steps);
  flex: none;
  text-align: center;
  line-height: 1.4;
  width: 1.4rem;
  background: #e3efd9;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.86rem;
  color: #2f5d44;
}
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.source-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.source-list li:last-child {
  border-bottom: 0;
}
.source-list a,
.source-links a {
  font-weight: 700;
}
.source-list small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 3px;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.82rem;
  margin-top: 16px;
}
.source-links a {
  color: #456354;
}
.note {
  font-size: 0.9rem;
  border-left: 3px solid #79a880;
  padding: 8px 12px;
  margin-top: 10px;
  color: #395744;
  background: #edf4e8;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mode-grid button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: center;
}
.mode-grid button[aria-pressed="true"] {
  border-color: #3b7350;
  background: #e6f1dc;
}
.mode-grid img {
  width: 42px;
  height: 47px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mode-grid strong,
.mode-grid small {
  display: block;
}
.mode-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.77rem;
}
.edition {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.edition img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.edition h3 {
  margin: 0 0 5px;
}
.edition p {
  font-size: 0.93rem;
}
.special-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 6px 10px;
  font-weight: 650;
  text-align: left;
}
.special-button img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}
.special-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}
.primary {
  background: #245646;
  color: white;
  border-color: #245646;
}
@media (min-width: 1500px) {
  .wrap {
    width: min(1335px, calc(100% - 140px));
  }
  .hero {
    min-height: 227px;
  }
  .hero-text {
    padding: 32px 45px;
  }
  .branch,
  .model-card {
    min-height: 68px;
  }
}
@media (max-width: 1040px) {
  .wrap {
    width: calc(100% - 42px);
  }
  .topbar {
    gap: 10px;
  }
  .model-card {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 3px;
    padding: 5px 2px 8px;
  }
  .model-card img {
    height: 35px;
    width: 35px;
  }
  .hero-text {
    padding: 24px 27px;
  }
  .adult-card {
    gap: 7px;
    padding: 8px;
  }
  .branch {
    padding: 7px;
    gap: 6px;
  }
  .character-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .topbar {
    height: auto;
    min-height: 51px;
    flex-wrap: wrap;
    gap: 0 8px;
    padding-top: 9px;
  }
  .brand {
    font-size: 1.35rem;
    gap: 7px;
  }
  .brand-egg {
    transform: scale(0.86) rotate(-9deg);
    margin: -2px;
  }
  .sources-button {
    margin-left: auto;
    padding: 7px 10px;
    font-size: 0.82rem;
  }
  .navigation {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
    padding: 7px 0 8px;
  }
  .navigation a {
    justify-content: center;
    flex: 1;
    padding: 8px 3px;
    font-size: 0.85rem;
  }
  .desktop-label {
    display: none;
  }
  .hero {
    margin-top: 13px;
    min-height: 151px;
    border-radius: 14px;
  }
  .hero-text {
    width: 67%;
    padding: 17px 15px 18px;
  }
  .hero .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.085em;
  }
  .hero .eyebrow::before {
    width: 14px;
  }
  .hero h1 {
    font-size: clamp(2rem, 6.5vw, 3rem);
    margin: 8px 0;
  }
  .hero p {
    font-size: 0.86rem;
    line-height: 1.35;
  }
  .hero-art {
    inset: 0 0 0 62%;
  }
  .hero-art .hero-left,
  .hero-art .hero-right {
    display: none;
  }
  .hero-art .hero-center {
    left: 2%;
    top: 18%;
    width: 86%;
    height: 66%;
  }
  .hero-art .sun {
    height: 90px;
    width: 90px;
    left: 48%;
  }
  .st1 {
    left: 10%;
    top: 11%;
  }
  .st2 {
    right: 10%;
    top: 22%;
  }
  .section {
    margin-top: 17px;
  }
  .heading-row {
    margin-bottom: 7px;
  }
  .heading-row h2 {
    font-size: 1.31rem;
  }
  .only-mobile {
    display: inline-block;
  }
  .models {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    gap: 6px;
    padding: 3px 1px 7px;
    scrollbar-width: thin;
    scrollbar-color: #c4d2c2 transparent;
  }
  .model-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    flex-direction: row;
    text-align: left;
    padding: 4px 10px 4px 5px;
    min-height: 45px;
    font-size: 0.81rem;
    gap: 3px;
  }
  .model-card img {
    height: 34px;
    width: 34px;
  }
  .model-card.selected::after {
    width: 4px;
    height: 4px;
    right: 4px;
    top: 4px;
  }
  .chart-panel {
    margin-top: 10px;
  }
  .chart-head {
    padding: 16px 14px 12px;
    gap: 10px;
  }
  .chart-head h2 {
    font-size: 1.55rem;
  }
  .field-tab {
    padding: 6px 9px;
    font-size: 0.82rem;
  }
  .field-label {
    font-size: 0.78rem;
  }
  .habitat-line {
    gap: 5px;
  }
  .cycle {
    padding: 7px 11px;
    gap: 3px;
  }
  .cycle-label {
    display: none;
  }
  .stage {
    font-size: 0.77rem;
    padding: 2px 3px;
    gap: 3px;
  }
  .stage img {
    width: 20px;
    height: 20px;
  }
  .separator {
    width: 8px;
  }
  .chart-body {
    padding: 13px 13px 9px;
  }
  .branch-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .branch {
    min-height: 46px;
    padding: 5px 7px;
  }
  .branch img {
    width: 29px;
    height: 29px;
  }
  .branch strong {
    font-size: 0.87rem;
  }
  .branch small {
    font-size: 0.76rem;
    margin-top: 1px;
  }
  .route-instruction {
    font-size: 0.85rem;
    margin: 7px 0 12px;
  }
  .step-head h3,
  .chart-body h3 {
    font-size: 1.1rem;
  }
  .step-head {
    gap: 5px;
  }
  .adults {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .adult-card {
    min-height: 70px;
    grid-template-columns: minmax(38px, 0.6fr) minmax(0, 1.4fr);
    gap: 6px;
  }
  .adult-card strong {
    font-size: 0.92rem;
  }
  .tier {
    font-size: 0.72rem;
    margin-top: 2px;
  }
  .card-hint {
    font-size: 0.67rem;
  }
  .related {
    margin-top: 10px;
    padding-top: 7px;
  }
  .related button,
  .small-links button,
  .text-link {
    font-size: 0.82rem;
  }
  .small-links {
    gap: 10px;
  }
  .footer {
    font-size: 0.74rem;
    align-items: flex-start;
    padding: 17px 0;
    gap: 8px;
  }
  .footer .text-link {
    padding: 0;
    white-space: nowrap;
    font-size: 0.75rem;
  }
  .intro {
    margin: 22px 0 15px;
  }
  .intro h1 {
    font-size: 2.35rem;
  }
  .intro p {
    font-size: 0.93rem;
  }
  .compare-controls,
  .index-controls {
    gap: 7px;
  }
  .control {
    min-width: 0;
    flex: 1 1 110px;
  }
  .control select,
  .control input {
    width: 100%;
    padding-left: 8px;
    font-size: 0.9rem;
  }
  .pair th,
  .pair td {
    padding: 8px 7px;
    font-size: 0.83rem;
  }
  .pair th {
    width: 24%;
  }
  .pair .model-top {
    padding: 10px 6px;
    width: 38%;
  }
  .model-top div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 0.96rem;
  }
  .model-top img {
    height: 42px;
    width: 42px;
  }
  .pair .symbol-img {
    display: block;
    margin: 0;
    width: 25px;
    height: 25px;
  }
  .compare-summary {
    padding: 10px 9px;
    font-size: 0.85rem;
  }
  .desktop-coverage {
    display: none;
  }
  .mobile-coverage {
    display: block;
  }
  .mobile-coverage .coverage-row {
    padding: 9px 0;
    border-bottom: 1px solid #dfe7dd;
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 7px;
    align-items: center;
    font-size: 0.86rem;
  }
  .coverage-row button {
    text-align: left;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 750;
  }
  .coverage-row small {
    display: block;
  }
  .panel-pad,
  .sheet-inner {
    padding: 15px;
  }
  .sheet-top {
    padding: 12px 14px;
  }
  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .character-card {
    padding: 6px;
  }
  .character-card strong {
    font-size: 0.91rem;
  }
  .character-card small {
    font-size: 0.72rem;
  }
}
@media (max-width: 374px) {
  .wrap {
    width: calc(100% - 20px);
  }
  .hero p {
    font-size: 0.8rem;
  }
  .cycle {
    gap: 0;
  }
  .desktop-small {
    display: none;
  }
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .view-switch button {
    padding: 6px 7px;
  }
  .stage {
    font-size: 0.72rem;
  }
  .adult-card {
    grid-template-columns: 35px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.gm-row > [role="cell"] {
  display: flex;
  min-width: 0;
  border-right: 1px solid #e3e8df;
  border-bottom: 1px solid #e3e8df;
}
.edition-cover {
  width: 95px;
  height: 95px;
  flex: none;
  background: #fff;
  border-radius: 10px;
}
.edition-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.inline-character {
  display: inline-block;
  text-align: left;
  color: #265c50;
  font-weight: 700;
  padding: 0;
  text-underline-offset: 0.2em;
}
.inline-character:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .model-card.selected {
    box-shadow: inset 0 0 0 0.7px #2d684c;
  }
  .special-button {
    font-size: 0.84rem;
  }
  .special-list {
    gap: 5px;
  }
  .special-button img {
    width: 32px;
    height: 32px;
  }
  .model-card span {
    padding-right: 1px;
  }
}
.calc-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
}
.calc-controls label span {
  color: #3b584c;
  font-size: 0.85rem;
}
.calc-controls input {
  width: 100%;
  padding: 8px 10px;
}
.predicted-result {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #b4c9b5;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  width: 100%;
  text-align: left;
}
.predicted-result .portrait {
  width: 76px;
  height: 76px;
}
.predicted-result small,
.predicted-result strong {
  display: block;
}
.predicted-result small {
  color: var(--muted);
  font-size: 0.8rem;
}
.predicted-result strong {
  font: 750 1.45rem var(--title);
  letter-spacing: -0.04em;
}
@media (max-width: 425px) {
  .calc-controls {
    gap: 5px;
  }
  .calc-controls label span {
    font-size: 0.75rem;
  }
  .chart-body .small-links {
    gap: 9px;
  }
}
.hero-art .featured {
  position: absolute;
  pointer-events: auto;
  z-index: 2;
  padding: 0;
  background: transparent;
  width: 26%;
  height: 64%;
  border-radius: 30%;
  filter: drop-shadow(0 5px 1px #103b3540);
}
.hero-art .featured:hover img,
.hero-art .featured:focus-visible img {
  transform: translateY(-4px);
}
.hero-art .featured img {
  position: static;
  width: 100%;
  height: 100%;
  filter: none;
  transition: transform 0.15s ease;
}
.hero-art .featured.hero-center {
  width: 34%;
  height: 80%;
  z-index: 3;
}
.sheet-back {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  padding: 7px 4px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.sheet-top h2 {
  flex: 1;
}
.sheet-top .close {
  flex: none;
}
@media (max-width: 760px) {
  .hero-art .featured.hero-center {
    width: 86%;
    height: 66%;
  }
  .hero-art .featured.hero-left,
  .hero-art .featured.hero-right {
    display: none;
  }
}

/* Feeding routes and the one-cell planner */
.bowl-symbol {
  width: 14px;
  height: 8px;
  border: 1.7px solid;
  border-radius: 1px 1px 8px 8px;
  margin-top: 4px;
}
.bowl-symbol:before {
  content: "";
  width: 7px;
  border-top: 1.5px solid;
  position: absolute;
  top: -4px;
  right: 0;
  transform: rotate(-17deg);
}
.food-sprite {
  object-fit: contain;
  image-rendering: pixelated;
  width: 32px;
  height: 32px;
  flex: none;
}
.food-panel .chart-head {
  padding-bottom: 14px;
}
.food-toolbar {
  background: #f2f6ed;
  border-block: 1px solid #dce5da;
  padding: 12px 25px;
  display: flex;
  gap: 25px;
  align-items: center;
}
.food-target {
  max-width: 300px;
  flex: 1 0 220px;
}
.food-target select {
  width: 100%;
}
.food-toolbar p {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.94rem;
}
.food-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 16px 0 18px;
}
.food-catalog,
.food-example,
.food-planner,
.neutral-diet {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 16px;
}
.food-catalog-head,
.neutral-title,
.strip-heading,
.planner-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.food-catalog-head > .food-sprite,
.neutral-title > img {
  width: 43px;
  height: 43px;
  object-fit: contain;
  image-rendering: pixelated;
}
.food-catalog-head p,
.neutral-title p {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.88rem;
}
.food-group {
  margin-top: 16px;
}
.food-group h4,
.food-example h4,
.neutral-options h4 {
  font: 700 0.96rem/1.3 var(--body);
  letter-spacing: 0;
}
.food-group ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.food-row {
  display: flex;
  gap: 9px;
  align-items: center;
  border-top: 1px solid #e4e9e1;
  padding: 7px 0;
}
.food-row:last-child {
  padding-bottom: 0;
}
.food-row-copy {
  min-width: 0;
}
.food-row-copy b,
.food-row-copy small {
  display: block;
}
.food-row-copy b {
  font-size: 0.94rem;
}
.food-row-copy small {
  font-size: 0.81rem;
  color: #52685a;
}
.food-tile {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: #f4f6ec;
  border-radius: 8px;
}
.food-points {
  display: inline-block;
  border-radius: 6px;
  padding: 3px 6px;
  white-space: nowrap;
  background: #e9f3db;
  color: #315237;
  font-weight: 750;
  font-size: 0.78rem;
}
.food-row .food-points {
  margin-left: auto;
}
.food-plan-column {
  display: grid;
  gap: 11px;
}
.food-example,
.food-strip {
  background: #f3f7eb;
}
.food-formula {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.food-formula .food-sprite {
  height: 27px;
  width: 27px;
}
.formula-item,
.formula-result {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.formula-item b,
.formula-result b {
  color: #335c3b;
}
.math-sign {
  color: #657867;
}
.food-example .food-formula {
  margin-top: 9px;
}
.food-strip {
  padding: 10px 14px;
  margin: 10px 0 17px;
  border: 1px solid #d4dfc9;
  border-radius: 10px;
}
.strip-heading,
.planner-title {
  justify-content: space-between;
  flex-wrap: wrap;
}
.strip-heading {
  margin-bottom: 5px;
}
.strip-heading > b {
  font-size: 0.91rem;
}
.food-link {
  color: #246254;
  font-weight: 700;
  font-size: 0.86rem;
}
.chart-food-link {
  margin: 9px 0;
}
.neutral-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.neutral-strip p {
  font-size: 0.86rem;
  color: var(--muted);
}
.food-planner {
  background: #f2f7f4;
}
.planner-title > strong {
  font-size: 0.89rem;
  color: #295a49;
}
.food-meter {
  display: flex;
  gap: 4px;
  margin: 11px 0 6px;
}
.food-meter i {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #d6e3d9;
}
.food-meter .lit {
  background: #42825b;
}
.planner-hint,
.portion-log {
  font-size: 0.86rem;
  color: var(--muted);
}
.portion-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}
.portion-button {
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: left;
  min-height: 39px;
  padding: 4px 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.81rem;
  font-weight: 650;
}
.portion-button:hover:not(:disabled) {
  border-color: #6f916c;
  background: #eef6e5;
}
.portion-button b {
  margin-left: auto;
  color: #285d3d;
}
.portion-button > .food-sprite {
  width: 23px;
  height: 23px;
}
.planner-actions {
  display: flex;
  gap: 13px;
}
.planner-actions button {
  font-size: 0.81rem;
}
.food-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
}
.food-note summary {
  cursor: pointer;
  font-weight: 650;
  color: #345f4d;
}
.food-note p {
  margin-top: 5px;
}
.food-references {
  border-top: 1px solid #dce5dc;
  padding-top: 12px;
  margin-top: 15px;
}
.food-references .source-links {
  margin: 5px 0;
}
.food-target-route {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cadbc3;
  background: #f4f8ee;
  border-radius: 10px;
  padding: 12px;
  margin-top: 14px;
}
.food-target-route > .portrait {
  width: 62px;
  flex: none;
}
.food-target-route div > p {
  font-size: 0.89rem;
  margin-top: 3px;
}
.food-target-route > button {
  margin-left: auto;
  flex: none;
}
.food-caution {
  display: block;
  margin-top: 3px;
}
.neutral-diet {
  margin: 14px 0;
}
.neutral-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.neutral-options section {
  border: 1px solid #dae3d6;
  border-radius: 9px;
  padding: 10px;
}
.neutral-options h4 {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.neutral-options .food-sprite {
  width: 25px;
  height: 25px;
}
.neutral-options p {
  font-size: 0.89rem;
  color: var(--muted);
  margin-top: 5px;
}
.route-food-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 9px 0;
}
.route-steps + .food-strip {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .topbar .navigation {
    gap: 1px;
  }
  .topbar .navigation a {
    font-size: 0.79rem;
    padding: 8px 2px;
    gap: 4px;
  }
  .food-toolbar {
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .food-target {
    max-width: none;
    flex-basis: 100%;
  }
  .food-toolbar p {
    font-size: 0.83rem;
  }
  .food-columns {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 10px 0 14px;
  }
  .food-catalog,
  .food-example,
  .food-planner,
  .neutral-diet {
    padding: 11px;
  }
  .food-target-route {
    flex-wrap: wrap;
    gap: 7px;
  }
  .food-target-route > .portrait {
    width: 42px;
  }
  .food-target-route > div {
    flex: 1;
    min-width: 170px;
  }
  .food-target-route > button {
    margin-left: 0;
  }
  .food-strip {
    padding: 8px 10px;
  }
  .food-formula {
    gap: 4px 6px;
    font-size: 0.81rem;
  }
  .food-formula .food-sprite {
    width: 22px;
    height: 22px;
  }
  .neutral-options {
    grid-template-columns: 1fr;
  }
  .food-group {
    margin-top: 10px;
  }
  .food-row {
    padding: 5px 0;
  }
  .food-panel .chart-body {
    padding-bottom: 13px;
  }
}
@media (max-width: 420px) {
  .navigation .nav-symbol {
    display: none;
  }
  .food-target-route > div {
    min-width: 0;
  }
  .food-target-route > button {
    flex-basis: 100%;
    text-align: left;
  }
  .food-strip .strip-heading {
    gap: 4px;
  }
}

/* The Young branches are the columns and each care outcome is a row. */
.family-0 {
  --family-strong: #e3e0f7;
  --family-pale: #f5f3fc;
  --family-edge: #cbc6e6;
}
.family-1 {
  --family-strong: #f9e0ec;
  --family-pale: #fff4f8;
  --family-edge: #e8c3d3;
}
.family-2 {
  --family-strong: #f9e5bd;
  --family-pale: #fff8e9;
  --family-edge: #e6cfa4;
}
.family-3 {
  --family-strong: #cfecef;
  --family-pale: #eff9f9;
  --family-edge: #bbdce0;
}
.care-mark {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  flex: none;
}
.care-legend,
.care-counts,
.care-count,
.care-legend li,
.care-input-label {
  display: flex;
  align-items: center;
}
.care-legend {
  margin: 9px 0 13px;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  gap: 7px 20px;
}
.care-legend li {
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 650;
}
.care-counts {
  flex-wrap: wrap;
  gap: 4px 7px;
  vertical-align: middle;
}
.care-count {
  gap: 2px;
  white-space: nowrap;
  font: 750 0.91rem/1 var(--body);
  color: #204c55;
}
.care-count .care-mark {
  width: 21px;
  height: 21px;
}
.adult-card .care-counts,
.predicted-result .care-counts,
.food-target-route .care-counts {
  margin-top: 6px;
}
.care-input-label {
  gap: 4px;
  min-height: 32px;
}
.chart-reading,
.chart-count-note,
.field-food-key > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.field-start {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 25px;
  background: #f6f8f1;
  border-bottom: 1px solid #dfe5d9;
}
.field-cell {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
.field-start h3 {
  font-size: 1.04rem;
}
.field-start p {
  color: #41584b;
  font-size: 0.92rem;
  margin: 3px 0 0;
  line-height: 1.4;
}
.field-start .field-models {
  font-size: 0.84rem;
  color: #52685a;
}
.field-models a,
.shared-secret a {
  color: #285e4d;
  text-underline-offset: 2px;
}
.reference-button {
  margin-left: auto;
  flex: none;
  border: 1px solid #b7cabb;
  border-radius: 8px;
  background: #fff;
  color: #2e5d49;
  padding: 8px 11px;
  font-weight: 680;
  font-size: 0.87rem;
}
.reference-button:hover {
  background: #eaf4e4;
}
.route-steps .field-cell {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
}
.chart-alias,
.point-comparison {
  display: block;
  color: #4e6257;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}
.chart-food-name .point-comparison,
.finder-card .point-comparison {
  color: #485639;
  font-weight: 650;
}
.point-tip {
  font-size: 0.87rem;
  color: #3d5546;
  line-height: 1.45;
  margin-top: 7px;
}
.planner-readings {
  margin: 10px 0 6px;
}
.planner-readings > span {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  margin-bottom: 4px;
}
.planner-readings > div,
.reference-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.planner-readings button {
  padding: 5px 9px;
}
.chart-reference h3 {
  margin-top: 0;
}
.reference-controls,
.reference-credit {
  display: flex;
  gap: 7px 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.reference-controls {
  margin: 10px 0;
}
.reference-controls .view-switch {
  margin-left: auto;
}
.reference-image {
  overflow: auto;
  max-height: 58dvh;
  border: 1px solid #ced9ce;
  background: white;
  border-radius: 8px;
}
.reference-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 58dvh;
  display: block;
  margin: auto;
}
.reference-image.full-size img {
  max-width: none;
  max-height: none;
  min-width: 100%;
  margin: 0;
}
.reference-credit {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.83rem;
}
.reference-credit a {
  color: #285e4d;
}
dialog:has(.chart-reference) {
  width: min(880px, calc(100% - 24px));
}
.chart-table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid #cdd9d2;
  border-radius: 12px;
}
.care-matrix {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.care-matrix th,
.care-matrix td {
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  text-align: center;
  vertical-align: middle;
}
.care-matrix tr > :last-child {
  border-right: 0;
}
.care-matrix tbody tr:last-child > * {
  border-bottom: 0;
}
.care-matrix thead th {
  background: var(--family-strong, #edf2e9);
}
.care-matrix td {
  background: var(--family-pale);
}
.care-matrix .chart-axis,
.care-matrix .chart-care-row {
  width: 16%;
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 #d6dfd5;
  background: #f4f6ef;
}
.care-matrix .chart-axis {
  padding: 8px;
  color: #39584b;
  font-size: 0.91rem;
}
.chart-care-row .care-counts {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.row-care-name {
  display: block;
  font: 700 0.85rem/1.2 var(--body);
  margin: 0 0 5px;
}
.chart-branch-button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 3px 10px;
  min-height: 90px;
}
.chart-branch-button .chart-young {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
}
.chart-branch-button strong {
  font: 750 1.03rem/1.1 var(--title);
  letter-spacing: -0.025em;
}
.chart-branch-button small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.84rem;
  color: #40514e;
  font-weight: 550;
}
.chart-branch-button small img {
  width: 18px;
  height: 18px;
}
.care-matrix .gm-item {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 3px;
  min-height: 56px;
  font: 650 0.94rem/1.18 var(--body);
  color: #253e3d;
  overflow-wrap: anywhere;
}
.care-matrix .gm-item img {
  width: 37px;
  height: 37px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
.care-matrix button:hover,
.care-matrix button:focus-visible {
  background: #ffffff65;
}
.care-matrix button:focus-visible {
  outline-offset: -3px;
}
.care-matrix .gm-item small {
  display: block;
  font-size: 0.79rem;
  color: #77523f;
}
.chart-count-note {
  margin: 8px 0 14px;
}
.swipe-matrix {
  display: none;
}
.field-food-key {
  margin: 21px 0 9px;
}
.field-food-key .step-head {
  margin-bottom: 4px;
}
.field-food-key > p {
  margin-bottom: 9px;
}
.chart-food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.chart-food-family {
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--family-edge);
  background: var(--family-pale);
}
.chart-food-family header {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--family-edge);
}
.chart-food-family header > .food-sprite {
  width: 32px;
  height: 32px;
}
.chart-food-family h4 {
  font-size: 1.06rem;
}
.chart-food-family header span {
  display: block;
  color: #495e58;
  font-size: 0.86rem;
  font-weight: 650;
  margin-top: 2px;
}
.chart-food-groups {
  display: grid;
  gap: 9px;
  padding-top: 10px;
}
.chart-food-groups h5 {
  margin: 0;
  font: 700 0.9rem/1.2 var(--body);
  color: #304b41;
}
.hunt-place,
.chart-food-name small {
  display: block;
  color: #4d645b;
  font-size: 0.8rem;
}
.hunt-place {
  margin-top: 2px;
}
.chart-food-groups ul {
  list-style: none;
  padding: 0;
  margin: 3px 0 0;
}
.chart-food-groups li {
  min-width: 0;
}
.chart-food-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  padding: 2px;
  text-align: left;
  border-radius: 5px;
}
.chart-food-row:hover,
.chart-food-row:focus-visible {
  background: #ffffffa0;
}
.chart-food-row .food-sprite {
  width: 27px;
  height: 27px;
}
.chart-food-name {
  font-size: 0.92rem;
  font-weight: 630;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.chart-food-name small {
  font-weight: 500;
}
.chart-food-row .food-points {
  margin-left: auto;
  background: #ffffffa1;
}
.small-example,
.neutral-key {
  font-size: 0.85rem;
  line-height: 1.42;
  color: #3e5649;
}
.small-example {
  margin-top: 10px;
  border-top: 1px solid var(--family-edge);
  padding-top: 8px;
}
.chart-family-foot {
  margin-top: 7px;
}
.field-food-key .neutral-key {
  margin: 8px 0;
}
.branch-foods {
  margin: 8px 0 16px;
}
.branch-foods .chart-food-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.shell-secret {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid #d9d4e4;
  background: #f6f4fa;
  margin-top: 15px;
  font-size: 0.92rem;
}
.shell-secret img {
  width: 52px;
  height: 52px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
}
.shell-secret h3 {
  margin: 2px 0 3px;
  font-size: 1.14rem;
}
.secret-name {
  padding: 0;
  color: #514174;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shared-secret {
  background: #f3f5ee;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #405646;
}
.source-cover .catalog-alias {
  display: block;
}
.catalog-alias {
  font-weight: 650;
}
.route-steps .care-counts {
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .care-matrix .gm-item {
    flex-direction: column;
    gap: 3px;
  }
  .chart-food-grid {
    gap: 7px;
  }
  .chart-food-family {
    padding: 10px;
  }
}
@media (max-width: 700px) {
  .care-legend li {
    font-size: 0.81rem;
  }
  .care-legend {
    gap: 4px 10px;
    margin: 6px 0 9px;
  }
  .care-legend .care-mark {
    width: 21px;
    height: 21px;
  }
  .care-matrix {
    min-width: 560px;
  }
  .care-matrix .chart-axis,
  .care-matrix .chart-care-row {
    width: 88px;
  }
  .chart-branch-button strong {
    font-size: 0.94rem;
  }
  .chart-branch-button small {
    font-size: 0.81rem;
  }
  .care-matrix .gm-item {
    font-size: 0.86rem;
    min-height: 56px;
  }
  .chart-count-note,
  .chart-reading {
    font-size: 0.87rem;
  }
  .chart-food-grid {
    grid-template-columns: 1fr;
  }
  .chart-food-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }
  .branch-foods .chart-food-groups {
    column-gap: 14px;
  }
  .chart-food-name {
    font-size: 0.85rem;
  }
  .chart-food-family h4 {
    font-size: 1.03rem;
  }
  .field-start {
    padding: 10px 13px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 8px;
  }
  .field-start .field-cell {
    width: 30px;
    height: 30px;
  }
  .field-start p {
    font-size: 0.88rem;
  }
  .field-start .reference-button {
    grid-column: 2;
    justify-self: start;
    margin: 3px 0 0;
  }
  .chart-care-row .care-counts {
    flex-direction: column;
    gap: 2px;
  }
  .adult-card .care-count .care-mark {
    width: 18px;
    height: 18px;
  }
  .food-target-route .care-mark {
    width: 21px;
    height: 21px;
  }
}
@media (max-width: 625px) {
  .swipe-matrix {
    display: block;
    margin: 4px 0;
    color: var(--muted);
    font-size: 0.8rem;
  }
}
@media (max-width: 365px) {
  .chart-food-groups,
  .branch-foods .chart-food-groups {
    grid-template-columns: 1fr;
  }
  .care-input-label .care-mark {
    width: 17px;
    height: 17px;
  }
}

.guide-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #e8eee2;
  border: 1px solid #d4decf;
  border-radius: 10px;
}
.guide-tabs a {
  padding: 7px 14px;
  border-radius: 7px;
  text-decoration: none;
  color: #425b4f;
  font-size: 0.92rem;
  font-weight: 700;
}
.guide-tabs a[aria-current="page"] {
  background: white;
  color: #204e3e;
  box-shadow: 0 1px 3px #203d2526;
}
.finder-panel .chart-head {
  align-items: flex-end;
}
.finder-search {
  flex: 0 1 310px;
}
.finder-search input {
  width: 100%;
}
.finder-controls {
  background: #f3f6ef;
  padding: 12px 25px;
  display: grid;
  gap: 9px;
  border-block: 1px solid #dce3d8;
}
.finder-controls > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.finder-controls > div > strong {
  flex: 0 0 44px;
  font-size: 0.87rem;
}
.finder-choices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.finder-choices button {
  padding: 7px 12px;
}
.finder-total {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 8px;
}
.finder-list + .finder-list {
  margin-top: 17px;
}
.finder-list h3 {
  margin-bottom: 8px;
}
.finder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.finder-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  background: white;
  text-align: left;
}
.finder-card:hover,
.ingredient-link:hover,
.catalog-source-button:hover {
  background: #f1f7e9;
  border-color: #779882;
}
.finder-tile {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f5e7;
}
.finder-tile .food-sprite {
  width: 33px;
  height: 33px;
}
.finder-card-text {
  min-width: 0;
}
.finder-card-text strong,
.finder-card-text small {
  display: block;
  line-height: 1.3;
}
.finder-card-text strong {
  font: 700 0.97rem/1.23 var(--body);
}
.finder-card-text small {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}
.finder-empty {
  padding: 18px 0;
}
.finder-empty p {
  margin: 4px 0 8px;
  color: var(--muted);
}
.catalog-source-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  padding: 3px;
}
.source-cover {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
}
.source-cover .finder-tile {
  width: 72px;
  height: 72px;
}
.source-cover img.food-sprite {
  width: 52px;
  height: 52px;
}
.source-cover .overline {
  font-size: 0.78rem;
}
.source-cover h3 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}
.source-cover p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}
.source-step {
  padding: 12px 13px;
  background: #f5f8ef;
  border: 1px solid #d6e2cf;
  border-radius: 10px;
  margin: 10px 0;
}
.sheet-inner .source-step h3 {
  font-size: 1.1rem;
  margin: 0;
}
.source-step p {
  margin: 6px 0 0;
  line-height: 1.46;
}
.source-step .device-path {
  font-size: 0.87rem;
  font-weight: 750;
  color: #315a43;
}
.source-unlocks,
.source-feed {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 12px;
  color: #425b4c;
}
.source-route-links,
.ingredient-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 10px 0;
}
.ingredient-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 700;
  text-align: left;
}
.ingredient-link > span > small {
  display: block;
  font-size: 0.79rem;
  font-weight: 550;
  color: var(--muted);
}
.sheet-inner .source-related-title {
  font-size: 1rem;
  margin-top: 15px;
}
.neutral-food-zero {
  font: 700 1.2rem/1 var(--title);
  color: #4a624a;
}
@media (max-width: 850px) {
  .finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .finder-controls {
    padding: 9px 13px;
  }
  .finder-controls > div {
    align-items: flex-start;
    gap: 6px;
  }
  .finder-controls > div > strong {
    flex-basis: 39px;
    padding-top: 6px;
  }
  .finder-choices button {
    padding: 6px 8px;
    font-size: 0.84rem;
  }
  .finder-panel .chart-head {
    align-items: stretch;
  }
  .finder-search {
    flex: 1 1 185px;
    max-width: none;
  }
  .finder-card {
    gap: 6px;
    padding: 7px;
  }
  .finder-tile {
    width: 34px;
    height: 34px;
  }
  .finder-tile .food-sprite {
    width: 28px;
    height: 28px;
  }
  .finder-card-text strong {
    font-size: 0.9rem;
  }
  .source-cover .finder-tile {
    width: 55px;
    height: 55px;
  }
  .source-cover img.food-sprite {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 425px) {
  .finder-grid {
    grid-template-columns: 1fr;
  }
  .finder-card {
    padding: 7px 9px;
  }
  .finder-card-text small {
    font-size: 0.83rem;
  }
  .finder-card-text strong {
    font-size: 0.95rem;
  }
}
.branch-route-lead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 13px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.branch-route-lead .route-instruction {
  margin: 0;
}

/* A single search entry point, with the same shell context as the charts. */
.search-guide-link,
.hero-search,
.lookup-result,
.quick-meal,
.meal-sum,
.meal-part,
.route-actions,
.browse-links {
  display: flex;
  align-items: center;
}
.search-guide-link {
  gap: 9px;
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
  border-radius: 9px;
  background: #e8f2e2;
  padding: 9px 13px;
  min-height: 44px;
  white-space: nowrap;
}
.search-guide-link:hover,
.search-guide-link[aria-current="page"] {
  background: #d7eacb;
}
.hero-search {
  margin-top: 16px;
  padding: 3px 3px 3px 13px;
  gap: 8px;
  width: min(100%, 420px);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
}
.hero-search input {
  background: transparent;
  border: 0;
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 5px;
  font-size: 1rem;
}
.hero-search input::placeholder,
.lookup-controls input::placeholder {
  color: #596d66;
  opacity: 1;
}
.hero-search button {
  min-height: 42px;
  border-radius: 7px;
  padding: 7px 14px;
  background: #d9efbf;
  color: #183d30;
  font-size: 0.98rem;
  font-weight: 750;
}
.hero-search button:hover {
  background: #c3e4a8;
}
.hero-search:focus-within {
  box-shadow: 0 0 0 3px #99cfa8;
}
.compact-model {
  display: none;
}
.fold > summary {
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--accent);
  padding: 11px 0;
  min-height: 44px;
  line-height: 1.45;
}
.fold > summary:focus-visible {
  outline: 3px solid #256dad;
  outline-offset: 2px;
}
.fold > summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fold[open] > summary {
  color: var(--deep);
}
.growth-start {
  padding: 0 25px 8px;
  display: flex;
  align-items: baseline;
  gap: 8px 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.growth-start > .fold {
  flex: 1 1 240px;
}
.growth-start .cycle,
.growth-start .field-start {
  padding: 11px;
  border-radius: 7px;
}
.growth-start .reference-button {
  min-height: 44px;
}
.quick-meal {
  flex-wrap: wrap;
  gap: 8px 16px;
  background: #f2f7ea;
  border: 1px solid #d6e2cd;
  border-radius: 11px;
  padding: 11px 13px;
  margin: 8px 0 2px;
}
.meal-goal strong,
.meal-goal small {
  display: block;
}
.meal-goal small {
  color: #506457;
  font-size: 0.85rem;
}
.meal-sum {
  flex-wrap: wrap;
  gap: 6px;
  color: #3d5f50;
}
.meal-part {
  gap: 6px;
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 650;
  border: 1px solid #c5d6c4;
  background: white;
  border-radius: 8px;
  padding: 4px 8px;
  min-height: 42px;
}
.meal-part:hover {
  border-color: #567f66;
  background: #f5fbef;
}
.meal-part img {
  width: 30px;
  height: 30px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
}
.meal-part b {
  font-size: 0.88rem;
  color: #385e39;
}
.meal-total {
  color: #2b533c;
  font-size: 0.94rem;
  white-space: nowrap;
}
.neutral-meal > span {
  flex: 1;
  min-width: 150px;
  font-size: 0.94rem;
}
.branch-food-list {
  margin: 0 0 12px;
}
.route-steps li > div {
  flex: 1;
  min-width: 0;
}
.route-steps h4 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 1px 0 5px;
}
.route-steps .quick-meal {
  margin: 8px 0 1px;
  gap: 8px;
}
.route-actions {
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}
.route-actions button {
  min-height: 44px;
}
.route-reference,
.index-filters {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.index-filters > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.index-filters .control {
  flex: 1;
  max-width: 300px;
  min-width: min(160px, 100%);
}
.lookup-page {
  margin-bottom: 32px;
}
.lookup-controls {
  display: grid;
  grid-template-columns: minmax(185px, 2fr) minmax(165px, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.lookup-controls input,
.lookup-controls select {
  width: 100%;
}
.lookup-start,
.lookup-empty {
  padding: 24px 0;
}
.lookup-start h2,
.lookup-empty h2,
.lookup-group h2 {
  font-size: clamp(1.22rem, 2.6vw, 1.55rem);
}
.lookup-empty p {
  margin: 8px 0 15px;
}
.browse-links {
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 12px;
}
.lookup-count {
  margin: 16px 0 2px;
  font-size: 0.94rem;
  color: var(--muted);
}
.lookup-group {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.lookup-group h2 span {
  color: var(--muted);
  font: 600 0.86rem var(--body);
  margin-left: 3px;
}
.lookup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 8px;
  margin-top: 9px;
}
.lookup-result {
  text-align: left;
  text-decoration: none;
  gap: 11px;
  min-width: 0;
  min-height: 62px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 7px 12px 7px 8px;
  border-radius: 11px;
}
.lookup-result:hover {
  background: #eff6ea;
  border-color: #7a9c83;
}
.lookup-result b,
.lookup-result small {
  display: block;
  overflow-wrap: anywhere;
}
.lookup-result small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  margin-top: 3px;
}
.lookup-art {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: #f0f5ea;
  border-radius: 8px;
  overflow: hidden;
}
.lookup-art img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}
.lookup-wider {
  margin-top: 14px;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .topbar {
    gap: 9px;
  }
  .topbar .navigation {
    gap: 2px;
  }
  .topbar .navigation a {
    padding-inline: 7px;
  }
  .topbar .nav-symbol:not(.search-symbol) {
    display: none;
  }
}
@media (max-width: 760px) {
  .masthead .search-guide-link {
    margin-left: auto;
    min-height: 44px;
    font-size: 0.9rem;
    padding: 8px 11px;
  }
  .masthead .navigation {
    justify-content: space-between;
    gap: 0;
    padding: 2px 0;
  }
  .masthead .navigation a {
    flex: 0 1 auto;
    font-size: 0.875rem;
    min-height: 44px;
    line-height: 1.2;
    padding: 6px 4px;
  }
  .masthead .navigation .nav-symbol {
    display: none;
  }
  .hero-text {
    width: 100%;
    padding: 18px 15px;
  }
  .hero-text h1,
  .hero-text p {
    max-width: 72%;
  }
  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  .hero-art {
    inset: 0 0 48px 72%;
    z-index: 3;
  }
  .hero-art .sun {
    width: clamp(65px, 18vw, 90px);
    height: clamp(65px, 18vw, 90px);
  }
  .hero-search {
    max-width: 420px;
    width: 100%;
    margin-top: 12px;
  }
  .model-section {
    margin-top: 14px;
  }
  .model-section .models,
  .model-section .heading-row {
    display: none;
  }
  .compact-model {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    min-height: 57px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    padding: 5px 12px 5px 8px;
  }
  .compact-model img {
    width: 41px;
    height: 43px;
    object-fit: contain;
  }
  .compact-model strong,
  .compact-model small {
    display: block;
  }
  .compact-model small {
    font-size: 0.8rem;
    color: var(--muted);
  }
  .compact-model strong {
    font-size: 1rem;
    margin-top: 1px;
  }
  .compact-model b {
    margin-left: auto;
    color: var(--accent);
    font-size: 0.9rem;
  }
  .growth-start {
    padding: 0 13px 8px;
    gap: 0 8px;
  }
  .growth-start > .fold {
    flex: 1 1 180px;
  }
  .growth-start .reference-button {
    font-size: 0.86rem;
  }
  .quick-meal {
    padding: 9px 10px;
    gap: 7px;
  }
  .meal-sum {
    gap: 5px;
  }
  .meal-part {
    min-height: 44px;
  }
  .branch strong,
  .adult-card strong {
    font-size: 1rem;
  }
  .branch small,
  .tier,
  .control span,
  .chart-food-name {
    font-size: 0.875rem;
  }
  .control input,
  .control select,
  .hero-search input {
    font-size: 1rem;
    min-height: 44px;
  }
  .field-tab,
  .view-switch button,
  .choice,
  .page-btn,
  .bookmark,
  .guide-tabs a,
  .source-filter {
    min-height: 44px;
  }
  .reference-button,
  .chart-food-row,
  .portion-button,
  .finder-choices button {
    min-height: 44px;
  }
  .route-instruction,
  .food-toolbar p,
  .field-start p,
  .food-row-copy small,
  .small-example,
  .finder-card-text small {
    font-size: 0.94rem;
    line-height: 1.45;
  }
  .sheet .close,
  .close {
    min-width: 44px;
    min-height: 44px;
  }
  .food-columns {
    display: flex;
    flex-direction: column;
  }
  .food-plan-column {
    display: contents;
  }
  .food-example {
    order: -1;
  }
  .food-catalog {
    order: 0;
  }
  .food-planner {
    order: 1;
  }
  .lookup-controls {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 13px;
  }
  .lookup-grid {
    grid-template-columns: 1fr;
  }
  .lookup-result {
    min-height: 58px;
  }
  .lookup-wider .food-link,
  .browse-links .food-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .route-actions {
    gap: 6px;
  }
}
@media (min-width: 761px) and (max-width: 1030px) {
  .masthead .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 14px;
    height: auto;
    padding-top: 7px;
  }
  .masthead .brand {
    grid-area: 1/1;
    justify-self: start;
  }
  .masthead .search-guide-link {
    grid-area: 1/2;
    justify-self: end;
  }
  .masthead .navigation {
    grid-area: 2/1/3/-1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 1px;
    padding: 0 0 5px;
  }
  .masthead .navigation a {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    white-space: normal;
    padding: 5px 2px;
    gap: 3px;
  }
}
@media (max-width: 374px) {
  .masthead .navigation {
    display: grid;
    grid-template-columns: 0.9fr 0.69fr 1.12fr 1.03fr 1.36fr;
    width: 100%;
    gap: 0;
  }
  .masthead .navigation a {
    min-width: 0;
    padding: 5px 1px;
    white-space: normal;
    text-align: center;
    font-size: 0.82rem;
  }
  .hero-text h1,
  .hero-text p {
    max-width: 78%;
  }
  .hero-art {
    left: 78%;
  }
}

@media (max-width: 640px) {
  .index-controls .control {
    flex: 1 1 140px;
  }
  .index-controls .control.search {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sheet-list {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.needs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0.4rem 0 0.6rem;
}
.needs div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--white);
  display: grid;
  gap: 2px;
}
.needs b {
  font: 750 1.25rem/1.1 var(--title);
  color: var(--deep);
}
.needs span {
  font-size: 0.85rem;
  color: var(--muted);
}

.start-card {
  margin: 14px 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.start-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.start-head h2 {
  font-size: 1.15rem;
}
.start-card ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}
.start-card li b {
  color: var(--ink);
}
.footer-actions {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
}
html[data-theme="dark"] {
  color-scheme: dark;
  background: #0d1514;
  filter: invert(1) hue-rotate(180deg) brightness(0.93) contrast(0.96);
}
html[data-theme="dark"] img,
html[data-theme="dark"] video,
html[data-theme="dark"] canvas {
  filter: invert(1) hue-rotate(180deg);
}
@media print {
  html[data-theme="dark"] {
    filter: none;
    background: #fff;
  }
  html[data-theme="dark"] img {
    filter: none;
  }
  .masthead,
  .skip-link,
  .footer,
  .page-bar,
  .compare-actions,
  .hero-search,
  .start-card,
  .route-actions,
  .index-controls,
  .view-switch,
  dialog .close {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .wrap {
    width: 100%;
    margin: 0;
  }
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  section,
  table,
  tr,
  img,
  .character-card,
  .note {
    break-inside: avoid;
  }
  dialog[open] {
    position: static;
    display: block;
    border: 0;
    max-height: none;
    width: 100%;
    overflow: visible;
  }
  dialog::backdrop {
    display: none;
  }
}
html[data-theme="dark"] .hero-art img,
html[data-theme="dark"] .featured img {
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 6px 0 #102f314a);
}
html[data-theme="dark"] dialog {
  filter: invert(1) hue-rotate(180deg) brightness(0.93) contrast(0.96);
}
html[data-theme="dark"] dialog::backdrop {
  background: #000a;
}
@media print {
  html[data-theme="dark"] dialog {
    filter: none;
  }
  html[data-theme="dark"] .hero-art img {
    filter: none;
  }
}
html[data-theme="dark"] .hero {
  filter: invert(1) hue-rotate(180deg);
}
html[data-theme="dark"] .hero .hero-art img,
html[data-theme="dark"] .hero .featured img {
  filter: drop-shadow(0 6px 0 #102f314a);
}
@media print {
  html[data-theme="dark"] .hero {
    filter: none;
  }
}
/* My Lab Tama Search */
.lab-tabs {
  flex-wrap: wrap;
}
.lab-row h3 {
  margin: 16px 0 6px;
}
.lab-row h3 small {
  font-weight: 500;
  color: var(--muted, #5b6b66);
  font-size: 0.8rem;
}
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 7px;
}
.lab-tama.lab-exclusive {
  border-color: #b78ad6;
  background: #f7f0fc;
}
.lab-note .text-link {
  margin-left: 4px;
}
@media print {
  .lab-tabs {
    display: none;
  }
}
