/* ==========================================================================
   The Ditible — "candy" layer
   --------------------------------------------------------------------------
   Friendly, rounded, a little playful. Loaded after theme-yahoo.css (the
   portal layout) and changes the look, not the layout:

     01. Fonts & tokens (light / dark)
     02. Base type
     03. Header (floating bar, segmented nav, theme switch, chip rail)
     04. Buttons, chips, cards, tiles
     05. Lists as timelines
     06. Article view
     07. Comments as chat
     08. Footer touches
     09. Motion & small screens
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Fredoka:wght@500;600;700&family=Gochi+Hand&family=Mukta:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

/* 01. Fonts & tokens ======================================================== */

html:root {
  --c-brand: #ff5c8d;
  --c-brand-2: #7c5cff;
  --c-sun: #ffc83d;
  --c-mint: #2dd4a7;
  --c-ink: #1e1b2e;
  --c-ink-2: #3c3852;
  --c-muted: #6b6880;
  --c-cream: #fff8f1;
  --c-card: #ffffff;
  --c-line: #f0e6dc;
  --c-brand-tint: #ffe8ef;
  --c-brand-2-tint: #efeaff;
  --c-sun-tint: #fff4d6;
  --c-mint-tint: #ddf8f0;
  --c-danger: #e5484d;
  --c-shadow-brand: 0 8px 24px rgba(255, 92, 141, 0.18);
  --c-shadow-soft: 0 6px 20px rgba(30, 27, 46, 0.06);

  --font-head: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-hand: "Gochi Hand", "Fredoka", cursive;

  /* The site's own tokens, pointed at the palette. */
  --brand: var(--c-brand);
  --brand-hover: #ff3f78;
  --brand-soft: var(--c-brand-tint);
  --brand-ink: #fff;
  --brand-2: var(--c-brand-2);
  --sun: var(--c-sun);
  --mint: var(--c-mint);
  --ink: var(--c-ink);
  --line: var(--c-line);
  --brand-tint: var(--c-brand-tint);

  --bg: var(--c-cream);
  --surface: var(--c-card);
  --surface-2: #fbf3ea;
  --text: var(--c-ink);
  --text-strong: var(--c-ink);
  --muted: var(--c-muted);
  --muted-2: #8d8aa0;
  --line-strong: #e7dacd;
  --rule-strong: #e7dacd;
  --font: var(--font-body);

  --yh-canvas: var(--c-cream);
  --yh-panel: var(--c-card);
  --yh-ink: var(--c-ink);
  --yh-ink-2: var(--c-ink-2);
  --yh-meta: var(--c-muted);
  --yh-hair: var(--c-line);
  --yh-radius: 22px;
  --yh-radius-sm: 14px;
  --yh-shadow: var(--c-shadow-soft);
}

html[data-theme="dark"] {
  --c-brand: #ff7aa2;
  --c-brand-2: #9b85ff;
  --c-sun: #ffd166;
  --c-mint: #3ee0b5;
  --c-ink: #f5f2ff;
  --c-ink-2: #d6d2ea;
  --c-muted: #a9a5bf;
  --c-cream: #16131f;
  --c-card: #211d2e;
  --c-line: #322c44;
  --c-brand-tint: #3a2131;
  --c-brand-2-tint: #2a2447;
  --c-sun-tint: #3a3220;
  --c-mint-tint: #183a33;
  --c-shadow-brand: 0 8px 24px rgba(255, 122, 162, 0.16);
  --c-shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.3);

  --brand-hover: #ff94b5;
  --brand-ink: #1e1b2e;
  --surface-2: #1b1727;
  --muted-2: #8b87a3;
  --line-strong: #3b3450;
  --rule-strong: #3b3450;
}

/* 02. Base type ============================================================= */

body {
  font-family: var(--font-body);
  background: var(--c-cream);
  color: var(--c-ink);
  letter-spacing: 0;
}

h1, h2, h3, h4,
.card__title,
.yh-hero__title,
.widget__title,
.section-head__title,
.yh-stream-head__title,
.page-hero__title,
.topic__name,
.spotlight__title,
.daily__title,
.yh-footer__cta-title,
.yh-section-head__title,
.yh-tile__title,
.cal-teaser__big {
  font-family: var(--font-head);
  letter-spacing: 0;
}

.card__title,
.yh-hero__title,
.article__title,
.page-hero__title,
.yh-section-head__title {
  font-weight: 700;
}

.widget__title,
.yh-stream-head__title,
.section-head__title,
.topic__name,
.spotlight__title {
  font-weight: 600;
  font-size: 19px;
}

::selection {
  background: var(--c-brand-tint);
  color: var(--c-ink);
}

/* Handwritten note, used for kickers and little asides. */
.yh-note,
.yh-sticker {
  font-family: var(--font-hand);
  color: var(--c-brand);
  font-size: 20px;
  line-height: 1.1;
}

.yh-note {
  margin: 0 0 8px 4px;
  transform: rotate(-1.5deg);
  transform-origin: left;
}

/* 03. Header ================================================================ */

.yh-header--candy.site-header {
  top: 0;
  padding: 10px 0 0;
  background: color-mix(in oklab, var(--c-cream) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 0;
  box-shadow: none;
}

.yh-header--candy > .container {
  max-width: 1280px;
}

/* The bar itself floats as a rounded card. */
.yh-header--candy .header-inner {
  min-height: 64px;
  padding: 8px 10px 8px 16px;
  gap: 14px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  box-shadow: var(--c-shadow-soft);
}

.yh-header--candy .brand-logo {
  height: 30px;
}

.yh-header--candy .search {
  max-width: 520px;
}

.yh-header--candy .search__field {
  height: 46px;
  padding: 0 4px 0 18px;
  border: 1.5px solid transparent;
  background: var(--surface-2);
  box-shadow: none;
}

.yh-header--candy .search__field:focus-within {
  background: var(--c-card);
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px var(--c-brand-tint);
}

.yh-header--candy .search__input {
  font-family: var(--font-body);
  font-weight: 600;
}

.yh-header--candy .search__submit {
  background: var(--c-brand);
  box-shadow: var(--c-shadow-brand);
}

/* Segmented nav: a grape-tinted pill group. */
.yh-header--candy .yh-topnav {
  gap: 2px;
  padding: 4px;
  background: var(--c-brand-2-tint);
  border-radius: 999px;
}

.yh-header--candy .yh-topnav__link {
  height: 36px;
  padding: 0 14px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-brand-2);
}

.yh-header--candy .yh-topnav__link:hover {
  color: var(--c-ink);
}

.yh-header--candy .yh-topnav__link[aria-current="page"] {
  background: var(--c-card);
  color: var(--c-ink);
  box-shadow: var(--c-shadow-soft);
}

.yh-header--candy .yh-more__panel {
  border-radius: 20px;
  border-color: var(--c-line);
}

.yh-header--candy .yh-more__panel a {
  border-radius: 12px;
  font-weight: 700;
}

/* Three-way theme switch. */
.yh-themeswitch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--c-brand-2-tint);
}

.yh-themeswitch button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--c-brand-2);
  cursor: pointer;
}

.yh-themeswitch button svg {
  width: 17px;
  height: 17px;
}

.yh-themeswitch button[aria-checked="true"] {
  background: var(--c-card);
  color: var(--c-ink);
  box-shadow: var(--c-shadow-soft);
}

.yh-header--candy .account__btn,
.yh-header--candy .header-actions .account > button {
  box-shadow: var(--c-shadow-brand);
}

/* Category rail: pastel chips in four rotating colours. */
.yh-header--candy .cat-rail {
  margin-top: 8px;
  background: transparent;
  border: 0;
}

.yh-header--candy .cat-rail .cat-rail__scroll {
  gap: 8px;
  padding: 2px 0 10px;
}

.yh-header--candy .cat-rail .cat-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  background: var(--c-brand-tint);
  color: #c2185b;
  border: 0;
}

.yh-header--candy .cat-rail .cat-pill:nth-child(4n + 2) {
  background: var(--c-brand-2-tint);
  color: #5b3fd9;
}

.yh-header--candy .cat-rail .cat-pill:nth-child(4n + 3) {
  background: var(--c-sun-tint);
  color: #9a6a00;
}

.yh-header--candy .cat-rail .cat-pill:nth-child(4n + 4) {
  background: var(--c-mint-tint);
  color: #0f8a68;
}

html[data-theme="dark"] .yh-header--candy .cat-rail .cat-pill {
  color: var(--c-ink);
}

.yh-header--candy .cat-rail .cat-pill:hover {
  transform: translateY(-1px);
}

.yh-header--candy .cat-rail .cat-pill[aria-current="page"],
.yh-header--candy .cat-rail .cat-pill.active {
  background: var(--c-ink);
  color: var(--c-cream);
  font-weight: 700;
}

.yh-header--candy .cat-rail .cat-pill[aria-current="page"]::after,
.yh-header--candy .cat-rail .cat-pill.active::after {
  display: none;
}

.yh-header--candy .cat-pill__count {
  opacity: 0.6;
  font-size: 12px;
}

/* 04. Buttons, chips, cards, tiles ========================================= */

.btn--brand,
a.btn--brand,
.yh-loadmore,
.yh-footer__btn--solid {
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  box-shadow: var(--c-shadow-brand);
}

.btn--brand,
a.btn--brand {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

.btn--brand:hover,
a.btn--brand:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
}

.yh-loadmore {
  border: 0;
  background: var(--c-brand);
  color: #fff;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yh-loadmore:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

/* Pastel chips. */
.yh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--c-brand-tint);
  color: #c2185b;
}

.yh-chip svg {
  width: 15px;
  height: 15px;
}

.yh-chip--grape {
  background: var(--c-brand-2-tint);
  color: #5b3fd9;
}

.yh-chip--sun {
  background: var(--c-sun-tint);
  color: #9a6a00;
}

.yh-chip--mint {
  background: var(--c-mint-tint);
  color: #0f8a68;
}

html[data-theme="dark"] .yh-chip {
  color: var(--c-ink);
}

.chip {
  border-radius: 999px;
  font-weight: 700;
}

/* Cards and panels: rounder, cream border, soft shadow. */
.yh3 .widget,
.yh3__stream,
.yh-top,
.spotlight,
.yh-section-head,
.daily,
.layout.yh-3col .widget,
.layout.yh-3col > div > .section:has(> .feed),
.yh-explore {
  border-radius: var(--yh-radius);
  border-color: var(--c-line);
  box-shadow: var(--c-shadow-soft);
}

.yh-hero,
.yh-hero__slide {
  border-radius: 18px;
}

.card__img,
.feed .card:not(.card--compact) .card__img {
  border-radius: 16px;
}

/* Category kicker on cards: a pastel chip instead of plain text. */
.feed .card:not(.card--compact) .card__cat {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-brand-tint);
  color: #c2185b;
  font-size: 12px;
  font-weight: 800;
}

html[data-theme="dark"] .feed .card:not(.card--compact) .card__cat {
  color: var(--c-ink);
}

.feed .card .card__title a:hover {
  color: var(--c-brand);
}

/* Info tiles: the stat-card treatment, one tint each. */
.yh-tiles .cal-teaser__card,
.yh-tile {
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  background: var(--c-brand-tint);
}

.yh-tiles .cal-teaser__card--day {
  background: var(--c-brand-2-tint);
}

.yh-tiles .yh-tile:nth-of-type(1) {
  background: var(--c-sun-tint);
}

.yh-tiles .yh-tile:nth-of-type(2) {
  background: var(--c-mint-tint);
}

.yh-tiles .cal-teaser__ico,
.yh-tile__ico {
  background: var(--c-card);
  border-radius: 14px;
}

.yh-tiles .cal-teaser__card--day .cal-teaser__ico {
  color: var(--c-brand-2);
}

.yh-tiles .yh-tile:nth-of-type(1) .yh-tile__ico {
  color: #d99a00;
}

.yh-tiles .yh-tile:nth-of-type(2) .yh-tile__ico {
  color: #12a983;
}

/* Explore icons cycle through the palette. */
.yh-explore__list li:nth-child(4n + 1) .yh-explore__ico { background: var(--c-brand-tint); color: var(--c-brand); }
.yh-explore__list li:nth-child(4n + 2) .yh-explore__ico { background: var(--c-brand-2-tint); color: var(--c-brand-2); }
.yh-explore__list li:nth-child(4n + 3) .yh-explore__ico { background: var(--c-sun-tint); color: #d99a00; }
.yh-explore__list li:nth-child(4n + 4) .yh-explore__ico { background: var(--c-mint-tint); color: #12a983; }

.yh-explore__ico {
  border-radius: 11px;
}

.yh-explore__link {
  font-weight: 700;
}

/* Trending ranks as pastel squares. */
.q-list__rank {
  border: 0;
  border-radius: 9px;
  font-family: var(--font-head);
  background: var(--c-brand-2-tint);
  color: var(--c-brand-2);
}

.q-list li:nth-child(-n + 3) .q-list__rank {
  background: var(--c-brand);
  color: #fff;
}

.q-list a {
  font-weight: 700;
}

/* Topic dots and section rules in the palette. */
.topic__dot {
  background: var(--c-brand);
  border-radius: 50%;
}

.yh-topic:nth-of-type(odd) .topic__dot {
  background: var(--c-brand-2);
}

.yh-hero__count,
.yh-hero__btn {
  font-family: var(--font-head);
}

.yh-hero__count {
  background: var(--c-brand);
}

/* 05. Lists as timelines ==================================================== */

/* "Latest from sources": a vertical timeline with coloured dots. */
.src-strip {
  position: relative;
  padding-left: 22px;
}

.src-strip::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--c-brand), var(--c-brand-2), var(--c-mint));
  opacity: 0.45;
}

.src-strip__row {
  position: relative;
  border-radius: 12px;
}

.src-strip__row::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--c-card);
  border: 3px solid var(--c-brand);
}

.src-strip__row:nth-child(4n + 2)::before { border-color: var(--c-brand-2); }
.src-strip__row:nth-child(4n + 3)::before { border-color: var(--c-sun); }
.src-strip__row:nth-child(4n + 4)::before { border-color: var(--c-mint); }

.src-strip__row:hover {
  background: var(--surface-2);
}

.src-strip__time {
  font-weight: 600;
}

/* Topic lists in the rails read as a mini timeline too. */
.yh-topic .topic-item {
  position: relative;
}

/* 06. Article view ========================================================== */

body:has(.article) {
  background: var(--c-cream);
}

.article .article__head {
  gap: 12px;
}

.yh-sticker {
  display: inline-block;
  align-self: flex-start;
  margin: 2px 0 -4px 2px;
  font-size: 22px;
  transform: rotate(-2deg);
}

.article .article__cat {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.article .article__title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--c-ink);
}

/* Byline as a soft card. */
.article .article__byline {
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  background: var(--c-card);
  box-shadow: var(--c-shadow-soft);
}

.article .byline__avatar {
  border: 3px solid var(--c-brand-tint);
}

.article .byline__name a {
  font-family: var(--font-head);
  font-weight: 600;
}

.article .follow-btn {
  border: 0;
  background: var(--c-brand);
  color: #fff;
  box-shadow: var(--c-shadow-brand);
  font-family: var(--font-head);
  font-weight: 600;
}

.article .follow-btn[aria-pressed="true"],
.article .follow-btn.is-active {
  background: var(--c-mint-tint);
  color: #0f8a68;
  box-shadow: none;
}

/* Hero image in a poster frame. */
.article .article__hero {
  position: relative;
  margin: 6px 0 30px;
  padding: 12px;
  border-radius: 30px;
  background: var(--c-brand-2-tint);
}

.article .article__hero::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-sun);
  box-shadow: 0 0 0 6px var(--c-cream);
  z-index: 0;
}

.article .article__hero img {
  position: relative;
  z-index: 1;
  border-radius: 20px;
}

.article .photo-credit {
  z-index: 2;
  background: var(--c-ink);
  border-radius: 999px;
}

/* Body copy. */
.article .article__body {
  font-family: var(--font-body);
  font-size: 18.5px;
  line-height: 1.8;
  color: var(--c-ink-2);
}

.article .article__body h2,
.article .article__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-ink);
}

.article .article__body h2 {
  font-size: 26px;
}

.article .article__body h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 10px 3px 0;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 14px 0 0 var(--c-sun);
  margin-right: 24px;
}

.article .article__body a {
  color: var(--c-brand);
  text-decoration-color: var(--c-brand-tint);
  text-decoration-thickness: 3px;
}

.article .article__body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 22px 22px 22px 6px;
  background: var(--c-sun-tint);
  color: var(--c-ink);
  font-family: var(--font-head);
  font-weight: 500;
}

.article .article__body ul li::marker {
  color: var(--c-brand);
}

/* Read the original: a friendly speech bubble. */
.article .read-original {
  border: 0;
  border-radius: 24px 24px 24px 8px;
  background: var(--c-brand-tint);
  padding: 18px 20px;
}

.article .read-original__text b {
  font-family: var(--font-head);
  font-weight: 600;
}

.article .article__note {
  border: 2px dashed var(--c-line);
  background: transparent;
  border-radius: 20px;
}

/* Share / like bar: tinted round buttons. */
.article .action-bar {
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-card);
  box-shadow: var(--c-shadow-soft);
}

.article .share-btn {
  border: 0;
  background: var(--c-brand-2-tint);
  color: var(--c-brand-2);
}

.article .share-btn:hover {
  background: var(--c-brand-2);
  color: #fff;
}

.article .like-btn,
.article .save-btn {
  border-radius: 999px;
  font-weight: 700;
}

.article .like-btn.is-active {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

/* Top stories ribbon. */
.yh-ribbon {
  background: transparent;
  border: 0;
}

.yh-ribbon__inner {
  margin-top: 4px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
}

.yh-ribbon__label {
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 400;
  color: var(--c-brand);
}

.yh-ribbon__link {
  font-weight: 700;
}

/* 07. Comments as chat ===================================================== */

.inb-comments {
  margin-top: 28px;
  padding: 22px 22px 18px;
  border: 1px solid var(--c-line);
  border-radius: 26px;
  background: var(--c-card);
  box-shadow: var(--c-shadow-soft);
}

.inb-comments__head {
  border: 0;
  padding: 0;
  margin-bottom: 12px;
}

.inb-comments__head h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}

.inb-comments__count {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-brand-2-tint);
  color: var(--c-brand-2);
  font-weight: 800;
}

.inb-comment-form {
  padding: 14px;
  border: 0;
  border-radius: 22px;
  background: var(--surface-2);
}

.inb-comments .form-control {
  border: 1.5px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-card);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--c-ink);
}

.inb-comments .form-control:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px var(--c-brand-tint);
  outline: 0;
}

.inb-comments textarea.form-control {
  min-height: 96px;
  border-radius: 18px 18px 18px 6px;
}

.yh-emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.yh-emoji-row button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--c-card);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.yh-emoji-row button:hover {
  transform: translateY(-2px) scale(1.08);
}

.yh-emoji-row button.is-pop {
  animation: yh-pop 0.35s ease;
}

.inb-comment-hint {
  color: var(--c-muted);
  font-size: 13px;
}

/* The thread: avatars, bubbles, and replies hanging off a timeline line. */
.inb-comment-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.inb-comment {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.inb-comment__avatar {
  flex: none;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  background: var(--c-brand-tint);
  color: var(--c-brand);
}

.inb-comment:nth-child(4n + 2) > .inb-comment__avatar { background: var(--c-brand-2-tint); color: var(--c-brand-2); }
.inb-comment:nth-child(4n + 3) > .inb-comment__avatar { background: var(--c-sun-tint); color: #c08600; }
.inb-comment:nth-child(4n + 4) > .inb-comment__avatar { background: var(--c-mint-tint); color: #0f8a68; }

.inb-comment__body {
  flex: 1;
  min-width: 0;
}

.inb-comment__meta,
.inb-comment__text {
  max-width: 100%;
}

.inb-comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.inb-comment__author {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--c-ink);
}

.inb-comment__time {
  font-size: 12.5px;
  color: var(--c-muted);
}

.inb-comment__badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--c-mint-tint);
  color: #0f8a68;
}

.inb-comment__badge--pending {
  background: var(--c-sun-tint);
  color: #9a6a00;
}

.inb-comment__text {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 6px 20px 20px 20px;
  background: var(--surface-2);
  border: 1px solid var(--c-line);
  color: var(--c-ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.inb-comment__actions button {
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--c-brand-2);
  font-weight: 800;
}

.inb-comment__actions button:hover {
  background: var(--c-brand-2-tint);
}

.inb-comment__replies {
  position: relative;
  margin-top: 12px;
  padding-left: 18px;
}

.inb-comment__replies::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--c-brand-2), var(--c-mint));
  opacity: 0.5;
}

.inb-comment__replies .inb-comment__text {
  background: var(--c-brand-2-tint);
  border-color: transparent;
}

.inb-comment__reply-form {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-2);
}

/* Empty state with the mascot. */
.yh-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 26px 18px 24px;
  border: 2px dashed var(--c-line);
  border-radius: 24px;
  text-align: center;
}

.yh-empty .yh-mascot {
  animation: yh-bob 3.2s ease-in-out infinite;
}

.yh-empty__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--c-ink);
}

.yh-empty__text {
  max-width: 320px;
  font-size: 14.5px;
  color: var(--c-muted);
}

/* 08. Footer touches ======================================================== */

.yh-footer {
  --f-bg: #1e1b2e;
  font-family: var(--font-body);
}

html[data-theme="dark"] .yh-footer {
  --f-bg: #110f19;
}

.yh-footer__cta {
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(115deg, var(--c-brand) 0%, var(--c-brand-2) 100%);
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.25);
}

.yh-footer__cta-kicker {
  font-family: var(--font-hand);
  font-size: 19px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.yh-footer__cta-title {
  font-family: var(--font-head);
  font-weight: 700;
}

.yh-footer__btn {
  font-family: var(--font-head);
  font-weight: 600;
}

.yh-footer__btn--solid {
  color: var(--c-brand-2);
}

.yh-footer__title {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.yh-footer__quick a,
.yh-footer__quick button {
  border-radius: 14px;
}

.yh-footer__quick a:nth-child(4n + 1):hover { background: var(--c-brand); border-color: var(--c-brand); }
.yh-footer__quick a:nth-child(4n + 2):hover { background: var(--c-brand-2); border-color: var(--c-brand-2); }
.yh-footer__quick a:nth-child(4n + 3):hover { background: #d99a00; border-color: #d99a00; }
.yh-footer__quick a:nth-child(4n + 4):hover { background: #12a983; border-color: #12a983; }

.yh-footer__links a:hover {
  text-decoration-color: var(--c-sun);
}

/* 09. Motion & small screens =============================================== */

@keyframes yh-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}

@keyframes yh-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .yh-empty .yh-mascot,
  .yh-emoji-row button.is-pop {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .yh-header--candy .header-inner {
    border-radius: 26px;
  }
}

@media (max-width: 900px) {
  .yh-header--candy .header-inner {
    padding: 10px 12px;
    gap: 10px;
  }

  .yh-themeswitch button[data-yh-theme-set="system"] {
    display: none;
  }
}

@media (max-width: 720px) {
  .yh-header--candy.site-header {
    padding-top: 8px;
  }

  .yh-header--candy .header-inner {
    border-radius: 22px;
  }

  .yh-themeswitch {
    padding: 3px;
  }

  .yh-themeswitch button {
    width: 30px;
    height: 30px;
  }

  .article .article__title {
    font-size: 29px;
  }

  .yh-sticker {
    font-size: 19px;
  }

  .article .article__hero {
    margin-inline: 0;
    padding: 8px;
    border-radius: 24px;
  }

  .article .article__hero img {
    border-radius: 18px;
  }

  .article .article__hero::after {
    right: -4px;
    top: -8px;
    width: 32px;
    height: 32px;
  }

  .article .article__body {
    font-size: 17.5px;
  }

  .inb-comments {
    padding: 18px 14px 14px;
    border-radius: 22px;
  }

  .article .action-bar {
    border-radius: 24px;
  }
}

/* ==========================================================================
   10. Social layer: buttons, landing hero, streaks, share studio
   ========================================================================== */

.yh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.yh-btn svg { width: 18px; height: 18px; }
.yh-btn:hover { transform: translateY(-2px); }

.yh-btn--brand { background: var(--c-brand); color: #fff; box-shadow: var(--c-shadow-brand); }
.yh-btn--brand:hover { color: #fff; background: var(--brand-hover); }
.yh-btn--grape { background: var(--c-brand-2-tint); color: var(--c-brand-2); }
.yh-btn--grape:hover { color: var(--c-brand-2); }
.yh-btn--ghost { background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-line); }

/* Highlighter marks behind words. */
.yh-hl { position: relative; white-space: nowrap; z-index: 0; }
.yh-hl::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0.08em;
  height: 0.42em;
  border-radius: 10px;
  transform: rotate(-1.5deg);
  z-index: -1;
}
.yh-hl--sun::before { background: var(--c-sun); opacity: 0.85; }
.yh-hl--pink { color: var(--c-brand); }
.yh-hl--pink::before { background: var(--c-brand-tint); }

/* --- Landing hero ---------------------------------------------------------- */

.yh-landing {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 16px;
  padding: 44px 48px;
  border-radius: 34px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
}

.yh-landing__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.yh-landing__blob--a {
  width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(circle, var(--c-brand-2-tint) 0%, transparent 70%);
}
.yh-landing__blob--b {
  width: 360px; height: 360px; left: -140px; bottom: -200px;
  background: radial-gradient(circle, var(--c-sun-tint) 0%, transparent 70%);
}

.yh-landing__copy,
.yh-landing__side { position: relative; z-index: 1; min-width: 0; }

.yh-landing__note { display: inline-block; font-size: 24px; transform: rotate(-2deg); }

.yh-landing__title {
  margin: 6px 0 14px;
  font-family: var(--font-head);
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  color: var(--c-ink);
}

.yh-landing__sub {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink-2);
}

.yh-landing__sub b { color: var(--c-brand); }
.yh-landing__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.yh-landing__stats { display: flex; flex-wrap: wrap; gap: 8px; }

/* Streak card. */
.yh-streak {
  position: relative;
  z-index: 3;
  padding: 16px 18px 14px;
  border-radius: 24px;
  background: var(--c-ink);
  color: var(--c-cream);
  box-shadow: 0 16px 34px rgba(30, 27, 46, 0.22);
}

html[data-theme="dark"] .yh-streak { background: #2b2540; color: #f5f2ff; }

.yh-streak__top { display: flex; align-items: center; gap: 12px; }
.yh-streak__flame { font-size: 34px; line-height: 1; animation: yh-bob 2.4s ease-in-out infinite; }
.yh-streak__count { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.yh-streak__badge {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: 800;
}

.yh-streak__ring {
  --p: 0;
  margin-left: auto;
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--c-sun) calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0);
}

.yh-streak__ring span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-ink);
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="dark"] .yh-streak__ring span { background: #2b2540; }
.yh-streak__ring b { font-family: var(--font-head); font-size: 17px; }

.yh-streak__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 14px 0 8px;
}

.yh-streak__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.7;
}

.yh-streak__day i { width: 100%; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.yh-streak__day.is-some i { background: var(--c-brand); }
.yh-streak__day.is-full i { background: var(--c-sun); }
.yh-streak__day.is-today { opacity: 1; }
.yh-streak__hint { font-size: 13px; opacity: 0.8; }

/* Sticker stack of today's top stories. */
.yh-stack { position: relative; height: 300px; margin-top: 18px; }

.yh-stack__card {
  position: absolute;
  width: 62%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: 0 14px 30px rgba(30, 27, 46, 0.14);
  color: var(--c-ink);
  transition: transform 0.25s ease;
}

.yh-stack__card--0 { left: 0; top: 18px; transform: rotate(-5deg); z-index: 3; }
.yh-stack__card--1 { left: 20%; top: 0; transform: rotate(3deg); z-index: 2; }
.yh-stack__card--2 { right: 0; top: 40px; transform: rotate(8deg); z-index: 1; }
.yh-stack__card:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 4; }

.yh-stack__media { display: block; height: 130px; overflow: hidden; background: var(--surface-2); }
.yh-stack__media .card__img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.yh-stack__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }

.yh-stack__cat {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--c-brand-tint);
  color: #c2185b;
  font-size: 11.5px;
  font-weight: 800;
}

.yh-stack__card--1 .yh-stack__cat { background: var(--c-brand-2-tint); color: #5b3fd9; }
.yh-stack__card--2 .yh-stack__cat { background: var(--c-mint-tint); color: #0f8a68; }

.yh-stack__title {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.yh-stack__sticker {
  position: absolute;
  right: 6%;
  bottom: -6px;
  z-index: 5;
  padding: 6px 14px;
  border-radius: 14px;
  background: var(--c-sun);
  color: #1e1b2e;
  font-family: var(--font-hand);
  font-size: 22px;
  transform: rotate(-6deg);
  box-shadow: 0 8px 18px rgba(30, 27, 46, 0.18);
}

/* Header streak chip. */
.yh-streakchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--c-sun-tint);
  color: #9a6a00;
  font-family: var(--font-head);
  font-weight: 700;
}

.yh-streakchip[hidden] { display: none; }
html[data-theme="dark"] .yh-streakchip { color: var(--c-sun); }

/* Toast and reading progress. */
.yh-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--font-head);
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(30, 27, 46, 0.3);
  transform: translate(-50%, 140%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.yh-toast.is-in { transform: translate(-50%, 0); }

.yh-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1100;
  height: 4px;
  pointer-events: none;
}

.yh-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-2), var(--c-mint));
  transform-origin: left;
  transform: scaleX(0);
}

/* --- Share studio --------------------------------------------------------- */

.yh-share__open {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(115deg, var(--c-brand) 0%, var(--c-brand-2) 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(124, 92, 255, 0.24);
  transition: transform 0.15s ease;
}

.yh-share__open:hover { transform: translateY(-2px); }

.yh-share__open-ico {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 22px;
}

.yh-share__open b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.yh-share__open small { font-size: 13px; opacity: 0.9; }
.yh-share__open > svg { margin-left: auto; width: 20px; height: 20px; }

.yh-share__modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 16px;
}

.yh-share__modal[hidden] { display: none; }

.yh-share__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 32, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.yh-share__sheet {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px 22px 22px;
  border-radius: 30px;
  background: var(--c-cream);
  box-shadow: 0 30px 70px rgba(20, 17, 32, 0.35);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;
}

.yh-share__modal.is-open .yh-share__scrim { opacity: 1; }
.yh-share__modal.is-open .yh-share__sheet { transform: none; opacity: 1; }

.yh-share__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.yh-share__head h3 { margin: 0; font-family: var(--font-head); font-size: 26px; font-weight: 700; }

.yh-share__x {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-ink);
  cursor: pointer;
}

.yh-share__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.yh-share__preview {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 18px;
  border-radius: 26px;
  background: var(--c-brand-2-tint);
}

.yh-share__preview canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(64vh, 620px);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(30, 27, 46, 0.2);
}

.yh-share__label {
  display: block;
  margin: 4px 0 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.yh-share__formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.yh-share__formats button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-card);
  color: var(--c-ink);
  font-weight: 800;
  cursor: pointer;
}

.yh-share__formats small { color: var(--c-muted); font-weight: 600; }
.yh-share__formats button[aria-checked="true"] { border-color: var(--c-brand); background: var(--c-brand-tint); }
.yh-share__formats .r { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.r--story { width: 10px; height: 17px; }
.r--feed { width: 12px; height: 15px; }
.r--square { width: 14px; height: 14px; }
.r--link { width: 18px; height: 10px; }

.yh-share__looks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.yh-share__looks button {
  width: 40px;
  height: 40px;
  border: 3px solid var(--c-cream);
  border-radius: 50%;
  background: var(--sw);
  box-shadow: 0 0 0 1.5px var(--c-line);
  cursor: pointer;
}

.yh-share__looks button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--c-ink); }

.yh-share__take {
  width: 100%;
  height: 46px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1.5px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-card);
  color: var(--c-ink);
  font: inherit;
  font-weight: 600;
}

.yh-share__take:focus { outline: 0; border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-tint); }
.yh-share__actions { display: grid; gap: 8px; }

.yh-share__status {
  display: block;
  min-height: 20px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-brand-2);
}

/* --- Social layer on small screens ---------------------------------------- */

@media (max-width: 1080px) {
  .yh-landing { grid-template-columns: minmax(0, 1fr); padding: 34px 30px; }
}

@media (max-width: 760px) {
  .yh-share__grid { grid-template-columns: minmax(0, 1fr); }
  .yh-share__modal { padding: 0; align-items: end; }
  .yh-share__sheet { max-height: 94vh; border-radius: 28px 28px 0 0; padding: 16px 16px 22px; }
  .yh-share__preview canvas { max-height: 46vh; }
}

@media (max-width: 720px) {
  .yh-landing { margin-top: 12px; padding: 26px 18px 22px; border-radius: 28px; gap: 20px; }
  .yh-landing__note { font-size: 20px; }
  .yh-landing__sub { font-size: 15.5px; }
  .yh-landing__ctas .yh-btn { flex: 1 1 100%; }

  .yh-stack {
    display: flex;
    gap: 12px;
    height: auto;
    margin: 16px -18px 0;
    padding: 6px 18px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .yh-stack::-webkit-scrollbar { display: none; }

  .yh-stack__card {
    position: relative;
    flex: 0 0 72%;
    width: auto;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    scroll-snap-align: start;
  }

  .yh-stack__sticker { display: none; }
  .yh-streakchip { height: 32px; padding: 0 10px; }
}

/* ==========================================================================
   11. Spacing fixes and widget restyle
   ========================================================================== */

/* Article head: every block gets breathing room (chips, share card, byline). */
.article .article__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.article .article__head > .yh-chips,
.article .article__head > .yh-share,
.article .article__head > .article__byline {
  margin: 0;
}

.article .yh-share__open {
  margin-top: 0;
}

.article .article__hero {
  margin-top: 0;
}

/* Desktop article: the text column fills the space, the rail sits close. */
@media (min-width: 1081px) {
  body:has(.article) .layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
  }

  body:has(.article) .layout > div {
    max-width: none;
  }

  .article .article__title {
    font-size: 46px;
  }
}

/* --- Widgets --------------------------------------------------------------- */

.widget__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.widget__head > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  flex: none;
  border-radius: 12px;
  background: var(--c-brand-tint);
  color: var(--c-brand);
}

/* Rotate the icon tint through the palette by widget order. */
.yh3__stack > .widget:nth-of-type(4n + 2) .widget__head > svg,
.sidebar > .widget:nth-of-type(4n + 2) .widget__head > svg {
  background: var(--c-brand-2-tint);
  color: var(--c-brand-2);
}

.yh3__stack > .widget:nth-of-type(4n + 3) .widget__head > svg,
.sidebar > .widget:nth-of-type(4n + 3) .widget__head > svg {
  background: var(--c-sun-tint);
  color: #c08600;
}

.yh3__stack > .widget:nth-of-type(4n + 4) .widget__head > svg,
.sidebar > .widget:nth-of-type(4n + 4) .widget__head > svg {
  background: var(--c-mint-tint);
  color: #0f8a68;
}

.widget__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
}

.widget__foot {
  margin-top: 12px;
}

.widget__foot .btn,
.widget .btn--block {
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--c-brand-2-tint);
  color: var(--c-brand-2);
  font-family: var(--font-head);
  font-weight: 600;
}

.widget__foot .btn:hover,
.widget .btn--block:hover {
  background: var(--c-brand-2);
  color: #fff;
}

/* Weather: a sunny tinted card. */
.wx {
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--c-sun-tint) !important;
  padding: 14px 16px !important;
}

.wx__icon {
  color: #d99a00;
}

.wx__value {
  font-family: var(--font-head);
  font-weight: 700;
}

.wx__place {
  font-weight: 800;
}

.wx__aqi {
  border-radius: 999px;
  background: var(--c-card);
  font-weight: 800;
}

/* Popular list: round rank badges and soft rows. */
.pop-list .card--compact {
  padding: 8px;
  margin: 0 -8px;
  border-radius: 16px;
  transition: background 0.15s ease;
}

.pop-list .card--compact + .card--compact {
  margin-top: 4px;
}

.pop-list .card--compact:hover {
  background: var(--surface-2);
}

.sidebar .card__rank {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-brand-tint);
  color: var(--c-brand);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 0;
}

.pop-list .card--compact:nth-child(1) .card__rank { background: var(--c-brand); color: #fff; }
.pop-list .card--compact:nth-child(2) .card__rank { background: var(--c-brand-2); color: #fff; }
.pop-list .card--compact:nth-child(3) .card__rank { background: var(--c-sun); color: #1e1b2e; }

.yh-article-rail .card--compact:has(.card__rank) {
  grid-template-columns: 26px 72px minmax(0, 1fr);
}

.sidebar .card--compact .card__media {
  border-radius: 14px;
}

/* Trending rows as soft pills on hover. */
.q-list li {
  padding: 8px 6px;
  margin: 0 -6px;
  border-radius: 14px;
  border-bottom: 0;
}

.q-list li:hover {
  background: var(--surface-2);
}

/* Search widget pill. */
.yh3 .section--search .widget,
.layout.yh-3col .section--search .widget {
  padding: 12px;
}

.section--search .search__field {
  background: var(--surface-2);
  border: 1.5px solid transparent;
}

.section--search .search__field:focus-within {
  background: var(--c-card);
  border-color: var(--c-brand);
}

/* Topic lists: tinted head dot and roomier rows. */
.yh-topic .topic__name {
  font-family: var(--font-head);
  font-weight: 700;
}

.yh-topic .topic-item {
  border-top: 0;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 16px;
}

.yh-topic .topic-item:hover {
  background: var(--surface-2);
}

@media (max-width: 720px) {
  .article .article__head {
    gap: 12px;
  }
}

/* ==========================================================================
   12. Accounts: Niguro sign in, profile, settings
   ========================================================================== */

.yh-muted { color: var(--c-muted); }

.yh-chip--sm { height: 24px; padding: 0 9px; font-size: 12px; }
.yh-chip--pink { background: var(--c-brand-tint); color: #c2185b; }

/* Flash messages from the app, in the candy look. */
.yh-auth .alert,
.yh-profile .alert,
.yh-settings .alert {
  position: relative;
  margin: 12px 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  background: var(--c-brand-2-tint);
  color: var(--c-ink);
}

.yh-auth .alert-success, .yh-profile .alert-success, .yh-settings .alert-success { background: var(--c-mint-tint); }
.yh-auth .alert-danger, .yh-profile .alert-danger, .yh-settings .alert-danger { background: var(--c-brand-tint); }
.yh-auth .alert-warning, .yh-profile .alert-warning, .yh-settings .alert-warning { background: var(--c-sun-tint); }
.yh-auth .alert .close, .yh-profile .alert .close, .yh-settings .alert .close {
  position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 20px; cursor: pointer; color: inherit;
}

/* Niguro button. */
.yh-niguro-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 58px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(30, 27, 46, 0.25);
  transition: transform 0.15s ease;
}

.yh-niguro-btn:hover { color: var(--c-cream); transform: translateY(-2px); }
.yh-niguro-btn svg { width: 20px; height: 20px; }

.yh-niguro-btn__logo {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-2));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}

html[data-theme="dark"] .yh-niguro-btn { background: #f5f2ff; color: #1e1b2e; }

/* --- Sign-in page ---------------------------------------------------------- */

.yh-auth { max-width: 560px; padding: 28px 16px 60px; }

.yh-auth__card {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 26px;
  border-radius: 32px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
  text-align: center;
}

.yh-auth__art {
  position: relative;
  height: 150px;
  margin: -6px -30px 10px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 60%, var(--c-brand-2-tint) 0%, transparent 65%);
}

.yh-auth__art .yh-mascot { animation: yh-bob 3s ease-in-out infinite; }

.yh-auth__bubble {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--c-shadow-soft);
}

.yh-auth__bubble--a { left: 8%; top: 22%; background: var(--c-sun-tint); color: #9a6a00; transform: rotate(-6deg); }
.yh-auth__bubble--b { right: 6%; top: 18%; background: var(--c-brand-tint); color: #c2185b; transform: rotate(5deg); }
.yh-auth__bubble--c { right: 14%; bottom: 8%; background: var(--c-mint-tint); color: #0f8a68; transform: rotate(-3deg); }

.yh-auth__title {
  margin: 4px 0 10px;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.yh-auth__sub { margin: 0 auto 20px; max-width: 420px; color: var(--c-ink-2); }

.yh-auth__join {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 6px;
  font-weight: 700;
}

.yh-auth__join a { color: var(--c-brand); }

.yh-auth__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.yh-auth__steps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
}

.yh-auth__steps b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-family: var(--font-head);
}

.yh-auth__staff {
  display: inline-block;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--c-muted);
  text-decoration: underline;
}

/* --- Panels shared by profile and settings ------------------------------- */

.yh-panel {
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
}

.yh-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.yh-panel__head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}

.yh-panel--tip {
  background: var(--c-sun-tint);
  border-color: transparent;
}

/* --- Profile ---------------------------------------------------------------- */

.yh-profile { --acc: var(--c-brand); --acc-2: #ff9ab8; padding-top: 16px; padding-bottom: 40px; }
.yh-profile--grape { --acc: var(--c-brand-2); --acc-2: #b29dff; }
.yh-profile--sunny { --acc: var(--c-sun); --acc-2: #ffe08a; }
.yh-profile--mint { --acc: var(--c-mint); --acc-2: #93f0d6; }
.yh-profile--ink { --acc: #1e1b2e; --acc-2: #433d63; }

.yh-profile__hero {
  position: relative;
  margin-bottom: 16px;
  padding: 0 24px 22px;
  border-radius: 30px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
  overflow: hidden;
}

.yh-profile__cover {
  position: relative;
  height: 180px;
  margin: 0 -24px;
  background: linear-gradient(120deg, var(--acc), var(--acc-2));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.yh-profile__cover-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.yh-profile__cover-blob--a { width: 260px; height: 260px; right: -60px; top: -120px; }
.yh-profile__cover-blob--b { width: 160px; height: 160px; left: 12%; bottom: -100px; }

.yh-profile__head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -54px;
  flex-wrap: wrap;
}

.yh-profile__avatar {
  position: relative;
  width: 120px;
  height: 120px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--c-card);
  background: var(--c-cream);
  box-shadow: 0 0 0 3px var(--acc);
}

.yh-profile__who { flex: 1; min-width: 200px; padding-bottom: 6px; }

.yh-profile__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.yh-profile__handle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--c-muted);
}

.yh-profile__actions { display: flex; gap: 8px; padding-bottom: 6px; }
.yh-profile__actions .yh-btn { height: 44px; padding: 0 18px; font-size: 15px; }

.yh-profile__bio { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--c-ink-2); max-width: 680px; }
.yh-profile__bio--empty a { color: var(--c-brand); font-weight: 700; }

.yh-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-muted);
}

.yh-profile__meta span, .yh-profile__meta a { display: inline-flex; align-items: center; gap: 6px; }
.yh-profile__meta a { color: var(--c-brand-2); }
.yh-profile__meta svg { width: 16px; height: 16px; }

.yh-profile__into {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.yh-profile__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.yh-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 22px;
}

.yh-stat span { font-size: 13px; font-weight: 800; color: var(--c-muted); }
.yh-stat b { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--c-ink); line-height: 1.1; }
.yh-stat small { font-size: 12.5px; color: var(--c-muted); font-weight: 600; }
.yh-stat--sun { background: var(--c-sun-tint); }
.yh-stat--grape { background: var(--c-brand-2-tint); }
.yh-stat--pink { background: var(--c-brand-tint); }
.yh-stat--mint { background: var(--c-mint-tint); }

.yh-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

/* Week bars. */
.yh-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.yh-week__day { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.yh-week__bar {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 90px;
  border-radius: 14px;
  background: var(--surface-2);
  overflow: hidden;
}

.yh-week__bar i {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(var(--c-sun), var(--c-brand));
}

.yh-week__day b { font-family: var(--font-head); font-size: 15px; }
.yh-week__day small { font-size: 12px; font-weight: 800; color: var(--c-muted); }
.yh-week__day.is-today small { color: var(--c-brand); }

/* Badges. */
.yh-badges {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.yh-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 18px;
  background: var(--surface-2);
  text-align: center;
  opacity: 0.55;
  filter: grayscale(0.8);
}

.yh-badge.is-got { opacity: 1; filter: none; background: var(--c-sun-tint); }
.yh-badge__ico { font-size: 26px; line-height: 1; }
.yh-badge b { font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.yh-badge small { font-size: 11px; color: var(--c-muted); font-weight: 700; }

/* Tabs and mini grid. */
.yh-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--c-brand-2-tint);
}

.yh-tabs button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--c-brand-2);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.yh-tabs button[aria-selected="true"] { background: var(--c-card); color: var(--c-ink); box-shadow: var(--c-shadow-soft); }

.yh-minigrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.yh-minigrid .card--compact { display: flex; flex-direction: column; gap: 8px; }
.yh-minigrid .card--compact .card__media { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 16px; }
.yh-minigrid .card--compact .card__title { order: 1; font-size: 15px; font-weight: 700; line-height: 1.3; -webkit-line-clamp: 3; }
.yh-minigrid .source-chip--author { display: none; }

/* --- Settings --------------------------------------------------------------- */

.yh-settings { max-width: 780px; padding-top: 18px; padding-bottom: 50px; }

.yh-settings__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.yh-settings__title { margin: 0; font-family: var(--font-head); font-size: 34px; font-weight: 700; }

.yh-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.yh-field label { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; }
.yh-field label small { color: var(--c-muted); font-weight: 700; }

.yh-field input[type="text"],
.yh-field input[type="url"],
.yh-field input[type="password"],
.yh-field textarea,
.yh-prefix {
  width: 100%;
  border: 1.5px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-card);
  color: var(--c-ink);
  font: inherit;
  font-weight: 600;
}

.yh-field input, .yh-field textarea { padding: 12px 14px; }
.yh-field textarea { resize: vertical; min-height: 90px; }

.yh-field input:focus, .yh-field textarea:focus, .yh-prefix:focus-within {
  outline: 0;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px var(--c-brand-tint);
}

.yh-prefix { display: flex; align-items: center; overflow: hidden; }
.yh-prefix span { padding: 0 4px 0 14px; color: var(--c-muted); font-weight: 700; white-space: nowrap; }
.yh-prefix input { border: 0 !important; box-shadow: none !important; padding-left: 0; }

.yh-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.yh-field--avatar { flex-direction: row; align-items: center; gap: 14px; }
.yh-field--avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c-brand-tint); }

/* Toggles. */
.yh-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-weight: 700;
  cursor: pointer;
}

.yh-switch input { position: absolute; opacity: 0; pointer-events: none; }

.yh-switch span {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  background: var(--c-line);
  transition: background 0.15s ease;
}

.yh-switch span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.yh-switch input:checked + span { background: var(--c-mint); }
.yh-switch input:checked + span::after { transform: translateX(18px); }
.yh-switch--danger input:checked + span { background: var(--c-danger); }
.yh-switch input:focus-visible + span { box-shadow: 0 0 0 4px var(--c-brand-tint); }

/* Colour swatches. */
.yh-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.yh-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.yh-swatch span {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sw);
  border: 3px solid var(--c-card);
  box-shadow: 0 0 0 1.5px var(--c-line);
  cursor: pointer;
}
.yh-swatch input:checked + span { box-shadow: 0 0 0 3px var(--c-ink); }

/* Section picker chips. */
.yh-pickchips { display: flex; flex-wrap: wrap; gap: 8px; }
.yh-pickchips input { position: absolute; opacity: 0; pointer-events: none; }
.yh-pickchips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--c-line);
  background: var(--c-card);
  font-weight: 700;
  cursor: pointer;
}
.yh-pickchips span svg { width: 16px; height: 16px; color: var(--c-brand-2); }
.yh-pickchips input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-cream); }
.yh-pickchips input:checked + span svg { color: var(--c-sun); }

.yh-connected { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.yh-connected > div { flex: 1; display: flex; flex-direction: column; }

.yh-settings__save {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
}

.yh-settings__save .yh-btn { box-shadow: 0 14px 30px rgba(255, 92, 141, 0.35); }
.yh-settings__logout { margin-top: 18px; }

.yh-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 8px 8px 8px 14px;
  border-radius: 16px;
  background: var(--surface-2);
}
.yh-copy code { flex: 1; overflow-wrap: anywhere; font-size: 13.5px; }
.yh-copy .yh-btn { height: 38px; }

/* --- Small screens ---------------------------------------------------------- */

@media (max-width: 960px) {
  .yh-profile__grid { grid-template-columns: minmax(0, 1fr); }
  .yh-profile__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yh-minigrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yh-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .yh-auth__card { padding: 24px 18px 22px; border-radius: 26px; }
  .yh-auth__title { font-size: 30px; }
  .yh-auth__steps { grid-template-columns: 1fr; }
  .yh-profile__hero { padding: 0 16px 18px; border-radius: 24px; }
  .yh-profile__cover { height: 130px; margin: 0 -16px; }
  .yh-profile__avatar { width: 96px; height: 96px; }
  .yh-profile__name { font-size: 26px; }
  .yh-profile__actions { width: 100%; }
  .yh-profile__actions .yh-btn { flex: 1; }
  .yh-minigrid { grid-template-columns: minmax(0, 1fr); }
  .yh-field-row { grid-template-columns: minmax(0, 1fr); }
  .yh-settings__title { font-size: 28px; }
  .yh-settings__top { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   13. Calmer header (ink + pink only) and wider article column
   ========================================================================== */

/* Category pills: white with a hairline, ink when current. */
.yh-header--candy .cat-rail .cat-pill,
.yh-header--candy .cat-rail .cat-pill:nth-child(4n + 2),
.yh-header--candy .cat-rail .cat-pill:nth-child(4n + 3),
.yh-header--candy .cat-rail .cat-pill:nth-child(4n + 4) {
  background: var(--c-card);
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
  font-weight: 600;
}

.yh-header--candy .cat-rail .cat-pill:hover {
  color: var(--c-brand);
  border-color: color-mix(in oklab, var(--c-brand) 40%, var(--c-line));
}

.yh-header--candy .cat-rail .cat-pill[aria-current="page"],
.yh-header--candy .cat-rail .cat-pill.active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-cream);
}

/* Segmented nav and theme switch: neutral track, pink for the current item. */
.yh-header--candy .yh-topnav,
.yh-themeswitch {
  background: var(--surface-2);
}

.yh-header--candy .yh-topnav__link,
.yh-themeswitch button {
  color: var(--c-ink-2);
}

.yh-header--candy .yh-topnav__link:hover {
  color: var(--c-brand);
}

.yh-header--candy .yh-topnav__link[aria-current="page"] {
  color: var(--c-brand);
}

.yh-themeswitch button[aria-checked="true"] {
  color: var(--c-brand);
}

/* Streak chip: neutral, the flame is colour enough. */
.yh-streakchip {
  background: var(--surface-2);
  color: var(--c-ink);
}

html[data-theme="dark"] .yh-streakchip {
  color: var(--c-ink);
}

/* Top stories ribbon label in ink. */
.yh-ribbon__label {
  color: var(--c-ink);
}

/* Article column: headline, image and cards use the full width; body text
   keeps a comfortable line length. */
@media (min-width: 1081px) {
  body:has(.article) .layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }

  .article,
  .article .article__head,
  .article .article__hero,
  .article .read-original,
  .article .action-bar,
  .article .article__note,
  .yh-article-shell .layout > div > .inb-comments,
  .yh-article-shell .layout > div > .section {
    max-width: none;
    width: 100%;
  }

  .article .article__body {
    max-width: 820px;
  }
}

/* ==========================================================================
   14. Under the article: "More from" story row and "Up next" bento
   ========================================================================== */

.yh-morefrom,
.yh-next {
  margin-top: 28px;
}

.yh-morefrom__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.yh-morefrom__logo {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
}

.yh-morefrom__logo img,
.yh-morefrom__logo .yh-morefrom__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.yh-morefrom__titles { flex: 1; min-width: 0; }
.yh-morefrom__titles .yh-note { font-size: 18px; margin: 0; }

.yh-morefrom__head h2,
.yh-next__head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.yh-morefrom__all { height: 40px; padding: 0 14px; font-size: 14px; }
.yh-morefrom__all svg { width: 16px; height: 16px; }

/* Tall story cards that swipe sideways. */
.yh-morefrom__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 30%);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.yh-story {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  border-radius: 24px;
  background: var(--c-ink);
  color: #fff;
  scroll-snap-align: start;
  box-shadow: var(--c-shadow-soft);
  transition: transform 0.2s ease;
}

.yh-story:hover { transform: translateY(-4px); color: #fff; }

.yh-story__media,
.yh-next__media {
  position: absolute;
  inset: 0;
}

.yh-story__media .card__img,
.yh-next__media .card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.yh-story__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 60px 16px 16px;
  background: linear-gradient(180deg, rgba(20, 17, 32, 0) 0%, rgba(20, 17, 32, 0.75) 45%, rgba(20, 17, 32, 0.95) 100%);
}

.yh-story__cat {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}

.yh-story__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.yh-story__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.8;
}

.yh-story__time svg { width: 14px; height: 14px; }

/* "Up next": one featured story beside a numbered timeline. */
.yh-next__head { margin-bottom: 14px; }
.yh-next__head .yh-note { font-size: 18px; margin: 0; display: block; }

.yh-next__bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.yh-next__lead {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--c-ink);
  color: #fff;
}

.yh-next__lead:hover { color: #fff; }
.yh-next__lead:hover .card__img { transform: scale(1.03); }

.yh-next__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 32, 0) 25%, rgba(20, 17, 32, 0.92) 100%);
}

.yh-next__leadbody {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.yh-next__leadtitle {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
}

.yh-timeline {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 0;
  list-style: none;
  border-radius: 26px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
}

.yh-timeline::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: var(--c-line);
}

.yh-timeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px 12px 20px;
}

.yh-timeline__dot {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-card);
  border: 2px solid var(--c-brand);
  color: var(--c-brand);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
}

.yh-timeline__link {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  color: var(--c-ink);
}

.yh-timeline__link:hover .yh-timeline__title { color: var(--c-brand); }

.yh-timeline__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.yh-timeline__meta { font-size: 12.5px; font-weight: 700; color: var(--c-muted); }
.yh-timeline__meta b { color: var(--c-brand-2); margin-right: 6px; }

.yh-timeline__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.yh-timeline__thumb {
  width: 72px;
  height: 72px;
  flex: none;
  overflow: hidden;
  border-radius: 16px;
}

.yh-timeline__thumb .card__img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

@media (max-width: 760px) {
  .yh-morefrom__row { grid-auto-columns: 62%; }
  .yh-next__bento { grid-template-columns: minmax(0, 1fr); }
  .yh-next__lead { min-height: 300px; }
  .yh-morefrom__head h2, .yh-next__head h2 { font-size: 22px; }
  .yh-morefrom__all span, .yh-morefrom__all { font-size: 13px; }
}

/* ==========================================================================
   15. Ads sit on the page background: no bands, boxes or borders
   ========================================================================== */

.yh-adband,
.ad-top,
.ad-slot,
.ad-slot--inline,
.ad-slot--tall,
.yh3 .ad-slot,
.article .ad-slot {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.yh-adband {
  padding: 10px 0 0;
}

.ad-slot__label {
  background: transparent !important;
  border: 0 !important;
  color: var(--c-muted);
  opacity: 0.7;
}

/* Small sign-in page tidy-up. */
.yh-auth__staff { display: block; margin: 14px auto 0; }

/* ==========================================================================
   16. About, document pages and Sources
   ========================================================================== */

/* Handwritten pill tag, used as a section kicker. */
.yh-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.3;
  transform: rotate(-2deg);
}

.yh-tag--center { display: table; margin: 0 auto 10px; }

html[data-theme="dark"] .yh-tag { background: var(--c-brand-2-tint); color: var(--c-ink); }

/* Long-form text inside pages. */
.yh-prose { font-size: 17px; line-height: 1.8; color: var(--c-ink-2); }
.yh-prose h2, .yh-prose h3 { font-family: var(--font-head); font-weight: 700; color: var(--c-ink); line-height: 1.25; margin: 1.6em 0 0.5em; }
.yh-prose h2 { font-size: 26px; }
.yh-prose h3 { font-size: 21px; }
.yh-prose p { margin: 0 0 1.1em; }
.yh-prose a { color: var(--c-brand); text-decoration: underline; text-decoration-color: var(--c-brand-tint); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.yh-prose ul, .yh-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.yh-prose li { margin-bottom: 0.4em; }
.yh-prose li::marker { color: var(--c-brand); }
.yh-prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-radius: 20px 20px 20px 6px; background: var(--c-sun-tint); color: var(--c-ink); }
.yh-prose > *:first-child { margin-top: 0; }

/* --- About ---------------------------------------------------------------- */

.yh-about__hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 30px;
  background:
    radial-gradient(60% 80% at 85% 20%, var(--c-brand-2-tint) 0%, transparent 70%),
    radial-gradient(50% 70% at 10% 90%, var(--c-sun-tint) 0%, transparent 70%);
}

.yh-about__hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.yh-about__title {
  margin: 14px 0 14px;
  font-family: var(--font-head);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.02;
}

.yh-about__sub { max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--c-ink-2); margin: 0 0 22px; }
.yh-about__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.yh-about__art { position: relative; height: 360px; display: grid; place-items: center; }

.yh-about__ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--c-brand), var(--c-brand-2), var(--c-mint), var(--c-sun), var(--c-brand));
  opacity: 0.25;
  filter: blur(2px);
}

.yh-about__art .yh-mascot { position: relative; animation: yh-bob 3.4s ease-in-out infinite; }

.yh-about__float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: 0 12px 26px rgba(30, 27, 46, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.yh-about__float svg { width: 18px; height: 18px; color: var(--c-brand); }
.yh-about__float b { font-family: var(--font-head); }
.yh-about__float--a { left: 4%; top: 16%; transform: rotate(-4deg); }
.yh-about__float--b { right: 2%; top: 34%; transform: rotate(3deg); }
.yh-about__float--c { left: 14%; bottom: 10%; transform: rotate(2deg); background: var(--c-ink); color: var(--c-cream); border-color: var(--c-ink); }

/* Scrolling chip marquee. */
.yh-marquee {
  overflow: hidden;
  padding: 10px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.yh-marquee__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: yh-marquee 40s linear infinite;
}

.yh-marquee__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
}

.yh-marquee__chip svg { width: 18px; height: 18px; color: var(--c-brand); }

@keyframes yh-marquee { to { transform: translateX(-50%); } }

.yh-about__section { padding: 40px 0 10px; text-align: center; }

.yh-about__h2 {
  margin: 0 auto 8px;
  max-width: 680px;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
}

.yh-about__lede { margin: 0 0 24px; color: var(--c-muted); font-size: 16px; }

.yh-about__three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.yh-feature {
  overflow: hidden;
  border-radius: 26px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
}

.yh-feature h3 { display: flex; align-items: center; gap: 10px; margin: 18px 18px 6px; font-family: var(--font-head); font-size: 19px; font-weight: 700; }
.yh-feature h3 b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--c-ink); color: var(--c-cream); font-size: 14px; }
.yh-feature p { margin: 0 18px 20px; color: var(--c-ink-2); font-size: 15px; line-height: 1.6; }

.yh-feature__art { position: relative; height: 150px; display: grid; place-items: center; gap: 8px; padding: 20px; }
.yh-feature__art--feed { background: var(--c-brand-tint); align-content: center; }
.yh-feature__art--feed span { display: block; width: 80%; height: 22px; border-radius: 12px; background: var(--c-card); box-shadow: var(--c-shadow-soft); }
.yh-feature__art--feed span:nth-child(2) { width: 65%; }
.yh-feature__art--feed span:nth-child(3) { width: 72%; }
.yh-feature__art--daily { background: var(--c-sun-tint); }
.yh-feature__art--daily i { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--c-card); color: #c08600; box-shadow: var(--c-shadow-soft); }
.yh-feature__art--daily i svg { width: 32px; height: 32px; }
.yh-feature__art--daily em { font-family: var(--font-hand); font-style: normal; font-size: 22px; color: var(--c-ink); }
.yh-feature__art--share { background: var(--c-brand-2-tint); }
.yh-feature__art--share span { position: absolute; width: 70px; height: 100px; border-radius: 14px; box-shadow: 0 10px 20px rgba(30, 27, 46, 0.15); }
.yh-feature__art--share .c1 { background: var(--c-brand); transform: translateX(-46px) rotate(-10deg); }
.yh-feature__art--share .c2 { background: var(--c-brand-2); transform: rotate(2deg); z-index: 1; }
.yh-feature__art--share .c3 { background: var(--c-sun); transform: translateX(46px) rotate(12deg); }

.yh-about__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 10px;
}

.yh-about__stats div { padding: 18px; border-radius: 22px; background: var(--c-card); border: 1px solid var(--c-line); text-align: center; }
.yh-about__stats b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--c-brand); }
.yh-about__stats span { font-size: 13.5px; font-weight: 800; color: var(--c-muted); }

.yh-about__split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.yh-about__story,
.yh-about__journey {
  padding: 24px;
  border-radius: 26px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
}

.yh-about__story h2 { margin: 12px 0 12px; font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.yh-about__journey h3 { margin: 0 0 14px; font-family: var(--font-head); font-size: 20px; font-weight: 700; }

.yh-journey { position: relative; margin: 0; padding: 0; list-style: none; }
.yh-journey::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--c-brand), var(--c-brand-2), var(--c-mint)); opacity: 0.5; }
.yh-journey li { position: relative; display: flex; gap: 12px; padding: 8px 0; }
.yh-journey li > span { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--c-brand-tint); color: var(--c-brand); z-index: 1; }
.yh-journey li:nth-child(2) > span { background: var(--c-brand-2-tint); color: var(--c-brand-2); }
.yh-journey li:nth-child(3) > span { background: var(--c-sun-tint); color: #c08600; }
.yh-journey li:nth-child(4) > span { background: var(--c-mint-tint); color: #0f8a68; }
.yh-journey li svg { width: 18px; height: 18px; }
.yh-journey b { font-family: var(--font-head); font-size: 16px; }
.yh-journey p { margin: 2px 0 0; font-size: 14px; color: var(--c-ink-2); }

.yh-about__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
  margin-top: 18px;
}

.yh-value { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 20px; border-radius: 22px; background: var(--c-card); border: 1px solid var(--c-line); }
.yh-value__ico { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--c-ink); color: var(--c-cream); }
.yh-value__ico svg { width: 20px; height: 20px; }
.yh-value b { font-family: var(--font-head); font-size: 17px; }
.yh-value p { margin: 0; font-size: 14.5px; color: var(--c-ink-2); }

.yh-about__quote {
  margin: 30px 0;
  padding: 30px;
  border-radius: 28px;
  background: var(--c-ink);
  color: var(--c-cream);
  text-align: center;
}

.yh-about__quote p { margin: 0 0 8px; font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; line-height: 1.3; }
.yh-about__quote span { font-family: var(--font-hand); font-size: 20px; color: var(--c-sun); }

.yh-about__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 26px 28px;
  border-radius: 28px;
  background: var(--c-brand-tint);
}

.yh-about__cta h2 { margin: 2px 0 4px; font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.yh-about__cta p { margin: 0; color: var(--c-ink-2); }
.yh-about__cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Document pages --------------------------------------------------------- */

.yh-doc__hero {
  padding: 26px 0 26px;
  background: radial-gradient(60% 120% at 90% 0%, var(--c-brand-2-tint) 0%, transparent 70%);
}

.yh-doc__hero .crumbs { margin-bottom: 10px; }
.yh-doc__title { margin: 12px 0 10px; font-family: var(--font-head); font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.1; }

.yh-doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  padding-bottom: 40px;
}

.yh-doc__body {
  padding: 28px 32px;
  border-radius: 26px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
}

.yh-doc__side { position: sticky; top: 140px; }

.yh-doc__nav { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.yh-doc__navlabel { padding: 6px 10px 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-muted); }
.yh-doc__nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 14px; font-weight: 700; color: var(--c-ink); }
.yh-doc__nav a svg { width: 16px; height: 16px; opacity: 0.4; }
.yh-doc__nav a:hover { background: var(--surface-2); }
.yh-doc__nav a[aria-current="page"] { background: var(--c-ink); color: var(--c-cream); }
.yh-doc__nav a[aria-current="page"] svg { opacity: 1; }

/* --- Sources ------------------------------------------------------------------ */

.yh-srchero {
  padding: 34px 0 6px;
  background: radial-gradient(60% 120% at 80% 0%, var(--c-brand-tint) 0%, transparent 70%);
}

.yh-srchero__title { margin: 12px 0 10px; font-family: var(--font-head); font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; line-height: 1.05; max-width: 820px; }
.yh-srchero__copy > p { max-width: 640px; font-size: 17px; color: var(--c-ink-2); line-height: 1.6; }

.yh-srchero__stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.yh-srchero__stats div { padding: 12px 18px; border-radius: 18px; background: var(--c-card); border: 1px solid var(--c-line); }
.yh-srchero__stats b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--c-ink); }
.yh-srchero__stats span { font-size: 13px; font-weight: 800; color: var(--c-muted); }

.yh-logomarquee {
  overflow: hidden;
  margin-top: 22px;
  padding: 6px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.yh-logomarquee__track { display: flex; gap: 12px; width: max-content; animation: yh-marquee 50s linear infinite; }
.yh-logomarquee__item { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--c-card); border: 1px solid var(--c-line); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.yh-logomarquee__logo { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; background: #fff; }

.yh-srclist.section { padding: 0; background: none; border: 0; box-shadow: none; }

.yh-srclist__bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }

.yh-srclist__search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--c-card);
  border: 1.5px solid var(--c-line);
}

.yh-srclist__search:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-tint); }
.yh-srclist__search svg { width: 18px; height: 18px; color: var(--c-muted); }
.yh-srclist__search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 600; color: var(--c-ink); }

.yh-srclist__sort { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.yh-srclist__sort button { height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; color: var(--c-ink-2); cursor: pointer; }
.yh-srclist__sort button[aria-pressed="true"] { background: var(--c-card); color: var(--c-brand); box-shadow: var(--c-shadow-soft); }

.yh-srcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.yh-srccard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
  transition: transform 0.2s ease;
}

.yh-srccard:hover { transform: translateY(-3px); }
.yh-srccard[hidden] { display: none; }

.yh-srccard__top { position: relative; height: 92px; background: var(--c-brand-tint); }
.yh-srccard__top--1 { background: var(--c-brand-2-tint); }
.yh-srccard__top--2 { background: var(--c-sun-tint); }
.yh-srccard__top--3 { background: var(--c-mint-tint); }

.yh-srccard__logo {
  position: absolute;
  left: 18px;
  bottom: -30px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 4px solid var(--c-card);
  box-shadow: var(--c-shadow-soft);
}

.yh-srccard__logo img, .yh-srccard__mark { width: 52px; height: 52px; object-fit: contain; }

.yh-srccard__live {
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-card);
  font-size: 12px;
  font-weight: 800;
  color: #0f8a68;
}

.yh-srccard__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-mint); box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.6); animation: yh-pulse 1.6s infinite; }

@keyframes yh-pulse { 70% { box-shadow: 0 0 0 8px rgba(45, 212, 167, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0); } }

.yh-srccard__body { flex: 1; padding: 40px 18px 8px; }
.yh-srccard__name { margin: 0; font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.yh-srccard__name a { color: var(--c-ink); }
.yh-srccard__domain { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--c-brand-2); }
.yh-srccard__domain svg { width: 13px; height: 13px; }
.yh-srccard__desc { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--c-ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.yh-srccard__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--c-muted); }
.yh-srccard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.yh-srccard__meta svg { width: 14px; height: 14px; }

.yh-srccard__actions { display: flex; gap: 8px; padding: 12px 18px 18px; }
.yh-srccard__actions .follow-btn, .yh-srccard__actions .yh-btn { flex: 1; height: 42px; justify-content: center; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; }
.yh-srccard__actions .follow-btn { border: 0; background: var(--c-brand); color: #fff; box-shadow: var(--c-shadow-brand); }
.yh-srccard__actions .follow-btn.is-active, .yh-srccard__actions .follow-btn[aria-pressed="true"] { background: var(--c-mint-tint); color: #0f8a68; box-shadow: none; }
.yh-srccard__actions .yh-btn svg { width: 16px; height: 16px; }

.yh-srclist__none { padding: 20px; text-align: center; font-weight: 700; color: var(--c-muted); }

.yh-srclist__suggest {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 24px;
  background: var(--c-sun-tint);
}

.yh-srclist__suggest p { flex: 1; margin: 0; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .yh-marquee__track, .yh-logomarquee__track { animation: none; }
}

@media (max-width: 960px) {
  .yh-about__hero-in, .yh-about__split, .yh-doc__grid { grid-template-columns: minmax(0, 1fr); }
  .yh-about__art { height: 280px; }
  .yh-about__three { grid-template-columns: minmax(0, 1fr); }
  .yh-about__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yh-doc__side { position: static; }
}

@media (max-width: 600px) {
  .yh-about__values { grid-template-columns: minmax(0, 1fr); }
  .yh-doc__body { padding: 20px 18px; border-radius: 22px; }
  .yh-about__float--b { right: 0; }
}

/* ==========================================================================
   17. Footer, new vibe: a light rounded card, chips and a giant wordmark
   ========================================================================== */

.yh-prose ul { list-style: disc; }
.yh-prose ol { list-style: decimal; }

.site-footer.yhf {
  margin-top: 56px;
  padding: 0 0 18px;
  background: transparent;
  border: 0;
  color: var(--c-ink-2);
}

.yhf .container { max-width: 1280px; }

.yhf__card {
  position: relative;
  overflow: hidden;
  padding: 26px 30px 18px;
  border-radius: 34px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
}

/* Hello strip. */
.yhf__hello {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 26px;
  background: var(--c-brand-tint);
}

.yhf__mascot .yh-mascot { animation: yh-bob 3.2s ease-in-out infinite; }
.yhf__hello .yh-note { font-size: 19px; margin: 0; }

.yhf__hello-title {
  margin: 2px 0 4px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-ink);
}

.yhf__hello p { margin: 0; color: var(--c-ink-2); max-width: 560px; }
.yhf__hello-actions { display: flex; flex-direction: column; gap: 8px; }
.yhf__hello-actions .yh-btn { height: 46px; }
.yhf__hello-actions .yh-btn--ghost { background: var(--c-card); }

/* Link columns. */
.yhf__links {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 30px 6px 10px;
}

.yhf__col { display: flex; flex-direction: column; gap: 9px; }

.yhf__col h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
}

.yhf__col > a {
  width: fit-content;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-ink-2);
}

.yhf__col > a:hover { color: var(--c-brand); }

.yhf__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.yhf__chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}

.yhf__chips a svg { width: 15px; height: 15px; color: var(--c-brand); }
.yhf__chips a:hover { border-color: var(--c-ink); }

.yhf__col--trends > a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
}

.yhf__col--trends b {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--font-head);
  font-size: 12px;
}

/* Giant outlined wordmark. */
.yhf__word {
  margin: 6px -10px -14px;
  font-family: var(--font-head);
  font-size: clamp(80px, 17vw, 250px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-line);
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.22;
  user-select: none;
  pointer-events: none;
}

/* Bottom bar. */
.yhf__bottom {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-muted);
}

.yhf__heart { color: var(--c-brand); }
.yhf__locales { display: inline-flex; gap: 10px; }
.yhf__locales a { color: var(--c-ink-2); }
.yhf__locales a.is-active { color: var(--c-ink); font-weight: 800; }
.yhf__theme { margin-left: auto; }

.yhf__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--font-head);
  font-weight: 600;
}

.yhf__top:hover { color: var(--c-cream); background: var(--c-brand); }
.yhf__top svg { width: 15px; height: 15px; }

@media (max-width: 1080px) {
  .yhf__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yhf__col--sections { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-footer.yhf { margin-top: 40px; }
  .yhf .container { padding-inline: 10px; }
  .yhf__card { padding: 16px 16px 14px; border-radius: 28px; }
  .yhf__hello { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding: 18px 16px; }
  .yhf__hello-title { font-size: 23px; }
  .yhf__hello-actions { width: 100%; }
  .yhf__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-top: 24px; }
  .yhf__col--trends { grid-column: 1 / -1; }
  .yhf__bottom { flex-direction: column; align-items: flex-start; }
  .yhf__theme { margin-left: 0; }
}

.yhf__word { -webkit-text-stroke: 0; opacity: 0.18; }

/* ==========================================================================
   18. AI-assisted label, "powered by Niguro", selects
   ========================================================================== */

.yh-chip--ai { background: var(--c-ink); color: var(--c-cream); }
html[data-theme="dark"] .yh-chip--ai { background: var(--c-brand-2-tint); color: var(--c-ink); }

.yh-ai-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 20px 20px 20px 6px;
  background: var(--c-brand-2-tint);
  color: var(--c-ink);
}

.yh-ai-note p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.yh-ai-note b { font-family: var(--font-head); font-weight: 600; }

.yh-ai-note__ico {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c-card);
  color: var(--c-brand-2);
}

.yh-ai-note__ico svg { width: 18px; height: 18px; }

.yh-powered {
  display: inline-block;
  margin: -6px 0 8px;
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--c-brand);
  transform: rotate(-1.5deg);
}

.widget--trending .widget__head { margin-bottom: 4px; }

.yh-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-card);
  color: var(--c-ink);
  font: inherit;
  font-weight: 600;
}

.yh-select:focus { outline: 0; border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-tint); }

/* ==========================================================================
   19. Wordmark logo and the search "powered by" tag
   ========================================================================== */

.yh-logo {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}

.yh-logo__word {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--c-brand) 0%, var(--c-brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 2px 2px 0;
}

.yh-logo__spark {
  width: 14px;
  height: 14px;
  margin: -2px 0 0 1px;
  fill: var(--c-sun);
  animation: yh-twinkle 3.5s ease-in-out infinite;
}

@keyframes yh-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.7) rotate(25deg); }
}

.yh-header--candy .brand { flex: none; }
.yh-drawer__head .yh-logo__word { font-size: 28px; }

.yh-search-powered {
  flex: none;
  margin: 0 6px 0 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--c-card);
  font-family: var(--font-hand);
  font-size: 14px;
  line-height: 1.2;
  color: var(--c-brand);
  white-space: nowrap;
}

.yh-header--candy .search__field:focus-within .yh-search-powered { background: var(--surface-2); }

@media (max-width: 720px) {
  .yh-logo__word { font-size: 28px; }
  .yh-search-powered { font-size: 13px; padding: 2px 8px; }
}

@media (max-width: 380px) {
  .yh-search-powered { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .yh-logo__spark { animation: none; }
}

/* Photo credit pill: always dark with white text, in light and dark mode. */
.article .photo-credit { background: rgba(20, 17, 32, 0.82) !important; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.article .photo-credit a, .article .photo-credit__label { color: #fff !important; }

/* Active category pill: brand pink with white text, in both themes. */
html .yh-header--candy .cat-rail .cat-pill[aria-current="page"],
html .yh-header--candy .cat-rail .cat-pill.active,
html[data-theme="dark"] .yh-header--candy .cat-rail .cat-pill[aria-current="page"],
html[data-theme="dark"] .yh-header--candy .cat-rail .cat-pill.active {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
  box-shadow: var(--c-shadow-brand);
}

/* ==========================================================================
   20. Avatar dropdown
   ========================================================================== */

.yh-header--candy .account__menu {
  width: 290px;
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: 24px;
  background: var(--c-card);
  box-shadow: 0 18px 44px rgba(30, 27, 46, 0.18);
}

.yh-header--candy .account__head {
  margin: 0 0 6px;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: var(--c-brand-tint);
}

.yh-header--candy .account__head--me {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.account__bigavatar {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-card);
  background: var(--c-brand-2);
  color: #fff;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}

.account__who { min-width: 0; }

.yh-header--candy .account__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yh-header--candy .account__mail {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account__streak {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--c-card);
  font-size: 12px;
  font-weight: 800;
  color: var(--c-ink);
}

.account__profile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin: 0 0 8px;
  border-radius: 999px;
  background: var(--c-brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  box-shadow: var(--c-shadow-brand);
}

.account__profile:hover { color: #fff; background: var(--brand-hover); }

.yh-header--candy .account__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
}

.yh-header--candy .account__link svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  flex: none;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--c-ink-2);
}

.yh-header--candy .account__link:hover { background: var(--surface-2); color: var(--c-brand); }
.yh-header--candy .account__link:hover svg { background: var(--c-brand-tint); color: var(--c-brand); }

.yh-header--candy .account__count {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--c-brand-2-tint);
  color: var(--c-brand-2);
  font-size: 12px;
}

.yh-header--candy .account__form {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--c-line);
}

.yh-header--candy .account__link--btn:hover { color: var(--c-danger); }
.yh-header--candy .account__link--btn:hover svg { background: var(--c-brand-tint); color: var(--c-danger); }

.yh-header--candy .account__foot { padding: 6px 2px 2px; }

.account__niguro {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 999px !important;
  background: var(--c-ink) !important;
  border-color: var(--c-ink) !important;
  color: var(--c-cream) !important;
  font-family: var(--font-head);
}

.account__nlogo {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

html[data-theme="dark"] .account__niguro { background: #f5f2ff !important; color: #1e1b2e !important; }

/* ==========================================================================
   21. Source page hero (source.php, body.source-page)
   --------------------------------------------------------------------------
   The publisher profile as a candy card: pastel banner tinted per feed (same
   four tints as the /sources cards), a logo tile that overlaps it, the name in
   Fredoka with the domain as a grape chip, Follow (pink) + Visit (ghost), a
   hand-written note, and three pastel stat tiles.
   ========================================================================== */

.profile.yh-srchero {
  display: block;
  position: relative;
  padding: 0;
  margin-block: 14px 26px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-soft);
}

.yh-srchero__banner {
  position: relative;
  height: 128px;
  overflow: hidden;
  background: var(--c-brand-tint);
}
.yh-srchero__banner--1 { background: var(--c-brand-2-tint); }
.yh-srchero__banner--2 { background: var(--c-sun-tint); }
.yh-srchero__banner--3 { background: var(--c-mint-tint); }

/* Soft dots and two blobs, so the banner is not a flat slab. */
.yh-srchero__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30, 27, 46, 0.09) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
}
html[data-theme="dark"] .yh-srchero__banner::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.4px, transparent 1.6px);
}

.yh-srchero__blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
}
.yh-srchero__blob--a { width: 180px; height: 180px; right: 12%; top: -90px; background: var(--c-card); }
.yh-srchero__blob--b { width: 90px; height: 90px; right: 4%; bottom: -40px; background: var(--c-card); opacity: 0.35; }

.yh-srchero__live { z-index: 1; }

.yh-srchero__body {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 0 28px 26px;
}

.profile__logo-wrap.yh-srchero__logo {
  flex: none;
  width: 108px;
  height: 108px;
  margin-top: -54px;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 5px solid var(--c-card);
  box-shadow: 0 10px 26px rgba(30, 27, 46, 0.12);
  transform: rotate(-3deg);
}
.yh-srchero__logo .profile__logo {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  padding: 10px;
  background: transparent;
}
.yh-srchero__logo span.profile__logo { font-family: var(--font-head); font-size: 38px; padding: 0; }

.yh-srchero__main { flex: 1; min-width: 0; padding-top: 16px; }

.yh-srchero__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.yh-srchero__titles { min-width: 0; }

.profile__name.yh-srchero__name {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.yh-srccard__domain.yh-srchero__domain {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-brand-2-tint);
  font-size: 13.5px;
}
.yh-srchero__domain:hover { color: var(--c-brand-2); text-decoration: none; }

.yh-srchero__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.yh-srchero__actions .follow-btn {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--c-brand);
  color: #fff;
  box-shadow: var(--c-shadow-brand);
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
}
.yh-srchero__actions .follow-btn:hover { background: var(--brand-hover); color: #fff; }
.yh-srchero__actions .follow-btn.is-active,
.yh-srchero__actions .follow-btn[aria-pressed="true"] {
  background: var(--c-mint-tint);
  color: #0f8a68;
  box-shadow: none;
}
html[data-theme="dark"] .yh-srchero__actions .follow-btn { color: #1e1b2e; }
html[data-theme="dark"] .yh-srchero__actions .follow-btn[aria-pressed="true"],
html[data-theme="dark"] .yh-srchero__actions .follow-btn.is-active { color: var(--c-mint); }

.yh-srchero__visit.yh-btn {
  height: 46px;
  padding: 0 18px;
  font-size: 15px;
  background: var(--c-card);
}
.yh-srchero__visit.yh-btn:hover { border-color: var(--c-ink); color: var(--c-ink); text-decoration: none; }
.yh-srchero__visit svg { width: 16px; height: 16px; }

.profile__desc.yh-srchero__desc {
  margin: 14px 0 0;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink-2);
}

.yh-srchero__note {
  margin: 8px 0 0;
  font-family: var(--font-hand);
  font-size: 17px;
  line-height: 1.35;
  color: var(--c-muted);
  transform: rotate(-0.6deg);
  transform-origin: left center;
}

.profile__stats.yh-srchero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  border: 0;
}

.stat.yh-srchero__stat {
  position: relative;
  padding: 14px 16px 14px 60px;
  border-radius: 20px;
  background: var(--c-sun-tint);
  min-width: 0;
}
.stat.yh-srchero__stat--stories { background: var(--c-brand-tint); }
.stat.yh-srchero__stat--import { background: var(--c-mint-tint); }
.stat.yh-srchero__stat--followers { background: var(--c-brand-2-tint); }

.yh-srchero__stat-ic {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c-card);
  color: var(--c-ink);
}
.yh-srchero__stat-ic svg { width: 18px; height: 18px; }
.yh-srchero__stat--stories .yh-srchero__stat-ic { color: var(--c-brand); }
.yh-srchero__stat--import .yh-srchero__stat-ic { color: #0f8a68; }
.yh-srchero__stat--followers .yh-srchero__stat-ic { color: var(--c-brand-2); }
html[data-theme="dark"] .yh-srchero__stat--import .yh-srchero__stat-ic { color: var(--c-mint); }

.yh-srchero .yh-srchero__stat .stat__value,
.yh-srchero .yh-srchero__stat .stat__label {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.yh-srchero .yh-srchero__stat .stat__value {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yh-srchero .yh-srchero__stat .stat__label {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  opacity: 0.75;
}

@media (max-width: 860px) {
  .yh-srchero__body { flex-direction: column; gap: 0; padding: 0 18px 20px; }
  .profile__logo-wrap.yh-srchero__logo { width: 92px; height: 92px; margin-top: -46px; border-radius: 26px; }
  .yh-srchero__main { padding-top: 12px; }
  .yh-srchero__banner { height: 104px; }
}

@media (max-width: 560px) {
  .profile.yh-srchero { border-radius: 24px; margin-inline: 0; }
  .yh-srchero__actions { width: 100%; }
  .yh-srchero__actions .follow-btn,
  .yh-srchero__visit.yh-btn { flex: 1 1 100%; justify-content: center; min-width: 0; }
  .yh-srchero__visit.yh-btn { overflow: hidden; text-overflow: ellipsis; height: 42px; }
  .profile__stats.yh-srchero__stats { grid-template-columns: 0.8fr 1.4fr 0.8fr; gap: 8px; }
  .stat.yh-srchero__stat { padding: 12px 10px; text-align: center; border-radius: 18px; }
  .yh-srchero__stat-ic { display: none; }
  .yh-srchero .yh-srchero__stat .stat__value { font-size: 17px; white-space: normal; }
  .yh-srchero .yh-srchero__stat .stat__label { font-size: 10.5px; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  .profile__logo-wrap.yh-srchero__logo, .yh-srchero__note { transform: none; }
}

/* ==========================================================================
   22. Header fit on phones + Appearance row in the account menu
   --------------------------------------------------------------------------
   theme-yahoo.css lays the mobile bar out as `44px 1fr auto`. The `auto`
   column took the actions' full width, so on a 375px phone the tracks added up
   to more than the card and the icons and the search field ran past its right
   edge. Here the middle track can shrink and every child may go below its
   content width. Signed-in readers also get the light/system/dark switch and
   the dashboard shortcut inside the account menu (partials/nav/header-yh.php),
   so the bar has fewer items to fit.
   ========================================================================== */

@media (max-width: 900px) {
  .yh-header--candy .header-inner {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    column-gap: 8px;
  }
  .yh-header--candy .header-inner > * { min-width: 0; }
  .yh-header--candy .brand { justify-self: center; max-width: 100%; overflow: hidden; }
  .yh-header--candy .header-actions {
    min-width: 0;
    justify-content: flex-end;
    gap: 6px;
  }
  .yh-header--candy .search,
  .yh-header--candy .search__field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .yh-header--candy .search__input { min-width: 0; }
}

@media (max-width: 400px) {
  .yh-header--candy .header-inner { padding-left: 8px; padding-right: 8px; column-gap: 6px; }
  .yh-header--candy .yh-logo__word { font-size: 25px; }
  .yh-header--candy .header-actions { gap: 4px; }
  .yh-header--candy .header-actions .icon-btn { width: 34px; height: 34px; }
  .yh-header--candy .yh-streakchip { padding: 0 8px; }
  .yh-header--candy .yh-search-powered { display: none; }
}

@media (max-width: 340px) {
  /* Smallest phones: Sources stays one tap away in the category rail. */
  .yh-header--candy .header-actions > a.icon-btn[href$="/sources"] { display: none; }
}

/* The Appearance row inside the account menu. */
.account__theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
  padding: 8px 8px 8px 14px;
  border-radius: 16px;
  background: var(--surface-2);
}

.account__theme-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  color: var(--c-ink-2);
}

.account__theme .yh-themeswitch { flex: none; margin: 0; background: var(--c-card); }

/* ==========================================================================
   23. Streak share card (theme-social.js, "streak share card" section)
   --------------------------------------------------------------------------
   The modal reuses the article studio's .yh-share__* styles. These are the
   entry buttons (account menu, own profile's Streak tile) and the prompt that
   appears after a read grows the streak.
   ========================================================================== */

.yh-sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.yh-sc-btn[hidden] { display: none; }
.yh-sc-btn:hover { transform: translateY(-1px); }
.yh-sc-btn .ic { width: 15px; height: 15px; }

/* Next to the "🔥 N day streak" pill in the account menu. */
.yh-sc-btn--menu {
  height: 26px;
  margin-left: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  background: var(--c-brand);
  color: #fff;
  vertical-align: middle;
}
html[data-theme="dark"] .yh-sc-btn--menu { color: #1e1b2e; }

/* On the Streak tile of your own profile. */
.yh-sc-btn--tile {
  align-self: flex-start;
  justify-self: start;
  width: auto;
  margin-top: 10px;
  height: 34px;
  padding: 0 12px;
  font-size: 13.5px;
  white-space: nowrap;
  max-width: 100%;
  background: var(--c-ink);
  color: var(--c-cream);
}
html[data-theme="dark"] .yh-sc-btn--tile { background: #f5f2ff; color: #1e1b2e; }

/* The after-read prompt, sitting just above where the toast slides in. */
.yh-sc-prompt {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 1201;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  padding: 10px 10px 10px 14px;
  border-radius: 22px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: 0 16px 40px rgba(30, 27, 46, 0.22);
  color: var(--c-ink);
  transform: translate(-50%, 30px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
}
.yh-sc-prompt.is-in { transform: translate(-50%, 0); opacity: 1; }

.yh-sc-prompt__fire {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--c-sun-tint);
  font-size: 24px;
}
.yh-sc-prompt__text { flex: 1; min-width: 0; line-height: 1.2; }
.yh-sc-prompt__text b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.yh-sc-prompt__text small { font-family: var(--font-hand); font-size: 16px; color: var(--c-muted); }

.yh-sc-prompt__go {
  flex: none;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--c-brand);
  color: #fff;
  box-shadow: var(--c-shadow-brand);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
html[data-theme="dark"] .yh-sc-prompt__go { color: #1e1b2e; }

.yh-sc-prompt__x {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--c-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.yh-sc-prompt__x:hover { background: var(--surface-2); color: var(--c-ink); }

/* Two formats only, so the format picker can be a tidy pair. */
.yh-streakshare .yh-share__formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (prefers-reduced-motion: reduce) {
  .yh-sc-prompt, .yh-sc-btn { transition: none; }
}

/* ==========================================================================
   24. Share sheet on phones + hidden scrollbars sitewide
   ========================================================================== */

/* Phones: the share studio (article cards and the streak card) slides up
   from the bottom, takes 90% of the screen, keeps its header in place and
   scrolls its content. */
@media (max-width: 760px) {
  .yh-share__modal {
    padding: 0;
    align-items: end;
  }

  .yh-share__sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 90vh;
    height: 90dvh;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 0;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
    opacity: 1;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .yh-share__modal.is-open .yh-share__sheet {
    transform: translateY(0);
  }

  /* Grab handle. */
  .yh-share__sheet::before {
    content: "";
    flex: none;
    align-self: center;
    width: 44px;
    height: 5px;
    margin: 10px 0 2px;
    border-radius: 999px;
    background: var(--c-line);
  }

  .yh-share__head {
    flex: none;
    margin: 0;
    padding: 6px 16px 10px;
  }

  .yh-share__grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 16px calc(22px + env(safe-area-inset-bottom, 0px));
  }

  /* Plain stacking: a grid inside a fixed-height scroller squeezes the
     preview row and the card spills over the controls. */
  .yh-share__grid {
    display: block;
  }

  .yh-share__grid > * + * {
    margin-top: 18px;
  }

  .yh-share__preview {
    min-height: 0;
  }

  .yh-share__preview canvas {
    max-height: 52vh;
  }
}

/* Scrollbars hidden everywhere; every page and panel still scrolls by
   touch, wheel, trackpad and keyboard. */
html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

/* 25. Share studio: the sharer's name field and the insider sign-in nudge. */
.yh-share__name { margin-bottom: 16px; }

.yh-share__insider-hint {
  display: inline-block;
  margin: -8px 0 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-brand);
  text-decoration: none;
}

.yh-share__insider-hint:hover { text-decoration: underline; }

/* 26. Quote cards and premium looks in the share studio. */
.yh-share__looks button[data-yh-look="noir"],
.yh-share__looks button[data-yh-look="cream"] {
  background: radial-gradient(circle, var(--sw) 52%, var(--sw-ring) 54%, var(--sw-ring) 60%, var(--sw) 62%);
}

.yh-share__quote {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--c-sun-tint);
}

.yh-share__quote p {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yh-share__quote button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-brand);
  cursor: pointer;
}

.yh-quote-chip {
  display: block;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--c-brand);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.yh-quote-fab {
  position: absolute;
  z-index: 70;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--c-ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(30, 27, 46, 0.28);
  cursor: pointer;
}

.yh-quote-fab[hidden] { display: none; }

[data-theme="dark"] .yh-quote-fab { background: var(--c-brand); }

/* ==========================================================================
   27. Header search dropdown (partials/yh/search_panel.php, theme-search.js)
   Desktop: the panel hangs off the search pill as one surface, with a light
   dim behind it. Phones: the box pins to the top and the panel drops down.
   ========================================================================== */
.yh-header--candy .search { position: relative; }

.yh-sx[hidden],
.yh-sx-scrim[hidden],
.yh-sx__back,
.yh-sx__x[hidden] { display: none; }

.yh-sx svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yh-sx-scrim {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 46, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.yh-sx-scrim.is-in { opacity: 1; }

.yh-sx__x {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-right: 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
}

.yh-sx__x svg { width: 16px; height: 16px; }
.yh-sx__x:hover { background: var(--surface-2); color: var(--c-ink); }

/* The open pill squares off its bottom corners into the panel. */
.yh-header--candy .search.is-sx-open .search__field {
  border-color: var(--c-brand);
  border-radius: 24px 24px 0 0;
  border-bottom-color: transparent;
  background: var(--c-card);
  box-shadow: none;
}

.yh-sx {
  position: absolute;
  top: calc(100% - 1.5px);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 600px);
  overflow: hidden;
  border: 1.5px solid var(--c-brand);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: var(--c-card);
  box-shadow: 0 22px 44px -16px rgba(30, 27, 46, 0.32);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.yh-sx.is-in { opacity: 1; }

.yh-sx::before {
  content: "";
  flex: none;
  height: 1px;
  margin: 0 18px;
  background: var(--c-line);
}

.yh-sx__scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 8px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.yh-sx__sec { padding: 4px 0; }

.yh-sx__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 6px;
  font: 700 11.5px/1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.yh-sx__h > span { display: inline-flex; align-items: center; gap: 6px; }
.yh-sx__h svg { width: 15px; height: 15px; color: var(--c-brand); }

.yh-sx__clear {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-brand);
  cursor: pointer;
}

/* Rows */
.yh-sx__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--c-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.yh-sx__item:hover,
.yh-sx__item[aria-selected="true"] { background: var(--surface-2); }

.yh-sx__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--c-brand-tint);
  color: var(--c-brand);
  font: 700 15px/1 var(--font-head);
}

.yh-sx__n--1 { background: var(--c-brand); color: #fff; }
.yh-sx__n--2 { background: var(--c-brand-2); color: #fff; }

.yh-sx__thumb {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-2);
}

.yh-sx__thumb--none {
  display: grid;
  place-items: center;
  padding-top: 10px;
  box-sizing: border-box;
  background: var(--c-brand-tint);
  color: var(--c-brand);
  font: 700 30px/1 var(--font-head);
}

.yh-sx__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.yh-sx__title {
  display: -webkit-box;
  overflow: hidden;
  font: 600 14.5px/1.3 var(--font-head);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.yh-sx__title mark {
  padding: 0 2px;
  border-radius: 4px;
  background: var(--c-sun-tint);
  color: inherit;
}

.yh-sx__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--c-muted);
}

.yh-sx__meta b {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-brand);
}

.yh-sx__go {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--c-brand);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.yh-sx__item:hover .yh-sx__go,
.yh-sx__item[aria-selected="true"] .yh-sx__go { opacity: 1; transform: none; }

/* Chips: recent searches and trending terms */
.yh-sx__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 10px 6px;
}

.yh-sx__chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--c-ink);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.yh-sx__chip.is-hot { background: var(--c-brand-tint); color: var(--c-brand); }

.yh-sx__chip:hover,
.yh-sx__chip[aria-selected="true"],
.yh-sx__chip-go[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--c-brand); }

.yh-sx__chip--recent { gap: 2px; padding: 0 4px 0 0; }

.yh-sx__chip-go {
  max-width: 200px;
  height: 100%;
  padding: 0 4px 0 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.yh-sx__chip-x {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--c-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.yh-sx__chip-x:hover { background: var(--c-card); color: var(--c-ink); }

/* While typing */
.yh-sx__kw > svg:first-child { flex: none; width: 18px; height: 18px; color: var(--c-muted); }

.yh-sx__kw-t {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yh-sx__kw-t b { font-weight: 800; }

.yh-sx__fill {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  color: var(--c-muted);
  box-sizing: border-box;
}

.yh-sx__fill:hover { background: var(--c-card); color: var(--c-brand); }

.yh-sx__empty {
  margin: 0;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--c-muted);
}

.yh-sx__ctas {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 2px 2px;
  border-top: 1px solid var(--c-line);
}

.yh-sx__cta {
  font-weight: 700;
  background: var(--c-brand-tint);
  color: var(--c-brand);
}

.yh-sx__cta > svg { flex: none; width: 18px; height: 18px; }

.yh-sx__cta > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yh-sx__cta b { color: var(--c-ink); font-weight: 800; }

.yh-sx__cta:hover,
.yh-sx__cta[aria-selected="true"] { background: var(--c-brand-tint); box-shadow: inset 0 0 0 1.5px var(--c-brand); }

.yh-sx__cta--soft,
.yh-sx__cta--soft:hover,
.yh-sx__cta--soft[aria-selected="true"] { background: var(--surface-2); color: var(--c-ink); }

.yh-sx__by {
  flex: none;
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--c-brand);
}

.yh-sx__foot {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  color: var(--c-muted);
}

.yh-sx__foot kbd {
  display: inline-block;
  min-width: 20px;
  margin-right: 2px;
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 -1.5px 0 var(--c-line);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
  text-align: center;
  box-sizing: border-box;
}

.yh-sx__foot-by {
  margin-left: auto;
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--c-brand);
}

/* Phones: pinned box + drop-down sheet */
@keyframes yh-sx-drop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  html.yh-sx-lock,
  html.yh-sx-lock body { overflow: hidden; }

  /* A blur on the header would trap the fixed box inside it. */
  html.yh-sx-lock .yh-header--candy {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .yh-sx-scrim { background: rgba(30, 27, 46, 0.42); }

  .yh-header--candy .search.is-sx-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    /* Beats the "centred, 100% wide" pill rules of the closed state. */
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 12px;
    background: var(--c-card);
    box-sizing: border-box;
  }

  .yh-header--candy .search.is-sx-open .search__field {
    padding-left: 4px;
    border-radius: 999px;
    border-bottom-color: var(--c-brand);
  }

  .search.is-sx-open .yh-sx__back {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--c-ink);
    cursor: pointer;
  }

  .search.is-sx-open .yh-sx__back svg { width: 20px; height: 20px; }

  .search.is-sx-open .search__icon,
  .search.is-sx-open .yh-search-powered { display: none; }

  .yh-sx {
    top: 100%;
    max-height: calc(88dvh - 66px);
    border: 0;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 26px 50px -20px rgba(30, 27, 46, 0.45);
    opacity: 1;
    transition: none;
  }

  .yh-sx::before { margin: 0; }
  .yh-sx.is-in { animation: yh-sx-drop 0.24s cubic-bezier(0.32, 0.72, 0, 1); }
  .yh-sx__scroll { padding: 2px 10px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .yh-sx__item { min-height: 48px; }
  .yh-sx__h { padding-top: 12px; font-size: 12.5px; }
  .yh-sx__foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .yh-sx,
  .yh-sx.is-in,
  .yh-sx-scrim { animation: none; transition: none; }
}
