/* Database hubs, seasonal collections and feature landings.
   Extends main.css — tokens only, light-only, zero external requests.
   Contrast note: --text-muted is used ONLY inside --surface cards; on the beige
   canvas every string is --text or --accent (AA verified in design_visual §1.1). */

.hub .overline { color: var(--accent); }

/* ---- shared hub scaffolding ------------------------------------------- */
.hub-head { max-width: 46rem; margin-bottom: 32px; }
.hub-head h1 { margin-bottom: .35em; }
.hub-prose { max-width: 38rem; }
.hub-prose h2 { margin-top: 1.8em; }
.hub-section { margin-top: 48px; }
.hub-section > h2 { margin-top: 0; }
.section-note { color: var(--text); font-size: .9375rem; margin-top: -.35em; }

/* ---- type cards (/teas/) ---------------------------------------------- */
.type-grid, .season-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
}
.type-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.season-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.type-card, .season-card {
  display: grid; gap: 4px;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  padding: 20px;
  text-decoration: none;
  transition: box-shadow 150ms var(--ease), transform 150ms var(--ease);
}
.type-card:hover, .season-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.type-card-name, .season-card-name { font-weight: 600; font-size: 1.125rem; color: var(--ink); }
.type-card-count, .season-card-count { font-size: .8125rem; color: var(--text-muted); font-weight: 500; }
.type-card-blurb { color: var(--text); font-size: .9375rem; line-height: 1.5; margin-top: 4px; }
.type-card-free { font-size: .75rem; font-weight: 600; color: var(--accent-deep); margin-top: 4px; }

/* ---- inline link rails ------------------------------------------------- */
.link-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-row a {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-round);
  padding: 7px 16px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 150ms var(--ease), background 150ms var(--ease);
}
.link-row a:hover { border-color: var(--accent); background: var(--leaf-tint); }
.link-count { color: var(--text-muted); font-size: .8125rem; margin-left: 4px; }

/* ---- type hub: at-a-glance -------------------------------------------- */
.glance { margin-bottom: 8px; }
.glance h2 { margin-top: 0; }
.glance-note { font-size: .8125rem; color: var(--text-muted); margin: 14px 0 0; max-width: 60ch; }

/* ---- seasonal collections --------------------------------------------- */
.season-index { margin-top: 40px; }
.season-index h2 { font-size: 1.125rem; margin-bottom: .8em; }
.season-list { display: grid; gap: 16px; margin-top: 32px; }
/* No content-visibility here: the in-page index links to every card by id, and
   skipped rendering makes those fragment jumps land imprecisely. Twenty cards
   render cheaply enough without it. */
.season-tea {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  scroll-margin-top: 88px;
}
@media (min-width: 640px) { .season-tea { grid-template-columns: 112px 1fr; } }
.season-tea-img { border-radius: var(--r-m); width: 112px; height: 112px; object-fit: cover; box-shadow: var(--shadow-s); }
.season-tea h3 { margin-bottom: .35em; font-size: 1.25rem; }
.season-tea .overline { margin-bottom: .2em; }
.season-tea-summary { max-width: 60ch; }
.season-tea .chip-row { margin: 14px 0 0; }
.season-tea .ladder { margin-top: 14px; }

.stat-row {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; gap: 10px 20px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.stat-row li { display: grid; gap: 2px; }
.stat-label { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.stat-row .num { font-size: .9375rem; }

/* ---- feature landings -------------------------------------------------- */
.feature-hero { display: grid; gap: 32px; align-items: start; margin-bottom: 40px; }
@media (min-width: 900px) { .feature-hero { grid-template-columns: minmax(0, 1.15fr) auto; gap: 48px; } }
.feature-hero-text { max-width: 34rem; }
.feature-hero h1 { font-size: clamp(1.875rem, 5vw, 2.5rem); margin-bottom: .4em; }
.feature-shot {
  width: 100%; max-width: 320px; height: auto;
  justify-self: center;
  border-radius: var(--r-l);
  box-shadow: var(--shadow-l);
}
.lede-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; max-width: 34rem; }
.lede-list li { position: relative; padding-left: 22px; font-size: 1.0625rem; color: var(--ink); line-height: 1.55; }
.lede-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: var(--r-round);
  background: var(--accent);
}
.badges-left { justify-content: flex-start; margin-top: 24px; }
.feature-hero .rating-line { color: var(--text); }

.feature-bullets {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.feature-bullets li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  padding: 16px 18px;
  font-size: .9375rem;
  color: var(--text);
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  padding: 4px 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 0;
  list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform 150ms var(--ease);
}
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--text); }

@media print {
  .link-row, .feature-shot, .badges-left { display: none !important; }
  .season-tea { break-inside: avoid; }
  .faq details { break-inside: avoid; }
}

/* ---- design refresh (Claude Design comp) ---- */
.hub-band { position: relative; overflow: hidden; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 4vw, 40px); margin-bottom: clamp(28px, 4vw, 44px); }
.hub-band .breadcrumbs { margin-top: 0; }
.hub-band-art { position: absolute; top: -30px; right: -40px; width: 300px; height: 300px; object-fit: contain; opacity: .08; pointer-events: none; }
@media (max-width: 760px) { .hub-band-art { display: none; } }
.hub-band .glance { max-width: 52rem; position: relative; }
.hub-band .glance .brew-meta, .hub-band .glance .glance-note { padding: 0 24px; }
.hub-band .glance .glance-note { margin-bottom: 0; }

.hub-grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sort-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sort-label { font-size: .8125rem; color: var(--text-muted); }
.sort-chip { border: none; border-radius: var(--r-round); padding: 7px 14px; font-weight: 600; font-size: .8125rem; cursor: pointer; font-family: var(--font); background: var(--leaf-tint); color: var(--ink); }
.sort-chip.is-active { background: var(--accent); color: var(--on-accent); }

.hub-tea-grid { list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hub-tea-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-s); padding: 18px; text-decoration: none; transition: box-shadow 150ms var(--ease), transform 150ms var(--ease); }
.hub-tea-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.hub-tea-top { display: flex; align-items: center; gap: 14px; }
.hub-tea-top img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.hub-tea-name { display: block; font-weight: 600; color: var(--ink); font-size: 1.0625rem; line-height: 1.25; margin-bottom: 5px; }
.hub-tea-origin { display: inline-block; background: var(--leaf-tint); color: var(--ink); font-weight: 500; font-size: .75rem; padding: 4px 10px; border-radius: var(--r-round); }
.hub-tea-stats { display: flex; gap: 16px; font-size: .8125rem; color: var(--text-muted); font-weight: 500; border-top: 1px solid var(--surface-alt); padding-top: 12px; }
.hub-tea-stats > span { display: flex; align-items: center; gap: 5px; }

/* Marks a link that leaves the reader's language. The <a> also carries
   hreflang="en" lang="en" so assistive tech switches voice. */
.en-only { font-size: .8125rem; color: var(--text-muted); }
