/* Aura Garden — дизайн-система
   Палітра: льон з легкою зеленню, кора, смарагд, мох, медове золото. */
/* Шрифти розміщені на сайті: без запитів до сторонніх серверів, font-display: swap */
@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/literata-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/literata-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-display: swap; font-weight: 200 900; src: url(../fonts/literata-cyrillic-wght-italic.woff2) format("woff2-variations"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Literata"; font-style: italic; font-display: swap; font-weight: 200 900; src: url(../fonts/literata-latin-wght-italic.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Prata"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/prata-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Prata"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/prata-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --paper: #eceee3;
  --paper-deep: #e1e5d5;
  --leaf-wash: #d7dfc9;
  --bark: #2f2a21;
  --bark-soft: #5d584a;
  --emerald: #0f4a37;
  --emerald-mid: #1f6a50;
  --moss: #6c7f46;
  --gold: #a98337;
  --gold-soft: #d6b56a;
  --line: rgba(47, 42, 33, 0.16);

  --serif-display: "Prata", "Georgia", serif;
  --serif: "Literata", "Georgia", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: clamp(2.5rem, 5.4vw, 4.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--bark);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.68;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--emerald); text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--emerald); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; color: var(--emerald); margin: 0 0 0.6em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--bark-soft); max-width: 40rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--emerald); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- Шапка ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--serif-display); font-size: 1.35rem; color: var(--emerald); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.3; }
.brand-mark .seed { fill: var(--gold); stroke: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.site-nav a { color: var(--bark); text-decoration: none; font-size: 0.98rem; padding-block: 0.4rem; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--emerald); }
.site-nav a[aria-current="page"] { color: var(--emerald); border-bottom-color: var(--gold); }
.menu-toggle { display: none; font: inherit; background: none; border: 1px solid var(--line); color: var(--emerald); padding: 0.35rem 0.9rem; border-radius: 999px; cursor: pointer; }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--gold); }
}

/* ---------- Головна: перший екран ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.btn { display: inline-block; background: var(--emerald); color: var(--paper); text-decoration: none; padding: 0.8rem 1.4rem; border-radius: 999px; font-size: 1rem; }
.btn:hover { background: var(--emerald-mid); color: var(--paper); }
.link-quiet { color: var(--emerald); }
.hero-figure { margin: 0; }
.hero-figure figcaption { font-size: var(--step--1); color: var(--bark-soft); text-align: center; margin-top: 0.5rem; font-style: italic; }

.zones { width: 100%; height: auto; }
.zones .ring { fill: none; stroke: var(--gold); stroke-width: 0.9; opacity: 0.75; }
.zones .ring:nth-of-type(odd) { stroke-dasharray: 2 5; }
.zones .zone-label { font-family: var(--serif); font-size: 12px; font-style: italic; fill: var(--bark-soft); text-anchor: middle; }
.zones .home { fill: var(--gold); }
.zones .dot { animation: sprout 0.9s ease-out both; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.zones .tree { fill: var(--emerald); }
.zones .berry { fill: var(--moss); }
.zones .hive { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 0.8; }
.zones .wild { fill: var(--bark-soft); opacity: 0.45; }
@keyframes sprout { from { opacity: 0; transform: scale(0.2); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .zones .dot { animation: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure { max-width: 30rem; width: 100%; margin-inline: auto; }
}

/* ---------- Секції ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2.5rem; }
.section-head p { margin: 0; color: var(--bark-soft); max-width: 36rem; }
.section-head h2 { margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Реєстр культур — як сторінка садового журналу */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bark); }
.ledger li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 0.5rem 2rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.ledger h3 { font-size: var(--step-1); margin: 0; }
.ledger p { margin: 0; color: var(--bark-soft); max-width: 42rem; }
.ledger .count { font-family: var(--serif-display); font-size: var(--step-2); color: var(--gold); white-space: nowrap; }
@media (max-width: 640px) {
  .ledger li { grid-template-columns: 1fr auto; }
  .ledger p { grid-column: 1 / -1; grid-row: 2; }
  .ledger .count { grid-column: 2; grid-row: 1; }
}
.ledger .count.soft { font-family: var(--serif); font-style: italic; font-size: var(--step-0); color: var(--moss); }

/* Чесна примітка */
.candid { background: var(--emerald); color: #e8ecdf; border-radius: 1.25rem; padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem 3rem; }
.candid h2 { color: var(--gold-soft); font-size: var(--step-2); margin: 0; }
.candid p { margin: 0 0 1em; max-width: 40rem; }
.candid p:last-child { margin-bottom: 0; }
.candid a { color: var(--gold-soft); }
@media (max-width: 760px) { .candid { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.principles h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.principles p { color: var(--bark-soft); margin: 0; }
.principles > div { border-top: 2px solid var(--gold); padding-top: 1rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Список статей ---------- */
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bark); }
.entry a { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 7rem; grid-template-areas: "cat title meta" "cat lede meta"; gap: 0.2rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.entry a:hover .entry-title { color: var(--emerald-mid); text-decoration: underline; text-decoration-color: var(--gold); }
.entry-cat { grid-area: cat; color: var(--moss); font-size: var(--step--1); padding-top: 0.35rem; }
.entry-title { grid-area: title; font-family: var(--serif-display); font-size: var(--step-1); color: var(--emerald); line-height: 1.3; }
.entry-lede { grid-area: lede; color: var(--bark-soft); font-size: 0.98rem; max-width: 44rem; }
.entry-meta { grid-area: meta; text-align: right; font-size: var(--step--1); color: var(--bark-soft); padding-top: 0.35rem; }
.entry[hidden] { display: none; }
@media (max-width: 640px) {
  .entry a { grid-template-columns: 1fr auto; grid-template-areas: "cat meta" "title title" "lede lede"; }
}
.more { margin-top: 1.75rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip { font: inherit; font-size: 0.95rem; background: transparent; color: var(--bark); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 1rem; cursor: pointer; }
.chip:hover { border-color: var(--emerald); }
.chip[aria-pressed="true"] { background: var(--emerald); color: var(--paper); border-color: var(--emerald); }

/* ---------- Внутрішні сторінки ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.page-head h1 { max-width: 18ch; }
.journal { padding-bottom: 5rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem 4rem; }
.split h2 { font-size: var(--step-2); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- Стаття ---------- */
.article-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; max-width: 50rem; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.crumbs { font-size: var(--step--1); color: var(--moss); }
.crumbs a { color: var(--moss); }
.article-meta { font-size: var(--step--1); color: var(--bark-soft); border-top: 1px solid var(--line); padding-top: 0.9rem; }
.prose { max-width: 42rem; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding-bottom: 3rem; font-size: 1.09rem; line-height: 1.75; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 2em 0; padding: 1.1em 1.4em; background: var(--paper-deep); border-left: 3px solid var(--gold); border-radius: 0 0.75rem 0.75rem 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.97rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.6em 0.8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--emerald); font-weight: 600; border-bottom-color: var(--bark); }
.prose strong { font-weight: 600; color: var(--bark); }
.related { padding-block: 3rem 5rem; border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-2); }

/* ---------- Контакти ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--bark); }
.contact-list li { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--bark-soft); }
@media (max-width: 560px) { .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; } }
.placeholder { background: var(--leaf-wash); border-radius: 0.3rem; padding: 0 0.35em; }

/* ---------- Підвал ---------- */
.site-footer { background: var(--emerald); color: #d6decd; padding-block: 3.5rem 2rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.footer-brand { font-family: var(--serif-display); font-size: 1.6rem; color: var(--gold-soft); margin-bottom: 0.5rem; }
.footer-inner p { max-width: 30rem; }
.footer-contact a { color: var(--gold-soft); }
.footer-title { font-family: var(--serif-display); color: var(--gold-soft); font-size: 1.05rem; margin: 0 0 0.5rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: #e8ecdf; text-decoration: none; line-height: 2.1; }
.footer-col a:hover { color: var(--gold-soft); text-decoration: underline; text-decoration-color: var(--gold); }
.footer-note { grid-column: 1 / -1; font-size: var(--step--1); color: #a9b8a8; border-top: 1px solid rgba(214, 181, 106, 0.25); padding-top: 1.25rem; margin: 0; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Продукція, FAQ, заклик до дії ---------- */
.section-tight { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.ledger h3 a { color: inherit; text-decoration: none; }
.ledger h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.note { color: var(--bark-soft); font-style: italic; }
.placeholder-block { background: var(--leaf-wash); border-radius: 0.75rem; padding: 1rem 1.25rem; color: var(--bark-soft); }
nav.crumbs { font-size: var(--step--1); color: var(--moss); margin-bottom: 1rem; }
nav.crumbs a { color: var(--moss); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--bark); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font-family: var(--serif-display); font-size: var(--step-1); color: var(--emerald); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--bark-soft); max-width: 42rem; }
.faq details > div p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

.cta { margin-block: 0 3.5rem; background: var(--paper-deep); border-left: 3px solid var(--gold); border-radius: 0 1rem 1rem 0; padding: 1.5rem clamp(1.25rem, 3vw, 2rem); max-width: 42rem; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.cta h2 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.cta p { color: var(--bark-soft); }

.variety-list { list-style: none; margin: 0; padding: 0; columns: 3 14rem; column-gap: 2rem; border-top: 1px solid var(--bark); }
.variety-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.variety-list span { color: var(--bark-soft); font-size: var(--step--1); }

/* ---------- Довідник сортів томатів ---------- */
.tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-size: var(--step--1); border: 1px solid var(--gold); color: var(--bark); border-radius: 999px; padding: 0.2rem 0.75rem; background: var(--paper); }
.variety-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem 4rem; padding-bottom: 3rem; align-items: start; }
.variety-grid .prose { margin-left: 0; padding-bottom: 0; }
.variety-grid h2 { font-size: var(--step-2); }
@media (max-width: 860px) { .variety-grid { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; }
.passport { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.passport th, .passport td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--line); }
.passport th { width: 38%; color: var(--moss); font-weight: 500; }
.passport tr:first-child th, .passport tr:first-child td { border-top: 1px solid var(--bark); }
.tomato-filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-bottom: 1rem; }
.tomato-filters label { display: grid; gap: 0.3rem; font-size: var(--step--1); color: var(--bark-soft); min-width: 8.5rem; flex: 1 1 8.5rem; }
.tomato-filters select { width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--bark); background: var(--paper); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.5rem 0.6rem; }
.filter-count { font-size: var(--step--1); color: var(--bark-soft); }
.tomato-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.tomato-table th, .tomato-table td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tomato-table thead th { color: var(--emerald); font-weight: 600; border-bottom: 1px solid var(--bark); font-size: var(--step--1); }
.tomato-table tbody th { font-weight: 400; white-space: normal; }
.tomato-table tbody th a { font-family: var(--serif-display); font-size: 1.05rem; text-decoration: none; }
.tomato-table tbody th a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.tomato-table tr[hidden] { display: none; }
.tomato-index { padding-bottom: 5rem; }
.empty-state { color: var(--bark-soft); font-style: italic; }
.classification { margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.classification table { display: table; }
.variety .related { border-top: 1px solid var(--line); }

/* ---------- Пошук, хаб довідників, мобільні таблиці ---------- */
.site-nav { order: 2; }
.search-link { order: 3; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; color: var(--emerald); }
.search-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-link:hover, .search-link:focus-visible { background: var(--paper-deep); }
.menu-toggle { order: 4; }
.site-nav ul { gap: 1.4rem; }
@media (max-width: 1020px) { .search-link { margin-left: auto; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.tomato-filters input[type="search"], .site-search input { width: 100%; font: inherit; font-size: 1rem; color: var(--bark); background: var(--paper); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.5rem 0.7rem; }
.tomato-filters .filter-search { flex: 2 1 14rem; }
.filter-reset { align-self: end; font: inherit; font-size: var(--step--1); background: none; color: var(--emerald); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; }
.filter-reset:hover { border-color: var(--emerald); }
.site-search input { font-size: 1.15rem; padding: 0.8rem 1rem; max-width: 40rem; }
.search-results { list-style: none; margin: 0; padding: 0 0 4rem; max-width: 48rem; }
.search-results li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.search-results a { font-family: var(--serif-display); font-size: var(--step-1); text-decoration: none; }
.search-results a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.search-results .kind { display: block; font-size: var(--step--1); color: var(--moss); margin-bottom: 0.2rem; }
.search-results p { margin: 0.3rem 0 0; color: var(--bark-soft); }

.hub-grid { list-style: none; margin: 0; padding: 0 0 4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.hub-card { border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem 1.4rem 1.2rem; background: color-mix(in srgb, var(--paper) 70%, white); display: flex; flex-direction: column; }
.hub-card h2 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.hub-card h2 a { text-decoration: none; color: var(--emerald); }
.hub-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.hub-card p { margin: 0 0 0.8rem; color: var(--bark-soft); }
.hub-meta { margin-top: auto !important; font-size: var(--step--1); }
.hub-meta .count { font-family: var(--serif-display); font-size: var(--step-2); color: var(--gold); margin-right: 0.2rem; }

@media (max-width: 640px) {
  .cards-on-mobile thead { display: none; }
  .cards-on-mobile, .cards-on-mobile tbody, .cards-on-mobile tr, .cards-on-mobile th, .cards-on-mobile td { display: block; width: 100%; }
  .cards-on-mobile tr { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
  .cards-on-mobile tr[hidden] { display: none; }
  .cards-on-mobile th, .cards-on-mobile td { border: 0; padding: 0.1rem 0; white-space: normal; }
  .cards-on-mobile td { display: inline; font-size: var(--step--1); color: var(--bark-soft); }
  .cards-on-mobile td + td::before { content: " · "; color: var(--gold); }
  .cards-on-mobile td[data-label]::after { content: ""; }
  .prose table th, .prose table td { white-space: normal; }
  .passport th { width: 42%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
