/* =============================================================================
   zzz_feed_home_look.css — the feed in the new Home's look (SP_FEED_HOME_LOOK, off by default).
   Design: docs/design/feed_design_concept_2026-11.md (owner decisions of 2026-11-18, F-1 … F-19, M-1 … M-9).

   Dash loads this file on every page, so EVERY rule starts with the flag's root class `.sp-feed-home-look`
   (pages/feed/page.py and pages/detail.py add it to #main-feed-shell / #detail-feed-shell) or, for the two
   portals (post menu, sign-in dialog), with the body flag `[data-sp-has~="feed-home-look"]`
   (assets/00_state_flags.js). Without the flag nothing here matches. Swipe mode (/reels) never gets the class.

   The `zzz_` prefix loads it after the feed's own sheets (zz_statspoint.css, zz_feed_*.css, zzz_explore_cta.css);
   selectors keep at least the specificity of the rules they replace, `!important` only where the replaced rule
   or an inline Mantine style has it. The visual inside a post (video, ranking image, chart) is never styled here.
   ============================================================================= */

/* ---- 1. tokens: the Home's Blackout set (same values as .sp-home-hub in assets/zz_home.css, F-1) ---------- */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look {
  --hh-field: #0B0B0D;
  --hh-ink: #F4EFE4;
  --hh-tape: #FF7A1A;
  --hh-tapeink: #1A0E04;
  --hh-paper: #18191D;
  --hh-k: #020203;
  --hh-pi: #F1EEE7;
  --hh-muted: #A8A69F;
  --hh-sel: #F4EFE4;
  --hh-selink: #0B0B0D;
  --hh-rim: rgba(244, 239, 228, .20);
  --fh-card: #000;                     /* a post card: the black the app draws its charts on */
  --fh-hair: rgba(241, 238, 231, .16);
  --fh-placeholder: #1E1F24;
  --fh-copy: #D9D5CC;
  --fh-font: "SP Home Archivo", "Arial Narrow", Arial, sans-serif;
  --fh-gap: 20px;                      /* wall between posts: 20 px on a phone, 24 px on a desktop */
  /* The liked heart, one variable (owner may still choose red). The feed's own like rule reads --sp-like. */
  --sp-like: var(--hh-tape);
  background: var(--hh-field);
}

/* Archivo only for what the feed draws around the visuals (F-2); the header, bars and sidebar keep the app font. */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look :is(.sp-stories, .feed-controls-shell, .sp-feed-post__head,
    .sp-feed-post__actions, .sp-feed-post__caption, .sp-feed-post__time, .sp-feed-promo, #feed-empty-state,
    #feed-inline-loader, .sp-feed-card-shell--question) {
  font-family: var(--fh-font);
}

/* ---- 2. stories: graphite discs, the ring orange only while unseen (F-11, M-8) --------------------------- */
#main-feed-shell.sp-feed-home-look .sp-stories {
  padding: 14px 0 0;
}

#main-feed-shell.sp-feed-home-look .sp-story {
  color: var(--fh-copy);
  font-size: 12px;
  font-weight: 600;
}

#main-feed-shell.sp-feed-home-look .sp-story__ring {
  padding: 5px;
  margin-bottom: 6px;
  border: 0;
  box-shadow: inset 0 0 0 2px var(--hh-tape);
}

#main-feed-shell.sp-feed-home-look .sp-story.is-seen .sp-story__ring {
  box-shadow: inset 0 0 0 2px var(--hh-rim);
}

#main-feed-shell.sp-feed-home-look .sp-story__disc,
#main-feed-shell.sp-feed-home-look .sp-story__disc--logo {
  background: var(--hh-paper);
  color: var(--hh-pi);
}

#main-feed-shell.sp-feed-home-look .sp-story:focus-visible {
  outline-color: var(--hh-ink);
}

/* ---- 3. the switch: the Home's period switch and category buttons (F-8, F-9, M-2) ------------------------ */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-discovery-hero {
  padding: 14px 0 0 !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-controls-shell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-controls-primary-row {
  min-height: 0;
  gap: 0;
  border-bottom: 0;
  align-items: stretch;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-controls-tabs-slot {
  overflow: visible;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs {
  display: flex !important;
  width: 100%;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs .mantine-SegmentedControl-control {
  position: relative;
  flex: 1 1 auto;
  height: 34px !important;
  min-height: 34px !important;
  margin-left: -2px;
  border: 2px solid var(--hh-k) !important;
  background: var(--hh-paper) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs .mantine-SegmentedControl-control:first-of-type {
  margin-left: 0;
}

/* 34 px blocks, 46 px touch targets (as the Home's switch); ::before stays Mantine's hidden separator */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs .mantine-SegmentedControl-label::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  bottom: -8px;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs .mantine-SegmentedControl-label {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 6px !important;
  margin: 0 !important;
  color: var(--hh-pi) !important;
  font-family: var(--fh-font);
  font-stretch: 75%;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs .mantine-SegmentedControl-label::after {
  display: none;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs .mantine-SegmentedControl-control:has(input:checked) {
  background: var(--hh-sel) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs .mantine-SegmentedControl-control[data-active="true"] .mantine-SegmentedControl-label,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs [data-segmented-control-control][data-active="true"] .mantine-SegmentedControl-label,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-content-tabs input:checked + .mantine-SegmentedControl-label {
  color: var(--hh-selink) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-controls-action-slot {
  gap: 0;
}

/* the search opener is the switch's last block (the feed's older sheets style it with !important) */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-open-btn {
  position: relative;
  width: 50px !important;
  min-width: 50px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin-left: -2px;
  border: 2px solid var(--hh-k) !important;
  border-radius: 0 !important;
  background: var(--hh-paper) !important;
  color: var(--hh-pi) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-open-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  bottom: -6px;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-open-btn[aria-expanded="true"] {
  background: var(--hh-sel) !important;
  color: var(--hh-selink) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-open-btn:focus-visible {
  outline: 2px solid var(--hh-ink);
  outline-offset: 2px;
}

/* topics: the Home's category buttons, words only (M-2) */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-topic-wrap {
  margin-top: 0 !important;
  padding-bottom: 0 !important;
  -webkit-mask-image: none;
  mask-image: none;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-topic-chip-group,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell #topic-filter-chips,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-chart-chip-group,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-chart-chip-group > *,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-chart-chip-group .mantine-ChipGroup-root,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell #graph-type-select {
  gap: 5px !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.feed-topic-chip, .feed-chart-chip).mantine-Chip-root {
  gap: 0 !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.feed-topic-chip, .feed-chart-chip) .mantine-Chip-label {
  position: relative;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--hh-k) !important;
  color: var(--hh-pi) !important;
  box-shadow: none !important;
  font-family: var(--fh-font);
  font-stretch: 75%;
  font-size: 15px !important;
  font-weight: 800 !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.feed-topic-chip, .feed-chart-chip) .mantine-Chip-label::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  bottom: -6px;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.feed-topic-chip, .feed-chart-chip) .mantine-Chip-label :is(.mantine-Text-root, p) {
  font: inherit !important;
  color: inherit !important;
}

/* the chips' icons and Mantine's check mark stay in the markup, hidden (M-2) */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.feed-topic-chip, .feed-chart-chip) .mantine-Chip-label :is(.mantine-Chip-iconWrapper, svg.iconify) {
  display: none !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-topic-chip input:checked + .mantine-Chip-label,
#main-feed-shell.sp-feed-home-look.feed-theme-dark .feed-topic-chip input:checked + .mantine-Chip-label {
  padding: 0 12px !important;
  background: var(--hh-tape) !important;
  color: var(--hh-tapeink) !important;
  box-shadow: inset 0 0 0 2px var(--hh-k) !important;
}

/* chart types (Stats only): the third row, outlined */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-chart-row {
  margin-top: 0 !important;
  -webkit-mask-image: none;
  mask-image: none;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-chart-chip .mantine-Chip-label {
  background: transparent !important;
  box-shadow: inset 0 0 0 2px var(--hh-k) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-chart-chip input:checked + .mantine-Chip-label {
  background: var(--hh-sel) !important;
  color: var(--hh-selink) !important;
  box-shadow: none !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.feed-topic-chip, .feed-chart-chip) input:focus-visible + .mantine-Chip-label {
  outline: 2px solid var(--hh-ink);
  outline-offset: 2px;
}

/* the search panel: a graphite sheet under the switch (the sort moves into it, F-10 / M-1) */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-wrap--expandable {
  margin-top: 0 !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-controls-shell.is-search-open .feed-search-wrap--expandable {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px !important;
  background: var(--hh-paper);
  box-shadow: inset 0 0 0 2px var(--hh-rim);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-group {
  min-height: 44px !important;
  padding: 0 4px 0 12px !important;
  gap: 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--hh-k) !important;
  box-shadow: inset 0 0 0 2px var(--hh-rim);
  flex-wrap: nowrap;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-group .feed-search-icon {
  width: 22px;
  min-width: 22px;
  color: var(--hh-muted);
}

/* the field keeps the app's 16 px text: smaller text makes iOS zoom into the page on focus */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-group .feed-search-input input {
  height: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--hh-pi);
  font-family: var(--fh-font) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-group .feed-search-input input::placeholder {
  color: #8F8C85;
}

/* Find: the Home's button, small */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-find-btn {
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  margin-right: 3px;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--hh-paper) !important;
  color: var(--hh-pi) !important;
  box-shadow: 3px 3px 0 var(--hh-tape) !important;
  font-family: var(--fh-font) !important;
  font-stretch: 75%;
  font-size: 15px !important;
  font-weight: 900 !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-find-btn .mantine-Button-label {
  font: inherit;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.feed-reset-icon, .feed-search-close-btn).feed-reset-icon,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.feed-reset-icon, .feed-search-close-btn).feed-search-close-btn {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--hh-pi) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.feed-reset-icon, .feed-search-close-btn):is(:hover, :focus-visible) {
  background: var(--hh-paper) !important;
  color: var(--hh-ink) !important;
}

/* the sort row inside the search panel (markup behind the flag, pages/feed/layout.py) */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fh-font);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-label {
  font-size: 12px;
  color: var(--hh-muted);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row .feed-order-select {
  width: 140px !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row .feed-order-select .mantine-Select-input {
  height: 34px !important;
  min-height: 34px !important;
  padding-left: 12px !important;
  padding-right: 28px !important;
  border: 2px solid var(--hh-k) !important;
  border-radius: 0 !important;
  background: var(--hh-sel) !important;
  color: var(--hh-selink) !important;
  font-family: var(--fh-font) !important;
  font-stretch: 75%;
  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row .feed-order-select .mantine-Select-section {
  color: var(--hh-selink) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row .feed-order-select .mantine-Select-section[data-position="left"] {
  display: none !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row .feed-order-select .mantine-Select-section[data-position="right"] {
  width: 28px !important;
}

/* the open list stays inside the panel (within_portal=False): a black sheet like the post menu. The app colours every
   Mantine list through the --sp-combobox-* variables (styles.css, navy on the dark feed); here they take Blackout. */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row {
  --sp-combobox-bg: var(--hh-k);
  --sp-combobox-text: var(--hh-pi);
  --sp-combobox-muted: var(--hh-muted);
  --sp-combobox-border: var(--hh-rim);
  --sp-combobox-hover-bg: var(--hh-paper);
  --sp-combobox-hover-text: var(--hh-ink);
  --sp-combobox-selected-bg: var(--hh-paper);
  --sp-combobox-selected-text: var(--hh-ink);
  --sp-combobox-check: var(--hh-tape);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row .mantine-Select-dropdown {
  padding: 4px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: inset 0 0 0 2px var(--hh-rim), 5px 5px 0 #000 !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row .mantine-Select-option {
  min-height: 40px;
  border-radius: 0 !important;
  font-family: var(--fh-font);
  font-size: 14px;
  font-weight: 700 !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-search-sort-row .feed-order-select .mantine-Select-input:focus-visible {
  outline: 2px solid var(--hh-ink);
  outline-offset: 2px;
}

/* ---- 4. the post card (F-1, F-3 … F-7) ---------------------------------------------------------------------
   One black surface (--fh-card): author row, visual and caption read as one piece. The 2 px edge is drawn OUTSIDE
   the card (top and bottom on a phone, all round on a desktop), so it runs unbroken past the visual and never
   covers it. Two layouts:
   - box (default, also before the video's metadata is known): author row above the visual, actions and caption
     below it; every ranking, image, 4:5 and 16:9 post;
   - tall (`data-sp-shape="tall"`, a 9:16 video, set by assets/video_feed_autoplay.js): today's layout, the
     author row and the actions with the caption over the video's empty top and bottom (its safe zones).        */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post {
  position: relative;
  background: var(--fh-card);
  color: var(--hh-pi);
  box-shadow: 0 -2px 0 var(--hh-rim), 0 2px 0 var(--hh-rim);
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post .sp-feed-card-shell--post {
  background: transparent !important;
}

/* box layout: header, visual and footer in their own rows (the tall layout below puts them back in one cell) */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post :is(.sp-feed-post__head, .sp-feed-post__media, .sp-feed-post__footer) {
  grid-area: auto;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__head {
  height: 58px;
  gap: 10px;
  padding: 0 56px 0 12px;
  align-self: stretch;
  background: none;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__footer {
  align-self: auto;
  padding: 0;
  background: none;
}

/* the avatar: the Home's white sticker (F-7, M-8 no orange ring); StatsPoint's own posts a black disc with the mark */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post .sp-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  background: #fff;
  color: var(--hh-k);
  box-shadow: 0 0 0 1.5px var(--hh-k);
  font-family: var(--fh-font);
  font-stretch: 75%;
  font-weight: 900;
  font-size: 14px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post .sp-avatar:has(> .sp-reels-video-author-mark) {
  background: var(--hh-k);
  box-shadow: 0 0 0 1.5px var(--hh-rim);
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post .sp-avatar .sp-reels-video-author-mark {
  background: var(--hh-pi);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-reel__name .sp-reels-video-author-name,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-reel__name .sp-reels-video-author-name {
  font-family: var(--fh-font) !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hh-pi);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-reel__name .sp-reels-video-author-verified,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-reel__name .sp-reels-video-author-verified {
  color: var(--hh-pi);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post :is(.sp-reel__meta),
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post :is(.sp-reel__meta) {
  font-family: var(--fh-font) !important;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.3;
  color: var(--hh-muted);
}

/* the visual: full width of the card, its own shape, no inner outline, no corners */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__media {
  outline: 0;
  border-radius: 0 !important;
  background: var(--fh-card);
}

/* the "…" menu sits in the author row */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-post-wrapper > .sp-post-actions {
  top: 11px;
  right: 6px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-post-actions .mantine-ActionIcon-root {
  color: var(--hh-pi);
}

/* action row: like · share … Explore (F-5) */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions.sp-card-toolbar {
  min-height: 52px !important;
  padding: 8px 14px 0 4px !important;
  gap: 0 !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions > .sp-card-toolbar-primary {
  flex: 1 1 auto !important;
  gap: 0 !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions .sp-card-like-group {
  gap: 0 !important;
  padding-right: 4px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions .sp-card-icon-btn.mantine-ActionIcon-root {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 0 !important;
  color: var(--hh-pi) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions .sp-card-like-btn.mantine-ActionIcon-root {
  width: 40px !important;
  min-width: 40px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions .sp-card-icon-btn.mantine-ActionIcon-root:hover {
  background: var(--hh-paper) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions .sp-card-icon-btn .iconify,
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions .sp-card-icon-btn svg {
  width: 24px !important;
  height: 24px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions .sp-card-like-btn.mantine-ActionIcon-root:has(svg[data-icon="tabler:heart-filled"]) {
  color: var(--sp-like) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-feed-post__actions .sp-card-count-text,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-feed-post__actions .sp-card-count-text {
  min-width: 14px !important;
  font-family: var(--fh-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--hh-pi) !important;
}

/* Explore: the Home's button (.hh-btn) with a graphite fill, because black would vanish on the black card;
   no sparkle (M-9), no violet "magic" gradient of zzz_explore_cta.css, no motion (F-4) */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-feed-post__explore,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-feed-post__explore:is(:hover, :active, .is-inview),
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-feed-post__explore,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-feed-post__explore:is(:hover, :active, .is-inview) {
  position: relative;
  min-height: 36px;
  height: 36px;
  padding: 0 18px;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: var(--hh-paper);
  background-size: auto;
  color: var(--hh-pi);
  box-shadow: 4px 4px 0 var(--hh-tape);
  font-family: var(--fh-font) !important;
  font-stretch: 75%;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  filter: none;
  transform: none;
  animation: none;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-feed-post__explore::before,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-feed-post__explore::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  bottom: -4px;
}

/* while Explore opens (assets/explore_navigation_feedback.css) ::before is the spinner, not the touch area above:
   it stays in the row before "Opening…" instead of sitting on the button's top left corner */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-feed-post__explore.sp-explore-opening::before,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-feed-post__explore.sp-explore-opening::before {
  position: static;
  margin-right: 8px;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-feed-post__explore:active,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-feed-post__explore:active {
  box-shadow: 2px 2px 0 var(--hh-tape);
  transform: translate(2px, 2px);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-feed-post__explore:focus-visible,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-feed-post__explore:focus-visible {
  outline: 2px solid var(--hh-ink);
  outline-offset: 4px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post .sp-feed-post__explore .sp-feed-post__explore-icon {
  display: none;
}

/* Explore closes the row (the feed's own rule, zz_statspoint.css, reaches Detail too: F-17) */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__actions .sp-feed-post__explore {
  order: 1;
  margin-left: auto;
}

/* caption: today's size, 14 px / 600 at normal width, one line (a tap expands it); the author name hidden (M-4) */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__caption {
  padding: 6px 12px 0;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-feed-post__caption .sp-reels-video-meta,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-feed-post__caption .sp-reels-video-meta {
  font-family: var(--fh-font) !important;
  font-size: 14px;
  font-weight: 600;
  font-stretch: 100%;
  line-height: 1.35;
  color: var(--hh-pi);
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__handle {
  display: none;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__title {
  font-weight: 600;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--fh-copy);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-post .sp-feed-post__time,
#detail-feed-shell.sp-feed-home-look.detail-page-shell .sp-feed-post .sp-feed-post__time {
  padding: 2px 12px 0;
  font-family: var(--fh-font) !important;
  font-size: 12px;
  line-height: 1.4;
  color: var(--hh-muted);
}

/* the card's bottom padding sits under its last line (the time, or the caption when there is none) */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post__footer > :last-child,
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post--published .sp-feed-post__caption {
  padding-bottom: 14px;
}

/* ---- tall: a 9:16 video keeps today's layout in the new look (owner, 2026-11-18) ---------------------------
   Measured on 31 tall posts at 390 px: >= 56 px free on top in 30 of them, >= 87 px at the bottom in all;
   the header is 52 px, the footer about 83 px, each on a light shade for legibility. */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post[data-sp-shape="tall"] :is(.sp-feed-post__head, .sp-feed-post__media, .sp-feed-post__footer) {
  grid-area: 1 / 1;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post[data-sp-shape="tall"] .sp-feed-post__head {
  height: 52px;
  align-self: start;
  background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post[data-sp-shape="tall"] .sp-avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 13px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post[data-sp-shape="tall"] .sp-feed-post__footer {
  align-self: end;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .55) 45%);
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post[data-sp-shape="tall"] .sp-feed-post__actions.sp-card-toolbar {
  min-height: 38px !important;
  height: 38px;
  padding: 0 14px 0 4px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post[data-sp-shape="tall"] .sp-feed-post__caption {
  padding-top: 0;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post[data-sp-shape="tall"] .sp-feed-post__footer > :last-child {
  padding-bottom: 9px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-post-wrapper:has(> .sp-feed-post[data-sp-shape="tall"]) > .sp-post-actions {
  top: 8px;
}

/* ---- 5. the sign-up card: the Home's orange sheet, straight (F-12, M-5) ----------------------------------- */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo {
  position: relative;
  padding: 4px 2px 20px 16px;
  border: 0;
  border-radius: 0;
  background: var(--hh-tape);
  color: var(--hh-tapeink);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__top {
  margin-bottom: 0;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--hh-tapeink);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__x {
  width: 44px;
  height: 44px;
  margin-right: 0;
  border-radius: 0;
  color: var(--hh-tapeink);
  font-size: 18px;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__x:hover {
  background: rgba(26, 14, 4, .12);
  color: var(--hh-tapeink);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__row {
  display: block;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo .sp-avatar {
  display: none;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__copy {
  display: block;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__title {
  display: block;
  font-stretch: 62%;
  font-weight: 900;
  font-size: 44px;
  line-height: .9;
  color: var(--hh-tapeink);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__text {
  display: block;
  max-width: 27ch;
  margin: 8px 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hh-tapeink);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__cta,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__cta:hover {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 0;
  background: var(--hh-tapeink);
  color: var(--hh-tape);
  font-stretch: 75%;
  font-size: 18px;
  font-weight: 900;
  filter: none;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo__cta:focus-visible {
  outline: 2px solid var(--hh-tapeink);
  outline-offset: 3px;
}

/* ---- 5b. quiz: a graphite sheet; answers are black blocks, results the Home's leader rows (F-13, M-7) ------- */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question {
  padding: 14px 12px 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--hh-paper) !important;
  color: var(--hh-pi);
  box-shadow: inset 0 2px 0 var(--hh-rim), inset 0 -2px 0 var(--hh-rim) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question > .mantine-Stack-root {
  --stack-gap: 12px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-header-title .mantine-Stack-root {
  --stack-gap: 8px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-title {
  font-family: var(--fh-font) !important;
  font-stretch: 62%;
  font-weight: 900 !important;
  font-size: 30px !important;
  line-height: .98 !important;
  letter-spacing: 0 !important;
  color: var(--hh-pi) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-subtitle {
  font-family: var(--fh-font) !important;
  font-size: 12px !important;
  color: var(--hh-muted) !important;
}

/* answers before a vote: 48 px black blocks with a 32 px portrait sticker */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-answer-choice {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 12px 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--hh-k) !important;
  box-shadow: none !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-answer-choice:hover {
  box-shadow: inset 0 0 0 2px var(--hh-rim) !important;
  transform: none;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-answer-choice:focus-visible {
  outline: 2px solid var(--hh-ink);
  outline-offset: 2px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-answer-choice .mantine-Button-label > div {
  gap: 12px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-answer-choice:not(:has(img)) .mantine-Button-label > div {
  padding-left: 44px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question :is(.sp-answer-choice, .sp-question-result-row) img {
  width: 32px !important;
  height: 32px !important;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--hh-k);
  object-fit: cover !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-answer-choice .mantine-Button-label > div > div {
  font-family: var(--fh-font);
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--hh-pi) !important;
}

/* results: portrait, name, a 4 px bar under it and the percentage; the voter's bar and number in orange */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row {
  overflow: visible !important;
  border: 0 !important;
  border-top: 2px solid var(--hh-pi) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row:first-child {
  border-top: 0 !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row > div {
  height: 42px !important;
  border-radius: 0 !important;
}

/* rows of 2 + 42 px: the same 44 px pitch as today's 38 px bars with 6 px gaps, so the card shows as many results */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .mantine-Stack-root:has(> .sp-question-result-row) {
  --stack-gap: 0px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row .mantine-Progress-root {
  position: absolute;
  left: 44px;
  right: 76px;
  bottom: 8px;
  height: 4px !important;
  border-radius: 0;
  background: var(--fh-hair) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row .mantine-Progress-section {
  border-radius: 0;
  background: var(--hh-pi) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row--mine .mantine-Progress-section {
  background: var(--hh-tape) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row > div > div:last-child {
  align-items: flex-start !important;
  padding: 5px 0 0 !important;
  gap: 12px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row .mantine-Group-root {
  gap: 12px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row:not(:has(img)) .mantine-Group-root {
  padding-left: 44px;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row .mantine-Group-root .mantine-Text-root {
  margin-top: 1px;
  font-family: var(--fh-font);
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--hh-pi) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-pct {
  flex: none;
  align-self: center;
  margin-top: -5px;
  padding: 2px 6px 3px;
  font-family: var(--fh-font);
  font-stretch: 62%;
  font-weight: 900 !important;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--hh-pi) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-question-result-row--mine .sp-question-result-pct {
  background: var(--hh-tape);
  color: var(--hh-tapeink) !important;
}

/* the line under the results: plain text, no green badges (M-7) */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .mantine-Divider-root {
  border-top: 2px solid var(--hh-pi) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .mantine-Center-root:has(.sp-card-vote-note) {
  display: block;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .mantine-Group-root:has(> .sp-card-vote-note) {
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .mantine-Group-root:has(> .sp-card-vote-note) > :is(.mantine-Paper-root, .sp-card-vote-note) {
  height: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: inherit;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .mantine-Group-root:has(> .sp-card-vote-note) svg {
  display: none;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .mantine-Group-root:has(> .sp-card-vote-note) .mantine-Text-root {
  font-family: var(--fh-font);
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--hh-muted) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-vote-note .mantine-Text-root {
  font-weight: 700 !important;
  color: var(--hh-pi) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-vote-note {
  text-transform: none;
}

/* the quiz's tool row: like, share … the filter icon, 24 px cream icons */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-toolbar {
  margin: 0 -8px !important;
  padding: 0 !important;
  border: 0 !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-toolbar :is(.sp-card-toolbar-primary, .sp-card-like-group) {
  gap: 0 !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-icon-btn.mantine-ActionIcon-root {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--hh-pi) !important;
  box-shadow: none !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-icon-btn svg {
  width: 24px !important;
  height: 24px !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-like-btn.mantine-ActionIcon-root:has(svg[data-icon="tabler:heart-filled"]) {
  color: var(--sp-like) !important;
}

:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question .sp-card-count-text {
  font-family: var(--fh-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--hh-pi) !important;
}

/* every post (video, ranking, quiz) sits on the wall the same way: no wrapper rhythm or divider of its own */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-card-enter {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-card-enter::after {
  display: none !important;
}

/* ---- 5c. the post menu and the sign-in dialog: portals outside the feed root, keyed on the body flag ------------
   (F-19, M-6). The values are the tokens of section 1, written out: a portal does not inherit the root's variables. */
body:where([data-sp-has~="feed-home-look"]) .mantine-Menu-dropdown:has(.mantine-Menu-item[id*='"post-feedback"']) {
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: #020203;
  box-shadow: inset 0 0 0 2px rgba(244, 239, 228, .20), 5px 5px 0 #000;
  font-family: "SP Home Archivo", "Arial Narrow", Arial, sans-serif;
}

body:where([data-sp-has~="feed-home-look"]) .mantine-Menu-dropdown:has(.mantine-Menu-item[id*='"post-feedback"']) .mantine-Menu-item {
  height: 44px;
  padding: 0 14px;
  border-radius: 0;
  color: #F1EEE7;
  font-size: 14px;
  font-weight: 700;
}

body:where([data-sp-has~="feed-home-look"]) .mantine-Menu-dropdown:has(.mantine-Menu-item[id*='"post-feedback"']) .mantine-Menu-item + .mantine-Menu-item {
  border-top: 1px solid rgba(241, 238, 231, .16);
}

body:where([data-sp-has~="feed-home-look"]) .mantine-Menu-dropdown:has(.mantine-Menu-item[id*='"post-feedback"']) .mantine-Menu-item:is(:hover, [data-hovered]) {
  background: #18191D;
}

body:where([data-sp-has~="feed-home-look"]) .login-required-modal .mantine-Modal-overlay {
  background: rgba(0, 0, 0, .72);
}

body:where([data-sp-has~="feed-home-look"]) .login-required-modal .mantine-Modal-content {
  border: 0;
  border-radius: 0;
  background: #18191D;
  color: #F1EEE7;
  box-shadow: inset 0 0 0 2px rgba(244, 239, 228, .20), 6px 6px 0 #000;
  font-family: "SP Home Archivo", "Arial Narrow", Arial, sans-serif;
}

body:where([data-sp-has~="feed-home-look"]) .login-required-modal .login-required-icon,
body:where([data-sp-has~="feed-home-look"]) .login-required-modal .login-required-eyebrow {
  display: none;
}

body:where([data-sp-has~="feed-home-look"]) .login-required-modal .login-required-title {
  margin: 6px 0 10px;
  font-family: inherit;
  font-stretch: 62%;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: #F1EEE7;
}

body:where([data-sp-has~="feed-home-look"]) .login-required-modal .login-required-text {
  max-width: 30ch;
  font-family: inherit;
  font-size: 14px;
  color: #D9D5CC;
}

body:where([data-sp-has~="feed-home-look"]) .login-required-modal .login-required-actions {
  justify-content: flex-start;
  gap: 14px;
}

body:where([data-sp-has~="feed-home-look"]) .login-required-modal :is(.login-required-btn-login, .login-required-btn-register) {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-stretch: 75%;
  font-weight: 900;
  font-size: 17px;
}

body:where([data-sp-has~="feed-home-look"]) .login-required-modal .login-required-btn-register {
  background: #020203;
  color: #F1EEE7;
  box-shadow: 4px 4px 0 #FF7A1A;
}

body:where([data-sp-has~="feed-home-look"]) .login-required-modal .login-required-btn-login {
  background: transparent;
  color: #F1EEE7;
  box-shadow: inset 0 0 0 2px #F1EEE7;
}

/* ---- 6. loading: a black skeleton card in the box layout, so a loaded post does not jump (F-15) ---------- */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-skel-stack {
  gap: var(--fh-gap);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-initial-skeleton .sp-feed-post {
  padding-bottom: 96px;
  box-shadow: inset 0 2px 0 var(--hh-rim), inset 0 -2px 0 var(--hh-rim);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-initial-skeleton .sp-feed-post__head .mantine-Skeleton-root {
  background: var(--fh-placeholder);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-initial-skeleton .sp-feed-post__head > .mantine-Skeleton-root {
  width: 36px !important;
  height: 36px !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-initial-skeleton .feed-skel-author .mantine-Skeleton-root {
  border-radius: 0;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-skel-reel,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-skel-reel .mantine-Skeleton-root {
  background: var(--fh-card);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-skel-reel .mantine-Skeleton-root::before,
#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-skel-reel .mantine-Skeleton-root::after {
  display: none;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-skel-reel::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 44%;
  height: 16px;
  background: var(--fh-placeholder);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-inline-loader .mantine-Loader-root {
  --loader-color: var(--hh-pi);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-inline-loader .feed-inline-loader-text {
  font-family: var(--fh-font);
  font-size: 12px;
  color: var(--hh-muted) !important;
}

/* ---- 7. no posts for a filter: a graphite sheet (F-14) ------------------------------------------------------ */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-empty-state {
  padding: 18px 16px 22px !important;
  background: var(--hh-paper);
  color: var(--hh-pi);
  box-shadow: inset 0 2px 0 var(--hh-rim), inset 0 -2px 0 var(--hh-rim);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-empty-state > .mantine-Center-root {
  display: block;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-empty-state .mantine-Stack-root {
  align-items: flex-start;
  gap: 8px;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-empty-state svg.iconify {
  width: 36px;
  height: 36px;
  color: var(--hh-muted);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-empty-state .mantine-Text-root {
  text-align: left !important;
  font-family: var(--fh-font);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-empty-state .mantine-Text-root:first-of-type {
  font-stretch: 62%;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--hh-pi);
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-empty-state .mantine-Text-root:not(:first-of-type) {
  max-width: 32ch;
  font-size: 14px !important;
  color: var(--fh-copy) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-empty-reset-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin-top: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: var(--hh-k);
  color: var(--hh-pi);
  box-shadow: 4px 4px 0 var(--hh-tape);
  font-family: var(--fh-font);
  font-stretch: 75%;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-empty-reset-btn:focus-visible {
  outline: 2px solid var(--hh-ink);
  outline-offset: 4px;
}

/* ---- 8. phone: posts run edge to edge with 20 px of wall between them -------------------------------------- */
#main-feed-shell.sp-feed-home-look.main-feed-page-shell #results-cards-container {
  gap: var(--fh-gap) !important;
}

#main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-container {
  padding-top: 14px !important;
  padding-bottom: 20px !important;
}

/* the column is the card's width: no side padding of the post list (statspoint.css pads .sp-feed by 18 px).
   statspoint.css also makes the list a scroll box (overflow-y: auto, for a fixed-height feed this page never had);
   the list grows with its posts and never scrolls, and the box would cut the edge drawn outside each card. */
:is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed {
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

/* Detail: the same card alone on the wall (F-17); its inline padding gives way to the feed's column */
#detail-feed-shell.sp-feed-home-look.detail-page-shell {
  padding: 14px 0 40px !important;
}

/* ---- 9. desktop, option A: one 392 px column in the middle, the edge all round (F-18) --------------------- */
@media (min-width: 641px) {
  :is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look.feed-page-shell {
    --feed-main-column-width: 392px;
    --fh-gap: 24px;
  }

  #main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-discovery-hero > .mantine-Container-root {
    padding-inline: 0 !important;
  }

  #main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-stories__row {
    gap: 40px;
    padding: 4px 0 0;
  }

  :is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post,
  #main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo {
    box-shadow: 0 0 0 2px var(--hh-rim);
  }

  :is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question {
    box-shadow: inset 0 0 0 2px var(--hh-rim) !important;
  }

  #main-feed-shell.sp-feed-home-look.main-feed-page-shell :is(.sp-feed-post__media, .sp-feed-post__head, .sp-feed-post__footer) {
    border-radius: 0;
  }

  #main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-container {
    padding-top: 20px !important;
  }

  #detail-feed-shell.sp-feed-home-look.detail-page-shell {
    padding: 20px 16px 40px !important;
  }
}

/* phones and landscape phones keep the full width (the same band as zz_feed_layout.css) */
@media (max-width: 767px), (max-height: 600px) and (pointer: coarse) {
  :is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look.feed-page-shell {
    --feed-main-column-width: 100%;
    --fh-gap: 20px;
  }

  #main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-discovery-hero > .mantine-Container-root {
    padding-inline: 12px !important;
  }

  #main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-stories__row {
    gap: 18px;
    padding: 0 16px;
  }

  #main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-topic-wrap,
  #main-feed-shell.sp-feed-home-look.main-feed-page-shell .feed-chart-row {
    margin-right: -12px !important;
  }

  :is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post {
    box-shadow: 0 -2px 0 var(--hh-rim), 0 2px 0 var(--hh-rim);
  }

  #main-feed-shell.sp-feed-home-look.main-feed-page-shell .sp-feed-promo {
    box-shadow: none;
  }

  #main-feed-shell.sp-feed-home-look.main-feed-page-shell #feed-container {
    padding-top: 14px !important;
  }

  :is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-card-shell--question {
    box-shadow: inset 0 2px 0 var(--hh-rim), inset 0 -2px 0 var(--hh-rim) !important;
  }

  #detail-feed-shell.sp-feed-home-look.detail-page-shell {
    padding: 14px 0 40px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#main-feed-shell, #detail-feed-shell).sp-feed-home-look .sp-feed-post .sp-feed-post__explore:active {
    transform: none;
  }
}
