/**
 * Media profile card landing integration: card-only extract from
 * media-profile-card-v13.css (git commit b6cf997, tag site-prototypes-2026-11; variant 03, identity cluster).
 *
 * Scope: everything here targets .sh-taste-showcase and its
 * descendants (f13-*, s13-*, s-* class names from the v13 lab sheet).
 * No html/body resets, no lab chrome (hero, variant headers, wide/
 * mobile segmented toggles, copy-length toggle, sheet footer): the
 * homepage supplies its own page shell via stella-home.css.
 *
 * Tokens (--s13-*) are scoped under .sh-taste-showcase and its dark
 * variant instead of :root, so they never fight the page's --sh-*
 * tokens. Container queries key off .s13-frame (container-name:
 * card); the frame is full width here, no fixed 390px lab frame, so
 * the fork between the mobile Folio stack and the wide 2-column
 * layout follows the card's real rendered width on the page.
 */

.sh-taste-showcase {
  --s13-coral: #ee583f;
  --s13-charcoal: #333333;
  --s13-cream: #fcf3ea;
  --s13-sage: #a4ccc4;
  --s13-gold: #fbb94b;

  --s13-paper: var(--s13-cream);
  --s13-paper-deep: #f6e8d8;
  --s13-card: #fffaf3;
  --s13-panel-face: #fffdf8;
  --s13-ink: var(--s13-charcoal);
  --s13-ink-soft: #6b5f56;
  --s13-ink-faint: #93857a;
  --s13-line: rgba(51, 51, 51, 0.16);
  --s13-line-strong: rgba(51, 51, 51, 0.42);
  --s13-sage-tint: rgba(164, 204, 196, 0.28);
  --s13-sage-panel: #d7e8e4;

  /* Outline chips: the only chip recipe this card ships. */
  --s13-chip-paper: #fffdf8;
  --s13-chip-outline: rgba(51, 51, 51, 0.55);

  /* Speech-bubble status: ~10% Stella coral mixed into the bubble's
     paper base. color-mix keeps the fill opaque so the tail triangle
     can mask the bubble wall on any backdrop. */
  --s13-bubble-line: rgba(51, 51, 51, 0.3);
  --s13-speech-base: #fdf6ee;
  --s13-speech-fill: color-mix(in srgb, var(--s13-coral) 10%, var(--s13-speech-base));

  --s13-plane-sage: rgba(126, 173, 163, 0.6);
  --s13-hairline: rgba(255, 252, 246, 0.85);

  --s13-scrim: rgba(26, 24, 22, 0.72);

  --s13-shadow-card:
    0 1px 2px rgba(51, 51, 51, 0.1),
    0 6px 18px rgba(51, 51, 51, 0.16);
  --s13-shadow-raise:
    0 1px 3px rgba(51, 51, 51, 0.12),
    0 5px 14px rgba(51, 51, 51, 0.2);
  --s13-shadow-cover: 0 3px 10px rgba(51, 51, 51, 0.2);

  --s13-bezel:
    0 0 0 1px var(--s13-hairline),
    inset 0 1px 0 0 var(--s13-hairline);

  --s13-radius-point: 0px;
  --s13-radius-pill: 999px;

  --s13-font-display: "lavigne-display", "zenon", "Source Serif 4", Georgia, serif;
  --s13-font-ui: "itc-avant-garde-gothic-pro", "Jost", system-ui, sans-serif;
  --s13-font-body: "le-monde-livre-std", "Source Serif 4", Georgia, serif;

  --s13-s1: 8px;
  --s13-s2: 12px;
  --s13-s3: 16px;
  --s13-s4: 24px;
  --s13-s5: 32px;
  --s13-s6: 48px;

  /* Wrapper polish: full width host, no fixed lab frame. */
  display: block;
  width: 100%;
  max-width: min(920px, 100%);
  margin-inline: auto;
}

html[data-theme="dark"] .sh-taste-showcase {
  --s13-paper: #2a2724;
  --s13-paper-deep: #232019;
  --s13-card: #35312d;
  --s13-panel-face: #403a34;
  --s13-ink: #f3e9dd;
  --s13-ink-soft: #cbbdae;
  --s13-ink-faint: #a3968a;
  --s13-line: rgba(243, 233, 221, 0.18);
  --s13-line-strong: rgba(243, 233, 221, 0.45);
  --s13-sage-tint: rgba(164, 204, 196, 0.14);
  --s13-sage-panel: #3d4a47;

  --s13-chip-paper: #403a34;
  --s13-chip-outline: rgba(243, 233, 221, 0.5);

  --s13-bubble-line: rgba(243, 233, 221, 0.32);
  --s13-speech-base: #3b3631;
  --s13-speech-fill: color-mix(in srgb, var(--s13-coral) 12%, var(--s13-speech-base));

  --s13-plane-sage: rgba(107, 148, 139, 0.5);
  --s13-hairline: rgba(243, 233, 221, 0.22);

  --s13-scrim: rgba(10, 9, 8, 0.78);

  --s13-shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 6px 18px rgba(0, 0, 0, 0.38);
  --s13-shadow-raise:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 5px 14px rgba(0, 0, 0, 0.42);
  --s13-shadow-cover: 0 3px 10px rgba(0, 0, 0, 0.42);
}

.sh-taste-showcase img {
  display: block;
  max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* Single-line horizontal scroll: titles, chip rows, tag rows          */
/* ------------------------------------------------------------------ */

.s-scroll-x {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  scrollbar-width: none;
}

.s-scroll-x::-webkit-scrollbar {
  display: none;
}

.s-scroll-x.is-overflowing:not(.is-at-end) {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}

/* While the mobile ping-pong drift is running, fade BOTH edges so the
   row reads as a window onto a longer line rather than a cut. */
.s-scroll-x.is-auto-scrolling {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

/* ------------------------------------------------------------------ */
/* Clamp + tap to expand (narrow card widths only)                     */
/* ------------------------------------------------------------------ */

.s13-clamp {
  --s13-clamp-lines: 3;
}

.f13-status-text.s13-clamp {
  --s13-clamp-lines: 2;
}

@container card (max-width: 659.98px) {
  .s13-clamp.is-clamped:not(.is-expanded) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--s13-clamp-lines);
    line-clamp: var(--s13-clamp-lines);
    overflow: hidden;
  }
}

.s13-clamp.is-togglable {
  cursor: pointer;
}

.s13-clamp.is-togglable:focus-visible {
  outline: 2px solid var(--s13-coral);
  outline-offset: 2px;
}

.f13-shelf-btn:focus-visible,
.f13-shelf-close:focus-visible,
.f13-filter-btn:focus-visible,
.f13-shelf:focus-visible {
  outline: 2px solid var(--s13-coral);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Frame: the @container host. Full width, no fixed lab frame.         */
/* ------------------------------------------------------------------ */

.s13-frame {
  container-type: inline-size;
  container-name: card;
}

.sh-taste-showcase .s13-frame {
  width: 100%;
  max-width: none;
}

/* ------------------------------------------------------------------ */
/* Shared atoms                                                        */
/* ------------------------------------------------------------------ */

.s-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--s13-radius-pill);
  background: var(--s13-charcoal);
  color: var(--s13-cream);
  font-family: var(--s13-font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 2px var(--s13-card), 0 0 0 3px var(--s13-coral);
}

.s-handle {
  margin: 2px 0 0;
  font-family: var(--s13-font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--s13-coral);
}

.s-bio {
  margin: 0;
  font-family: var(--s13-font-body);
  font-style: italic;
  font-size: 14.5px;
  color: var(--s13-ink-soft);
}

.s-medium {
  display: inline-block;
  font-family: var(--s13-font-ui);
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s13-coral);
  border: 1px solid currentColor;
  border-radius: var(--s13-radius-pill);
  padding: 1px 8px 0;
  margin-right: 6px;
  vertical-align: 1px;
}

/* Genre chips: catalog outline recipe. Cream paper fill, thin ink
   outline, ink label. flex: none keeps each chip a single
   unbreakable unit in the scroller. */
.s-chip {
  display: inline-block;
  flex: none;
  font-family: var(--s13-font-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--s13-radius-pill);
  background: var(--s13-chip-paper);
  border: 1px solid var(--s13-chip-outline);
  color: var(--s13-ink);
}

.s-row-label {
  display: flex;
  align-items: center;
  gap: var(--s13-s2);
  margin: 0 0 var(--s13-s2);
  font-family: var(--s13-font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s13-ink-faint);
}

.s-row-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--s13-line);
}

/* ------------------------------------------------------------------ */
/* The Folio hybrid card shell                                         */
/* ------------------------------------------------------------------ */

.f13-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--s13-card);
  border: 1px solid var(--s13-line-strong);
  border-radius: var(--s13-radius-point);
  box-shadow: var(--s13-bezel), var(--s13-shadow-card);
}

@container card (min-width: 660px) {
  .f13-card {
    grid-template-columns: minmax(220px, 0.62fr) 1.45fr;
  }
}

/* ------------------------------------------------------------------ */
/* Identity rail: flat sage, both widths                               */
/* ------------------------------------------------------------------ */

/* Mobile-first: compact strip of avatar + name + handle with the tag
   scroll row spanning below. Bio, status and range live in the wide
   rail; on mobile the status re-enters the flow after the chip row
   (.f13-mobile-status). */
.f13-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: var(--s13-s2);
  padding: var(--s13-s2) 20px;
  background: var(--s13-sage-panel);
  border-bottom: 1px solid var(--s13-line-strong);
}

.f13-identity .s-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.f13-id-text {
  min-width: 0;
}

.f13-name {
  margin: 0;
  font-family: var(--s13-font-display);
  font-weight: 700;
  font-size: clamp(20px, 5cqi, 26px);
  line-height: 1.08;
}

/* Personal tags. Mobile: one horizontal scroll row with middot
   separators baked into the text; .s-scroll-x supplies nowrap +
   overflow + the fade hint, and the mobile auto-scroll drifts it
   when it overflows. */
.f13-tag-scroll {
  grid-column: 1 / -1;
  margin: var(--s13-s1) 0 0;
  font-family: var(--s13-font-ui);
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--s13-ink-soft);
}

/* Wide vertical tag list: unused by the identity-cluster fork (which
   uses the wrapped tag-scroll line instead), kept hidden on every
   width so the markup can stay a plain <ul>. */
.f13-tags {
  display: none;
  list-style: none;
  margin: var(--s13-s3) 0 0;
  padding: 0;
}

.f13-tags li {
  font-family: var(--s13-font-ui);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--s13-ink-soft);
  padding: 5px 0;
}

.f13-tags li + li {
  border-top: 1px dotted var(--s13-line);
}

.f13-identity .s-bio,
.f13-status,
.f13-range {
  display: none;
}

.f13-rail-label {
  margin: 0 0 4px;
  font-family: var(--s13-font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s13-ink-faint);
}

/* Speech-bubble status: ~10% coral fill (opaque via color-mix), thin
   stroke, tail attached at the rim where the status text starts,
   pointing up at the speaker. Status text is upright. Applies on
   both the wide rail block and the mobile block. */
.f13-status-text {
  margin: 0;
  font-family: var(--s13-font-body);
  font-size: 14.5px;
  font-style: normal;
  line-height: 1.5;
  color: var(--s13-ink);
}

.f13-bubble {
  position: relative;
  margin-top: 7px;
  padding: 10px 14px;
  background: var(--s13-speech-fill);
  border: 1px solid var(--s13-bubble-line);
  border-radius: 0;
}

.f13-bubble::before,
.f13-bubble::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Tail: outline triangle, then a fill triangle 1px inside that
   overlaps the bubble's top border so the tail opens into the
   bubble. Anchored at the left where the status text starts. */
.f13-bubble::before {
  top: -8px;
  left: 15px;
  border-width: 0 8px 8px 8px;
  border-color: transparent transparent var(--s13-bubble-line) transparent;
}

.f13-bubble::after {
  top: -6px;
  left: 16.5px;
  border-width: 0 6.5px 7px 6.5px;
  border-color: transparent transparent var(--s13-speech-fill) transparent;
}

.f13-range-text {
  margin: 0;
  font-family: var(--s13-font-ui);
  font-weight: 300;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--s13-ink);
}

@container card (min-width: 660px) {
  .f13-identity {
    display: block;
    padding: var(--s13-s4);
    border-bottom: 0;
    border-right: 1px solid var(--s13-line-strong);
  }

  .f13-identity .s-avatar {
    width: 64px;
    height: 64px;
    font-size: 22px;
    margin-bottom: var(--s13-s2);
  }

  .f13-tag-scroll {
    display: none;
  }

  .f13-identity .s-bio {
    display: block;
    margin-top: var(--s13-s2);
  }

  .f13-status {
    display: block;
    margin-top: var(--s13-s4);
  }

  .f13-range {
    display: block;
    margin-top: var(--s13-s3);
  }
}

/* ------------------------------------------------------------------ */
/* 03 identity cluster: tags tuck under name/handle, bio follows at    */
/* descriptor scale, and the lower rail is Status + Range behind one  */
/* clear divider (fewest beats on the rail).                          */
/* ------------------------------------------------------------------ */

@container card (min-width: 660px) {
  .f13-card--rail-cluster .f13-tags {
    display: none;
  }

  .f13-card--rail-cluster .f13-tag-scroll {
    display: block;
    grid-column: auto;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--s13-ink-faint);
    white-space: normal;
    overflow: visible;
  }

  .f13-card--rail-cluster .f13-identity .s-bio {
    margin-top: var(--s13-s1);
    font-size: 13.5px;
  }

  .f13-card--rail-cluster .f13-status {
    margin-top: var(--s13-s4);
    padding-top: var(--s13-s3);
    border-top: 1px solid var(--s13-line-strong);
  }

  .f13-card--rail-cluster .f13-range {
    margin-top: var(--s13-s3);
  }
}

/* ------------------------------------------------------------------ */
/* Right rail: evidence column                                         */
/* ------------------------------------------------------------------ */

.f13-evidence {
  padding: var(--s13-s2) 20px var(--s13-s4);
  min-width: 0;
}

@container card (min-width: 660px) {
  .f13-evidence {
    padding: var(--s13-s4);
  }
}

/* Folio chrome is wide-only: on mobile the head is cut. */
.f13-evidence-head {
  display: none;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s13-s2);
  padding-bottom: var(--s13-s2);
  border-bottom: 1px solid var(--s13-line-strong);
}

@container card (min-width: 660px) {
  .f13-evidence-head {
    display: flex;
  }
}

.f13-kicker-label {
  margin: 0;
  font-family: var(--s13-font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s13-ink-faint);
}

.f13-evidence-hint {
  font-family: var(--s13-font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--s13-ink-faint);
}

.f13-pick-label {
  display: block;
  margin: 0 0 var(--s13-s2);
  font-family: var(--s13-font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s13-coral);
}

/* ------------------------------------------------------------------ */
/* Lead entry: poster | main grid, title top-aligned, chips below      */
/* ------------------------------------------------------------------ */

.f13-lead {
  padding: 0;
}

@container card (min-width: 660px) {
  .f13-lead {
    padding-top: var(--s13-s3);
  }
}

/* The stack: lead-grid (poster | text column) with the chip row as a
   sibling below it. Mobile renders that directly: full width chips
   beneath the poster + text block, doubling as the section break
   before the status. Wide turns the stack into a two column grid and
   flattens lead-grid with display: contents, so the cover spans two
   rows and main + chips stack in column 2. */
.f13-lead-stack {
  margin-top: var(--s13-s2);
}

.f13-lead-grid {
  display: grid;
  grid-template-columns: minmax(96px, 128px) 1fr;
  gap: var(--s13-s2);
  align-items: start;
}

@container card (min-width: 660px) {
  .f13-lead-stack {
    display: grid;
    grid-template-columns: minmax(120px, 148px) 1fr;
    column-gap: var(--s13-s3);
    align-items: start;
  }

  .f13-lead-grid {
    display: contents;
  }

  .f13-lead-cover {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .f13-lead-main {
    grid-column: 2;
  }

  .f13-lead-stack > .f13-chip-row {
    grid-column: 2;
  }
}

.f13-lead-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--s13-line-strong);
  box-shadow:
    0 0 0 1px var(--s13-hairline),
    4px 4px 0 0 var(--s13-plane-sage),
    var(--s13-shadow-cover);
}

.f13-lead-main {
  min-width: 0;
}

.f13-lead-title {
  margin: 0;
  font-family: var(--s13-font-display);
  font-weight: 700;
  font-size: clamp(26px, 7cqi, 38px);
  line-height: 1.1;
}

.f13-lead-meta {
  margin: var(--s13-s1) 0 0;
  font-family: var(--s13-font-body);
  font-size: 12.5px;
  font-style: italic;
  color: var(--s13-ink-faint);
}

/* The soft attached quote: sage fill marks the user's own words. This
   is the one sage-filled surface on the card; the chips never match
   it. The only ornament is a short sage hairline above the source. */
.f13-quote {
  margin: var(--s13-s2) 0 0;
  padding: var(--s13-s2) var(--s13-s3);
  background: var(--s13-sage-tint);
  border: 0;
  border-radius: var(--s13-radius-point);
}

.f13-quote-text {
  margin: 0;
  font-family: var(--s13-font-body);
  font-size: clamp(13.5px, 3.4cqi, 16px);
  font-style: italic;
  line-height: 1.45;
  color: var(--s13-ink);
}

.f13-quote-src {
  display: block;
  margin-top: var(--s13-s1);
  font-family: var(--s13-font-ui);
  font-size: 10px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s13-ink-faint);
}

.f13-quote-src::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 6px;
  background: var(--s13-plane-sage);
}

/* ------------------------------------------------------------------ */
/* Chip row: one scroll line; on mobile it is also the section break   */
/* ------------------------------------------------------------------ */

.f13-chip-row {
  display: flex;
  gap: var(--s13-s1);
  margin-top: var(--s13-s2);
  padding: 0 0 var(--s13-s2);
  border-top: 0;
  border-bottom: 1px solid var(--s13-line);
}

@container card (min-width: 660px) {
  .f13-chip-row {
    margin-top: var(--s13-s2);
    padding: 0 0 6px;
    border-top: 0;
    border-bottom: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Status on mobile only, after the chip-row separator                 */
/* ------------------------------------------------------------------ */

.f13-mobile-status {
  margin-top: var(--s13-s3);
}

@container card (min-width: 660px) {
  .f13-mobile-status {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Also on the shelf: strip + See all control                          */
/* ------------------------------------------------------------------ */

.f13-strip {
  margin-top: var(--s13-s4);
}

.f13-strip-head {
  display: flex;
  align-items: center;
  gap: var(--s13-s2);
  margin-bottom: var(--s13-s2);
}

.f13-strip-head .s-row-label {
  flex: 1;
  margin-bottom: 0;
}

/* Text-button family (See all, Close): coral text, no pill fill, so
   controls never dress like the genre chips. */
.f13-shelf-btn,
.f13-shelf-close {
  flex: none;
  font-family: var(--s13-font-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 1px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--s13-coral);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}

.f13-shelf-btn:hover,
.f13-shelf-close:hover {
  border-bottom-color: var(--s13-coral);
}

.f13-shelf-btn[aria-expanded="true"] {
  border-bottom-color: var(--s13-coral);
}

/* Mobile: compact three column grid of equal covers, no sideways
   scrolling. Wide: horizontal filmstrip at a fixed 104px tile. */
.f13-strip-row {
  --s13-tile: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s13-s2);
  overflow: visible;
}

@container card (min-width: 660px) {
  .f13-strip-row {
    --s13-tile: 104px;
    display: flex;
    gap: var(--s13-s3);
    padding-bottom: var(--s13-s1);
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

.f13-strip-row > li {
  width: auto;
  min-width: 0;
}

@container card (min-width: 660px) {
  .f13-strip-row > li {
    width: calc(var(--s13-tile) + 64px);
    flex: none;
  }
}

.f13-tile {
  position: relative;
  margin: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--s13-line);
  box-shadow: var(--s13-bezel);
  background: var(--s13-card);
}

@container card (min-width: 660px) {
  .f13-strip-row .f13-tile {
    width: var(--s13-tile);
  }
}

.f13-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category pill overlaid top-left on the cover: white on scrim. Does
   not unify with the coral FILM pill on the lead. */
.f13-tile-cat {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  font-family: var(--s13-font-ui);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--s13-cream);
  background: var(--s13-scrim);
  border-radius: var(--s13-radius-pill);
}

.f13-tile-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: var(--s13-s1) 0 0;
  font-family: var(--s13-font-ui);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
}

/* ------------------------------------------------------------------ */
/* The shelf: in-card expand panel with media type filter              */
/* ------------------------------------------------------------------ */

/* An expand panel rather than a modal dialog, so it stays inside the
   card and never fights the container query context. JS toggles
   [hidden], moves focus here on open (tabindex="-1") and closes on
   Esc. */
.f13-shelf {
  margin-top: var(--s13-s3);
  padding: var(--s13-s3);
  background: var(--s13-panel-face);
  border: 1px solid var(--s13-line-strong);
  border-radius: var(--s13-radius-point);
  box-shadow: 0 0 0 1px var(--s13-hairline) inset;
}

.f13-shelf[hidden] {
  display: none;
}

.f13-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s13-s2);
  margin-bottom: var(--s13-s2);
}

.f13-shelf-title {
  margin: 0;
  font-family: var(--s13-font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s13-ink-faint);
}

/* Media-type filter: segmented underline tabs, not chip clones. The
   selected tab paints coral text and a coral underline on top of the
   shared baseline hairline; unselected tabs are faint ink. */
.f13-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s13-s3);
  border-bottom: 1px solid var(--s13-line);
}

.f13-filter-btn {
  flex: none;
  font-family: var(--s13-font-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 2px 7px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--s13-ink-faint);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}

.f13-filter-btn:hover {
  color: var(--s13-coral);
}

.f13-filter-btn[aria-pressed="true"] {
  color: var(--s13-coral);
  border-bottom-color: var(--s13-coral);
}

/* Pick grid: 3-up on mobile like the strip, 5-up on wide. */
.f13-shelf-grid {
  list-style: none;
  margin: var(--s13-s3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s13-s2);
}

@container card (min-width: 660px) {
  .f13-shelf-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s13-s3);
  }
}

.f13-shelf-grid > li {
  min-width: 0;
}

.f13-shelf-grid > li[hidden] {
  display: none;
}

/* Kit ships Avant Garde at 300 + 700 only; paint 700 for the UI-type
   roles this card uses. Personal tags and the Range line stay at 300. */
.s-handle,
.s-chip,
.s-medium,
.s-row-label,
.f13-rail-label,
.f13-kicker-label,
.f13-pick-label,
.f13-evidence-hint,
.f13-quote-src,
.f13-tile-cat,
.f13-shelf-btn,
.f13-shelf-close,
.f13-shelf-title,
.f13-filter-btn {
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .f13-shelf-btn,
  .f13-shelf-close,
  .f13-filter-btn {
    transition: none;
  }
}

/* ================================================================== */
/* Variant 3 (2026-11-26, "favourite-pick glow" on the component       */
/* canvas). Flaura's layout in the home card's colours: Member since,  */
/* About me, Status and social links on the rail; the shelf glows in   */
/* the favourite pick's own colour (set by applyPickGlow in            */
/* stella-home.js); the avatar ring runs orange into pink. Small       */
/* orange and grey text uses the darker steps so it passes 4.5:1.      */
/* ================================================================== */

.sh-taste-showcase .s-handle,
.sh-taste-showcase .f13-pick-label,
.sh-taste-showcase .s-medium,
.sh-taste-showcase .f13-shelf-btn {
  color: var(--hs4-orange-text, #a63a08);
}

.sh-taste-showcase .s-handle {
  font-weight: 700;
}

.sh-taste-showcase .f13-rail-label,
.sh-taste-showcase .s-row-label,
.sh-taste-showcase .f13-kicker-label,
.sh-taste-showcase .f13-quote-src,
.sh-taste-showcase .f13-lead-meta {
  color: var(--hs4-muted-text, #5f5f5f);
}

/* Avatar: a ring that runs orange into pink, with a gap of panel colour */
.f13-identity .s-avatar {
  box-sizing: border-box;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--s13-charcoal), var(--s13-charcoal)) padding-box,
    linear-gradient(135deg, var(--hs4-orange, #ec520b), var(--hs4-pink, #ff88ba)) border-box;
  box-shadow: inset 0 0 0 2px var(--s13-sage-panel);
}

/* Rail blocks only the wide card shows (the phone strip stays compact) */
.f13-since,
.f13-about,
.f13-socials {
  display: none;
}

.f13-since-text {
  margin: 0;
  font-family: var(--s13-font-display);
  font-size: 18px;
  line-height: 1.2;
  color: var(--s13-ink);
}

/* The bio now sits under its own label, so the bare bio rule stays off */
.f13-identity > .s-bio {
  display: none;
}

@container card (min-width: 660px) {
  .f13-since {
    display: block;
    margin-top: var(--s13-s3);
  }

  .f13-about {
    display: block;
    margin-top: var(--s13-s3);
  }

  .f13-card--rail-cluster .f13-about .s-bio {
    display: block;
    margin-top: 0;
  }

  .f13-socials {
    display: block;
    margin-top: var(--s13-s3);
  }
}

/* Social links: the same outline pill as the genre chips, with the
   platform's mark on a circle in its own colour */
.f13-social-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}

.f13-social {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 12px 0 6px;
  box-sizing: border-box;
  border: 1px solid var(--s13-chip-outline);
  border-radius: var(--s13-radius-pill);
  background: var(--s13-chip-paper);
  color: var(--s13-ink);
  font: 600 13px/1 var(--s13-font-ui);
  white-space: nowrap;
}

.f13-social-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--f13-brand, var(--s13-charcoal));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.f13-social-mark .f13-social-glyph {
  width: 15px;
  height: 15px;
}

.f13-social--steam { --f13-brand: #1b2838; }
.f13-social--discord { --f13-brand: #5865f2; }
.f13-social--x { --f13-brand: #000000; }
.f13-social--bluesky { --f13-brand: #0085ff; }

/* Phone: the links follow the shelf, like the status does */
.f13-mobile-socials {
  margin-top: var(--s13-s4);
}

.f13-mobile-socials .f13-social-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@container card (min-width: 660px) {
  .f13-mobile-socials {
    display: none;
  }
}

/* Favourite-pick glow. Fixed low strength, so text contrast never moves */
.f13-card.has-pick-glow .f13-evidence {
  background:
    radial-gradient(85% 70% at 16% 10%, rgba(var(--f13-pick-rgb), 0.17) 0%, rgba(var(--f13-pick-rgb), 0) 70%),
    var(--s13-card);
}

.f13-card.has-pick-glow .f13-lead-cover {
  box-shadow: 0 16px 36px rgba(var(--f13-pick-rgb), 0.34);
}

.f13-card.has-pick-glow .f13-quote {
  background: rgba(var(--f13-pick-rgb), 0.1);
}

html[data-theme="dark"] .f13-card.has-pick-glow .f13-evidence {
  background:
    radial-gradient(85% 70% at 16% 10%, rgba(var(--f13-pick-rgb), 0.24) 0%, rgba(var(--f13-pick-rgb), 0) 70%),
    var(--s13-card);
}

html[data-theme="dark"] .f13-card.has-pick-glow .f13-lead-cover {
  box-shadow: 0 12px 28px rgba(var(--f13-pick-rgb), 0.2);
}

html[data-theme="dark"] .f13-card.has-pick-glow .f13-quote {
  background: rgba(var(--f13-pick-rgb), 0.15);
}
