/* family-home.css: the catalogue home in the final design (f2, Claude Design package
   2026-09-29, page 2-01 "English site - Home"). Loads after bde-f2.css and builds on its
   tokens and shared parts (f2-shelf, f2-section, f2-panel, f2-seg, the book card).
   Only pages.home loads it; the list pages' series stack also lives here (see the end), so
   the series pages load this file after family-lists.css. The main site's home moved to
   family-pages.css with its f2 install. */

/* ------------------------------------------------------------------ page frame */
.fh-home {
  display: flex; flex-direction: column; gap: clamp(30px, 4vw, 44px);
  padding-top: 14px; padding-bottom: 40px;
}
@media (min-width: 768px) { .fh-home { padding-top: 28px; padding-bottom: 72px; } }
.fh-home > .ad { margin: 0; }
.fh-chev { flex: 0 0 auto; color: var(--f2-coral); }

/* ------------------------------------------------------------------ hero */
/* The final design's hero (package 2026-10-03, 9-2 page=home, changelog 2026-10-02 (b); second
   drop 3 Oct: the shared gradient, bde-f2.css .bde-hero-bg, in place of the flat Night and its
   two blurred glows): the count pill, the heading, the white search box, the translucent list
   tabs, the "Popular:" chips and, from 768 px, the fan of five covers with the Continue reading
   card in front. Every value is the design's own inline style. */
.fh-hero {
  position: relative; overflow: hidden; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 4vw, 40px); align-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 60px); border-radius: clamp(28px, 4vw, 40px);
  color: #fff;
}
.fh-hero__copy { position: relative; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 20px); min-width: 0; }
.fh-hero__pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 32px; padding: 0 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 700; color: #E4E0FF;
}
.fh-hero__dot { width: 7px; height: 7px; border-radius: 50%; background: #FF9C82; }
/* The design's big line is its greeting, so the greeting takes the design's H1 look (as it did
   on the f3 home); our <h1> (the live wording and count, F3-H1-LIST) is the small line under
   it, in the panel's light colour, which keeps the panel the design's height. */
.fh-hero__greet {
  margin: 0; font-family: var(--f2-display); font-size: clamp(34px, 5vw, 58px); font-weight: 800;
  line-height: 1.02; letter-spacing: -1.4px; color: #fff; text-wrap: balance;
}
.fh-hero__greet span { color: #FF9C82; }
.fh-hero__greet:lang(bn), html.bn .fh-hero__greet { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.fh-hero__title {
  margin: 0; font-family: var(--f2-ui); font-size: 16px; font-weight: 500; line-height: 1.45;
  letter-spacing: 0; color: #E4E0FF; text-wrap: balance;
}
.fh-search {
  display: flex; gap: 8px; max-width: 560px; margin: 0; padding: 8px; border-radius: 22px;
  background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.fh-search__field {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 10px;
  border-radius: 14px; color: #6E605A; cursor: text;
}
.fh-search__field svg { flex: 0 0 auto; }
.fh-search:focus-within { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), 0 0 0 3px var(--f2-accent); }
.fh-search__field input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent;
  outline: none; box-shadow: none; font: 400 16px/1.2 var(--f2-ui); color: #221A17;
}
.fh-search__field input::placeholder { color: #6E605A; opacity: 1; }
.fh-search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fh-search__go {
  flex: 0 0 auto; height: 48px; padding: 0 clamp(16px, 2vw, 24px); border: 0; border-radius: 16px;
  background: #C9401F; color: #fff; font: 700 16px/1 var(--f2-ui); cursor: pointer; white-space: nowrap;
  transition: background-color .16s var(--f2-ease);
}
.fh-search__go:hover { background: var(--f2-coral-dark); }

/* The list tabs (design: All books, Ebooks, Audiobooks; ours: the lists we hold). */
.fh-switch {
  align-self: flex-start; display: flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto;
  border-radius: 16px; background: rgba(255, 255, 255, .08); scrollbar-width: none;
}
.fh-switch::-webkit-scrollbar { display: none; }
.fh-switch > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px;
  color: #E4E0FF; font-size: 14.5px; font-weight: 700; white-space: nowrap; text-decoration: none;
}
.fh-switch > a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fh-switch > a.fh-switch__on { background: #fff; color: #2A2350; }
.fh-switch > a.fh-switch__on:hover { background: #fff; color: #2A2350; }
.fh-switch[data-overflow="more"] {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
}

/* "Popular:" and five genre chips. */
.fh-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fh-chips__label { font-size: 14px; color: #C8C1EA; }
.fh-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.fh-chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* The right column: the fan (from 768 px) with the Continue reading card in front of it. Shown
   only while it holds something to see. */
.fh-hero__side { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
.fh-hero__side:not(:has(.fh-fan, .fh-cont-wrap:not([hidden]))) { display: none; }
.fh-fan { display: none; position: relative; width: 100%; height: 340px; margin: 0 0 -36px; padding: 0; list-style: none; }
@media (min-width: 768px) {
  .fh-fan { display: block; }
}
@media (max-width: 767px) {
  .fh-hero__side:not(:has(.fh-cont-wrap:not([hidden]))) { display: none; }
}
.fh-fan__item { position: absolute; top: 0; margin: 0; }
.fh-fan__item[data-slot="0"] { left: 4%; top: 60px; width: 150px; opacity: .85; z-index: 1; transform: rotate(-12deg); }
.fh-fan__item[data-slot="1"] { right: 2%; top: 50px; width: 150px; opacity: .85; z-index: 1; transform: rotate(11deg); }
.fh-fan__item[data-slot="2"] { left: 19%; top: 20px; width: 170px; z-index: 2; transform: rotate(-5deg); }
.fh-fan__item[data-slot="3"] { right: 16%; top: 14px; width: 170px; z-index: 2; transform: rotate(5deg); }
.fh-fan__item[data-slot="4"] { left: 50%; top: 0; width: 196px; z-index: 3; transform: translateX(-50%) rotate(0deg); }
.fh-fan__link { display: block; border-radius: 14px; }
.fh-fan__cover {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 14px;
  background: var(--f2-night-2); box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .75);
}
.fh-fan__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fh-fan__cover .f2-house { position: absolute; inset: 0; }

/* Continue reading (design 2-01): shown only when this browser saved a place (bde-v3.js). */
.fh-cont-wrap { position: relative; z-index: 4; width: min(100%, 360px); min-width: 0; }
.fh-cont-wrap[hidden] { display: none; }
.fh-cont {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 16px 12px 12px;
  border-radius: 20px; background: #fff; color: #221A17; text-decoration: none;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
}
.fh-cont:hover { color: #221A17; }
.fh-cont__cover { flex: 0 0 auto; width: 48px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 7px; }
.fh-cont__cover[hidden] { display: none; }
.fh-cont__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.fh-cont__tag { font-size: 12.5px; font-weight: 700; color: #B53A1C; }
.fh-cont__title { font-family: var(--f2-serif); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-cont__title:lang(bn) { line-height: 1.45; }
.fh-cont__where { font-size: 13px; color: #6E605A; }
.fh-cont__where:empty { display: none; }
.fh-cont__go { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; font-weight: 700; color: #C9401F; }

/* ------------------------------------------------------------------ shelves */
/* A phone scrolls a shelf sideways from the page's own 16 px edge (f2-shelf); a wider screen
   shows one full row of six, never a lone card on a second row. */
.grid-books.f2-shelf.fh-shelf { grid-template-columns: none; gap: 14px; margin-top: 0; }
@media (min-width: 768px) {
  .grid-books.f2-shelf.fh-shelf { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 14px; }
  .grid-books.f2-shelf.fh-shelf > :nth-child(n+7) { display: none; }
}
@media (min-width: 1100px) { .grid-books.f2-shelf.fh-shelf { gap: 28px 20px; } }

/* Rows of cards that scroll on a phone and sit in a grid above it. Items that would stand
   alone on a last row are marked by the view (fh-cut-md: three across, fh-cut-lg: four). */
.fh-subjects, .fh-people, .fh-sets {
  display: flex; gap: 12px; margin: 0 calc(var(--f2-gutter) * -1); padding: 4px var(--f2-gutter) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--f2-gutter);
  scrollbar-width: none; list-style: none;
}
.fh-subjects::-webkit-scrollbar, .fh-people::-webkit-scrollbar, .fh-sets::-webkit-scrollbar { display: none; }
.fh-subjects > li, .fh-people > li, .fh-sets > li { display: flex; flex: 0 0 260px; min-width: 0; scroll-snap-align: start; }
@media (min-width: 768px) {
  .fh-subjects, .fh-people, .fh-sets {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
    margin: 0; padding: 0; overflow: visible;
  }
  .fh-subjects > li, .fh-people > li, .fh-sets > li { flex: none; }
  .fh-cut-md { display: none !important; }
}
@media (min-width: 1100px) {
  .fh-subjects, .fh-people, .fh-sets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fh-cut-md { display: flex !important; }
  .fh-cut-lg { display: none !important; }
}

/* Browse by subject: a deep-coloured mark, the name and its real count. */
.fh-subject {
  box-sizing: border-box; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 100px;
  padding: 14px 18px 14px 14px; border: 1px solid var(--f2-line); border-radius: 22px;
  background: var(--f2-surface); color: var(--f2-ink); text-decoration: none;
  box-shadow: 0 10px 24px -20px rgba(80, 40, 25, .5);
  transition: transform .15s var(--f2-ease), box-shadow .15s var(--f2-ease), border-color .15s var(--f2-ease);
}
.fh-subject:hover { color: var(--f2-ink); border-color: var(--f2-coral); box-shadow: 0 18px 32px -20px rgba(80, 40, 25, .65); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .fh-subject:hover { transform: translateY(-2px); } }
.fh-subject__mark { flex: 0 0 72px; display: grid; place-items: center; height: 72px; border-radius: 18px; color: #fff; background: #C9401F; box-shadow: 0 12px 22px -14px currentColor; }
.fh-subject__mark[data-tone="1"] { background: #5B4BDB; }
.fh-subject__mark[data-tone="2"] { background: #0B6A4E; }
.fh-subject__mark[data-tone="3"] { background: #2A2350; }
.fh-subject__mark[data-tone="4"] { background: #B3261E; }
.fh-subject__mark[data-tone="5"] { background: #6B4700; }
.fh-subject__mark[data-tone="6"] { background: #A8361A; }
.fh-subject__mark[data-tone="7"] { background: #3F33A8; }
.fh-subject__mark[data-tone="8"] { background: #221A17; }
.fh-subject__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fh-subject__text b { font-family: var(--f2-display); font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.2px; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
/* Three across on a tablet leaves the name about 90 px: a smaller mark keeps "Biographie" and
   "Littérature" whole instead of breaking them after any letter (polish 2026-10-02). */
@media (min-width: 768px) and (max-width: 1099px) {
  .fh-subject { gap: 12px; padding: 12px 14px 12px 12px; }
  .fh-subject__mark { flex-basis: 52px; height: 52px; border-radius: 15px; }
  .fh-subject__mark svg { width: 26px; height: 26px; }
  .fh-subject__text b { font-size: 16px; }
}
.fh-subject__text b:lang(bn) { letter-spacing: 0; line-height: 1.45; }
.fh-subject__text span { font-size: 13.5px; color: var(--f2-muted); }

/* ------------------------------------------------------------------ audiobooks */
.fh-audio { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.6vw, 28px); border-radius: 28px; }
.fh-audio .fh-audio__title { color: #fff; }
a.f2-section-head__more.fh-audio__more { color: #D4CEFF; }
a.f2-section-head__more.fh-audio__more:hover { color: #fff; }
.fh-audio__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fh-audio__row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.fh-audio__cover { position: relative; flex: 0 0 52px; width: 52px; height: 52px; overflow: hidden; border-radius: 14px; background: var(--f2-night-2); }
.fh-audio__cover img, .fh-audio__cover img[width][height] { display: block; width: 100%; height: 100%; object-fit: cover; }
.fh-audio__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fh-audio__text a { display: block; padding: 12px 0; margin: -12px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; }
.fh-audio__text a:hover { text-decoration: underline; text-underline-offset: 2px; }
.fh-audio__text > span { font-size: 13px; line-height: 1.4; color: var(--f2-night-text); }
.fh-audio__play {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--f2-coral); color: #fff; transition: background-color .16s var(--f2-ease);
}
.fh-audio__play:hover { background: var(--f2-coral-dark); color: #fff; }

/* ------------------------------------------------------------------ authors */
.fh-person {
  box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px 14px 14px; border: 1px solid var(--f2-line); border-radius: 18px;
  background: var(--f2-surface); color: var(--f2-ink); text-decoration: none;
  box-shadow: 0 10px 24px -18px rgba(34, 26, 23, .4);
}
.fh-person:hover { color: var(--f2-ink); border-color: var(--f2-field); box-shadow: 0 14px 28px -16px rgba(34, 26, 23, .45); }
.fh-person img.f2-avatar, .fh-person img.f2-avatar[width][height] { width: 64px; height: 64px; box-shadow: 0 0 0 3px #fff, 0 12px 22px -14px rgba(42, 35, 80, .6); }
.fh-person__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fh-person__text strong { font-family: var(--f2-display); font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.fh-person__text strong:lang(bn) { line-height: 1.45; }
.fh-person__text > span { font-size: 13px; color: var(--f2-muted); }

/* ------------------------------------------------------------------ series */
.fh-set {
  box-sizing: border-box; display: flex; align-items: center; gap: 16px; width: 100%; height: 100%;
  padding: 14px 16px 14px 14px; border-radius: 20px; background: var(--f2-surface);
  color: var(--f2-ink); text-decoration: none; box-shadow: 0 10px 24px -18px rgba(80, 40, 25, .5);
}
.fh-set:hover { color: var(--f2-ink); box-shadow: 0 14px 30px -16px rgba(80, 40, 25, .55); }
.fh-set__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fh-set__text b { font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.fh-set__text > span { font-size: 13.5px; color: var(--f2-sub); }
.fh-set__text > .fh-set__n { margin-top: 4px; align-self: flex-start; padding: 3px 9px; border-radius: var(--f2-r-pill); background: var(--f2-coral-tint); font-size: 12.5px; font-weight: 700; color: var(--f2-coral-dark); }

/* ------------------------------------------------------------------ read, download or listen */
.fh-how { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2.6vw, 26px); }
.fh-how__head { flex-wrap: wrap; }
.fh-how__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.fh-how__list > li { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 18px; background: var(--f2-soft); }
.fh-how__list > li > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fh-how__list b { font-size: 15.5px; }
.fh-how__list > li > span:last-child > span { font-size: 14px; line-height: 1.5; color: var(--f2-sub); }
.fh-how__mark { flex: 0 0 40px; display: grid; place-items: center; height: 40px; border-radius: 12px; font-size: 16px; font-weight: 800; }
.fh-how__note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--f2-sub); }

/* ------------------------------------------------------------------ wrote a book? */
.fh-publish { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(20px, 3vw, 32px); }
.fh-publish__text { display: flex; flex-direction: column; gap: 6px; max-width: 60ch; }
.fh-publish .fh-publish__title { color: #fff; }
.fh-publish p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #E3DDFF; }
a.f2-btn.fh-publish__go { background: #fff; color: var(--f2-night); }
a.f2-btn.fh-publish__go:hover { background: var(--f2-coral-tint); color: var(--f2-night); }

/* ------------------------------------------------------------------ series stack (shared) */
/* partials/lists/series-stack, the design's drawing (bde-site.js home.series): two paper
   sheets behind a small house cover with the series name. The home, the series index and the
   author page draw it, so it lives here and those pages load this file. */
.fl-stack { position: relative; flex: 0 0 auto; width: 72px; height: 88px; }
.fl-stack__sheet { position: absolute; width: 58px; height: 80px; border-radius: 5px; }
.fl-stack__sheet--2 { left: 12px; top: 0; background: #EBD6CC; transform: rotate(6deg); }
.fl-stack__sheet--1 { left: 7px; top: 3px; background: #D8BFB3; transform: rotate(3deg); }
.fl-stack__front {
  position: absolute; left: 0; top: 7px; box-sizing: border-box; width: 58px; height: 80px; padding: 0 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  overflow-wrap: anywhere; border-radius: 5px; background: #2A2350; box-shadow: 0 6px 14px -6px rgba(34, 26, 23, .45);
}
.fl-stack__front--ink { background: #221A17; }
.fl-stack__front::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 3px; }
.fl-stack__name {
  position: relative; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--f2-serif); font-size: 8px; font-weight: 600; line-height: 1.2; letter-spacing: -.2px;
  color: #fff; text-align: center;
}
.fl-stack__name:lang(bn) { letter-spacing: 0; line-height: 1.35; }
.fl-stack__rule { position: relative; display: block; width: 14px; height: 2px; margin-top: 6px; border-radius: 1px; background: #FF9C82; }

/* The composed list (the admin's home composition, in its order): its sections sit apart by
   the page's own rhythm, since they are one flex child of .fh-home. */
.fh-composed { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 44px); min-width: 0; }

/* ================================================================ UI/UX review 2026-10-02 (slice 3) */
/* More genres as plain links under the genre cards (SEO, D3): wrapped, quiet, 44 px targets. */
.fh-genre-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.fh-genre-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--f2-sub); font-size: 14px; font-weight: 600; text-decoration: none;
  background: var(--f2-surface); box-shadow: 0 6px 16px -12px rgba(80, 40, 25, .4);
}
.fh-genre-links a:hover { color: var(--f2-coral-dark); }
.fh-genre-links a:focus-visible { outline: 3px solid var(--f2-accent); outline-offset: 2px; }
html.bn .fh-genre-links a { line-height: 1.4; }

/* Popular authors and series (BN): names only, no covers (owner 2026-10-02). */
.fh-hublinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fh-hublink {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 16px; border: 1px solid var(--f2-line);
  border-radius: 999px; background: var(--f2-surface); color: var(--f2-ink); font-size: 15px; font-weight: 700; text-decoration: none;
}
.fh-hublink:hover { border-color: var(--f2-coral); color: var(--f2-coral-dark); }
.fh-hublink:focus-visible { outline: 3px solid var(--f2-accent); outline-offset: 2px; }
.fh-hublink span:lang(bn) { line-height: 1.45; }
.fh-hublink__n { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: var(--f2-hover); color: var(--f2-sub); font-size: 12.5px; font-weight: 700; }

/* From the blog: three posts, image over title, a row of three from a tablet up. */
.fh-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .fh-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.fh-post {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 20px;
  background: var(--f2-surface); box-shadow: var(--f2-shadow-card); color: var(--f2-ink); text-decoration: none;
}
@media (max-width: 767px) { .fh-post { flex-direction: row; align-items: center; } .fh-post__img { flex: 0 0 112px; aspect-ratio: 4 / 3; } }
.fh-post:hover { color: var(--f2-ink); box-shadow: 0 16px 32px -18px rgba(80, 40, 25, .55); }
.fh-post:hover .fh-post__title { color: var(--f2-coral-dark); }
.fh-post:focus-visible { outline: 3px solid var(--f2-accent); outline-offset: 2px; }
.fh-post__img { display: block; aspect-ratio: 16 / 9; background: var(--f2-loading); }
.fh-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fh-post__title { padding: 12px 16px 16px; font-size: 15.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; text-wrap: pretty; }
.fh-post__title:lang(bn) { line-height: 1.6; }

/* The home's in-feed ad (partials.ads.home-infeed) keeps its height while it loads, so the
   page does not jump, and gives it back when AdSense leaves it unfilled. */
.f2-infeed { box-sizing: border-box; width: 100%; min-width: 250px; min-height: 280px; margin: 6px 0 28px; overflow: hidden; }
@media (min-width: 768px) { .f2-infeed { min-height: 250px; } }
.f2-infeed:has(ins.adsbygoogle[data-ad-status="unfilled"]), .f2-infeed.f2-infeed--empty { min-height: 0; margin: 0; }
.f2-infeed:has(ins.adsbygoogle[data-ad-status="unfilled"]) ins.adsbygoogle { display: none !important; }
/* On a phone one sideways row of names (the counts are on the hub pages), fading at the edge
   while there is more to scroll, like the other rows of the home. */
@media (max-width: 767px) {
  .fh-hublinks { flex-wrap: nowrap; gap: 8px; margin: 0 calc(var(--f2-gutter) * -1); padding: 2px var(--f2-gutter) 8px; overflow-x: auto; scrollbar-width: none; }
  .fh-hublinks::-webkit-scrollbar { display: none; }
  .fh-hublinks > li { flex: 0 0 auto; }
  .fh-hublink { min-height: 44px; padding: 0 16px; font-size: 14.5px; white-space: nowrap; }
  .fh-hublink__n { display: none; }
  .fh-hublinks[data-overflow="more"] {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  }
}
