/* ─────────────────────────────────────────────────────────────────────────
   Place band — the light row of the place's tabs under the strip
   (METIS-pub#793; one row since #821's N1)

     .place-band              the band: a faint accent wash, full width
     .place-band--holon/--you/--all
                              which kind of place (place_band.py decides)
     .place-band__row         the one row: tabs, then summary
     .place-band .holon-tabs  the shared tab bar, taking the row's width
     .place-band__summary     the page's summary at the tabs' right ("56
                              people"); empty on a page that sets none

   Drawn by crm/partials/_place_band.html. Two levels of navigation, never
   more: the strip says where you are, this row is that place's tabs, so it
   draws no picture, kind or name of its own. A holon's settings views are its
   last tab, Settings (METIS-pub#826), not a gear at the row's end. Tokens only; the prototype was METIS-specs
   future/final-ux/source/base.css.
   ───────────────────────────────────────────────────────────────────────── */

@layer components {
  /* Version C (the owner's pick, #826): the identity above keeps the place's
     faint tint; the tabs sit on their own white bar with a soft shadow, a step
     below it, so the info strip and the menu read as two things. The bar runs
     the band's full width (the band has no side padding; the header and the
     row carry it). */
  .place-band {
    padding: 0;
    background: color-mix(in oklab, var(--color-accent) 5%, var(--color-surface));
  }

  .place-band > .place-header { padding-inline: var(--space-md); }

  .place-band__row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
    padding: var(--space-1) var(--space-md) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--elev-1);
  }

  .place-band .holon-tabs {
    flex: 1;
    min-width: 0;
    align-self: flex-end;
    margin: 0 0 -1px;
    border-bottom: 0;
    /* Too many tabs for the width: they scroll sideways inside the row, with no
       scroll bar drawn in the heading (#811), and never run under the summary. */
    overflow-x: auto;
    scrollbar-width: none;
  }
  .place-band .holon-tabs::-webkit-scrollbar { display: none; }

  /* More tabs past an edge (#826 m8): crm/js/place_band.js marks the edge, and
     it fades out, so a cut-off row says it scrolls. A mask, not an overlay,
     so it fades into whatever the band's ground is in each theme. */
  .place-band .holon-tabs[data-fade-end] {
    mask-image: linear-gradient(to right, var(--black) calc(100% - var(--space-8)), transparent);
  }

  .place-band .holon-tabs[data-fade-start] {
    mask-image: linear-gradient(to left, var(--black) calc(100% - var(--space-8)), transparent);
  }

  .place-band .holon-tabs[data-fade-start][data-fade-end] {
    mask-image: linear-gradient(to right, transparent, var(--black) var(--space-8),
                                var(--black) calc(100% - var(--space-8)), transparent);
  }

  .place-band__summary {
    flex: none;
    margin: 0;
    padding: var(--space-2) 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    white-space: nowrap;
  }

  .place-band__summary:empty { display: none; }

  .place-band__summary b {
    color: var(--color-text-strong);
    font-weight: 600;
  }

  @media (max-width: 767px) {
    .place-band > .place-header { padding-inline: var(--space-3); }
    .place-band__row {
      gap: var(--space-2);
      padding: var(--space-1) var(--space-3) 0;
    }
    /* On a phone the tabs need the width more than the count does, so the count
       shows only on wider screens. */
    .place-band__summary { display: none; }
  }
}
