/* FILE: public/css/view_site_index_layout.css — FULL FILE
   (Updated to place Categories on the LEFT and align its header line
    with the "Latest {{type}}" heading. Your other tweaks preserved.) */

/* ============================================================================
   view_site_index_layout.css — FULL FILE
   Unique layout/styling for /reviews, /news, /guides index pages.
   Uses its own .site-index* classes to avoid coupling with article layouts.
   -------------------------------------------------------------------------- */
/* FILE: public/css/view_site_index_layout.css — FULL FILE
   Clean grid using ONLY max-width breakpoints.
   Header wrapper (site-index-wrapper) aligns with body grid (site-index__grid):
     desktop:   [ cats | main | 300 rail ]
     <=1150px:  [ cats | main ] then rail full-width below
     <=900px:   stacked: cats → main → rail
*/

/* ───────── Variables / container widths ───────── */
.site-index,
.site-index-wrapper {
  --si-max: 1500px;
  --si-gap: 22px;
  --si-gap-lg: 30px;
  --si-col-cats: 200px;
  /* categories width */
  --si-col-rail: 300px;
  /* ad rail width */
  --si-head-align: 4px;
  /* nudge to align cat header underline with Latest */
  margin: 0 auto;
  max-width: calc(var(--si-max) + 32px);
  padding-left: clamp(0px, -1650px + 103.125vw, 330px);
  /* 1920 to 1600 */
}

.site-index-bleed {
  width: 100%;
  background-color: var(--section-dark-background-color);
}



/* Inner grid that aligns with the body grid (cats | main | 300 rail) */
.site-index-wrapper {
  max-width: calc(var(--si-max) + 32px);
  margin: 0 auto;
  padding-bottom: 28px;
}

.site-index__header {
  grid-column: 2;
  padding: 24px 24px;
}

.site-index__feature {
  grid-column: 2;
  padding: 0px 24px;
}

@media (max-width:1px) {}

/* <=1150px: cats | main (rail drops below in body grid) */
@media (max-width:1150px) {
  .site-index-wrapper {
    grid-template-columns: var(--si-col-cats) minmax(0, 1fr);
  }

  .site-index__header,
  .site-index__feature {
    grid-column: 2;
  }
}

/* <=900px: single column (header + feature full width) */
@media (max-width:900px) {
  .site-index-wrapper {
    grid-template-columns: 1fr;
    gap: var(--si-gap);
  }

  .site-index__header,
  .site-index__feature {
    grid-column: 1;
  }
}

.site-index-wrapper .moreof-hf {
  margin-bottom: 0;
}


/* ───────── Body grid (cats | main | rail) ───────── */

/* FILE: public/css/site_index.css — REPLACE THIS WHOLE “Body grid (cats | main | rail)” BLOCK */

/* ───────── Body grid (cats | main | rail) ───────── */
.site-index__grid {
  display: grid;
  grid-template-columns: var(--si-col-cats) minmax(0, 1fr) var(--si-col-rail);
  grid-template-areas: "cats main rail";
  gap: var(--si-gap-lg);
  align-items: start;
  padding: 24px 24px 0px;
}

.site-index__grid.-nocats {
  margin-bottom: 40px;
}

.site-index__cats {
  min-width: 0;
}

.site-index__main {
  grid-area: main;
  min-width: 0;
}

.site-index__rail {
  grid-area: rail;
  min-width: 0;
  height: 100%;
}

.snap-rail,
.sidebars {
  height: 100%;
}

/* ≤1400px: Put CATEGORIES ABOVE the Latest feed; rail spans both rows */
@media (max-width: 1400px) {
  .site-index__grid {
    grid-template-columns: minmax(0, 1fr) var(--si-col-rail);
    grid-template-areas:
      "cats  rail"
      "main  rail";
    gap: var(--si-gap-lg);
  }

  .site-index__rail {
    align-self: stretch;
  }

}

/* ≤1150px: Remove rails entirely; stack into two rows (CATS, then MAIN) */
@media (max-width: 1150px) {

  .site-index__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    grid-template-areas:
      "cats"
      "main";
  }


  /* Hide any right-rail containers/slots */
  .site-index__rail,
  .site-index__grid .site-index__rail,
  .snap-rail.-right {
    display: none !important;
  }
}



/* ───────── Ads ───────── */

.site-index__rail.first-type-rail {
  height: calc(100% - 250px - 50px);
}

/* Sticky rail hook (works with your JS sticky helper) */
.site-index__rail .sticky-stack[data-sticky="true"] {
  position: sticky;
  top: var(--rail-sticky-top, calc(var(--top-bar-H, 64px) + 32px));
  will-change: top;
  isolation: isolate;
  z-index: 1000;
}


.site-index .feed-vertical>.article-inline-ad.-anywhere,
.site-index .feed-vertical>.article-inline-ad.-anywhere .ad-slot {
  width: 100%;
  max-width: none;
}

.site-index .feed-vertical>.article-inline-ad.-anywhere {
  margin: 34px 0 10px 0;
}


.site-index .feed-vertical>.article-inline-ad.-anywhere ins.adsbygoogle {
  display: block;
  width: 100%;
}






/* ───────── Title ───────── */

.site-index__title {
  margin: 12px 0 12px;
  font-family: var(--identity-font, inherit);
  font-weight: 900;
  letter-spacing: 0px;
  font-size: var(--ft-40-31);
  line-height: 1.1;
  color: var(--white-color-1);
}

.site-index__dek {
  margin: 0px 0 3px;
  font-family: var(--body-font, inherit);
  font-family: var(--identity-font, inherit);
  font-weight: 400;
  font-size: var(--ft-18-15);
  line-height: 1.2;
  color: var(--grey-color-1);
  max-width: 90ch;
  opacity: .95;
}









/* FILE: public/css/site_index.css — REPLACE THIS WHOLE “Headings / category filter” SECTION WITH THIS BLOCK
   Behavior:
   • >1400px = original list styles are active; chip grid is hidden.
   • ≤1400px = list is hidden; chip grid is shown, 4→3→2→1 responsive layout.
*/

/* ───────── Headings / category filter (shared heading) ───────── */
.site-index .feed-divider-text,
.site-cat-filter__title {
  font-family: var(--identity-font, inherit);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: var(--ft-18-17);
  line-height: 2;
  color: var(--white-color-1);
  padding: 0 14px 8px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--section-medium-background-color);
}

/* ---------- Variant toggles ---------- */
.site-cat-filter.-grid {
  width: 100%;
}

.site-cat-filter--grid {
  display: none;
}

.site-cat-filter--list {
  display: block;
}

@media (max-width: 1400px) {
  .site-cat-filter--list {
    display: none;
  }

  .site-cat-filter--grid {
    display: block;
  }
}

/* ───────── ORIGINAL LIST STYLES (desktop >1400px) ───────── */
.site-cat-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-cat-filter__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-left: 3px solid transparent;
}

.site-cat-filter__item.is-active {
  background: rgba(255, 255, 255, .035);
  border-left-color: var(--card-color, var(--site-start-color));
}

.site-cat-filter__link {
  font-family: var(--identity-font, inherit);
  font-size: var(--ft-16-15);
  color: var(--white-color-1);
  text-transform: capitalize;
}

.site-cat-filter__link:hover {
  text-decoration: underline;
}

.site-cat-filter__count {
  font-size: var(--ft-15-14);
  color: var(--grey-color-1);
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 2px 8px;
  display: none;
}

/* ───────── CHIP GRID (tablet/mobile ≤1400px) ───────── */


@media (max-width: 1400px) {
  .site-cat-filter__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 10px 12px;
    margin-bottom: 24px;
  }

  @media (max-width: 1200px) {
    .site-cat-filter__grid {
      grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
  }

  @media (max-width: 900px) {
    .site-cat-filter__grid {
      grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
  }

  @media (max-width: 400px) {
    .site-cat-filter__grid {
      grid-template-columns: 1fr;
    }
  }



  .site-cat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    color: var(--white-color-1);
    font-family: var(--identity-font, inherit);
    font-weight: 500;
    font-size: var(--ft-16-14);
    text-decoration: none;
    letter-spacing: .02em;
    transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
    will-change: background-color, transform;
  }

  .site-cat-chip:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
  }

  .site-cat-chip.is-active,
  .site-cat-chip[aria-current="page"] {
    background: var(--card-color, var(--site-start-color));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(90, 110, 248, .28);
  }
}

/* ───────── Latest list / cards (unchanged) ───────── */
.site-index .feed-vertical .feed-item {
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
}

.site-index .feed-vertical .feed-item+.feed-item {
  margin-top: 14px;
}

/* Rail ad width */
.site-index__rail .ad-slot {
  width: var(--si-col-rail);
  max-width: 100%;
}

/* Featured (“More Of”) spacing */
.site-index .moreof-hf .feed-divider-text {
  margin-top: 6px;
}













/* ─────────────────────  SCOREs ───────────────────── */


/* Score overlay on site index vertical cards (reviews only) */
.site-index .feed-vertical .feed-item {
  position: relative;
}

.site-index .feed-item-score {
  position: absolute;
  left: 8px;
  bottom: 10px;
  font-size: var(--ft-19-15);
  ;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* purely decorative; remove if you want it clickable */
}

@media (max-width: 600px) {
  .site-index .feed-item-score {
    font-size: var(--fm-15-12);
    left: 6px;
    bottom: 8px;
  }
}






.site-index__feature .moreof-hero__card,
.site-index__feature .moreof-hf__sideCard {
  container-type: size;
  /* was inline-size */
}

/* FILE: public/css/view_site_index_layout.css — REPLACE THIS BLOCK (.moreof-hero-item-score) */
/* Size the score by the card’s container height; keep top-left placement */
.moreof-hero-item-score {
  position: absolute;
  top: 12px;
  left: 10px;
  right: auto;
  bottom: auto;
  font-size: clamp(16px, 9.9cqh, 29px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (max-width: 700px) {
  .moreof-hero-item-score {
    font-size: clamp(19px, 5.6667px + 3.3333vw, 29px)
  }
}











/* ───────────────────── Latest list tweaks ───────────────────── */

.site-index .feed-vertical .feed-item {
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
}

.site-index .feed-vertical .feed-item+.feed-item {
  margin-top: 14px;
}

/* Ad rail */
.site-index__rail .ad-slot {
  width: var(--si-col-rail);
  max-width: 100%;
}

/* Ensure feature (hero block) breathes a bit */
.site-index .moreof-hf .feed-divider-text {
  margin-top: 6px;
}


.site-index .editors-choice-badge {
  display: flex;
  position: absolute;
  top: 0.75rem;
  right: calc(60% + 0.75rem);
  font-size: var(--ft-16-13);
  z-index: 10;
}



@media (max-width: 600px) {
  .site-index .editors-choice-badge {
    font-size: var(--fm-13-11);
    top: 0.55rem;
    right: calc(60% + 0.55rem);
  }
}









/* ───────────────────────── Pagination buttons (drop-in) ─────────────────────────
   Targets: .site-pager, .site-pager__list, .site-pager__item,
            .site-pager__link, .site-pager__arrow, .site-pager__ellipsis
   Matches the desired look: centered row, rounded squares, blue active.
--------------------------------------------------------------------------- */
.site-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 22px 0 6px;
  user-select: none;
}

.site-pager__list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-pager__item {
  list-style: none;
}

.site-pager__link,
.site-pager__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: var(--identity-font, inherit);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}

/* page numbers */
.site-pager__link {
  color: var(--white-color-1);
  background: transparent;
}

.site-pager__item .site-pager__link:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .08);
}

.site-pager__item.is-active .site-pager__link {
  color: #fff;
  background: var(--card-color, var(--site-start-color));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(90, 110, 248, .32);
}

/* prev/next arrows */
.site-pager__arrow {
  color: var(--white-color-1);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}

.site-pager__arrow:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}

.site-pager__arrow.is-disabled {
  opacity: .45;
  pointer-events: none
}

/* ellipsis */
.site-pager__ellipsis {
  color: var(--text-3, #8e97aa);
  width: 16px;
  text-align: center;
  font-weight: 700
}

/* focus ring */
.site-pager__link:focus-visible,
.site-pager__arrow:focus-visible {
  outline: 2px solid var(--site-color, #5a6ef8);
  outline-offset: 2px
}

/* compact on mobile */
@media (max-width:480px) {

  .site-pager__link,
  .site-pager__arrow {
    height: 38px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 15px
  }

  .site-pager__list {
    gap: 16px
  }
}


















/* ==========================================================================
   BRANDS DIRECTORY — Grid styles (4x → 3x → 2x → 1x)
   --------------------------------------------------------------------------
   Uses CSS Grid auto-placement. Cards are intentionally simple/lightweight.
   ========================================================================== */

.site-index--brands .site-index__grid.-brands {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-column-gap: 24px;
  align-items: start;
}

@media (max-width: 1150px) {
  .site-index--brands .site-index__grid.-brands {
    grid-template-columns: 1fr;
  }

  .site-index--brands .site-index__rail {
    order: 3;
    margin-top: 24px;
  }
}


/* ==========================================================================
   BRANDS DIRECTORY — Grid & Tile (add-only)
   -------------------------------------------------------------------------- */
.site-index-hubs,
.site-index-brands {
  background-color: var(--section-darkestdarker-background-color);
}

.site-index .brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1250px) {
  .site-index .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1150px) {
  .site-index .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-index .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .site-index .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  background-color: var(--section-dark-background-color);
  text-decoration: none;
  padding: 16px 12px;

  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.brand-card:hover {
  transform: translateY(-2px);
  background: var(--section-medium-background-color);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

.brand-card__logoWrap {
  width: 90%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 999px;


  overflow: hidden;
}

.brand-card__logo {
  max-width: 74%;
  max-height: 74%;
  width: auto;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimizeQuality;
}

/* FILE: public/css/site_index.css — DROP-IN REPLACEMENT
   BRAND CARD NAME — allow wrapping (incl. single long words), cap at 2 lines
*/
.brand-card__name {
  font-family: var(--identity-font, inherit);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-22px);
  color: var(--white-color-1, #fff);
  text-align: center;

  /* 👇 wrapping behavior */
  white-space: normal;
  /* permit wrapping */
  overflow-wrap: anywhere;
  /* break long single words if needed */
  word-break: break-word;
  /* Safari fallback */
  hyphens: auto;
  /* nicer splits where possible */
  text-wrap: balance;
  /* prettier 2-line titles where supported */

  /* 👇 keep tiles uniform height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* clamp to two lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  max-width: 100%;
}


@media (max-width: 900px) {
  .brand-card__name {
    font-size: var(--ft-22-18)
  }
}


@media (max-width: 600px) {
  .brand-card__name {
    font-size: var(--fm-18-16)
  }
}


/* FILE: public/css/site_index.css — APPEND (NEW CLASSES ONLY) */
/* ───────── BRANDS Top Dashboard: 3×2 grid in the stage ───────── */
.brands-dash__stageGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 2fr;
  gap: 12px;
  align-items: stretch;

}

@media (max-width:900px) {
  .brands-dash__stageGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:400px) {
  .brands-dash__stageGrid {
    grid-template-columns: 1fr;
  }
}


/* FILE: public/css/site_index.css — DROP-IN REPLACEMENT BLOCKS */
.grid-dash__tile {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 14px;
  height: 100%;
  border-radius: 4px;
  text-decoration: none;
  background-color: var(--section-dark-background-color);
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
  aspect-ratio: 1;
}

.grid-dash__tile:hover {
  transform: translateY(-2px);
  background: var(--section-medium-background-color);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

.grid-dash__tile img {
  max-width: 65%;
  max-height: 65%;
  width: auto;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}


.u-gridRowsEven {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
}


.u-minSizeZero {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

@media (max-width:400px) {
  .u-show3At1Col>*:nth-child(n+4) {
    display: none;
  }

  .grid-dash__tile {}
}










/* ==========================================================================
   GAMES DIRECTORY — Grid styles (4x → 3x → 2x → 1x)
   --------------------------------------------------------------------------
   Uses CSS Grid auto-placement. Cards are intentionally simple/lightweight.
   ========================================================================== */

/* ---- main grid ---- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}


@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.game-card__artWrap {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 10;
  /* enforce 7:10 */
  border-radius: 10px;
  overflow: hidden;
  background: var(--tile-bg, #0e0f11);
}

.game-card__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card__name {
  font-family: var(--identity-font, inherit);
  font-weight: 600;
  text-transform: capitalize;
  font-size: var(--ft-17-15);
  color: var(--white-color-1, #fff);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-wrap: balance;
  display: -webkit-box;
  margin-top: 4px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  max-width: 100%;
}

.game-card:hover .game-card__name,
.game-card:focus-visible .game-card__name {
  background: linear-gradient(to right, var(--site-start-color), var(--site-end-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}




@media (max-width: 600px) {
  .game-card__name {
    font-size: var(--fm-16-14)
  }
}



.games-dash__stageGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(380px, 271.1111px + 15.5556vw, 450px);
  gap: 16px;
}

@media (max-width: 900px) {
  .games-dash__stageGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.site-index--games .grid-dash__tile {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.site-index--games .grid-dash__tile img,
.site-index--games .brands-dash__logo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: cover;
  /* fill the entire tile area */
}


.game-card__artWrap[data-tilt] {
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform .2s cubic-bezier(.03, .98, .52, .99), box-shadow .2s ease;
  border-radius: 10px;
  /* reinforce radius for glare wrapper inheritance */
}

.game-card:hover .game-card__artWrap {
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}

@media (prefers-reduced-motion: reduce) {
  .game-card__artWrap[data-tilt] {
    transition: none;
  }
}






/* ==========================================================================
   HUBS DIRECTORY — Grid styles (4x → 3x → 2x → 1x)
   --------------------------------------------------------------------------
   Uses CSS Grid auto-placement. Cards are intentionally simple/lightweight.
   ========================================================================== */

/* ---- main grid ---- */






.site-index--hubs .grid-dash__tile img,
.site-index--hubs .brands-dash__logo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: cover;
  /* fill the entire tile area */
}


.site-index--hubs .brand-card__logoWrap--svg {
  position: relative;
  width: 70%;
  aspect-ratio: 16 / 11;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #fff;
  /* currentColor → white glyphs */
  overflow: hidden;
}

.site-index--hubs .brand-card__logoWrap--svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-index--hubs .brand-card {
  gap: 0;
  padding: 1.65rem .9rem 1.35rem .9rem
}

.site-index--hubs .brand-card__name {
  margin-top: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: var(--font-size-15px);
  color: var(--card-color, var(--site-start-color));
  line-height: 1.1;
  text-transform: capitalize;
}


.hub-card__name {
  font-family: var(--identity-font, inherit);
  font-weight: 600;
  text-transform: capitalize;
  font-size: var(--font-size-18px);
  color: var(--white-color-1, #fff);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}


@media (max-width: 900px) {
  .site-index--hubs .brand-card__name {
    font-size: var(--ft-15-13)
  }

  .hub-card__name {
    font-size: var(--ft-18-16)
  }
}


@media (max-width: 600px) {
  .site-index--hubs .brand-card__name {
    font-size: var(--fm-13-11)
  }

  .hub-card__name {
    font-size: var(--fm-16-14)
  }
}

.grid-dash__tile {
  padding: 0;
}


.site-index--hubs .tools-matrix {
  width: 100%;
  overflow-x: auto;
  /* horizontal scroll only */
  overflow-y: visible;
  /* let page scroll vertically */
  height: auto;
  max-height: none;
  padding-bottom: 2px;
  --tools-cols: var(--tools-cols, 4);
  /* set by HBS inline style */
  --tools-col-w: 220px;
  /* fixed logical column width */
}

/* FILE: public/css/site_index.css — REPLACE THIS BLOCK */
.site-index--hubs .tools-matrix__row {
  display: grid;
  grid-template-columns: repeat(var(--tools-cols), var(--tools-col-w));
  width: max-content;
  /* grow to full table width */
  gap: 12px;
  align-items: stretch;
}


.site-index--hubs .tools-matrix__row+.tools-matrix__row {
  margin-bottom: 12px;
}


/* FILE: public/css/site_index.css — REPLACE THIS BLOCK */
.site-index--hubs .tools-matrix__row--head {
  display: grid;
  grid-template-columns: repeat(var(--tools-cols), var(--tools-col-w));
  width: max-content;
  /* header spans full table */
  background: linear-gradient(var(--section-dark-background-color), var(--section-dark-background-color));
  padding: 9.5px 0 9.5px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 12px;
}


/* FILE: public/css/site_index.css — REPLACE THIS BLOCK */
.site-index--hubs .tools-matrix__head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tools-col-w);
  position: relative;
  font-family: var(--identity-font, inherit);
  font-weight: 600;
  gap: .5rem;
  text-transform: uppercase;
  font-size: var(--ft-17-15);
  letter-spacing: .02em;
  color: var(--white-color-1);
  border-radius: 10px;
}



@media (max-width: 600px) {
  .site-index--hubs .tools-matrix__head {
    font-size: var(--fm-15-14);
  }
}


.site-index--hubs .tools-matrix__cell {
  min-width: 0;
  box-sizing: border-box;
}


.site-index--hubs .tools-matrix__cell.-empty {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  border: 1px dashed rgba(255, 255, 255, .06);
}

.site-index--hubs .tools-matrix__dash {
  color: var(--grey-color-2);
  opacity: .7;
  font-size: 20px;
  line-height: 1;
}


/* Mobile: narrower min column widths, still horizontal scroll if needed */
/* FILE: public/css/site_index.css — REPLACE THIS MEDIA QUERY BLOCK */
@media (max-width: 900px) {
  .site-index--hubs .tools-matrix {
    --tools-col-w: 200px;
  }
}

@media (max-width: 600px) {
  .site-index--hubs .tools-matrix {
    --tools-col-w: 180px;
  }
}




/* FILE: public/css/site_index.css — APPEND (NEW CLASSES)
   Hubs dashboard: black gradient overlay + centered plural category label.
   Scope is limited to the hubs page (.site-index--hubs) so other pages using
   the same partial are unaffected.
*/


.site-index--hubs .grid-dash__tile {
  position: relative;
  /* ensure overlay/label are positioned correctly */
  overflow: hidden;
  aspect-ratio: 1.15;
  --dashboard-hub-label: clamp(2rem, 0.606rem + 1.333vw, 2.545rem)
    /*28-22 */
}

@media (max-width: 1150px) {
  .site-index--hubs .grid-dash__tile {
    --dashboard-hub-label: clamp(2rem, 0.364rem + 2vw, 2.455rem)
      /*27-22 */
  }

}

@media (max-width: 900px) {
  .site-index--hubs .grid-dash__tile {
    --dashboard-hub-label: clamp(1.545rem, 0.818rem + 2vw, 2.455rem)
      /*27-17 */
  }
}

@media (max-width: 400px) {
  .site-index--hubs .grid-dash__tile {
    --dashboard-hub-label: clamp(1.545rem, -0.091rem + 6vw, 2.091rem)
      /*27-17 */
  }
}

/* Overlay sits over the image */
.site-index--hubs .grid-dash__overlay {
  top: 0;
  height: calc(100% - var(--dashboard-hub-label) - var(--dashboard-hub-label));
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: black;
  opacity: .0;
  transition: opacity .18s ease;
}

.site-index--hubs .grid-dash__label_overlay {
  position: absolute;
  bottom: 0%;
  width: 100%;
  z-index: 2;
  line-height: 1.0;
  height: calc(var(--dashboard-hub-label) + var(--dashboard-hub-label));
  background-color: var(--card-color);
  opacity: 0.85;
}


.site-index--hubs .grid-dash__label {
  position: absolute;
  bottom: 0%;
  width: 100%;
  z-index: 3;
  margin: 0;
  padding: calc(var(--dashboard-hub-label) / 2);
  font-family: var(--identity-font, inherit);
  font-weight: 900;
  letter-spacing: -.5px;
  text-transform: capitalize;
  text-align: center;
  line-height: 1.0;
  font-size: var(--dashboard-hub-label);
  color: #fff;
  /*  text-shadow: 0 2px 4px rgba(0, 0, 0, .5); */
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* ============================================================================
FILE: public/css/site_index.css — APPEND (Hubs index heading + arrows)
Derives visual language from .feature-board-arrow styles. 
============================================================================ */
/* ============================================================================
   TOOLS MATRIX — Heading row wrapper (title + arrows)
   ========================================================================== */
.site-index--hubs .tools-matrix__headingRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-index--hubs .tools-matrix__headingRow .hubs-index-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Circular arrows (inline, not absolutely positioned) */
.site-index--hubs .hubs-index-arrow {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color-1);
  background-color: var(--section-dark-background-color);
  border: 1px solid var(--section-light-background-color);
  cursor: pointer;
  transition: color .3s ease, transform .3s ease, background-color .3s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.site-index--hubs .hubs-index-arrow svg {
  width: 50%;
  height: 50%;
}

.site-index--hubs .hubs-index-arrow.active {
  background: var(--card-color, var(--site-background-gradient));
}

@media (hover:hover) and (pointer:fine) {
  .site-index--hubs .hubs-index-arrow:hover {
    background: var(--card-color, var(--site-background-gradient));
  }

  .site-index--hubs .hubs-index-arrow.active {
    background: var(--section-dark-background-color);
  }
}

.site-index--hubs .hubs-index-arrow.inactive {
  opacity: .5;
  cursor: not-allowed;
}

/* ============================================================================
FILE: public/css/site_index.css — REPLACEMENT (TOOLS HEADER TOOLTIP STYLES)
Notes:
• Tooltips are appended to <body> (.tools-tt-floating) so they can overflow.
• One‑click on touch; on desktop they open on first hover.
• Arrow uses your site palette; bubble has NO border‑radius per request.
• This block replaces any earlier hubs tooltip rules (.tools-tooltip, etc.).
============================================================================ */

.site-index--hubs .tools-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.site-index--hubs .tools-tip-btn__icon {
  font-size: 12px;
  font-weight: 700
}

/* Floating tooltip appended to <body> */
.tools-tt-floating {
  position: fixed;
  /* outside any clipped container */
  top: -9999px;
  left: -9999px;
  /* hidden off‑screen by default */
  max-width: min(380px, 92vw);
  background: var(--section-dark-background-color, #16181a);
  border: 1px solid var(--section-medium-background-color);
  border-radius: 0;
  color: var(--white-color-1, #fff);
  font-family: var(--identity-font, inherit);
  font-size: var(--font-size-13px);
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  padding: 10px 12px;
  z-index: 10050;
  opacity: 0;
  pointer-events: auto;
  /* allow hover/click inside bubble */
  transition: opacity .08s linear;
  /* tiny fade; no fly‑in */
}

.tools-tt-floating.is-visible {
  opacity: 1
}

/* Arrow (appended to <body>); 2‑layer triangle = border + fill */
.tools-tt-floating__arrow {
  position: fixed;
  z-index: 10051;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tools-tt-floating__arrow::before,
.tools-tt-floating__arrow::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* FILE: public/css/site_index.css — REPLACE ONLY THIS ARROW ORIENTATION BLOCK */
/* Flip orientations: is-below → arrow points UP; is-above → arrow points DOWN */
/* FILE: public/css/site_index.css — REPLACE ONLY THIS ARROW ORIENTATION BLOCK */
/* Flip orientations: is-below → arrow points UP; is-above → arrow points DOWN */

.tools-tt-floating__arrow.is-below::before {
  border-width: 0 7px 7px 7px;
  border-color: transparent transparent rgba(255, 255, 255, .15) transparent;
  /* outline */
  left: -7px;
  top: -7px;
}

.tools-tt-floating__arrow.is-below::after {
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent var(--section-medium-background-color, #16181a) transparent;
  /* fill */
  left: -6px;
  top: -6px;
}

.tools-tt-floating__arrow.is-above::before {
  border-width: 7px 7px 0 7px;
  border-color: rgba(255, 255, 255, .15) transparent transparent transparent;
  /* outline */
  left: -7px;
  top: 0;
}

.tools-tt-floating__arrow.is-above::after {
  border-width: 6px 6px 0 6px;
  border-color: transparent transparent var(--section-medium-background-color, #16181a) transparent;
  /* fill */
  left: -6px;
  top: 1px;
}


/* FILE: public/css/site_index.css — APPEND (show the “?” on hover for mouse/trackpad) */
@media (hover: hover) {
  .site-index--hubs .tools-matrix__head .tools-tip-btn {
    opacity: .55;
    transition: opacity .15s ease;
  }

  .site-index--hubs .tools-matrix__head:hover .tools-tip-btn {
    opacity: 1;
  }
}