/* 1. Fonts */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-var.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-var-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

/* 2. Tokens */
:root {
  --ink: #1d1b2b;
  --ink-2: #4b4860;
  --haem: #3a2b72;
  --haem-2: #5b4aa6;
  --haem-wash: #ebe8f7;
  --eosin: #b81d5b;
  --eosin-wash: #fbe3ee;
  --slide: #f6f5fb;
  --white: #ffffff;
  --rule: #dcd8ec;
  --iodine: #e8a33d;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;

  --t-xs: 0.75rem; --t-s: 0.875rem; --t-ui: 1rem; --t-body: 1.125rem; --t-lead: 1.3125rem;
  --t-h3: 1.3125rem; --t-h2: 1.875rem; --t-h1: 3rem; --t-hero: 3.75rem;
  --measure: 66ch;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-s: 3px; --r-m: 8px; --r-round: 999px;
  --wrap: 1240px;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--slide); color: var(--ink);
  font-family: var(--serif); font-size: var(--t-body); line-height: 1.62;
  font-variant-numeric: oldstyle-nums proportional-nums;
}
h1, h2, h3, h4 { font-family: var(--sans); color: var(--haem); line-height: 1.12; margin: 0 0 var(--s4); font-variant-numeric: lining-nums; }
h1 { font-size: var(--t-h1); font-weight: 760; font-stretch: 112%; letter-spacing: -0.015em; }
h2 { font-size: var(--t-h2); font-weight: 700; font-stretch: 106%; margin-top: var(--s7); }
h3 { font-size: var(--t-h3); font-weight: 650; margin-top: var(--s6); }
h4 { font-size: var(--t-body); font-weight: 650; margin-top: var(--s5); }
p, ul, ol, dl, table { margin: 0 0 var(--s4); }
a { color: var(--haem); text-decoration-color: color-mix(in srgb, var(--eosin) 55%, transparent); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--eosin); }
:focus-visible { outline: 3px solid var(--iodine); outline-offset: 2px; border-radius: 2px; }
img, svg { max-width: 100%; height: auto; }
strong { font-weight: 650; }
small, .small { font-size: var(--t-s); }
.muted { color: var(--ink-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--haem); color: var(--white); padding: var(--s3) var(--s4); z-index: 50; font-family: var(--sans); }
.skip:focus { left: var(--s4); }

/* 4. Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: var(--s2); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s7); align-items: start; }
.cols--left { grid-template-columns: 240px minmax(0, 1fr); }
.sticky { position: sticky; top: var(--s5); }
.section { padding: var(--s7) 0; }
.section--white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stack > * + * { margin-top: var(--s4); }
.grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* 5. Header and menu */
.masthead { background: var(--white); border-bottom: 1px solid var(--rule); }
.masthead__row { display: flex; align-items: center; gap: var(--s5); padding-top: var(--s4); padding-bottom: var(--s4); }
.logo { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--haem); flex: none; }
.logo svg { width: 46px; height: 46px; }
.logo__word { font-family: var(--sans); font-weight: 780; font-stretch: 116%; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1; }
.logo__tag { display: block; font-family: var(--sans); font-weight: 450; font-stretch: 100%; font-size: var(--t-xs); color: var(--ink-2); letter-spacing: 0; margin-top: 4px; }
.search { position: relative; flex: 1; max-width: 520px; margin-left: auto; }
.search input {
  width: 100%; font: 500 var(--t-ui)/1 var(--sans); color: var(--ink);
  padding: 12px 14px 12px 42px; border: 1.5px solid var(--rule); border-radius: var(--r-m); background: var(--slide);
}
.search input:focus { outline: none; border-color: var(--haem-2); background: var(--white); box-shadow: 0 0 0 3px var(--haem-wash); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--haem-2); }
.search__results {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: var(--s2) 0; list-style: none;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m); box-shadow: 0 14px 30px -18px rgba(29, 27, 43, .45);
  font-family: var(--sans); font-size: var(--t-ui);
}
.search__results a { display: block; padding: var(--s2) var(--s4); text-decoration: none; color: var(--ink); }
.search__results a:hover, .search__results a:focus { background: var(--haem-wash); }
.search__results small { display: block; color: var(--ink-2); font-size: var(--t-xs); }
.menu-toggle { display: none; font: 600 var(--t-ui) var(--sans); color: var(--haem); background: none; border: 1.5px solid var(--rule); border-radius: var(--r-m); padding: 10px 14px; }

.mainnav { background: var(--white); border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.mainnav > .wrap > ul { display: flex; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.mainnav__item { position: relative; }
.mainnav__item > a {
  display: block; padding: 14px 14px 13px; font-weight: 620; font-size: var(--t-ui); color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.mainnav__item > a:hover, .mainnav__item.is-open > a, .mainnav__item > a[aria-current="true"] { color: var(--haem); border-bottom-color: var(--eosin); }
.mainnav__panel {
  display: none; position: absolute; z-index: 30; left: 0; top: 100%; min-width: 300px; padding: var(--s3) 0; margin: 0; list-style: none;
  background: var(--white); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--r-m) var(--r-m);
  box-shadow: 0 18px 30px -22px rgba(29, 27, 43, .5);
}
.mainnav__panel a { display: block; padding: 8px var(--s5); color: var(--ink); text-decoration: none; font-size: var(--t-ui); }
.mainnav__panel a:hover { background: var(--haem-wash); color: var(--haem); }
.mainnav__item:hover .mainnav__panel, .mainnav__item.is-open .mainnav__panel, .mainnav__item:focus-within .mainnav__panel { display: block; }

.crumbs { font-family: var(--sans); font-size: var(--t-s); color: var(--ink-2); margin: var(--s5) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-2); }

/* 6. Home page */
.hero { background: var(--white); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s7); align-items: center; padding-top: var(--s7); padding-bottom: var(--s7); }
.hero h1 { font-size: var(--t-hero); font-stretch: 118%; max-width: 12ch; }
.hero__lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 36ch; }
.hero__links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

.field { position: relative; }
.field__view { display: block; width: 100%; max-width: 560px; margin-left: auto; }
.field__view .egg { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .field__view .drift { animation: drift 14s ease-in-out infinite alternate; }
  .field__view .drift:nth-of-type(2n) { animation-duration: 18s; animation-delay: -4s; }
}
@keyframes drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(6px, -5px) rotate(4deg); } }

.reader {
  background: var(--slide); border: 1.5px solid var(--rule); border-radius: var(--r-m); padding: var(--s5);
  font-family: var(--sans); margin-top: var(--s5);
}
.reader h2 { font-size: var(--t-h3); margin: 0 0 var(--s2); }
.reader p { font-family: var(--serif); font-size: var(--t-ui); color: var(--ink-2); }
.reader__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--s3); align-items: end; }
.reader label { display: grid; gap: 6px; font-size: var(--t-s); font-weight: 600; color: var(--ink); }
.reader input, .tool input, .tool select {
  font: 600 var(--t-body) var(--sans); color: var(--ink); width: 100%;
  padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: var(--r-m); background: var(--white);
  font-variant-numeric: lining-nums tabular-nums;
}
.reader__out { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px dashed var(--rule); }
.reader__epg { font-size: 2.25rem; font-weight: 760; font-stretch: 112%; color: var(--haem); font-variant-numeric: lining-nums tabular-nums; line-height: 1; }
.reader__epg small { font-size: var(--t-s); font-weight: 600; color: var(--ink-2); margin-left: 6px; }
.reader__verdict { font-family: var(--serif); font-size: var(--t-ui); margin: var(--s3) 0 0; color: var(--ink); }

.animals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.animal {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--s3); align-items: center; padding: var(--s5);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); text-decoration: none; color: var(--ink);
}
.animal img { width: 56px; height: 56px; }
.animal strong { display: block; font-family: var(--sans); font-size: var(--t-body); color: var(--haem); font-weight: 680; }
.animal span { font-family: var(--sans); font-size: var(--t-s); color: var(--ink-2); line-height: 1.35; display: block; margin-top: 2px; }
.animal:hover { background: var(--haem-wash); }

.matrix { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: var(--t-ui); background: var(--white); }
.matrix th, .matrix td { padding: 12px 10px; border-bottom: 1px solid var(--rule); text-align: center; }
.matrix thead th { font-size: var(--t-s); font-weight: 600; color: var(--ink-2); vertical-align: bottom; line-height: 1.25; }
.matrix tbody th { text-align: left; font-weight: 650; color: var(--haem); white-space: nowrap; }
.matrix tbody th small { display: block; font-weight: 450; color: var(--ink-2); white-space: normal; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; }
.dot--yes { background: var(--eosin); }
.dot--part { background: linear-gradient(90deg, var(--eosin) 50%, var(--eosin-wash) 50%); box-shadow: inset 0 0 0 1.5px var(--eosin); }
.dot--no { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s5); font-family: var(--sans); font-size: var(--t-s); color: var(--ink-2); margin-top: var(--s3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.legalgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.legalcard { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--haem); border-radius: var(--r-m); padding: var(--s5); }
.legalcard:nth-child(2) { border-top-color: var(--eosin); }
.legalcard h3 { margin: 0 0 var(--s2); font-size: var(--t-body); }
.legalcard p { font-size: var(--t-ui); margin: 0; color: var(--ink-2); }

/* 7. Section guides */
.pagehead { padding: var(--s6) 0 var(--s6); border-bottom: 1px solid var(--rule); background: var(--white); }
.pagehead__grid { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.pagehead__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--haem-wash); display: grid; place-items: center; box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7.5px var(--rule); }
.pagehead__icon img { width: 52px; height: 52px; }
.pagehead h1 { margin-bottom: var(--s3); }
.pagehead__lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 58ch; }
.pagehead__lead p:last-child { margin-bottom: 0; }

.subsections { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.subsections a {
  display: grid; grid-template-columns: 36px 1fr; gap: var(--s3); align-items: center; height: 100%;
  padding: var(--s3) var(--s4); background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m);
  font-family: var(--sans); font-weight: 620; font-size: var(--t-ui); text-decoration: none; color: var(--haem);
}
.subsections a:hover { border-color: var(--haem-2); }
.subsections img { width: 36px; height: 36px; }

.toc { font-family: var(--sans); font-size: var(--t-s); border-left: 2px solid var(--rule); padding-left: var(--s4); }
.toc h2 { font-size: var(--t-s); margin: 0 0 var(--s3); color: var(--ink-2); font-weight: 600; font-stretch: 100%; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 var(--s2); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--eosin); }

.entries-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4); margin-bottom: var(--s5); }
.entries-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); font-family: var(--sans); }
.filters button {
  font: 600 var(--t-s) var(--sans); color: var(--ink-2); background: var(--white); border: 1.5px solid var(--rule);
  border-radius: var(--r-round); padding: 6px 12px; cursor: pointer;
}
.filters button[aria-pressed="true"] { color: var(--white); background: var(--haem); border-color: var(--haem); }

/* 8. Product entries */
.entry-top { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--s7); padding: var(--s6) 0 var(--s7); align-items: start; }
.entry-top__pack { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m); padding: var(--s4); }
.entry-top__pack img { display: block; width: 100%; border-radius: var(--r-s); }
.entry-top__brand { font-family: var(--sans); font-weight: 600; font-size: var(--t-ui); margin: 0 0 var(--s2); }
.standfirst { font-size: var(--t-lead); color: var(--ink-2); margin-bottom: var(--s5); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); padding: 0; list-style: none; }
.badge { display: inline-block; font: 600 var(--t-s)/1.2 var(--sans); padding: 5px 10px; border-radius: var(--r-s); background: var(--haem-wash); color: var(--haem); }
.badge--legal { background: var(--eosin-wash); color: var(--eosin); }
.facts { display: grid; grid-template-columns: max-content 1fr; margin: 0; border-top: 2px solid var(--haem); font-family: var(--sans); font-size: var(--t-ui); }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { color: var(--ink-2); font-weight: 500; padding-right: var(--s5); }
.facts dd { color: var(--ink); font-weight: 560; }
.actives { display: grid; gap: var(--s4); }
.active { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m); padding: var(--s5); }
.active h3 { margin: 0; }
.active__group { font-family: var(--sans); font-size: var(--t-s); color: var(--eosin); font-weight: 600; margin: 4px 0 var(--s3); }
.active p:last-child { margin-bottom: 0; }
.legalbox { background: var(--haem); color: var(--white); border-radius: var(--r-m); padding: var(--s5) var(--s6); margin: var(--s6) 0; }
.legalbox h2 { color: var(--white); margin: 0 0 var(--s3); font-size: var(--t-h3); }
.legalbox a { color: var(--white); text-decoration-color: rgba(255,255,255,.5); }
.legalbox p:last-child { margin-bottom: 0; }
.disclaimer { font-family: var(--sans); font-size: var(--t-s); color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: var(--s4); margin-top: var(--s6); }

/* 9. Articles and pages */
.articlehead { background: var(--white); border-bottom: 1px solid var(--rule); padding: var(--s6) 0 var(--s7); }
.articlehead__topic { font-family: var(--sans); font-weight: 600; font-size: var(--t-ui); color: var(--eosin); margin: var(--s5) 0 var(--s3); }
.articlehead h1 { max-width: 22ch; }
.articlehead .standfirst { max-width: 60ch; margin-bottom: var(--s3); }
.articlehead__meta { font-family: var(--sans); font-size: var(--t-s); color: var(--ink-2); }
.article { padding: var(--s7) 0; }
.note { background: var(--white); border-left: 4px solid var(--eosin); padding: var(--s4) var(--s5); margin: var(--s5) 0; border-radius: 0 var(--r-m) var(--r-m) 0; }
.note > :last-child { margin-bottom: 0; }
.keypoints { background: var(--haem-wash); border-radius: var(--r-m); padding: var(--s5); margin: 0 0 var(--s6); }
.keypoints h2 { font-size: var(--t-h3); margin: 0 0 var(--s3); }
.keypoints ul { margin: 0; }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.guide { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m); padding: var(--s5); display: flex; flex-direction: column; }
.guide__topic { font-family: var(--sans); font-size: var(--t-s); color: var(--eosin); font-weight: 600; margin: 0 0 var(--s2); }
.guide h3 { margin: 0 0 var(--s3); font-size: var(--t-h3); }
.guide h3 a { text-decoration: none; color: var(--haem); }
.guide h3 a:hover { color: var(--eosin); }
.guide p { font-size: var(--t-ui); color: var(--ink-2); margin: 0; }
.topic-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--s7); }
.topic-list li { break-inside: avoid; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.topic-list a { font-family: var(--sans); font-weight: 600; text-decoration: none; }
.topic-list p { font-size: var(--t-ui); color: var(--ink-2); margin: 4px 0 0; }

/* 10. Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: 650 var(--t-ui)/1 var(--sans); padding: 13px 20px; border-radius: var(--r-m); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--eosin); color: var(--white); }
.btn--primary:hover { background: #9c164c; color: var(--white); }
.btn--quiet { background: var(--white); color: var(--haem); border-color: var(--rule); }
.btn--quiet:hover { border-color: var(--haem-2); color: var(--haem); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.card { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card:hover { border-color: var(--haem-2); }
.card img { display: block; width: 100%; aspect-ratio: 1; border-bottom: 1px solid var(--rule); }
.card__body { padding: var(--s3) var(--s4) var(--s4); font-family: var(--sans); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__brand { font-size: var(--t-xs); color: var(--ink-2); }
.card__name { font-size: var(--t-ui); font-weight: 650; line-height: 1.25; margin: 0; }
.card__name a { color: var(--ink); text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card__name a:hover { color: var(--haem); }
.card__type { font-size: var(--t-xs); color: var(--haem-2); margin-top: auto; padding-top: var(--s2); }
.card .badge { align-self: flex-start; font-size: var(--t-xs); padding: 3px 7px; }

.table-wrap { overflow-x: auto; margin: 0 0 var(--s5); }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: var(--t-ui); background: var(--white); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--haem-wash); color: var(--haem); font-weight: 650; }

.faq { margin: 0; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: var(--s4) var(--s6) var(--s4) 0; font-family: var(--sans); font-weight: 650; color: var(--haem); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--eosin); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 var(--s4); max-width: var(--measure); }

.related { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: var(--t-ui); }
.related li { border-bottom: 1px solid var(--rule); }
.related a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink); }
.related a:hover { color: var(--eosin); }
.aside-block { margin-bottom: var(--s6); }
.aside-block h2 { font-size: var(--t-body); margin: 0 0 var(--s3); font-stretch: 100%; }

/* 11. Footer */
.footer { background: var(--haem); color: #dcd6f2; margin-top: var(--s8); font-family: var(--sans); font-size: var(--t-s); }
.footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .35); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); padding-top: var(--s7); padding-bottom: var(--s6); }
.footer h2 { color: var(--white); font-size: var(--t-ui); margin: 0 0 var(--s3); font-stretch: 100%; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer .logo { color: var(--white); margin-bottom: var(--s4); }
.footer .logo__tag { color: #c9c1ea; }
.footer__base { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: var(--s4); padding-bottom: var(--s5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); }

/* 12. Tools */
.tool { background: var(--white); border: 1.5px solid var(--rule); border-radius: var(--r-m); padding: var(--s5) var(--s6); margin: var(--s6) 0; font-family: var(--sans); }
.tool h2 { margin-top: 0; font-size: var(--t-h3); }
.tool > p { font-family: var(--serif); font-size: var(--t-ui); color: var(--ink-2); max-width: 60ch; }
.tool__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s4); align-items: end; }
.tool label { display: grid; gap: 6px; font-size: var(--t-s); font-weight: 600; }
.tool__out { margin-top: var(--s5); padding: var(--s4) var(--s5); background: var(--slide); border-radius: var(--r-m); font-size: var(--t-ui); }
.tool__out strong { font-size: 1.75rem; font-stretch: 110%; color: var(--haem); font-variant-numeric: lining-nums tabular-nums; }
.plan { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: 0; }
.plan li { display: grid; grid-template-columns: 110px 1fr; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.plan li b { color: var(--haem); }
.form { display: grid; gap: var(--s4); max-width: 560px; font-family: var(--sans); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: var(--t-s); }
.form input, .form textarea, .form select { font: 500 var(--t-ui) var(--sans); padding: 11px 12px; border: 1.5px solid var(--rule); border-radius: var(--r-m); background: var(--white); color: var(--ink); }

/* 13. Responsive, motion, print */
@media (max-width: 1080px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols > aside { order: 2; }
  .sticky { position: static; }
  .legalgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .animals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --t-h1: 2.25rem; --t-hero: 2.5rem; --t-h2: 1.5rem; --t-lead: 1.1875rem; }
  .hero__grid, .entry-top { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .field__view { margin: 0 auto; max-width: 420px; }
  .masthead__row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav > .wrap > ul { flex-direction: column; }
  .mainnav__item > a { border-bottom: 1px solid var(--rule); }
  .mainnav__panel { position: static; box-shadow: none; border: 0; padding: 0 0 var(--s3) var(--s4); }
  .mainnav__item:hover .mainnav__panel { display: none; }
  .mainnav__item.is-open .mainnav__panel { display: block; }
  .pagehead__grid { grid-template-columns: 56px minmax(0, 1fr); }
  .pagehead__icon { width: 56px; height: 56px; }
  .pagehead__icon img { width: 34px; height: 34px; }
  .reader__row { grid-template-columns: 1fr 1fr; }
  .reader__row button { grid-column: 1 / -1; }
  .topic-list { columns: 1; }
  .guides { grid-template-columns: minmax(0, 1fr); }
  .matrix { font-size: var(--t-s); }
  .matrix th, .matrix td { padding: 8px 4px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: var(--s4); padding-right: var(--s4); }
  .animals, .legalgrid, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .logo__tag { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .plan li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .masthead, .mainnav, .footer, .search, aside, .filters { display: none !important; }
  body { background: #fff; }
  .cols { grid-template-columns: 1fr; }
}
