/* ==========================================================================
   Production homepage
   --------------------------------------------------------------------------
   Everything is scoped under .cc-home26 and built from the brand tokens in
   css/styles.css (colors, fonts, motion). Nothing here restyles a shared
   component outside the page.

   Refactoring UI principles applied:
   * One spacing scale (--h26-space-*) and one type scale; no one-off values.
   * Hierarchy through weight and color first (bone titles, muted secondary
     text, small uppercase eyebrows), size second.
   * One primary action per section; secondary actions are outlined.
   * Paragraphs capped near 60ch; images in fixed aspect ratios so nothing
     shifts while they load.
   * Shadows only for elevation on hover/focus; borders are low-contrast.
   ========================================================================== */

.cc-home26 {
  --h26-space-1: 0.25rem;
  --h26-space-2: 0.5rem;
  --h26-space-3: 0.75rem;
  --h26-space-4: 1rem;
  --h26-space-5: 1.5rem;
  --h26-space-6: 2rem;
  --h26-space-7: 3rem;
  --h26-space-8: 4rem;
  --h26-radius: 12px;
  --h26-radius-sm: 8px;
  --h26-gutter: 1rem;
  --h26-card-width: 13.25rem;
  --h26-surface: var(--cc-surface-1, #1a1a1a);
  --h26-surface-raised: var(--cc-surface-2, #242424);
  --h26-border: rgba(var(--cc-bone-rgb), 0.1);
  --h26-muted: var(--cc-muted, #b3b3b3);
  color: var(--cc-bone);
  padding-bottom: var(--h26-space-8);
  overflow-x: clip;
}

@media (min-width: 768px) {
  .cc-home26 { --h26-gutter: 1.5rem; --h26-card-width: 14.5rem; }
}

@media (min-width: 1200px) {
  .cc-home26 { --h26-gutter: 2rem; }
}

.cc-h26-container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--h26-gutter);
}

/* Signed-in visitors and guests get different calls to action; the server
   picks a default and homepage.js corrects it once the session is known. */
.cc-home26[data-viewer="guest"] [data-viewer-show="member"],
.cc-home26[data-viewer="member"] [data-viewer-show="guest"] {
  display: none !important;
}

.cc-home26 a:focus-visible,
.cc-home26 button:focus-visible,
.cc-home26 [tabindex="0"]:focus-visible {
  outline: 3px solid var(--cc-bone);
  outline-offset: 2px;
  border-radius: var(--h26-radius-sm);
}

.cc-h26-muted { color: var(--h26-muted); }

.cc-h26-eyebrow {
  margin: 0 0 var(--h26-space-2);
  font-family: var(--cc-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h26-muted);
}

.cc-h26-eyebrow--accent { color: var(--cc-green); }

/* Whole-card links: the title link's box covers its positioned card. */
.cc-h26-stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------------------------------------------------------------- Trending */
.cc-h26-trending {
  border-bottom: 1px solid var(--h26-border);
  background: var(--h26-surface);
}

.cc-h26-trending-inner {
  display: flex;
  align-items: center;
  gap: var(--h26-space-3);
  padding-block: var(--h26-space-3);
}

.cc-h26-trending-label {
  flex: 0 0 auto;
  font-family: var(--cc-font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--cc-green);
}

/* Hidden chips are signalled at whichever edge hides them: the list fades out
   there and a small chevron appears over the fade. homepage.js sets
   data-overflow-start/-end, so without it the bar is a plain swipeable row.
   The fade widths are registered so they ease in and out instead of snapping. */
@property --h26-fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --h26-fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.cc-h26-trending-scroller {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.cc-h26-trending-list {
  --h26-fade-start: 0px;
  --h26-fade-end: 0px;
  display: flex;
  gap: var(--h26-space-2);
  margin: 0;
  padding: 2px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 3rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  min-width: 0;
  /* Clear under the chevron (first ~35% of the fade), then ramp to opaque. */
  --h26-fade-mask: linear-gradient(to right,
    transparent, transparent calc(var(--h26-fade-start) * 0.35), #000 var(--h26-fade-start),
    #000 calc(100% - var(--h26-fade-end)), transparent calc(100% - var(--h26-fade-end) * 0.35), transparent);
  -webkit-mask-image: var(--h26-fade-mask);
  mask-image: var(--h26-fade-mask);
  transition: --h26-fade-start var(--cc-motion-fast) var(--cc-motion-ease-inout),
    --h26-fade-end var(--cc-motion-fast) var(--cc-motion-ease-inout);
}

.cc-h26-trending-list::-webkit-scrollbar { display: none; }
.cc-h26-trending-list > li { flex: 0 0 auto; scroll-snap-align: start; }

[data-overflow-start] > .cc-h26-trending-list { --h26-fade-start: 3.5rem; }
[data-overflow-end] > .cc-h26-trending-list { --h26-fade-end: 3.5rem; }
[data-overflow-start] > .cc-h26-trending-list,
[data-overflow-end] > .cc-h26-trending-list { cursor: grab; }

.cc-h26-trending-list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.cc-h26-trending-list.is-dragging .cc-h26-chip { cursor: grabbing; }

/* Chevrons sit over the faded edge, so they never cover a readable chip.
   They read as quiet hints (muted icon, faint ring) until hovered. */
.cc-h26-trending-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--h26-border);
  border-radius: 50%;
  background: var(--h26-surface-raised);
  color: var(--h26-muted);
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.85);
  transition: opacity var(--cc-motion-fast) var(--cc-motion-ease-inout),
    transform var(--cc-motion-fast) var(--cc-motion-ease-inout),
    visibility 0s linear var(--cc-motion-fast),
    border-color var(--cc-motion-fast) var(--cc-motion-ease-inout),
    color var(--cc-motion-fast) var(--cc-motion-ease-inout);
}

/* A taller invisible hit area so the small chevron is still easy to tap. */
.cc-h26-trending-nav::before {
  content: "";
  position: absolute;
  inset: -0.375rem;
}

.cc-h26-trending-prev { left: 0; }
.cc-h26-trending-next { right: 0; }

[data-overflow-start] > .cc-h26-trending-prev,
[data-overflow-end] > .cc-h26-trending-next {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition-delay: 0s;
}

/* Until the visitor scrolls, the forward chevron carries a faint brand tint. */
[data-scroll-hint] > .cc-h26-trending-next {
  border-color: rgba(var(--cc-green-rgb), 0.45);
  color: var(--cc-green);
}

.cc-h26-trending-nav:hover { border-color: var(--cc-green); color: var(--cc-green); }

.cc-h26-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 var(--h26-space-4);
  border: 1px solid var(--h26-border);
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cc-bone);
  text-decoration: none;
  transition: border-color var(--cc-motion-fast) var(--cc-motion-ease-inout),
    color var(--cc-motion-fast) var(--cc-motion-ease-inout);
}

.cc-h26-chip:hover { border-color: var(--cc-green); color: var(--cc-green); }

/* -------------------------------------------------------------------- Hero */
.cc-h26-hero {
  display: grid;
  gap: var(--h26-space-6);
  padding-block: var(--h26-space-6) var(--h26-space-5);
}

@media (min-width: 992px) {
  .cc-h26-hero {
    padding-block: var(--h26-space-7) var(--h26-space-6);
  }
}

.cc-h26-title {
  margin: 0 0 var(--h26-space-4);
  font-size: clamp(2.5rem, 6vw + 0.5rem, 4.5rem);
  line-height: 0.95;
  color: var(--cc-bone);
}

.cc-h26-lead {
  max-width: 36rem;
  margin: 0 0 var(--h26-space-5);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--h26-muted);
}

.cc-h26-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--h26-space-3);
}

.cc-h26-cta-row .btn { min-height: 2.75rem; }

.cc-h26-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--h26-space-4) var(--h26-space-5);
  margin: var(--h26-space-6) 0 0;
  padding-top: var(--h26-space-5);
  border-top: 1px solid var(--h26-border);
}

@media (min-width: 576px) {
  .cc-h26-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Number above label, top-aligned even when a label wraps to two lines. */
.cc-h26-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

.cc-h26-stats dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h26-muted);
}

.cc-h26-stats dd {
  margin: 0;
  font-family: var(--cc-font-display);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--cc-bone);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- Sections */
.cc-h26-section { margin-top: var(--h26-space-7); }

@media (min-width: 992px) {
  .cc-h26-section { margin-top: var(--h26-space-8); }
}

.cc-h26-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--h26-space-4);
  margin-bottom: var(--h26-space-4);
}

.cc-h26-section-titles { min-width: 0; }

.cc-h26-section-title {
  margin: 0;
  padding-left: var(--h26-space-3);
  border-left: 4px solid var(--cc-green);
  font-size: clamp(1.75rem, 1.5vw + 1.25rem, 2.25rem);
  line-height: 1;
  color: var(--cc-bone);
}

.cc-h26-section-subtitle {
  margin: var(--h26-space-2) 0 0;
  padding-left: calc(var(--h26-space-3) + 4px);
  font-size: 0.9rem;
  color: var(--h26-muted);
}

.cc-h26-view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

/* -------------------------------------------------------------------- Tabs */
.cc-h26-tabs {
  display: flex;
  gap: var(--h26-space-2);
  margin-bottom: var(--h26-space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.cc-h26-tab {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0 var(--h26-space-4);
  border: 1px solid var(--h26-border);
  border-radius: 999px;
  background: transparent;
  color: var(--cc-bone);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.cc-h26-tab[aria-selected="true"] {
  border-color: var(--cc-green);
  background: var(--cc-green);
  color: var(--cc-black);
}

/* ------------------------------------------------------------------ Shelves */
.cc-h26-shelf { position: relative; }

.cc-h26-shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--h26-card-width);
  gap: var(--h26-space-4);
  margin: 0;
  padding: var(--h26-space-2) var(--h26-space-1) var(--h26-space-4);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--h26-space-1);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--cc-green-rgb), 0.5) transparent;
}

.cc-h26-shelf-item { scroll-snap-align: start; min-width: 0; }

.cc-h26-shelf-nav {
  position: absolute;
  top: 6.5rem;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(var(--cc-bone-rgb), 0.35);
  border-radius: 50%;
  background: var(--cc-charcoal);
  color: var(--cc-bone);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.cc-h26-shelf-prev { left: calc(var(--h26-space-4) * -1); }
.cc-h26-shelf-next { right: calc(var(--h26-space-4) * -1); }
.cc-h26-shelf-nav:hover { border-color: var(--cc-green); color: var(--cc-green); }
.cc-h26-shelf-nav[disabled] { opacity: 0; pointer-events: none; }

@media (min-width: 992px) and (hover: hover) {
  .cc-h26-shelf-nav { display: inline-flex; }
}

/* ------------------------------------------------ Product card (shelf size) */
.cc-home26 .cc-h26-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: default;
  background-color: var(--cc-charcoal);
  border: 1px solid var(--h26-border);
}

.cc-home26 .cc-h26-card-media {
  display: block;
  height: auto;
  aspect-ratio: 5 / 4;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.cc-home26 .cc-h26-card .recommended-card-overlay {
  height: auto;
  max-height: none;
  min-height: 45%;
  padding: var(--h26-space-3);
}

.cc-h26-overlay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--h26-space-2);
}

.cc-h26-overlay-text { display: flex; flex-direction: column; min-width: 0; }

.cc-home26 .cc-h26-card .strain-name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.1;
}

.cc-home26 .cc-h26-card .score-badge {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cc-home26 .cc-h26-card .recommended-card-body {
  gap: var(--h26-space-2);
  padding: var(--h26-space-3);
}

.cc-h26-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--h26-space-2);
  margin: 0;
}

.cc-h26-score dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h26-muted);
}

.cc-h26-score dt .fa-crown { color: var(--cc-rating-elite); }

.cc-h26-score dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cc-h26-card-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--h26-muted);
}

.cc-h26-card-note .fa-crown { color: var(--cc-rating-elite); }

.cc-home26 .cc-h26-card .recommended-card-meta { margin-bottom: 0; }

.cc-h26-type-badge {
  border: 1px solid rgba(var(--cc-bone-rgb), 0.18);
  background: rgba(var(--cc-bone-rgb), 0.06);
  color: var(--cc-bone);
  font-weight: 500;
}

.cc-h26-type-badge[data-product-type="flower"] { border-color: rgba(var(--cc-green-rgb), 0.5); color: var(--cc-green); }
.cc-h26-type-badge[data-product-type="concentrate"] { border-color: rgba(var(--cc-blue-rgb), 0.5); color: var(--cc-blue); }
.cc-h26-type-badge[data-product-type="pre_roll"] { border-color: rgba(255, 193, 7, 0.5); color: #ffc107; }
.cc-h26-type-badge[data-product-type="vape"],
.cc-h26-type-badge[data-product-type="edible"] { border-color: rgba(var(--cc-pink-rgb), 0.5); color: var(--cc-pink-hover); }

.cc-home26 .cc-h26-card .recommended-card-terpenes { margin-top: auto; }

/* ---------------------------------------------------- News + cultivators */
.cc-h26-split { display: grid; gap: 0 var(--h26-space-7); }

@media (min-width: 992px) {
  .cc-h26-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.cc-h26-news-grid,
.cc-h26-rank-list,
.cc-h26-explore-grid,
.cc-h26-spotlight-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-h26-news-grid { display: grid; gap: var(--h26-space-4); }

/* A horizontal card: text leads, the share-image thumbnail closes the row. The
   accent bar and the thumbnail zoom are the only hover motion beyond the shared
   lift; both are transforms, so nothing reflows. */
.cc-h26-news-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--h26-space-4);
  height: 100%;
  padding: var(--h26-space-4);
  overflow: hidden;
  border: 1px solid var(--h26-border);
  border-radius: var(--h26-radius);
  background: linear-gradient(135deg, var(--h26-surface) 0%, var(--h26-surface) 55%, var(--h26-surface-raised) 100%);
  transition: border-color var(--cc-motion-fast) var(--cc-motion-ease-inout);
}

.cc-h26-news-card::before {
  content: "";
  position: absolute;
  inset-block: var(--h26-space-3);
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--cc-green);
  transform: scaleY(0);
  transition: transform var(--cc-motion-fast) var(--cc-motion-ease-inout);
}

.cc-h26-news-card:hover,
.cc-h26-news-card:focus-within { border-color: rgba(var(--cc-green-rgb), 0.45); }

.cc-h26-news-card:hover::before,
.cc-h26-news-card:focus-within::before { transform: scaleY(1); }

.cc-h26-news-body { display: flex; flex: 1; flex-direction: column; align-self: stretch; min-width: 0; }

/* Keep the box and its `sizes` attribute (homepage.html) in step with
   NEWS_THUMB_WIDTHS in repository/homepage/adapters.py. */
.cc-h26-news-thumb {
  position: relative;
  flex: 0 0 5.5rem;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: var(--h26-radius-sm);
  background: var(--h26-surface-raised);
}

/* A hairline ring drawn over the image keeps dark artwork from bleeding into the card. */
.cc-h26-news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--cc-bone-rgb), 0.12);
  pointer-events: none;
}

.cc-h26-news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition:
    transform 400ms var(--cc-motion-ease-inout),
    opacity var(--cc-motion-fast) var(--cc-motion-ease-inout);
}

.cc-h26-news-card:hover .cc-h26-news-thumb img,
.cc-h26-news-card:focus-within .cc-h26-news-thumb img { opacity: 1; transform: scale(1.06); }

@media (min-width: 576px) {
  .cc-h26-news-card { gap: var(--h26-space-5); padding: var(--h26-space-4) var(--h26-space-5); }
  .cc-h26-news-thumb { flex-basis: 8.5rem; }
}

.cc-h26-news-title {
  margin: 0 0 var(--h26-space-2);
  font-size: 1.25rem;
  line-height: 1.1;
}

@media (min-width: 576px) {
  .cc-h26-news-title { font-size: 1.4rem; }
}

.cc-h26-news-title a { color: var(--cc-bone); text-decoration: none; }
.cc-h26-news-title a { transition: color var(--cc-motion-fast) var(--cc-motion-ease-inout); }
.cc-h26-news-card:hover .cc-h26-news-title a { color: var(--cc-green); }

.cc-h26-news-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 var(--h26-space-3);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--h26-muted);
}

.cc-h26-news-meta { margin: auto 0 0; font-size: 0.78rem; color: var(--h26-muted); }

/* Top Cultivators product-type filter: a pill like the shelf tabs, with the
   native <select> kept for keyboard, screen-reader and mobile-picker support. */
.cc-h26-filter {
  display: flex;
  align-items: center;
  gap: var(--h26-space-3);
  margin-bottom: var(--h26-space-3);
}

.cc-h26-filter[hidden] { display: none; }

.cc-h26-filter-label {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h26-muted);
}

.cc-h26-select-wrap {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  max-width: 16rem;
}

.cc-h26-select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 var(--h26-space-6) 0 var(--h26-space-4);
  border: 1px solid var(--h26-border);
  border-radius: 999px;
  background: var(--h26-surface);
  color: var(--cc-bone);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color var(--cc-motion-fast) var(--cc-motion-ease-inout),
    background-color var(--cc-motion-fast) var(--cc-motion-ease-inout),
    box-shadow var(--cc-motion-fast) var(--cc-motion-ease-inout);
}

.cc-h26-select option { background: var(--h26-surface-raised); color: var(--cc-bone); }

.cc-h26-select:hover { border-color: rgba(var(--cc-green-rgb), 0.55); background: var(--h26-surface-raised); }

.cc-h26-select:focus-visible {
  outline: 3px solid var(--cc-bone);
  outline-offset: 2px;
  border-color: var(--cc-green);
  box-shadow: 0 0 0 4px rgba(var(--cc-green-rgb), 0.25);
}

.cc-h26-select-icon {
  position: absolute;
  top: 50%;
  right: var(--h26-space-4);
  font-size: 0.75rem;
  color: var(--cc-green);
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform var(--cc-motion-fast) var(--cc-motion-ease-inout);
}

.cc-h26-select-wrap:hover .cc-h26-select-icon { transform: translateY(-30%); }

.cc-h26-rank-list[hidden] { display: none; }

.cc-h26-rank-list {
  border: 1px solid var(--h26-border);
  border-radius: var(--h26-radius);
  background: var(--h26-surface);
  overflow: hidden;
}

.cc-h26-rank-list li + li { border-top: 1px solid var(--h26-border); }

.cc-h26-rank-row {
  display: grid;
  grid-template-columns: 1.75rem 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--h26-space-3);
  min-height: 3.5rem;
  padding: var(--h26-space-2) var(--h26-space-4);
  color: var(--cc-bone);
  text-decoration: none;
}

.cc-h26-rank-row { transition: background-color var(--cc-motion-fast) var(--cc-motion-ease-inout); }
.cc-h26-rank-row:hover { background: var(--h26-surface-raised); color: var(--cc-bone); }
.cc-h26-rank-row:hover .cc-h26-rank-name { color: var(--cc-green); }
.cc-h26-rank-name { transition: color var(--cc-motion-fast) var(--cc-motion-ease-inout); }

.cc-h26-rank {
  font-family: var(--cc-font-display);
  font-size: 1.5rem;
  color: var(--h26-muted);
  text-align: center;
}

.cc-h26-rank-list li:nth-child(-n + 3) .cc-h26-rank { color: var(--cc-green); }

.cc-h26-rank-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: contain;
  background: var(--cc-bone);
}

.cc-h26-rank-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--h26-surface-raised);
  color: var(--cc-bone);
  font-weight: 700;
}

.cc-h26-rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.cc-h26-rank-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ Leaders */
.cc-h26-leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--h26-space-1);
  height: 100%;
  padding: var(--h26-space-5) var(--h26-space-4);
  border: 1px solid var(--h26-border);
  border-radius: var(--h26-radius);
  background: var(--h26-surface);
  color: var(--cc-bone);
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
}

.cc-h26-leader-card:hover { color: var(--cc-bone); border-color: rgba(var(--cc-green-rgb), 0.6); }

.cc-h26-leader-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--h26-space-2);
  border-radius: 50%;
  background: var(--cc-pink);
  color: var(--cc-black);
  font-family: var(--cc-font-display);
  font-size: 1.6rem;
}

.cc-h26-leader-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--cc-font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.cc-h26-leader-points { color: var(--cc-rating-elite); font-weight: 600; }

.cc-h26-leader-card--cta { border-style: dashed; }
.cc-h26-leader-card--cta .cc-h26-leader-avatar { background: var(--cc-green); }

/* ------------------------------------------------------- Wishlist spotlight */
.cc-h26-spotlight {
  display: grid;
  gap: var(--h26-space-6);
  padding: var(--h26-space-6) var(--h26-space-5);
  border: 1px solid rgba(var(--cc-pink-rgb), 0.35);
  border-radius: calc(var(--h26-radius) * 1.5);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--cc-pink-rgb), 0.16), transparent 60%),
    var(--h26-surface);
}

@media (min-width: 992px) {
  .cc-h26-spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: var(--h26-space-7);
  }
}

.cc-h26-spotlight .cc-h26-eyebrow--accent { color: var(--cc-pink); }

.cc-h26-spotlight .cc-h26-section-title {
  padding-left: 0;
  border-left: 0;
  max-width: 18ch;
  margin-bottom: var(--h26-space-4);
}

.cc-h26-spotlight-lead {
  max-width: 34rem;
  margin: 0 0 var(--h26-space-5);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--h26-muted);
}

.cc-h26-spotlight-points { display: grid; gap: var(--h26-space-4); }

.cc-h26-spotlight-points li {
  display: flex;
  align-items: flex-start;
  gap: var(--h26-space-3);
  color: var(--h26-muted);
  line-height: 1.5;
}

.cc-h26-spotlight-points strong { color: var(--cc-bone); }

.cc-h26-spotlight-points i {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--cc-pink-rgb), 0.14);
  color: var(--cc-pink);
}

/* ------------------------------------------------------------------ Explore */
.cc-h26-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--h26-space-3);
}

@media (min-width: 768px) {
  .cc-h26-explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--h26-space-4); }
}

@media (min-width: 1200px) {
  .cc-h26-explore-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cc-h26-tile {
  display: flex;
  flex-direction: column;
  gap: var(--h26-space-1);
  height: 100%;
  padding: var(--h26-space-4);
  border: 1px solid var(--h26-border);
  border-radius: var(--h26-radius);
  background: var(--h26-surface);
  color: var(--cc-bone);
  text-decoration: none;
}

.cc-h26-tile:hover { color: var(--cc-bone); border-color: rgba(var(--cc-green-rgb), 0.6); }
.cc-h26-tile i { margin-bottom: var(--h26-space-2); font-size: 1.35rem; color: var(--cc-green); }
.cc-h26-tile-title { font-family: var(--cc-font-display); font-size: 1.3rem; letter-spacing: 0.02em; }
.cc-h26-tile-text { font-size: 0.82rem; line-height: 1.45; color: var(--h26-muted); }

/* --------------------------------------------------------------------- Map */
.cc-h26-map-facade {
  padding: var(--h26-space-6) var(--h26-space-5);
  border: 1px dashed rgba(var(--cc-blue-rgb), 0.45);
  border-radius: var(--h26-radius);
  background: var(--h26-surface);
  text-align: center;
}

.cc-h26-map-frame #map { height: 600px; border: 1px solid var(--h26-border); border-radius: var(--h26-radius); }
.cc-h26-map-frame .container { max-width: none; padding-inline: 0; }

@media (max-width: 767.98px) {
  .cc-h26-map-frame #map { height: 420px; }
}

/* -------------------------------------------------------------- Join band */
.cc-h26-join {
  margin-top: var(--h26-space-8);
  padding: var(--h26-space-7) var(--h26-space-5);
  border-radius: calc(var(--h26-radius) * 1.5);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(var(--cc-green-rgb), 0.18), transparent 70%),
    var(--h26-surface);
  text-align: center;
}

.cc-h26-join-title { margin: 0 0 var(--h26-space-3); font-size: clamp(2rem, 3vw + 1rem, 3rem); }

.cc-h26-join-text {
  max-width: 34rem;
  margin: 0 auto var(--h26-space-5);
  color: var(--h26-muted);
}

/* Entrance motion: news cards rise in one after another, and the cultivator
   list fades in when the filter swaps it. Skipped entirely for reduced motion. */
@keyframes cc-h26-rise {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: none; }
}

@keyframes cc-h26-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The trending chevron nudges toward the hidden chips a couple of times
   after load, then rests; scrolling cancels it (data-scroll-hint drops). */
@keyframes cc-h26-nudge {
  0%, 60%, 100% { transform: none; }
  30% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: no-preference) {
  [data-scroll-hint] > .cc-h26-trending-next i {
    animation: cc-h26-nudge 1.1s var(--cc-motion-ease-inout) 0.8s 3;
  }
  .cc-h26-news-grid > li { animation: cc-h26-rise 480ms var(--cc-motion-ease-inout) both; }
  .cc-h26-news-grid > li:nth-child(2) { animation-delay: 70ms; }
  .cc-h26-news-grid > li:nth-child(3) { animation-delay: 140ms; }
  .cc-h26-news-grid > li:nth-child(4) { animation-delay: 210ms; }
  .cc-h26-news-grid > li:nth-child(n + 5) { animation-delay: 280ms; }
  .cc-h26-rank-list { animation: cc-h26-fade 280ms var(--cc-motion-ease-inout) both; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-h26-shelf-track,
  .cc-h26-trending-list { scroll-behavior: auto; }
  .cc-h26-trending-list,
  .cc-h26-trending-nav,
  .cc-h26-chip,
  .cc-h26-news-card::before,
  .cc-h26-news-thumb img { transition: none; }
  .cc-h26-news-card:hover .cc-h26-news-thumb img,
  .cc-h26-news-card:focus-within .cc-h26-news-thumb img { transform: none; }
}
