/* ==========================================================================
   Diwali Sweets – shared theme stylesheet
   Deepawali design system: red accent, Poppins, white sticky header,
   light festive hero, red CTA band, column footer. Used by the aggregate
   page and all ten detail pages (8 states, laddoos, burfi).

   1. Tokens          8. Answer box + callout     15. Gallery
   2. Base            9. Article card + prose     16. CTA band
   3. Layout         10. Inline figures + tables  17. Footer
   4. Buttons        11. FAQ                      18. Lightbox
   5. Header / nav   12. Related links            19. Utilities + motion
   6. Hero           13. Breadcrumbs / byline
   7. Media          14. Topic + image cards      20. Comments
                                                  21. Sweet tiles + cards
                                                  22. Badges + finder
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --accent: #e13f4f;
  --accent-dark: #c02f3e;
  --ink: #222d39;
  --text: #535b69;
  --muted: #6f7685;
  --line: #ece8ea;
  --blush: #fef5f6;
  --mist: #f6f5fa;
  --cream: #fff8ef;
  --white: #ffffff;
  --gold: #f5a416;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
          "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil",
          "Noto Sans Telugu", "Noto Sans Kannada", sans-serif;

  --container: 1180px;
  --measure: 720px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3rem, 7vw, 5.5rem);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(34, 45, 57, 0.08);
  --header-h: 72px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 0.75rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--tight { padding-bottom: clamp(2rem, 5vw, 3rem); }
.section-head { max-width: 780px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-head p { font-size: 1.05rem; }
.section-foot { margin-top: 2rem; text-align: center; }
@media (max-width: 640px) { .section-head p { text-align: left; } }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--accent); }
.btn--light:hover { background: var(--ink); color: var(--white); }

/* 5. Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand:hover { color: var(--accent); }
.brand__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-weight: 700; font-size: 1.05rem; line-height: 1;
}
.brand__name { font-weight: 700; font-size: 1.05rem; }

.menu, .menu ul { margin: 0; padding: 0; list-style: none; }
.menu > li > a, .menu > li > .menu__parent {
  display: block; padding: 0.5rem 0;
  border: 0; background: none;
  font: 500 0.95rem var(--font); color: var(--ink);
  cursor: pointer;
}
.menu a:hover, .menu__parent:hover { color: var(--accent); }
.menu .is-current > a, .menu .is-current > .menu__parent { color: var(--accent); }
.submenu a { display: block; padding: 0.45rem 1.1rem; font-size: 0.92rem; color: var(--text); }
.submenu .is-current > a { color: var(--accent); font-weight: 600; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .menu { display: flex; align-items: center; gap: 1.5rem; }
  .menu li { position: relative; }
  .has-sub > .menu__parent::after {
    content: ""; display: inline-block;
    width: 0.4em; height: 0.4em; margin-left: 0.45em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-0.2em) rotate(45deg);
  }
  .submenu {
    position: absolute; top: 100%; right: -1.1rem;
    display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr));
    min-width: 420px; padding: 0.5rem 0;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 1099.98px) {
  .nav-toggle { position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); transition: transform 0.2s;
  }
  .nav-toggle__bar { top: 21px; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; left: 0; }
  .nav-toggle__bar::before { top: -7px; }
  .nav-toggle__bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li > a, .menu > li > .menu__parent { padding: 0.8rem 0; width: 100%; text-align: left; }
  .submenu { padding: 0 0 0.6rem 1rem; }
  .submenu a { padding: 0.35rem 0; }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(160deg, var(--cream) 0%, var(--white) 55%, var(--blush) 100%);
}
.hero__inner > * { max-width: 860px; }
.hero__title { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.hero__title-sub { display: block; margin-top: 0.35rem; font-size: 0.62em; font-weight: 500; line-height: 1.25; color: var(--accent); }
.hero__lede { font-size: 1.1rem; max-width: 66ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hub and home hero: text beside a wide banner */
.hero--split .hero__inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 960px) { .hero--split .hero__inner { grid-template-columns: 1.05fr 1fr; } }
.hero--split .hero__inner > * { max-width: none; }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--mist); }
.hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 7. Media ----------------------------------------------------------------- */
.media { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.media__frame { display: block; overflow: hidden; background: var(--mist); }
.media__frame img { width: 100%; height: 100%; object-fit: cover; }
.media__frame--contain { background: var(--cream); }
.media__frame--contain img { object-fit: contain; }
.media figcaption { padding: 0.85rem 1.1rem 1rem; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.lead-media { position: relative; z-index: 1; margin-top: calc(-1 * clamp(1rem, 3vw, 2rem)); }
.lead-media .media { max-width: 980px; margin-inline: auto; }
.lead-media .media__frame { aspect-ratio: 16 / 9; }
.zoom-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.zoom-button img { transition: transform 0.4s; }
.zoom-button:hover img { transform: scale(1.03); }

/* 8. Answer box + callout -------------------------------------------------- */
.answer-box {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--cream);
  border: 1px solid #f6e3c8;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.answer-box__title { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
.answer-box p { margin: 0; }
.prose .callout, .prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  background: var(--blush); border-left: 4px solid var(--accent); border-radius: var(--radius);
  font-size: 0.98rem;
}
.prose blockquote p { margin: 0; }

/* 9. Article card + prose -------------------------------------------------- */
.article-card {
  max-width: 860px; margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.prose { max-width: var(--measure); font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 2.25rem 0 0.75rem; }
.prose h3 { font-size: 1.12rem; margin: 1.75rem 0 0.5rem; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); }
.prose em { color: var(--muted); }

/* 10. Inline figures + tables ---------------------------------------------- */
.inline-figure { margin: 2rem 0; }
.inline-figure .media__frame { aspect-ratio: 3 / 2; }
@media (min-width: 760px) {
  .inline-figure--side { float: right; width: 46%; margin: 0.4rem 0 1.25rem 1.75rem; }
  .prose h2 { clear: both; }
}
.table-wrap { margin: 1.25rem 0 1.75rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.6rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--mist); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* 11. FAQ ------------------------------------------------------------------ */
.faq { margin: 0; }
.faq__item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.faq__item p { margin: 0; }

/* 12. Related links -------------------------------------------------------- */
.link-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem; margin: 0; padding: 0; list-style: none;
}
.link-tile {
  display: flex; align-items: flex-start; gap: 0.9rem; height: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-weight: 600; line-height: 1.45;
  transition: border-color 0.2s, color 0.2s;
}
.link-tile:hover { border-color: var(--accent); color: var(--accent); }

/* 13. Breadcrumbs / byline ------------------------------------------------- */
.crumbs { margin-bottom: 1.25rem; font-size: 0.9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--muted); }
.crumbs a { color: var(--text); font-weight: 500; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--accent); font-weight: 600; }
.byline { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 600; }

/* 14. Topic + image cards -------------------------------------------------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 1.5rem; margin: 0; padding: 0; list-style: none;
}
.image-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.image-card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
/* card parts are spans inside the link, so they are set to block */
.image-card__img, .image-card__body, .image-card__meta, .image-card__title, .image-card__text { display: block; }
.image-card__img { aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.image-card__img img { width: 100%; height: 100%; object-fit: cover; }
.image-card__img--contain { background: var(--cream); }
.image-card__img--contain img { object-fit: contain; }
.image-card__body { padding: 1.1rem 1.25rem 1.3rem; }
.image-card__meta { margin: 0 0 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.image-card__title { margin: 0 0 0.5rem; font-size: 1.08rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.image-card:hover .image-card__title { color: var(--accent); }
.image-card__text { margin: 0; font-size: 0.93rem; line-height: 1.6; }

.topic-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.topic-jump a {
  display: inline-block; padding: 0.45rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
}
.topic-jump a:hover { border-color: var(--accent); color: var(--accent); }

.home-answer { max-width: 860px; margin-inline: auto; }

/* 15. Gallery -------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.gallery-grid .media__frame { aspect-ratio: 4 / 3; }
.gallery-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.gallery-grid--wide .media__frame { aspect-ratio: 21 / 9; }
.gallery-grid figcaption { padding: 0.6rem 0.85rem 0.75rem; font-size: 0.85rem; }
.gallery-grid figcaption a { font-weight: 600; }

/* 16. CTA band ------------------------------------------------------------- */
.cta { background: var(--accent); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { margin: 0; max-width: 28ch; color: var(--white); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.25rem); }

/* 17. Footer --------------------------------------------------------------- */
.site-footer { padding-top: clamp(3rem, 6vw, 4.5rem); background: var(--white); font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; }
.footer-about { grid-column: span 2; max-width: 420px; }
@media (max-width: 640px) { .footer-about { grid-column: auto; } }
.footer-about .brand { margin-bottom: 1rem; }
.footer-col__title { margin-bottom: 1.1rem; font-size: 1.05rem; font-weight: 600; color: #3f4244; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 0.35rem; }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-block: 1.5rem;
  border-top: 1px solid var(--line); color: #000; font-weight: 500;
}
.footer-bottom p { margin: 0; }

/* 18. Lightbox ------------------------------------------------------------- */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.25rem; background: rgba(34, 45, 57, 0.92); }
.lightbox__inner { display: grid; gap: 0.75rem; width: min(1200px, 96vw); }
.lightbox__bar { display: flex; justify-content: flex-end; gap: 0.5rem; }
.lightbox__bar .btn { padding: 0.5rem 1rem; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; background: var(--white); border-radius: var(--radius); }

/* 19. Utilities + motion --------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 200; padding: 0.5rem 1rem; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 20. Comments ------------------------------------------------------------- */
.comments__inner { max-width: 860px; margin-inline: auto; }
.comments h2 { margin-bottom: 1.25rem; }
.comments__count { font-weight: 500; color: var(--muted); }
.comments__status { color: var(--muted); }
.comments__list, .comments__replies { margin: 0; padding: 0; list-style: none; }
.comment { display: flex; gap: 0.9rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.comments__list > .comment:last-child { border-bottom: 1px solid var(--line); }
.comment__avatar {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blush); color: var(--accent); font-weight: 700; font-size: 0.9rem;
}
.comment--author > .comment__avatar { background: var(--accent); color: var(--white); }
.comment__body { flex: 1 1 auto; min-width: 0; }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin: 0 0 0.35rem; font-size: 0.92rem; color: var(--muted); }
.comment__meta strong { color: var(--ink); font-weight: 600; }
.comment__tag { padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 0.75rem; font-weight: 600; }
.comment__text { margin: 0 0 0.6rem; overflow-wrap: anywhere; }
.comments__replies { margin-top: 0.5rem; padding-left: 0.25rem; border-left: 2px solid var(--line); }
.comments__replies .comment { padding: 0.9rem 0 0.4rem 0.9rem; border-top: 0; }
.comment-form { margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2rem); background: var(--mist); border-radius: var(--radius-lg); }
.comment-form h3 { margin-bottom: 0.25rem; }
.comment-form__note { font-size: 0.92rem; color: var(--muted); }
.comment-form__row { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.comment-form label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid #d9d4d7; border-radius: var(--radius); background: var(--white);
  font: 400 1rem/1.5 var(--font); color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: 2px solid rgba(225, 63, 79, 0.2); }
.comment-form__result { margin-top: 0.75rem; font-size: 0.95rem; }

/* 21. Sweet tiles + cards -------------------------------------------------- */
/* A tile shows one cell of a 4 x 3 sweets chart as a background crop of the
   hosted chart image. The generator writes the crop as plain percentages
   (background-size / background-position) and the cell's height ratio as
   --ratio, so no positioned image, calc() or lazy loading is involved. */
.tile {
  position: relative; display: block; overflow: hidden;
  background-color: var(--mist); background-repeat: no-repeat;
}
.tile::before { content: ""; display: block; padding-top: var(--ratio, 81%); }
.hero__media--chart img { aspect-ratio: auto; object-fit: contain; }
.hero__media--chart .zoom-button { display: block; }
.image-card__img--chart { aspect-ratio: 4 / 3; }

.sweet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.sweet-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 1rem); }
.sweet-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 63, 79, 0.18); }
.sweet-card__body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.1rem 1.25rem 1.3rem; }
.sweet-card__num { font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.sweet-card h3 { margin: 0; font-size: 1.15rem; }
.sweet-card p { margin: 0; font-size: 0.95rem; line-height: 1.65; }
.sweet-card__ing { font-size: 0.88rem !important; color: var(--muted); }
.sweet-card__ing strong { color: var(--ink); font-weight: 600; }

/* 22. Badges + finder ------------------------------------------------------ */
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; line-height: 1.6; background: var(--mist); color: var(--ink); }
.badge--long { background: #e8f6ee; color: #1d6b41; }
.badge--week { background: #fff4dc; color: #8a5a00; }
.badge--short { background: #e8f1fb; color: #1f4f86; }
.badge--fresh { background: var(--blush); color: var(--accent-dark); }

.intro-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); max-width: 980px; margin-inline: auto; }
@media (min-width: 860px) { .intro-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.intro-grid h2 { font-size: 1.3rem; }

.finder__controls { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 760px) { .finder__controls { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.finder__controls label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.finder__controls input, .finder__controls select {
  width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #d9d4d7; border-radius: var(--radius);
  background: var(--white); font: 400 0.95rem/1.4 var(--font); color: var(--ink);
}
.finder__count { margin: 0 0 1rem; font-size: 0.92rem; color: var(--muted); }
.finder__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.finder__item[hidden] { display: none; }
.finder__link { display: grid; grid-template-columns: 84px 1fr; gap: 0.85rem; align-items: center; height: 100%; padding: 0.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.finder__link:hover { border-color: var(--accent); color: var(--text); }
.finder__link .tile { border-radius: 8px; }
.finder__name { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.finder__link:hover .finder__name { color: var(--accent); }
.finder__meta { display: block; margin: 0.15rem 0 0.35rem; font-size: 0.82rem; color: var(--muted); }

.split-media { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .split-media { grid-template-columns: 1fr 1fr; } .split-media--flip > :first-child { order: 2; } }
.split-media h2 { margin-bottom: 1rem; }
.split-media ul { padding-left: 1.2rem; }
.split-media li { margin-bottom: 0.5rem; }
.split-media li::marker { color: var(--accent); }
.prose--wide { max-width: none; }
.fam-state { font-size: 0.85rem; color: var(--muted); }
.split-media ol { padding-left: 1.3rem; }
.split-media ol li::marker { color: var(--accent); font-weight: 600; }
.intro-grid .answer-box__title { font-size: 1rem; }
