/* Chile detail, compare + shared cards — uses brand vars from style.css (--ch-*). Find-a-Chile page styles follow at the end (.chf-*). */
.ch-card { display: block; border: 1px solid var(--ch-tan,#cbb894); border-radius: 12px; padding: .75rem; background: #fff; text-decoration: none; color: inherit; position: relative; }
.ch-card:hover { border-color: var(--ch-brown,#6b4a2b); }
.ch-card-name { font-weight: 500; font-size: 1.05rem; }
.ch-card-species { font-size: .8rem; color: var(--ch-brown,#6b4a2b); margin-bottom: .4rem; }
.ch-card-heat { font-size: .8rem; }
.ch-card-shu { color: var(--ch-brown,#6b4a2b); }
.ch-card-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.ch-tag { font-size: .72rem; background: var(--ch-cream,#f6efe0); border-radius: 20px; padding: .1rem .5rem; }
.ch-badge--verified { display: inline-block; font-size: .65rem; background: #2f7d4f; color: #fff; padding: .1rem .5rem; border-radius: 20px; }
.ch-card .ch-badge--verified { position: absolute; top: .5rem; right: .5rem; }
.ch-conflict-dot, .ch-conflict { color: #a4402c; font-weight: 600; }
/* heat tier accents */
.tier-0 { color: #7a9a3b; } .tier-1 { color: #7a9a3b; } .tier-2 { color: #c08a2b; }
.tier-3 { color: #c05a2b; } .tier-4 { color: #a4402c; } .tier-5, .tier-6 { color: #7a1f18; }
/* verified check-mark inline */
.ch-verified { color: #2f7d4f; vertical-align: middle; }
/* ==========================================================================
   Chile profile (.chd): a field-guide entry. Same paper, type, and heat scale as Find a Chile.
   ========================================================================== */
.chd {
  --chd-paper: var(--ch-card-paper);   /* the portraits' own paper */
  --chd-line: var(--ch-line);
  --chd-line-strong: rgba(35, 32, 26, .34);
  --chd-heat-0: var(--ch-heat-0); --chd-heat-1: var(--ch-heat-1); --chd-heat-2: var(--ch-heat-2); --chd-heat-3: var(--ch-heat-3);
  --chd-heat-4: var(--ch-heat-4); --chd-heat-5: var(--ch-heat-5); --chd-heat-6: var(--ch-heat-6);
  --chd-caps: var(--ch-font-caps, "Oswald", sans-serif);
  --chd-display: var(--ch-font-display, "Zilla Slab", Georgia, serif);
  max-width: 1120px; margin: clamp(1.5rem, 4vw, 3.5rem) auto clamp(3rem, 6vw, 5rem);
  padding-inline: clamp(16px, 3vw, 40px); color: var(--ch-ink, #23201A);
}
.chd ::selection { background: rgba(169, 59, 44, .22); }
.chd a { color: var(--ch-red-dark, #8E2F23); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.chd a:hover { color: var(--ch-ink, #23201A); }
.chd a:focus-visible { outline: 2px solid var(--ch-red, #A93B2C); outline-offset: 3px; border-radius: 2px; }

/* Head: portrait card beside the entry */
.chd-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.chd-portrait { position: relative; margin: 0; aspect-ratio: 2 / 3; display: grid; place-items: center; overflow: hidden;
  background: var(--chd-paper); border: 1px solid var(--chd-line); border-radius: 6px; }
.chd-portrait-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.chd-portrait.is-empty { aspect-ratio: 4 / 5; }
.chd-portrait.is-empty .chd-portrait-img { object-fit: cover; opacity: .22; mix-blend-mode: multiply; filter: grayscale(.5); }
.chd-portrait-soon { position: absolute; left: 0; right: 0; bottom: 1.4rem; text-align: center; font: 500 .8rem/1 var(--chd-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ch-brown, #6B4F35); }
.chd-seal { position: absolute; top: .8rem; left: .8rem; display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .62rem .3rem .5rem;
  background: var(--ch-green-dark, #46602A); color: var(--ch-cream, #F1E9D6); border-radius: 999px; font: 500 .7rem/1 var(--chd-caps); letter-spacing: .1em; text-transform: uppercase; }
.chd-name { margin: 0; font: 700 clamp(2.4rem, 5.2vw, 4.25rem)/1 var(--chd-display); letter-spacing: -.015em; color: var(--ch-ink, #23201A); text-wrap: balance; }
.chd-species { margin: .55rem 0 0; font-size: 1.15rem; color: var(--ch-brown, #6B4F35); }
.chd-form { margin: .8rem 0 0; font: 500 .86rem/1.3 var(--chd-caps); letter-spacing: .1em; text-transform: uppercase; color: var(--ch-red-dark, #8E2F23); }
.chd-lede { margin-top: 1.25rem; max-width: 60ch; font-size: 1.2rem; line-height: 1.55; }
.chd-lede p { margin: 0; }
.chd-lede p + p { margin-top: .8em; }

.chd-heat { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .85rem; margin-top: 1.6rem; padding: 1rem 0;
  border-block: 1px dashed var(--chd-line-strong); }
.chd-meter { display: inline-flex; gap: 3px; }
.chd-meter i { width: 12px; height: 22px; border-radius: 2px; background: rgba(35, 32, 26, .12); }
.chd-meter i.on { background: var(--t); }
.chd-heat-name { font: 600 1.1rem/1 var(--chd-caps); letter-spacing: .1em; text-transform: uppercase; }
.chd-shu { font-size: 1.08rem; color: var(--ch-brown, #6B4F35); font-variant-numeric: tabular-nums; }
.chd-conflict { flex-basis: 100%; font-size: .92rem; color: var(--ch-red-dark, #8E2F23); }

.chd-flavors { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.chd-flavors li { padding: .24rem .7rem .28rem; border: 1px solid var(--chd-line-strong); border-radius: 999px; font-size: .92rem; line-height: 1.1; }
.chd-flavors .chd-flavors-v { border-color: transparent; padding-inline: .2rem; color: var(--ch-brown, #6B4F35); font-size: .85rem; }

.chd-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 1.3rem 0 0; }
.chd-notes div { padding: .85rem 0 .9rem; border-top: 1px dashed var(--chd-line); }
.chd-heat + .chd-notes div:nth-child(-n+2) { border-top: 0; padding-top: .35rem; }  /* the heat bar's rule already separates them */
.chd-notes dt { display: flex; align-items: center; gap: .45rem; font: 500 .76rem/1 var(--chd-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ch-brown, #6B4F35); }
.chd-notes dt svg { flex: none; }
.chd-notes dd { margin: .45rem 0 0; font-size: 1.04rem; line-height: 1.45; }

/* Sections */
.chd-section { margin-top: clamp(3rem, 6vw, 4.5rem); }
.chd-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; margin-bottom: 1.4rem; padding-bottom: .8rem; border-bottom: 2px solid var(--ch-ink, #23201A); }
.chd-section-head h2 { margin: 0; font: 700 clamp(1.65rem, 3vw, 2.15rem)/1.1 var(--chd-display); color: var(--ch-ink, #23201A); }
.chd-section-link { margin-left: auto; font: 500 .8rem/1 var(--chd-caps); letter-spacing: .12em; text-transform: uppercase; }
.chd-estimate { padding: .28rem .6rem .26rem; border: 1px solid var(--chd-line-strong); border-radius: 999px; font: 500 .7rem/1 var(--chd-caps);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ch-brown, #6B4F35); cursor: help; }

/* Heat curve */
.chd-curve { display: block; width: 100%; height: auto; overflow: visible; }
.chd-grid line { stroke: var(--chd-line); stroke-dasharray: 2 5; }
.chd-grid text, .chd-axis-label { font: 500 11px var(--chd-caps); letter-spacing: .12em; fill: var(--ch-brown, #6B4F35); }
.chd-grid text { opacity: .75; }
.chd-hatch { stroke: var(--t); stroke-width: 1.5; opacity: .6; }
.chd-line { fill: none; stroke: var(--t); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chd-axis { stroke: var(--ch-ink, #23201A); stroke-width: 1.5; }
.chd-timeline-text { max-width: 62ch; margin: 1.1rem 0 0; font-size: 1.15rem; line-height: 1.5; }
.chd-character { display: block; margin-top: .3rem; font-style: italic; color: var(--ch-brown, #6B4F35); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chd-line { stroke-dasharray: 1; animation: chd-draw linear both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
    .chd-fill { animation: chd-fill linear both; animation-timeline: view(); animation-range: entry 30% cover 50%; }
  }
}
@keyframes chd-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes chd-fill { from { opacity: 0; } to { opacity: 1; } }

/* Kitchen */
.chd-kitchen dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; }
.chd-kitchen dl div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0 1.05rem; border-bottom: 1px dashed var(--chd-line-strong); }
.chd-kitchen dt { padding-top: .22rem; font: 600 .82rem/1.2 var(--chd-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ch-red-dark, #8E2F23); }
.chd-kitchen dd { margin: 0; font-size: 1.08rem; line-height: 1.5; }

/* Substitutes */
.chd-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.chd-sub { display: flex; flex-direction: column; overflow: hidden; background: var(--chd-paper); border: 1px solid var(--chd-line); border-radius: 6px;
  transition: border-color .25s, box-shadow .35s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1); }
.chd-sub:hover { border-color: var(--chd-line-strong); box-shadow: 0 14px 28px -18px rgba(35, 32, 26, .45); transform: translateY(-2px); }
.chd-sub-art { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.chd-sub-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.chd-sub-body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: .9rem 1rem 1rem; border-top: 1px dashed var(--chd-line-strong); }
.chd-sub h3 { margin: 0; font: 700 1.22rem/1.15 var(--chd-display); }
.chd-sub h3 a { color: var(--ch-ink, #23201A); text-decoration: none; }
.chd-sub h3 a:hover { color: var(--ch-red-dark, #8E2F23); }
.chd-sub-heat { display: flex; align-items: center; gap: .5rem; font: 600 .76rem/1 var(--chd-caps); letter-spacing: .1em; text-transform: uppercase; }
.chd-sub-heat .chd-meter { gap: 2px; }
.chd-sub-heat .chd-meter i { width: 7px; height: 13px; border-radius: 1px; }
.chd-why { margin: 0; font-size: .88rem; line-height: 1.4; color: var(--ch-brown, #6B4F35); }
.chd-sub-cmp { margin-top: auto; padding-top: .3rem; font: 500 .76rem/1 var(--chd-caps); letter-spacing: .12em; text-transform: uppercase; }

.chd-related ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chd-related a { display: inline-block; padding: .4rem .85rem .45rem; border: 1px solid var(--chd-line-strong); border-radius: 999px; text-decoration: none; }
.chd-related a:hover { border-color: var(--ch-ink, #23201A); }

/* Sources: a compact reference list */
.chd-sources ol { margin: 0; padding-left: 1.5rem; max-width: 75ch; }
.chd-sources li { margin: 0 0 .75rem; padding-left: .3rem; font-size: .96rem; line-height: 1.45; }
.chd-sources li::marker { font: 500 .85rem var(--chd-caps); color: var(--ch-brown, #6B4F35); }
.chd-src-org { display: block; margin-top: .1rem; font-size: .88rem; color: var(--ch-brown, #6B4F35); }

@media (max-width: 900px) {
  .chd-head { grid-template-columns: minmax(0, 1fr); }
  .chd-portrait { aspect-ratio: 4 / 5; max-width: 480px; width: 100%; }
}
@media (max-width: 640px) {
  .chd-notes, .chd-kitchen dl { grid-template-columns: minmax(0, 1fr); }
  .chd-kitchen dl div { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .75rem; }
  .chd-lede { font-size: 1.1rem; }
  .chd-sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .chd-sub-body { padding: .7rem .75rem .8rem; }
  .chd-sub h3 { font-size: 1.05rem; }
  .chd-heat + .chd-notes div:nth-child(2) { border-top: 1px dashed var(--chd-line); padding-top: .85rem; }
  /* The curve scales down with the screen; restore readable labels and line weights (SVG user units). */
  .chd-axis-label { font-size: 22px; }
  .chd-grid text { display: none; }  /* too short to label five levels; the sentence below names the peak */
  .chd-line { stroke-width: 5.5; }
  .chd-axis { stroke-width: 3; }
  .chd-hatch { stroke-width: 2.6; }
}

/* Substitutes rail (single-chile) */
.ch-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.ch-sub-grid .ch-card-name a { text-decoration: none; color: inherit; }
.ch-card-thumb { width: 100%; height: auto; border-radius: 8px; margin-bottom: .4rem; }
.ch-why { font-size: .74rem; color: var(--ch-brown,#6b4a2b); margin-top: .4rem; }
.ch-cmp-link { display: inline-block; font-size: .74rem; margin-top: .35rem; }
.ch-similar-all { display: inline-block; margin-top: .75rem; font-size: .85rem; }

/* ==========================================================================
   Find a Chile (.chf) — specimen-catalog index. Brand tokens from style.css.
   ========================================================================== */
.chf {
  --chf-card: var(--ch-card-paper);   /* matches the portrait paper so art sits seamlessly */
  --chf-field: var(--ch-field);
  --chf-line: var(--ch-line);
  --chf-line-strong: var(--ch-line-strong);
  --chf-ease: var(--ch-ease);
  --chf-heat-0: var(--ch-heat-0); --chf-heat-1: var(--ch-heat-1); --chf-heat-2: var(--ch-heat-2); --chf-heat-3: var(--ch-heat-3);
  --chf-heat-4: var(--ch-heat-4); --chf-heat-5: var(--ch-heat-5); --chf-heat-6: var(--ch-heat-6);
  color: var(--ch-ink);
  font-family: var(--ch-font-body);
}
.chf ::selection { background: var(--ch-red); color: var(--ch-cream); }
.chf input, .chf select { caret-color: var(--ch-red); }
.chf :focus-visible { outline: 2px solid var(--ch-red); outline-offset: 2px; }
.chf :where(button:not(.ch-btn)) { font: inherit; color: inherit; cursor: pointer; }
.chf .ch-btn--red, .chf .ch-btn--green { color: var(--ch-cream); }
.chf .ch-btn--outline { color: var(--ch-ink); }
.chf-wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); box-sizing: border-box; }
.chf-link { background: none; border: 0; padding: 0; color: var(--ch-red); text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; }
.chf-link:hover { color: var(--ch-red-dark); }
/* Hello theme sets `button { transition: all .3s }`, which delays inherited visibility and blocks focus in the drawer. */
.chf-x, .chf-link { transition: background-color .15s, color .15s; }

/* Header ------------------------------------------------------------------ */
.chf-head { background: var(--ch-paper); border-bottom: 1px solid var(--chf-line); overflow: hidden; }
.chf-head-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding-top: clamp(1.75rem, 3vw, 2.75rem); }
.chf-head-copy { max-width: 44rem; padding-bottom: .5rem; }
.chf-title { font-family: var(--ch-font-display); font-weight: 700; font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: .98; letter-spacing: -.015em; margin: 0 0 .9rem; color: var(--ch-ink); }
.chf-lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.45; color: var(--ch-brown); margin: 0 0 1.6rem; max-width: 34rem; text-wrap: pretty; }
.chf-search { position: relative; display: flex; align-items: center; }
.chf-search svg { position: absolute; left: 1.1rem; color: var(--ch-brown); pointer-events: none; }
.chf-search input { width: 100%; height: 3.6rem; padding: 0 1.2rem 0 3.3rem; font: 400 1.15rem/1 var(--ch-font-body); color: var(--ch-ink); background: var(--chf-field); border: 1.5px solid var(--chf-line-strong); border-radius: 4px; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 18px -12px rgba(20,17,13,.45); transition: border-color .2s, box-shadow .2s; }
.chf-search input::placeholder { color: #7D6A55; }
.chf-search input:hover { border-color: var(--ch-brown); }
.chf-search input:focus { outline: none; border-color: var(--ch-red); box-shadow: 0 0 0 3px rgba(169,59,44,.18), 0 6px 18px -12px rgba(20,17,13,.45); }
.chf-head-art { width: clamp(170px, 18vw, 240px); height: auto; margin-bottom: -2.2rem; align-self: end; filter: drop-shadow(0 10px 14px rgba(20,17,13,.12)); transform: rotate(6deg); transform-origin: bottom center; }

/* Heat scale — the signature control ---------------------------------------- */
.chf-heat { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.25rem; padding-top: 1.25rem; padding-bottom: 1.5rem; }
.chf-heat-label { display: flex; align-items: center; gap: .4rem; margin: 0; font: 600 .95rem/1 var(--ch-font-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ch-ink); }
.chf-heat-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.chf-heat-seg { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; padding: 1.05rem .8rem .65rem; background: var(--chf-field); border: 1px solid var(--chf-line); border-radius: 0; text-align: left; transition: background-color .25s, border-color .25s, opacity .25s; }
.chf-heat-seg:first-child { border-radius: 4px 0 0 4px; }
.chf-heat-seg:last-child { border-radius: 0 4px 4px 0; }
.chf-heat-seg::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 11px; background: var(--t); transform: scaleY(.55); transform-origin: top; transition: transform .35s var(--chf-ease); }
.chf-heat-seg:first-child::before { border-top-left-radius: 4px; }
.chf-heat-seg:last-child::before { border-top-right-radius: 4px; }
.chf-heat-seg:hover { background: #fff; }
.chf-heat-seg:hover::before { transform: scaleY(.82); }
.chf-heat-name { font: 500 .85rem/1.1 var(--ch-font-caps); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.chf-heat-n { font-size: .8rem; color: var(--ch-brown); font-variant-numeric: tabular-nums; }
.chf-heat-seg[aria-pressed="true"] { background: color-mix(in srgb, var(--t) 13%, var(--chf-field)); border-color: var(--t); z-index: 1; }
.chf-heat-seg[aria-pressed="true"]::before { transform: none; }
.chf-heat-seg[aria-pressed="true"] .chf-heat-name { font-weight: 700; }
.chf-heat-scale:has([aria-pressed="true"]) .chf-heat-seg[aria-pressed="false"] { opacity: .6; }
.chf-heat-scale:has([aria-pressed="true"]) .chf-heat-seg[aria-pressed="false"]:hover { opacity: 1; }
.chf-heat-seg.is-empty { opacity: .38; }

/* Body layout ------------------------------------------------------------- */
.chf-body { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); padding-top: 2rem; padding-bottom: 4.5rem; }

/* Filters rail */
.chf-filters { position: sticky; top: 7.5rem; align-self: start; max-height: calc(100vh - 8.5rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ch-tan) transparent; padding-right: .35rem; }
.chf-filters-head, .chf-filters-foot { display: none; }
.chf-group { border-top: 1px solid var(--chf-line); }
.chf-group:first-of-type { border-top: 0; }
.chf-group summary { display: flex; align-items: center; gap: .55rem; padding: .95rem .1rem; list-style: none; cursor: pointer; font: 600 .92rem/1 var(--ch-font-caps); letter-spacing: .12em; text-transform: uppercase; }
.chf-group summary::-webkit-details-marker { display: none; }
.chf-group summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--chf-ease); }
.chf-group[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.chf-group summary:hover { color: var(--ch-red); }
.chf-group summary svg { flex: none; }
.chf-group-n:empty { display: none; }
.chf-group-n { min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: var(--ch-red); color: var(--ch-cream); font: 600 .72rem/1.25rem var(--ch-font-caps); letter-spacing: 0; text-align: center; box-sizing: border-box; }
.chf-ico-color { flex: none; width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(#B3322A 0 25%, #D9722E 0 50%, #E2B93B 0 75%, #6B3F2A 0); }
.chf-opts { padding: 0 0 1rem; }
.chf-opt { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .32rem .35rem; margin: 0 -.35rem; border-radius: 3px; cursor: pointer; font-size: 1rem; line-height: 1.25; transition: background-color .15s; }
.chf-opt:hover { background: rgba(201, 184, 150, .35); }
.chf-opt input { width: 17px; height: 17px; margin: 0; accent-color: var(--ch-red); cursor: pointer; }
.chf-opt-name { grid-column: 3; }
.chf-opt:not(:has(.chf-swatch)) .chf-opt-name { grid-column: 2 / 4; }
.chf-swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(35,32,26,.2); }
.chf-n { font-size: .82rem; color: var(--ch-brown); font-variant-numeric: tabular-nums; }
.chf-opt.is-on .chf-opt-name { font-weight: 600; }
.chf-opt.is-empty { opacity: .4; }
.chf-opt.is-extra { display: none; }
.chf-opts.is-all .chf-opt.is-extra, .chf-opt.is-extra.is-on { display: grid; }
.chf-more { margin-top: .5rem; font-size: .9rem; }
.chf-opts--pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.chf-pill { display: inline-flex; align-items: baseline; gap: .35rem; padding: .34rem .72rem .38rem; background: var(--chf-field); border: 1px solid var(--chf-line-strong); border-radius: 999px; font-size: .95rem; line-height: 1.1; transition: background-color .15s, border-color .15s, color .15s; }
.chf-pill:hover { border-color: var(--ch-ink); }
.chf-pill .chf-n { font-size: .74rem; }
.chf-pill[aria-pressed="true"] { background: var(--ch-ink); border-color: var(--ch-ink); color: var(--ch-cream); }
.chf-pill[aria-pressed="true"] .chf-n { color: var(--ch-tan); }
.chf-pill.is-empty { opacity: .4; }
.chf-verified { display: flex; align-items: center; gap: .6rem; padding: 1rem .1rem; border-top: 1px solid var(--chf-line); cursor: pointer; font-size: 1rem; }
.chf-verified input { width: 17px; height: 17px; margin: 0; accent-color: var(--ch-green); }
.chf-group.is-spot, .chf-heat.is-spot { animation: chf-spot 2.2s var(--chf-ease); }
@keyframes chf-spot { 0%, 35% { background-color: rgba(217, 164, 65, .28); } 100% { background-color: transparent; } }

/* Results bar */
.chf-main { min-width: 0; }
.chf-bar { display: flex; align-items: center; gap: 1rem; min-height: 2.75rem; margin-bottom: .75rem; }
.chf-count { margin: 0; font-size: 1.2rem; color: var(--ch-brown); }
.chf-count strong { color: var(--ch-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.chf-sort { margin-left: auto; display: flex; align-items: center; gap: .6rem; font: 500 .8rem/1 var(--ch-font-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ch-brown); }
.chf-sort select { appearance: none; height: 2.5rem; padding: 0 2.2rem 0 .85rem; font: 400 1rem/1 var(--ch-font-body); letter-spacing: 0; text-transform: none; color: var(--ch-ink); background: var(--chf-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2323201A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .8rem center; border: 1px solid var(--chf-line-strong); border-radius: 4px; cursor: pointer; }
.chf-sort select:hover { border-color: var(--ch-ink); }
.chf-filter-toggle { display: none; }
.chf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-bottom: 1.25rem; }
.chf-chips[hidden] { display: none; }
.chf-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .36rem .7rem; background: var(--ch-ink); color: var(--ch-cream) !important; border: 0; border-radius: 999px; font-size: .92rem; line-height: 1.1; transition: background-color .15s; }
.chf-chip span { font: 500 .7rem/1 var(--ch-font-caps); letter-spacing: .1em; text-transform: uppercase; color: var(--ch-tan); }
.chf-chip svg { opacity: .7; }
.chf-chip:hover { background: var(--ch-red); }
.chf-chip:hover span { color: var(--ch-cream); }

/* Specimen cards */
.chf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 1.75rem 1.25rem; }
.chf-card { display: flex; flex-direction: column; background: var(--chf-card); border: 1px solid var(--chf-line); border-radius: 3px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(20,17,13,.07); transition: transform .45s var(--chf-ease), box-shadow .45s var(--chf-ease), border-color .2s; }
.chf-card:hover { transform: translateY(-4px); border-color: var(--chf-line-strong); box-shadow: 0 18px 30px -18px rgba(20,17,13,.45); }
.chf-card:focus-visible { outline: 3px solid var(--ch-red); outline-offset: 3px; }
.chf-card-art { position: relative; aspect-ratio: 4 / 5; background: var(--chf-card); overflow: hidden; }
.chf-card-art img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--chf-ease); }
.chf-card:hover .chf-card-art img { transform: scale(1.045); }
.chf-card-art img.is-placeholder { object-fit: cover; opacity: .22; mix-blend-mode: multiply; filter: grayscale(.5); }
.chf-card-soon { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; font: 500 .72rem/1 var(--ch-font-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ch-brown); }
.chf-seal { position: absolute; top: .65rem; left: .65rem; display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .55rem .26rem .45rem; background: var(--ch-green-dark); color: var(--ch-cream); border-radius: 999px; font: 500 .68rem/1 var(--ch-font-caps); letter-spacing: .1em; text-transform: uppercase; }
.chf-card-body { flex: 1; display: flex; flex-direction: column; padding: .95rem 1rem 1.05rem; border-top: 1px dashed var(--chf-line-strong); }
.chf-card-name { margin: 0; font: 700 1.28rem/1.12 var(--ch-font-display); letter-spacing: -.005em; color: var(--ch-ink); text-wrap: balance; }
.chf-card:hover .chf-card-name { color: var(--ch-red-dark); }
.chf-card-sp { margin: .2rem 0 0; font-size: .92rem; font-style: italic; color: var(--ch-brown); }
.chf-card-form { margin: .3rem 0 0; font: 500 .72rem/1.25 var(--ch-font-caps); letter-spacing: .1em; text-transform: uppercase; color: var(--ch-red-dark); }
.chf-card-heat { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin-top: .75rem; }
.chf-meter { display: inline-flex; gap: 2px; }
.chf-meter i { width: 7px; height: 13px; border-radius: 1px; background: rgba(35,32,26,.12); }
.chf-meter i.on { background: var(--t); }
.chf-card-heatname { font: 600 .8rem/1 var(--ch-font-caps); letter-spacing: .09em; text-transform: uppercase; }
.chf-card-heatname:empty { display: none; }
.chf-card-shu { flex-basis: 100%; font-size: .88rem; color: var(--ch-brown); font-variant-numeric: tabular-nums; }
.chf-card-shu abbr { text-decoration: none; color: var(--ch-red); cursor: help; }
.chf-card-flav { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: auto 0 0; padding: .8rem 0 0; }
.chf-card-flav li { padding: .14rem .5rem .18rem; border: 1px solid var(--chf-line-strong); border-radius: 999px; font-size: .8rem; line-height: 1.1; color: var(--ch-ink); }

/* Empty + error */
.chf-empty { max-width: 30rem; margin: 2rem auto; text-align: center; }
.chf-empty img { mix-blend-mode: multiply; opacity: .55; border-radius: 50%; }
.chf-empty h3 { margin: .75rem 0 .35rem; font: 700 1.7rem/1.15 var(--ch-font-display); }
.chf-empty p { margin: 0 0 1.25rem; color: var(--ch-brown); font-size: 1.05rem; }
.chf-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.chf-error { grid-column: 1 / -1; font-size: 1.05rem; }

.chf-scrim { position: fixed; inset: 0; z-index: 100000; background: rgba(20,17,13,.5); }
.chf-scrim[hidden] { display: none; }
html.chf-lock { overflow: hidden; }

/* Tablet + phone: filters become a drawer ---------------------------------- */
@media (max-width: 1023px) {
  .chf-body { grid-template-columns: minmax(0, 1fr); padding-top: 1.25rem; }
  .chf-filters { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100001; width: min(92vw, 400px); max-height: none; padding: 0 1.25rem; background: var(--ch-cream); box-shadow: -18px 0 40px -20px rgba(20,17,13,.6); transform: translateX(100%); visibility: hidden; transition: transform .4s var(--chf-ease), visibility 0s linear .4s; }
  .chf.is-drawer .chf-filters { transform: none; visibility: visible; transition: transform .4s var(--chf-ease); }
  .chf-filters-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0 .9rem; background: var(--ch-cream); border-bottom: 1px solid var(--chf-line); }
  .chf-filters-head h2 { margin: 0; font: 700 1.5rem/1 var(--ch-font-display); }
  .chf-x { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.6rem; background: none; border: 0; border-radius: 50%; }
  .chf-x:hover { background: rgba(201,184,150,.4); }
  .chf-filters-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0 1.1rem; background: var(--ch-cream); border-top: 1px solid var(--chf-line); }
  .chf-filters-foot .ch-btn { padding: .85em 1.3em; }
  .chf-opt { padding-block: .5rem; }
  .chf-bar { flex-wrap: wrap; row-gap: .6rem; }
  .chf-count { flex-basis: 100%; order: -1; }
  .chf-filter-toggle { display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 1rem; background: var(--chf-field); border: 1px solid var(--ch-ink); border-radius: 4px; font: 500 .85rem/1 var(--ch-font-caps); letter-spacing: .12em; text-transform: uppercase; }
  .chf-filter-n { min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 999px; background: var(--ch-red); color: var(--ch-cream); font-size: .75rem; line-height: 1.3rem; letter-spacing: 0; text-align: center; box-sizing: border-box; }
  .chf-filter-n[hidden] { display: none; }
  .chf-heat { grid-template-columns: minmax(0, 1fr); gap: .7rem; padding-top: 1rem; }
  .chf-heat-scale { grid-template-columns: repeat(7, minmax(104px, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * clamp(16px, 3vw, 40px)); padding-inline: clamp(16px, 3vw, 40px); padding-top: 1px; }
  .chf-heat-scale::-webkit-scrollbar { display: none; }
  .chf-heat-seg { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .chf-head-in { grid-template-columns: minmax(0, 1fr); }
  .chf-head-art { position: absolute; right: -24px; top: 1.25rem; width: 132px; margin: 0; opacity: .9; }
  .chf-head-copy { padding-bottom: 1rem; }
  .chf-title { padding-right: 96px; }
  .chf-lede { padding-right: 72px; }
  .chf-search input { height: 3.2rem; font-size: 1.05rem; }
  .chf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
  .chf-card-body { padding: .7rem .7rem .8rem; }
  .chf-card-name { font-size: 1.08rem; }
  .chf-card-sp { font-size: .82rem; }
  .chf-card-form { font-size: .66rem; }
  .chf-card-flav li:nth-child(3) { display: none; }
  .chf-sort { gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .chf *, .chf *::before, .chf *::after { transition-duration: 0s !important; animation: none !important; }
}
