/*
Theme Name: Fini Maizaan
Theme URI: http://localhost/news/
Author: Raajjedesign
Description:
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: fini-maizaan
*/

@font-face {
  font-family: "Mv Motaru Regular";
  src: url("assets/fonts/Mv_MotaruRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0021, U+002C, U+002E, U+0030-0039, U+003A-003B, U+003F, U+060C, U+061B, U+061F, U+0660-0669, U+0780-07BF, U+200C-200F;
}

@font-face {
  font-family: "Mv Motaru Bold";
  src: url("assets/fonts/Mv_MotaruBold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0021, U+002C, U+002E, U+0030-0039, U+003A-003B, U+003F, U+060C, U+061B, U+061F, U+0660-0669, U+0780-07BF, U+200C-200F;
}

@font-face {
  font-family: "Mv Motaru Square";
  src: url("assets/fonts/Mv_MotaruSquare.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0021, U+002C, U+002E, U+0030-0039, U+003A-003B, U+003F, U+060C, U+061B, U+061F, U+0660-0669, U+0780-07BF, U+200C-200F;
}

@font-face {
  font-family: "MV Waheed";
  src:
    url("assets/fonts/MV_Waheed.woff2") format("woff2"),
    url("assets/fonts/MV_Waheed.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0021, U+002C, U+002E, U+0030-0039, U+003A-003B, U+003F, U+060C, U+061B, U+061F, U+0660-0669, U+0780-07BF, U+200C-200F;
}

:root {
  --fm-bg: #f4f1ea;
  --fm-surface: rgba(255, 255, 255, 0.78);
  --fm-text: #171717;
  --fm-muted: #666055;
  --fm-border: rgba(74, 63, 49, 0.12);
  --fm-accent: #e56a8a;
  --fm-accent-dark: #bf4e6c;
  --fm-accent-soft: #fde8ee;
  --fm-accent-soft-2: #fff2f6;
  --fm-font-body: "Mv Motaru Regular";
  --fm-font-heading: "Mv Motaru Square";
  --fm-font-homepage-cards: "Mv Motaru Regular";
  --fm-font-homepage-cards-heading: "Mv Motaru Square";
  --fm-font-latin-body: Tahoma, "Noto Sans Arabic", "Segoe UI", Arial, sans-serif;
  --fm-font-latin-heading: Tahoma, "Noto Sans Arabic", "Segoe UI", Arial, sans-serif;
  /* Prefer Latin fonts for Latin glyphs; Dhivehi glyphs fall back to Dhivehi fonts. */
  --fm-font-stack-body: var(--fm-font-latin-body), var(--fm-font-body);
  --fm-font-stack-heading: var(--fm-font-latin-heading), var(--fm-font-heading);
  --fm-font-stack-homepage-cards: var(--fm-font-latin-body), var(--fm-font-homepage-cards);
  --fm-font-stack-homepage-cards-heading: var(--fm-font-latin-heading), var(--fm-font-homepage-cards-heading);
  --fm-shadow: 0 24px 60px rgba(30, 41, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  font-size: calc(16px * var(--fm-font-size-body-scale) / 100);
}

body {
  margin: 0;
  background: var(--fm-bg);
  color: var(--fm-text);
  font-family: var(--fm-font-stack-body);
  direction: rtl;
}

html.fm-search-open,
body.fm-search-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font-family: var(--fm-font-stack-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fm-font-stack-heading);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  white-space: nowrap;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--fm-text);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.12);
  z-index: 100000;
  inset-inline-start: 12px;
  top: 12px;
}

.fm-site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 16px;
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 250, 0.98) 100%);
  box-shadow:
    0 20px 54px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.fm-banner-placeholder {
  display: grid;
  place-items: center;
  min-height: 140px;
  margin-bottom: 16px;
  border: 1px dashed rgba(229, 106, 138, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(229, 106, 138, 0.12), transparent 34%),
    linear-gradient(180deg, #fffafc 0%, #fff2f6 100%);
}

.fm-banner-size {
  color: var(--fm-accent-dark);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fm-ad-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.fm-ad-media picture {
  display: block;
  width: 100%;
}

.fm-ad-media--mobile {
  display: none;
}

.fm-ad-media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}


.fm-header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "hero hero"
    "nav social";
  gap: 16px;
  align-items: center;
}

.fm-header-bar__nav {
  grid-area: nav;
}

.fm-header-bar__social {
  grid-area: social;
}

.fm-header-social-stack {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.fm-header-social-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.fm-header-bar__hero {
  grid-area: hero;
}

.fm-social-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-inline-start: 18px;
}

.fm-social-links::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(31, 54, 88, 0), rgba(31, 54, 88, 0.22), rgba(31, 54, 88, 0));
  transform: translateY(-50%);
}

.fm-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #3a4f68;
  opacity: 0.82;
  transition: color 160ms ease, transform 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.fm-social-link:hover,
.fm-social-link:focus-visible {
  color: var(--fm-accent);
  transform: translateY(-2px) scale(1.06);
  opacity: 1;
  filter: saturate(1.12);
}

.fm-social-link svg {
  width: 26px;
  height: 26px;
  display: block;
}

.fm-header-search {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (min-width: 721px) {
  .fm-header-search {
    display: inline-flex;
  }
}

.fm-header-search__toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.fm-header-search__backdrop {
  display: none;
}

.fm-header-search__form {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: width 200ms ease, opacity 200ms ease;
}

.fm-header-search.is-open .fm-header-search__form {
  width: min(220px, 34vw);
  opacity: 1;
  pointer-events: auto;
}

.fm-header-search__input {
  width: 100%;
  height: 30px;
  padding-inline: 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 54, 88, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #1f3658;
  font-size: 0.92rem;
  outline: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.fm-header-search__input:focus {
  border-color: rgba(31, 54, 88, 0.42);
  background: rgba(255, 255, 255, 0.9);
}

.fm-social-link--facebook {
  color: var(--fm-accent-dark);
}

.fm-social-link--youtube {
  color: #ff0033;
}

.fm-social-link--tiktok {
  color: #111111;
}

.fm-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.fm-site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding-top: 8px;
  text-align: center;
}

.fm-site-footer__text {
  color: #8d8790;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.fm-hero-art {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
}

.fm-header-bar__hero.fm-hero-art {
  width: 100%;
  margin: 8px 0 0;
}

.fm-hero-art__frame {
  overflow: hidden;
  position: relative;
  display: block;
  aspect-ratio: 16 / 8.5;
  min-height: 0;
  border: 1px solid #000000;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%),
    #ffffff;
  box-shadow:
    0 0 0 0.5px #000000,
    0 18px 40px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.fm-hero-art__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  transform-origin: center center;
}

.fm-hero-art__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 29, 46, 0.02) 0%, rgba(18, 29, 46, 0.1) 48%, rgba(18, 29, 46, 0.48) 100%),
    linear-gradient(90deg, rgba(18, 29, 46, 0.1) 0%, rgba(18, 29, 46, 0) 34%),
    radial-gradient(circle at bottom center, rgba(229, 106, 138, 0.32), transparent 36%);
  pointer-events: none;
}

.fm-hero-art__caption {
  position: absolute;
  inset-inline: 28px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.fm-hero-art__title {
  display: inline-block;
  max-width: min(420px, 100%);
  padding: 12px 24px 13px;
  border: 1px solid rgba(102, 18, 41, 0.34);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 44%),
    linear-gradient(135deg, #ef86a5 0%, #d44f7a 52%, #b83a60 100%);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.84),
    0 14px 30px rgba(162, 39, 76, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.3) inset,
    0 -1px 0 rgba(120, 24, 50, 0.18) inset;
  backdrop-filter: none;
  font-family: "MV Waheed", var(--fm-font-latin-heading);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 0 rgba(110, 18, 44, 0.24);
  text-wrap: balance;
}

.fm-shell > * + * {
  margin-top: 24px;
}

.fm-home-ad {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed rgba(229, 106, 138, 0.32);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8fa 0%, #fff1f5 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.04);
}

.fm-home-ad__card {
  display: grid;
  gap: 16px;
  width: 100%;
  min-height: 220px;
  border: 1px solid #000000;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  padding: 24px;
  font-family: var(--fm-font-homepage-cards);
  font-size: calc(1rem * var(--fm-font-size-homepage-cards-scale) / 100);
}

.fm-home-ad__card .fm-card-title {
  font-family: var(--fm-font-homepage-cards-heading);
}

.fm-home-ad__title {
  margin: 0;
}

/* Homepage ads should match card height rhythm, without showing the label text. */
.fm-home-ad__meta,
.fm-home-ad__title {
  visibility: hidden;
}

.fm-home-ad--filled {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fm-home-ad--below-menu {
  margin-top: 18px;
}

.fm-home-ad-text {
  color: var(--fm-accent-dark);
  font-size: calc(1.4rem * var(--fm-font-size-homepage-cards-heading-scale) / 100);
  font-weight: 600;
  display: block;
  margin-top: 14px;
  text-align: center;
}

.fm-episode-rail__ad .fm-ad-media img {
  border-radius: 18px;
}

.fm-episode-rail__ad--filled {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fm-archive-ad {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(229, 106, 138, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(229, 106, 138, 0.08), transparent 34%),
    linear-gradient(180deg, #fff8fa 0%, #fff1f5 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.fm-archive-ad--filled {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fm-archive-ad__media img {
  width: 100%;
  border-radius: 18px;
}

.fm-archive-ad__text {
  color: var(--fm-accent-dark);
  text-align: center;
}

.fm-episode-inline-ad {
  display: grid;
  place-items: center;
  margin: 1.8rem 0;
  padding: 18px;
  border: 1px dashed rgba(229, 106, 138, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(229, 106, 138, 0.08), transparent 34%),
    linear-gradient(180deg, #fff8fa 0%, #fff1f5 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.fm-theme-ad-slot--filled {
  min-height: 0;
}

.fm-episode-inline-ad.fm-theme-ad-slot--filled,
.fm-announcement-sidebar__ad.fm-theme-ad-slot--filled {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fm-episode-inline-ad .fm-ad-media img {
  border-radius: 18px;
}

.fm-episode-inline-ad__text {
  color: var(--fm-accent-dark);
  text-align: center;
}

.fm-home-bookshelf {
  padding: 34px 34px 38px;
  border: 1px solid rgba(31, 54, 88, 0.07);
  border-radius: 32px;
  background:
    radial-gradient(circle at top center, rgba(229, 106, 138, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 250, 0.94) 100%);
  box-shadow:
    0 20px 46px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.fm-bookshelf-grid {
  display: grid;
  gap: 24px;
  padding: 0;
}

.fm-bookshelf-books {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  justify-items: center;
  padding: 0;
  margin-bottom: 0;
}

.fm-book-item {
  width: min(100%, 194px);
}

.fm-book-item__link {
  display: grid;
  gap: 16px;
}

.fm-book-item__cover {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 18px;
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.1),
    0 6px 14px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform-origin: center bottom;
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fm-book-item__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 22%, transparent 74%, rgba(255, 255, 255, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 30%, rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

.fm-book-item__cover img,
.fm-book-item__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4.4;
  object-fit: cover;
  background: linear-gradient(180deg, #fbe3ea 0%, #f6c0cf 100%);
}

.fm-book-item__placeholder {
  display: block;
}

.fm-book-item--placeholder .fm-book-item__cover {
  opacity: 0.72;
}

.fm-book-item:hover .fm-book-item__cover,
.fm-book-item:focus-within .fm-book-item__cover {
  transform: translateY(-4px);
  border-color: rgba(31, 54, 88, 0.16);
  box-shadow:
    0 24px 42px rgba(15, 23, 42, 0.12),
    0 10px 18px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.fm-book-item__meta {
  display: grid;
  gap: 0;
  text-align: center;
}

.fm-book-item__title {
  display: block;
  color: #1f2f43;
  font-size: calc(1.05rem * var(--fm-font-size-homepage-cards-heading-scale) / 100);
  line-height: 1.5;
  text-wrap: balance;
}

.fm-home-bookshelf .fm-book-item__meta {
  margin-top: 4px;
}

.fm-home-bookshelf .fm-book-item__title {
  color: #16263a;
  font-size: calc(1.22rem * var(--fm-font-size-homepage-cards-heading-scale) / 100);
  font-weight: 700;
  line-height: 1.65;
}

.fm-bookshelf-note {
  margin: 0;
  text-align: center;
  color: #7c6d74;
}

.fm-section-head {
  margin-bottom: 28px;
}

.fm-section-head--compact {
  margin-bottom: 18px;
}

.fm-section-head--center {
  text-align: center;
}

.fm-home-genre .fm-section-head {
  text-align: center;
}

.fm-kicker {
  margin: 0 0 10px;
  color: var(--fm-accent);
  font-size: 0.95rem;
}

.fm-page-title,
.fm-section-title {
  margin: 0;
  color: #132238;
  font-family: var(--fm-font-heading);
}

.fm-card-title,
.fm-book-item__title,
.fm-announcement-latest__title,
.fm-announcement-latest__item-title,
.fm-episode-option__title,
.fm-stories-stat__value,
.fm-payment-box h3,
.fm-story-stage__content h2,
.fm-story-stage__content h3,
.single-announcement .fm-story-stage__content h2,
.single-announcement .fm-story-stage__content h3,
.single-ebook .fm-ebook-body h2,
.single-ebook .fm-ebook-body h3,
.post-type-archive-announcement .fm-stories-card .fm-card-title,
.post-type-archive-announcement .fm-stories-card .fm-card-title a {
  font-family: var(--fm-font-heading);
}

.fm-card-title {
  margin: 0;
  color: #132238;
}

.fm-page-title {
  font-size: calc(clamp(2rem, 5vw, 3.5rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1.05;
}

.fm-section-title {
  font-size: calc(1.5rem * var(--fm-font-size-heading-scale) / 100);
}

.fm-section-title--home {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  /* Ensure Dhivehi/RTL text + punctuation (like hyphens) render in the correct order. */
  direction: rtl;
  unicode-bidi: isolate;
  min-width: 160px;
  min-height: 60px;
  padding: 0 28px;
  border: 1px solid rgba(102, 18, 41, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 44%),
    linear-gradient(135deg, #ef86a5 0%, #d44f7a 52%, #b83a60 100%);
  color: #ffffff;
  font-family: var(--fm-font-stack-body);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px #000000,
    0 10px 20px rgba(162, 39, 76, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 -1px 0 rgba(120, 24, 50, 0.18) inset;
}

.fm-section-title--home::after {
  content: none;
}

.fm-page-copy,
.fm-card-copy,
.fm-story-content,
.fm-reading-body,
.fm-muted {
  color: #5e6978;
}

.fm-page-copy,
.fm-card-copy {
  margin: 10px 0 0;
  line-height: 1.8;
}

.fm-story-meta,
.fm-muted,
.fm-story-stage__summary,
.fm-payment-box__copy,
.fm-payment-upload__label,
.fm-about-form__field label,
.fm-comment-form,
.fm-comment-form label,
.fm-comments__list,
.fm-comments__list .comment-reply-link,
.fm-comments .comment-reply-title,
.fm-comments__title,
.fm-comments__head .fm-kicker,
.fm-comment-form__submit,
.fm-comment-form__note,
.fm-header-caption,
.fm-story-stage__button,
.single-ebook .fm-ebook-order-button,
.single-ebook .fm-ebook-order-button__label,
.fm-payment-upload__button {
  font-family: var(--fm-font-stack-body);
}

.fm-home-grid,
.fm-story-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fm-story-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  direction: ltr;
}

.fm-panel,
.fm-story-card,
.fm-episode-card,
.fm-story-hero,
.fm-episode-list-wrap,
.fm-reading-body,
.fm-episode-nav {
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.fm-panel,
.fm-episode-card,
.fm-episode-list-wrap,
.fm-reading-body,
.fm-episode-nav {
  padding: 24px;
}

.fm-story-card,
.fm-episode-card,
.fm-episode-rail,
.fm-episode-rail__card,
.fm-episode-option,
.fm-story-chapter-card,
.fm-story-chapters__empty,
.single-ebook .fm-ebook-purchase,
.fm-nav-list a {
  font-family: var(--fm-font-stack-body);
}

.fm-home-genre .fm-episode-card,
.fm-home-genre .fm-episode-card .fm-card-copy,
.fm-home-genre .fm-episode-card .fm-story-meta,
.fm-home-genre .fm-episode-card .fm-muted,
.fm-home-bookshelf .fm-book-item,
.fm-home-bookshelf .fm-bookshelf-note {
  font-family: var(--fm-font-stack-homepage-cards);
  font-size: calc(1rem * var(--fm-font-size-homepage-cards-scale) / 100);
}

.fm-home-genre .fm-episode-card .fm-card-title,
.fm-home-bookshelf .fm-book-item__title {
  font-family: var(--fm-font-stack-homepage-cards-heading);
}

.fm-story-grid,
.fm-episode-stack {
  display: grid;
  gap: 18px;
}

.fm-episode-stack {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.post-type-archive-episode .fm-episode-stack,
.tax-story_genre .fm-episode-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fm-home-latest > .fm-episode-stack > .fm-episode-card:first-child {
  grid-column: span 2;
  min-height: 320px;
}

.fm-home-latest > .fm-episode-stack > .fm-episode-card:first-child .fm-episode-thumb img {
  aspect-ratio: 16 / 7;
}

.fm-home-latest > .fm-episode-stack > .fm-episode-card:first-child .fm-card-title {
  font-size: calc(1.8rem * var(--fm-font-size-homepage-cards-heading-scale) / 100);
}

.fm-story-card-link {
  display: grid;
  gap: 0;
}

.fm-story-thumb img {
  border-radius: 22px 22px 0 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.fm-episode-thumb {
  display: block;
  margin: -24px -24px 0;
}

.fm-episode-thumb img,
.fm-episode-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.fm-episode-thumb img {
  border-radius: 22px 22px 0 0;
}

.fm-story-body {
  padding: 20px;
}

.fm-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.post-type-archive-story .fm-story-meta {
  margin-bottom: 16px;
}

.post-type-archive-story .fm-story-meta .fm-muted {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff3f7;
  border: 1px solid rgba(191, 78, 108, 0.2);
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #93324f;
}

.post-type-archive-story .fm-stories-featured .fm-story-meta .fm-muted {
  min-height: 48px;
  padding: 10px 18px;
  font-size: 1.52rem;
}

.fm-episode-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fm-episode-card::before {
  content: none;
}

.fm-episode-card:hover,
.fm-episode-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(47, 116, 192, 0.24);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

.fm-home-genre .fm-episode-card {
  border: 1px solid #000000;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.fm-home-genre .fm-episode-card:hover,
.fm-home-genre .fm-episode-card:focus-within {
  border-color: #000000;
  box-shadow:
    0 24px 54px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.fm-home-bookshelf .fm-book-item__cover {
  border: 1px solid #000000;
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.1),
    0 6px 14px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.fm-home-bookshelf .fm-book-item:hover .fm-book-item__cover,
.fm-home-bookshelf .fm-book-item:focus-within .fm-book-item__cover {
  border-color: #000000;
  box-shadow:
    0 24px 42px rgba(15, 23, 42, 0.12),
    0 10px 18px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.fm-episode-card .fm-card-title a {
  display: inline-block;
}

.fm-episode-card .fm-card-title,
.fm-episode-card .fm-card-copy,
.fm-episode-card .fm-story-meta,
.fm-episode-card .fm-muted {
  font-family: inherit;
}

.fm-episode-card .fm-card-title {
  letter-spacing: 0.04em;
}

.fm-episode-card .fm-card-copy {
  margin-top: 0;
  letter-spacing: 0.02em;
  line-height: 1.85;
}

.fm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fm-accent-soft);
  color: var(--fm-accent-dark);
}

.fm-story-copy,
.fm-story-cover {
  padding: 26px;
}

.fm-story-copy {
  direction: rtl;
}

.fm-story-cover {
  align-self: start;
}

.fm-story-cover img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.fm-story-content,
.fm-reading-body {
  line-height: 1.9;
}

.fm-story-single-v3 {
  display: grid;
  gap: 22px;
}

.single-story .fm-shell {
  width: min(980px, calc(100% - 32px));
}

.fm-story-stage,
.fm-story-chapters {
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(47, 116, 192, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.fm-story-stage {
  padding: 28px 28px 32px;
  text-align: center;
}

.fm-story-stage .fm-kicker,
.fm-story-chapters .fm-kicker {
  color: var(--fm-accent);
}

.fm-story-stage__title,
.fm-story-chapters .fm-section-title {
  color: #132238;
}

.fm-story-stage__title {
  margin: 0;
  font-family: var(--fm-font-heading);
  font-size: calc(clamp(2rem, 4vw, 3.6rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1.32;
  text-wrap: balance;
}

.fm-story-stage__meta,
.fm-story-stage__genres,
.fm-story-stage__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fm-story-stage__meta {
  margin-top: 14px;
  flex-wrap: nowrap;
}

.fm-story-stage__pill,
.fm-story-stage__genre {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(229, 106, 138, 0.14);
  background: var(--fm-accent-soft-2);
  color: var(--fm-accent-dark);
  white-space: nowrap;
}

.fm-story-stage__cover {
  width: min(660px, 100%);
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 22px;
  background: #ffffff;
}

.fm-story-stage__cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.single-story .fm-story-stage__cover {
  width: 100%;
  margin-top: 28px;
  border-radius: 26px;
}

.single-story .fm-story-stage__cover img {
  aspect-ratio: 16 / 9;
}

.single-story .fm-story-stage {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.single-story .fm-story-stage__title {
  width: min(820px, 100%);
  margin: 0 auto;
  font-size: calc(clamp(1.55rem, 2.8vw, 2.35rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1.7;
  text-wrap: pretty;
}

.single-story .fm-story-stage__meta {
  width: min(820px, 100%);
  margin: 8px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.single-story .fm-story-stage__byline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f5f75;
  font-size: 0.96rem;
}

.single-story .fm-story-stage__byline-label {
  color: #4f5f75;
}

.single-story .fm-story-stage__byline a {
  color: #132238;
  text-decoration: none;
}

.single-story .fm-story-stage__byline a:hover,
.single-story .fm-story-stage__byline a:focus-visible {
  text-decoration: underline;
}

.single-story .fm-story-stage__author-count {
  color: #6b7a8d;
}

.fm-about-page {
  margin-top: 32px;
}

.fm-about-layout {
  display: grid;
  gap: 24px;
}

.fm-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 28px;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(229, 106, 138, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 244, 247, 0.95) 100%);
}

.fm-about-hero__copy {
  display: grid;
  align-content: center;
  gap: 14px;
  text-align: center;
  justify-items: center;
}

.fm-about-hero.is-text-only {
  grid-template-columns: 1fr;
}

.fm-about-hero.is-text-only .fm-about-hero__copy {
  width: min(760px, 100%);
  margin: 0 auto;
}

.fm-about-hero__title {
  font-size: calc(clamp(2.25rem, 5vw, 4.4rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1;
}

.fm-about-hero__intro {
  max-width: 32rem;
  margin-top: 0;
  font-size: 1.04rem;
  line-height: 1.95;
}

.fm-about-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.fm-about-metric {
  padding: 16px 18px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.fm-about-metric__value {
  display: block;
  color: #132238;
  font-family: var(--fm-font-heading);
  font-size: calc(clamp(1.5rem, 3vw, 2.3rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1;
}

.fm-about-metric__label {
  display: block;
  margin-top: 8px;
  color: #68788c;
}

.fm-about-hero__art {
  display: grid;
  align-items: stretch;
}

.fm-about-hero__image,
.fm-about-hero__quote {
  height: 100%;
  min-height: 360px;
  border-radius: 28px;
}

.fm-about-hero__image {
  overflow: hidden;
  border: 1px solid rgba(31, 54, 88, 0.08);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.fm-about-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-about-hero__quote {
  position: relative;
  display: grid;
  align-content: end;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(14, 25, 42, 0.12) 0%, rgba(14, 25, 42, 0.86) 100%),
    radial-gradient(circle at top, rgba(229, 106, 138, 0.34), transparent 34%),
    #1f2f43;
  color: #ffffff;
}

.fm-about-hero__quote p {
  margin: 0;
  max-width: 18rem;
  font-size: 1.22rem;
  line-height: 1.8;
}

.fm-about-hero__quote-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 5rem;
  line-height: 1;
}

.fm-about-storyline {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.fm-about-storyline__main {
  padding: 30px;
}

.fm-about-storyline__rail {
  display: grid;
  gap: 24px;
}

.fm-about-richtext {
  font-size: 1.05rem;
  line-height: 2.05;
}

.fm-about-richtext > :first-child {
  margin-top: 0;
}

.fm-about-principles__list {
  display: grid;
  gap: 14px;
}

.fm-about-principle {
  padding: 16px 18px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.fm-about-principle h3 {
  margin: 0;
  color: #132238;
  font-family: var(--fm-font-heading);
  font-size: 1.2rem;
}

.fm-about-principle p {
  margin: 8px 0 0;
  color: #5e6978;
  line-height: 1.85;
}

.fm-about-contact__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--fm-accent) 0%, var(--fm-accent-dark) 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 18px 34px rgba(191, 78, 108, 0.2);
}

.fm-about-contact__link--soft {
  background: rgba(255, 242, 246, 0.92);
  color: var(--fm-accent-dark);
  box-shadow: none;
}

.fm-about-connect-wrap {
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(229, 106, 138, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 246, 249, 0.96) 100%);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.fm-about-team {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
}

.fm-about-connect-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 24px;
  align-items: start;
  direction: ltr;
}

.fm-about-connect-layout > * {
  direction: rtl;
}

.fm-about-contact-form {
  padding: 30px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(229, 106, 138, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 250, 0.96) 100%);
  box-shadow:
    0 24px 52px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

.fm-about-contact-form .fm-section-head {
  margin-bottom: 18px;
  text-align: center;
}

.fm-about-contact-form .fm-section-title {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.fm-about-contact-form__notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
}

.fm-about-contact-form__notice.is-success {
  background: #ebfff3;
  color: #166534;
}

.fm-about-contact-form__notice.is-error {
  background: #fff1f2;
  color: #9f1239;
}

.fm-about-form {
  display: grid;
  gap: 14px;
}

.fm-about-form__field {
  margin: 0;
}

.fm-about-form__field label {
  display: block;
  margin-bottom: 8px;
  color: #132238;
}

.fm-about-form__field input,
.fm-about-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(31, 54, 88, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #132238;
  font: inherit;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.fm-about-form__field textarea {
  resize: vertical;
  min-height: 150px;
}

.fm-about-form__submit {
  justify-self: start;
  padding: 14px 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--fm-accent) 0%, var(--fm-accent-dark) 100%);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(191, 78, 108, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.fm-about-form__submit:hover,
.fm-about-form__submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(191, 78, 108, 0.24);
}

.fm-about-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.fm-about-author {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(229, 106, 138, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.fm-about-author__top {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.fm-about-author__avatar {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbe3ea 0%, #f4ccd8 100%);
}

.fm-about-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-about-author__name {
  margin: 0;
  color: #132238;
  font-family: var(--fm-font-heading);
  font-size: 1.26rem;
}

.fm-about-author__count,
.fm-about-author__bio {
  margin: 0;
  color: #5e6978;
  line-height: 1.8;
}

.fm-about-author__bio {
  min-height: 0;
}

.fm-about-author__link {
  align-self: start;
  margin-top: -2px;
  color: var(--fm-accent-dark);
}

.fm-page-default {
  margin-top: 32px;
}

.fm-page-entry {
  padding: 30px;
}

.fm-page-entry__header {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.fm-page-entry__cover {
  width: min(820px, 100%);
  margin: 26px auto 0;
  overflow: hidden;
  border-radius: 24px;
}

.fm-page-entry__cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.fm-page-entry__content {
  width: min(820px, 100%);
  margin: 24px auto 0;
  font-size: 1.05rem;
  line-height: 2.05;
}

.fm-page-entry__content > :first-child {
  margin-top: 0;
}

.fm-builder-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.fm-builder-entry {
  min-height: 40vh;
}

.fm-builder-entry > .elementor {
  margin: 0;
}

@media (max-width: 960px) {
  .fm-about-hero,
  .fm-about-storyline,
  .fm-about-connect-layout {
    grid-template-columns: 1fr;
  }

  .fm-about-hero__intro {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .fm-about-hero,
  .fm-about-storyline__main,
  .fm-about-team {
    padding: 22px;
  }

  .fm-about-hero__metrics {
    grid-template-columns: 1fr;
  }

  .fm-about-hero__image,
  .fm-about-hero__quote {
    min-height: 280px;
  }

  .fm-about-author__top {
    grid-template-columns: 72px 1fr;
  }

  .fm-about-author__avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
}

.single-story .fm-story-stage__cover {
  width: min(820px, 100%);
  border: none;
  border-radius: 18px;
}

.single-story .fm-story-stage__content {
  width: min(820px, 100%);
  max-width: min(820px, 100%);
  margin-top: 22px;
  padding-top: 0;
  border-top: none;
  color: #1f2d40;
  font-size: clamp(1.08rem, 1.3vw, 1.22rem);
  line-height: 2.3;
}

.single-story .fm-story-stage__content p,
.single-story .fm-story-stage__content li {
  color: #1f2d40;
  line-height: 2.3;
}

.single-story .fm-story-stage__content blockquote {
  margin: 1.8em 0;
  padding: 0 1.2em 0 0;
  border-right: 3px solid rgba(229, 106, 138, 0.32);
  color: #132238;
}

.single-story .fm-story-stage__content > * + * {
  margin-top: 1.15rem;
}

.fm-story-top-ad {
  width: min(760px, calc(100% - 160px));
  margin: 0 auto 20px;
}

.fm-story-top-ad .fm-ad-media,
.fm-story-top-ad img {
  width: 100%;
}

.fm-story-top-ad .fm-ad-media {
  border-radius: 18px;
}

.fm-story-top-ad img {
  border-radius: 18px;
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.1),
    0 6px 14px rgba(15, 23, 42, 0.05);
}

.fm-story-top-cover {
  width: min(820px, 100%);
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 18px;
}

.fm-story-top-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.08),
    0 6px 14px rgba(15, 23, 42, 0.04);
}

.fm-story-top-meta {
  width: min(820px, 100%);
  margin: 0 auto 18px;
  text-align: center;
}

.fm-story-top-meta__title {
  margin: 0;
  color: #132238;
  font-family: var(--fm-font-heading);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.fm-story-top-meta__author {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: #516175;
  font-family: var(--fm-font-stack-body);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.fm-story-top-meta__author-name,
.fm-story-top-meta__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(102, 18, 41, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 44%),
    linear-gradient(135deg, #ef86a5 0%, #d44f7a 52%, #b83a60 100%);
  box-shadow:
    0 0 0 1px #000000,
    0 10px 20px rgba(162, 39, 76, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 -1px 0 rgba(120, 24, 50, 0.18) inset;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.fm-story-top-meta__sep {
  display: none;
}

.fm-story-mobile-nav {
  display: none;
}

.fm-story-mobile-subscribe-anchor {
  display: none;
}

.single-story .fmss-trigger-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 160px;
  min-height: 60px;
  padding: 0 28px;
  border: 1px solid rgba(102, 18, 41, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 44%),
    linear-gradient(135deg, #ef86a5 0%, #d44f7a 52%, #b83a60 100%);
  color: #ffffff;
  font-family: var(--fm-font-stack-body);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px #000000,
    0 10px 20px rgba(162, 39, 76, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 -1px 0 rgba(120, 24, 50, 0.18) inset;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.single-story .fmss-trigger-button:hover,
.single-story .fmss-trigger-button:focus-visible {
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.single-story .fm-site-header {
  display: flex;
  flex-direction: column;
}

.single-story .fm-site-header > .fm-story-top-ad {
  order: 1;
}

.single-story .fm-site-header > .fm-header-bar {
  order: 2;
}

.single-story .fm-site-header > .fm-story-top-cover {
  order: 3;
}

.single-story .fm-site-header > .fm-story-top-meta {
  order: 4;
}

.single-story .fm-story-chapters {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.single-story .fm-story-chapters__head {
  width: min(820px, 100%);
  margin: 0 auto 22px;
  text-align: center;
}

.single-story .fm-story-chapters__grid {
  width: min(820px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.single-story .fm-story-chapter-card,
.single-story .fm-story-chapters__empty {
  min-height: 112px;
  padding: 22px 24px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.single-story .fm-story-chapter-card__title {
  color: #132238;
  font-family: var(--fm-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}

.single-story .fm-story-chapter-card__subtitle,
.single-story .fm-story-chapters__empty p {
  margin-top: 10px;
  color: #3f5068;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.9;
}

.single-announcement .fm-story-stage {
  padding: 0;
  text-align: start;
  border: none;
  background: transparent;
  box-shadow: none;
}

.single-announcement .fm-story-stage__title {
  width: min(820px, 100%);
  margin: 0 auto;
  font-size: calc(clamp(1.55rem, 2.8vw, 2.35rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1.7;
  text-wrap: pretty;
  text-align: center;
}

.single-announcement .fm-story-stage__meta {
  width: min(820px, 100%);
  margin: 8px auto 0;
  justify-content: center;
}

.single-announcement .fm-story-stage__pill {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #7b8592;
}

.single-announcement .fm-story-stage__cover {
  width: min(820px, 100%);
  margin-top: 22px;
  border: none;
  border-radius: 18px;
}

.single-announcement .fm-story-stage__content {
  width: min(820px, 100%);
  margin-top: 22px;
  padding-top: 0;
  border-top: none;
  color: #1f2d40;
  font-size: calc(18.88px * var(--fm-font-size-episode-content-scale) / 100);
  line-height: 2.3;
  direction: rtl;
  unicode-bidi: isolate;
}

.single-announcement .fm-story-stage__content p,
.single-announcement .fm-story-stage__content li {
  color: #1f2d40;
  line-height: 2.3;
}

.single-announcement .fm-story-stage__content h2,
.single-announcement .fm-story-stage__content h3 {
  margin-top: 1.8em;
  color: #132238;
}

.single-announcement .fm-story-stage__content blockquote {
  margin: 1.8em 0;
  padding: 0 1.2em 0 0;
  border-right: 3px solid rgba(229, 106, 138, 0.32);
  color: #132238;
}

.single-announcement .fm-story-stage__content > * + * {
  margin-top: 1.15rem;
}

.fm-announcement-single-layout {
  display: block;
}

.fm-announcement-single-layout.has-left-rail {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 820px);
  grid-template-areas: "latest main";
  gap: 32px;
  align-items: start;
  justify-content: center;
  direction: ltr;
}

.fm-announcement-single-layout.has-sidebar-ad {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 820px) minmax(260px, 300px);
  grid-template-areas: "latest main sidebar";
  gap: 32px;
  align-items: start;
  justify-content: center;
  direction: ltr;
}

.fm-announcement-latest {
  grid-area: latest;
  position: sticky;
  top: 28px;
  direction: rtl;
  text-align: right;
}

.fm-announcement-latest__card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.fm-announcement-latest__title {
  margin: 0;
  color: #132238;
  font-size: 1.15rem;
  line-height: 1.5;
}

.fm-announcement-latest__list {
  display: grid;
  gap: 12px;
}

.fm-announcement-latest__item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 16px;
  background: #ffffff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  direction: rtl;
  text-align: right;
}

.fm-announcement-latest__item:hover,
.fm-announcement-latest__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(229, 106, 138, 0.24);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.fm-announcement-latest__item-title {
  color: #132238;
  line-height: 1.7;
}

.fm-announcement-latest__item-date {
  color: #7b8592;
  font-size: 0.94rem;
}

.fm-announcement-single-layout.has-sidebar-ad .fm-announcement-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 28px;
}

.fm-announcement-single-layout.has-sidebar-ad > .fm-story-stage {
  grid-area: main;
  direction: rtl;
}

.fm-announcement-sidebar__ad {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(229, 106, 138, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(229, 106, 138, 0.08), transparent 34%),
    linear-gradient(180deg, #fff8fa 0%, #fff1f5 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.fm-announcement-sidebar__ad .fm-ad-media img {
  border-radius: 18px;
}

.fm-announcement-sidebar__ad__text {
  color: var(--fm-accent-dark);
  text-align: center;
}

.fm-story-stage__genres {
  margin-top: 14px;
}

.fm-story-stage__summary {
  width: min(700px, 100%);
  margin: 16px auto 0;
  color: #5e6978;
  line-height: 1.9;
}

.fm-story-stage__actions {
  width: min(660px, 100%);
  margin: 20px auto 0;
}

.fm-story-stage__button {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(229, 106, 138, 0.14);
  background: #ffffff;
  color: #1f3658;
}

.fm-story-stage__button--primary {
  background: var(--fm-accent-soft);
  border-color: rgba(229, 106, 138, 0.2);
  color: var(--fm-accent-dark);
}

.fm-story-stage__content {
  width: min(700px, 100%);
  margin: 22px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 54, 88, 0.1);
  color: #5e6978;
  text-align: start;
}

.fm-story-stage__content,
.fm-story-stage__content .fm-story-content,
.fm-story-stage__content p,
.fm-story-stage__content li,
.fm-story-stage__content h2,
.fm-story-stage__content h3 {
  color: #5e6978;
}

.fm-ebook-single {
  display: grid;
}

.fm-ebook-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #fff9fb 100%);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.06);
}

.fm-ebook-cover-pane {
  position: sticky;
  top: 24px;
}

.fm-ebook-cover-card {
  overflow: hidden;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 18px 34px rgba(31, 41, 55, 0.12),
    0 6px 14px rgba(31, 41, 55, 0.08);
}

.fm-ebook-cover-card img,
.fm-ebook-cover-card__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4.4;
  object-fit: cover;
  display: block;
  background: linear-gradient(180deg, #fbe3ea 0%, #f6c0cf 100%);
}

.fm-ebook-content-pane {
  display: grid;
  gap: 16px;
  align-content: start;
}

.fm-ebook-title {
  margin: 0;
  color: #132238;
  font-size: calc(clamp(1.8125rem, 4vw, 3.2125rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.fm-ebook-description {
  margin: 0;
  max-width: 58ch;
  color: #5e6978;
  font-size: 1.05rem;
  line-height: 1.9;
}

.fm-ebook-price-block {
  display: grid;
  gap: 6px;
  flex: 0 0 auto;
  align-content: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.fm-ebook-price-label {
  color: #9b6b77;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fm-ebook-price-value {
  color: #9f2448;
  font-size: calc(clamp(1.6rem, 3.2vw, 2.35rem) * var(--fm-font-size-heading-scale) / 100);
  font-weight: 800;
  line-height: 1;
}

.single-ebook .fm-ebook-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(620px, 100%);
  padding: 20px 22px;
  border: 1px solid rgba(229, 106, 138, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(229, 106, 138, 0.14), transparent 34%),
    linear-gradient(135deg, #fff8fb 0%, #fff1f6 100%);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.single-ebook .fm-ebook-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 208px;
  min-height: 60px;
  padding: 0 28px;
  border: 1px solid rgba(191, 78, 108, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, #e56a8a 0%, #bf4e6c 100%);
  color: #ffffff;
  box-shadow:
    0 16px 28px rgba(191, 78, 108, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.single-ebook .fm-ebook-order-button:hover,
.single-ebook .fm-ebook-order-button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow:
    0 20px 34px rgba(191, 78, 108, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.single-ebook .fm-ebook-order-button__label {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.fm-modal-open {
  overflow: hidden;
}

.fm-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px 16px;
}

.fm-payment-modal[hidden] {
  display: none;
}

.fm-payment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 34, 56, 0.52);
  backdrop-filter: blur(10px);
}

.fm-payment-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(229, 106, 138, 0.14), transparent 34%),
    linear-gradient(180deg, #fffdfd 0%, #fff8fb 100%);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.fm-payment-modal__dialog,
.fm-payment-modal__dialog * {
  font-style: normal;
}

.fm-payment-modal__close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-inline-start: auto;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #132238;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.fm-payment-modal__header {
  display: grid;
  gap: 10px;
  margin-top: -12px;
  margin-bottom: 18px;
  text-align: center;
  justify-items: center;
}

.fm-payment-modal__eyebrow {
  margin: 0;
  color: var(--fm-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fm-payment-modal__title {
  margin: 0;
  color: #132238;
  font-size: calc(clamp(1.4rem, 3vw, 2.2rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1.2;
}

.fm-payment-modal__lead {
  margin: 0;
  max-width: 72ch;
  color: #5e6978;
  line-height: 1.8;
}

.fm-payment-upload {
  display: grid;
  gap: 18px;
  width: 100%;
}

.fm-payment-box,
.fm-payment-upload__form {
  padding: 20px 22px;
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.fm-payment-box h3 {
  margin: 0 0 12px;
  color: #132238;
  text-align: center;
}

.fm-payment-box__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: center;
}

.fm-payment-box__copy {
  margin: 14px 0 0;
  color: #5e6978;
  line-height: 1.8;
  text-align: center;
}

.fm-support-modal__body .fm-payment-box {
  margin: 0;
}

.fm-payment-upload__message {
  padding: 16px 18px;
  border-radius: 18px;
  background: #eef8f0;
  color: #24663a;
  text-align: center;
}

.fm-payment-upload__message--error {
  background: #fff1f3;
  color: #a73351;
}

.fm-payment-upload__form {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.fm-payment-upload__label {
  color: #132238;
  font-weight: 600;
  text-align: center;
}

.fm-payment-upload .fm-settings-select,
.fm-payment-upload__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 54, 88, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.fm-payment-upload__button {
  justify-self: start;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--fm-accent);
  color: #ffffff;
  cursor: pointer;
}

.fm-ebook-body {
  padding-top: 0;
  border-top: none;
}

.single-ebook .fm-ebook-content-pane {
  gap: 20px;
}

.single-ebook .fm-ebook-title {
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.single-ebook .fm-ebook-body {
  width: min(820px, 100%);
  max-width: min(820px, 100%);
  padding: 22px 24px;
  border: 1px solid rgba(229, 106, 138, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(229, 106, 138, 0.1), transparent 36%),
    linear-gradient(180deg, #fffdfd 0%, #fff6f9 100%);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
  color: #1f2d40;
  font-size: clamp(1.18rem, 1.45vw, 1.34rem);
  line-height: 2.3;
}

.single-ebook .fm-ebook-body p,
.single-ebook .fm-ebook-body li {
  color: #1f2d40;
  line-height: 2.3;
}

.single-ebook .fm-ebook-body h2,
.single-ebook .fm-ebook-body h3 {
  margin-top: 1.8em;
  color: #132238;
}

.single-ebook .fm-ebook-body blockquote {
  margin: 1.8em 0;
  padding: 0 1.2em 0 0;
  border-right: 3px solid rgba(229, 106, 138, 0.32);
  color: #132238;
}

.single-ebook .fm-ebook-body > * + * {
  margin-top: 1.15rem;
}

.single-ebook .fm-ebook-body > p:empty,
.single-ebook .fm-ebook-body > div:empty,
.single-ebook .fm-ebook-body > .wp-block-group:empty,
.single-ebook .fm-ebook-body > .wp-block-buttons:empty,
.single-ebook .fm-ebook-body > .wp-block-columns:empty {
  display: none;
}

.single-ebook .fm-ebook-body > hr,
.single-ebook .fm-ebook-body > .wp-block-separator,
.single-ebook .fm-ebook-body > .wp-block-spacer {
  display: none;
}

.fm-episode-single-v2 {
  display: grid;
}

.fm-episode-layout {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(220px, 250px);
  grid-template-areas: "episodes main story";
  gap: 32px;
  align-items: start;
}

.fm-episode-main {
  grid-area: main;
  min-width: 0;
}

.fm-episode-rail--story {
  grid-area: story;
}

.fm-episode-rail--episodes {
  grid-area: episodes;
}

.fm-episode-rail {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 18px;
}

.fm-episode-rail__card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.single-episode .fm-episode-rail__card {
  padding: 22px 20px;
  border-color: rgba(229, 106, 138, 0.22);
  background:
    radial-gradient(circle at top center, rgba(229, 106, 138, 0.12), transparent 38%),
    linear-gradient(180deg, #fffdfd 0%, #fff5f8 100%);
  box-shadow:
    0 20px 42px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.fm-episode-rail__title {
  margin: 0;
  color: #132238;
  font-size: 1.2rem;
  line-height: 1.5;
}

.single-episode .fm-episode-rail__title {
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1.6;
}

.single-episode .fm-episode-rail--story .fm-episode-rail__title {
  font-size: 1.52rem;
  font-weight: 800;
  line-height: 1.55;
  color: #8f2949;
}

.fm-episode-rail__meta,
.fm-episode-rail__copy {
  margin: 0;
  color: #5e6978;
  line-height: 1.8;
}

.single-episode .fm-episode-rail__meta,
.single-episode .fm-episode-rail__copy {
  color: #3f5068;
  font-size: 1.04rem;
}

.fm-episode-rail__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--fm-accent-soft);
  color: var(--fm-accent-dark);
}

.fm-episode-rail--story .fm-episode-rail__card,
.fm-episode-rail--story .fm-kicker,
.fm-episode-rail--story .fm-episode-rail__title,
.fm-episode-rail--story .fm-episode-rail__meta,
.fm-episode-rail--story .fm-episode-rail__copy {
  text-align: center;
}

.single-episode .fm-episode-rail .fm-kicker {
  margin-bottom: 2px;
  color: #8f2949;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.single-episode .fm-episode-rail--episodes .fm-episode-option {
  padding: 16px 18px;
  border-color: rgba(229, 106, 138, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

.single-episode .fm-episode-rail--episodes .fm-episode-option__title {
  font-size: 1.08rem;
  font-weight: 700;
}

.single-episode .fm-episode-rail--episodes .fm-episode-option__subtitle {
  font-size: 1rem;
  color: #405169;
}

.fm-episode-rail__ad {
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 18px;
  border: 1px dashed rgba(229, 106, 138, 0.3);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8fa 0%, #fff1f5 100%);
}

.fm-episode-rail__ad-text {
  color: var(--fm-accent-dark);
}

.fm-episode-option-list {
  display: grid;
  gap: 12px;
}

.fm-episode-rail--episodes .fm-episode-rail__card,
.fm-episode-rail--episodes .fm-kicker,
.fm-episode-rail--episodes .fm-episode-option,
.fm-episode-rail--episodes .fm-episode-option__title,
.fm-episode-rail--episodes .fm-episode-option__subtitle {
  text-align: center;
}

.fm-episode-option {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.fm-episode-option:hover,
.fm-episode-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(229, 106, 138, 0.24);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.fm-episode-option.is-current {
  border-color: rgba(229, 106, 138, 0.34);
  background: linear-gradient(180deg, #fff7fb 0%, #fff3f7 100%);
}

.single-episode .fm-episode-rail--episodes .fm-episode-option.is-current {
  border-color: rgba(191, 78, 108, 0.52);
  background: linear-gradient(180deg, #fff3f7 0%, #f7d7e3 100%);
  box-shadow:
    0 14px 26px rgba(191, 78, 108, 0.14),
    0 0 0 2px rgba(191, 78, 108, 0.14);
}

.single-episode .fm-episode-rail--episodes .fm-episode-option.is-current .fm-episode-option__title {
  color: var(--fm-accent-dark);
}

.fm-episode-option__title {
  color: var(--fm-accent-dark);
}

.fm-episode-option__subtitle {
  color: #5e6978;
  line-height: 1.7;
}

.fm-episode-stage__intro {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.single-episode .fm-episode-stage__intro > .fm-kicker {
  margin-bottom: 0;
  color: #8f2949;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.single-episode .fm-episode-stage__intro > .fm-kicker a {
  color: inherit;
}

.fm-episode-stage__title {
  font-family: var(--fm-font-heading);
  font-size: calc(clamp(1.35rem, 2vw, 2rem) * var(--fm-font-size-heading-scale) / 100);
}

.fm-episode-stage__meta {
  gap: 12px;
}

.fm-episode-reading {
  font-family: var(--fm-font-stack-body);
  font-size: calc(18.88px * var(--fm-font-size-episode-content-scale) / 100);
  line-height: 2.05;
  letter-spacing: 0.01em;
  text-align: start;
}

.fm-episode-reading div,
.fm-episode-reading p,
.fm-episode-reading li,
.fm-episode-reading span,
.fm-episode-reading blockquote,
.fm-episode-reading .card,
.fm-episode-reading .card-body,
.fm-episode-reading [id^="completion-text-"] {
  font-size: inherit !important;
  font-family: inherit;
  line-height: inherit;
}

.fm-episode-reading p,
.fm-episode-reading li,
.fm-episode-reading blockquote {
  font-family: inherit;
}

.fm-episode-stage__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.single-episode .fm-episode-stage__cover {
  width: 100%;
  margin-top: 28px;
  border-radius: 26px;
}

.single-episode .fm-episode-stage__cover img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.single-episode .fm-episode-stage {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.single-episode .fm-episode-stage__intro {
  gap: 10px;
}

.single-episode .fm-episode-stage__title {
  width: min(820px, 100%);
  margin: 0 auto;
  font-size: calc(clamp(1.55rem, 2.8vw, 2.35rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1.7;
  text-wrap: pretty;
}

.single-episode .fm-episode-stage__meta {
  width: min(820px, 100%);
  margin: 8px auto 0;
  justify-content: center;
}

.single-episode .fm-episode-reading {
  width: min(820px, 100%);
  max-width: min(820px, 100%);
  margin-top: 22px;
  padding-top: 0;
  border-top: none;
  color: #1f2d40;
  font-size: calc(18.88px * var(--fm-font-size-episode-content-scale) / 100);
  line-height: 2.3;
}

.single-episode .fm-episode-reading p,
.single-episode .fm-episode-reading li {
  color: #1f2d40;
  line-height: 2.3;
}

.single-episode .fm-episode-reading blockquote {
  margin: 1.8em 0;
  padding: 0 1.2em 0 0;
  border-right: 3px solid rgba(229, 106, 138, 0.32);
  color: #132238;
}

.single-episode .fm-episode-reading > * + * {
  margin-top: 1.15rem;
}

.fm-episode-reactions {
  width: min(820px, 100%);
  margin: 42px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(229, 106, 138, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(229, 106, 138, 0.08), transparent 32%),
    linear-gradient(180deg, #fff9fb 0%, #ffffff 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.fm-episode-reactions__head {
  margin-bottom: 18px;
}

.fm-episode-reactions__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.fm-reaction-chip {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 8px 12px;
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #6f7482;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.fm-reaction-chip:hover,
.fm-reaction-chip:focus-visible,
.fm-reaction-chip.is-active {
  transform: translateY(-2px);
  border-color: rgba(229, 106, 138, 0.28);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
  color: var(--fm-accent-dark);
}

.fm-reaction-chip.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.fm-reaction-chip__percent {
  color: #516171;
  font-family: var(--fm-font-stack-body);
  font-size: 0.95rem;
  line-height: 1;
}

.fm-reaction-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.fm-reaction-chip__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fm-episode-audio-reader {
  width: min(820px, 100%);
  margin: 28px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(229, 106, 138, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(229, 106, 138, 0.14), transparent 38%),
    linear-gradient(180deg, #fff8fb 0%, #fff3f7 100%);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.fm-episode-audio-reader .fm-kicker {
  margin-bottom: 2px;
  color: #8f2949;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.fm-episode-audio-reader__player {
  width: 100%;
  margin-top: 10px;
  min-height: 56px;
}

.fm-episode-audio-reader__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.fm-episode-audio-reader__seek {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(229, 106, 138, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--fm-accent-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.fm-episode-audio-reader__seek:hover,
.fm-episode-audio-reader__seek:focus-visible {
  border-color: rgba(229, 106, 138, 0.32);
  background: #fff3f7;
  transform: translateY(-1px);
}

.fm-episode-comments {
  width: min(820px, 100%);
  margin: 48px auto 0;
  padding: 28px;
  border: 1px solid rgba(229, 106, 138, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(229, 106, 138, 0.1), transparent 32%),
    linear-gradient(180deg, #fff9fb 0%, #ffffff 100%);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.05);
}

.fm-comments__shell {
  display: grid;
  gap: 26px;
}

.fm-comments__head {
  display: grid;
  gap: 8px;
}

.fm-comments__head .fm-kicker,
.fm-comments__title,
.fm-comment-form label,
.fm-comment-form__submit,
.fm-comment-form__note,
.fm-comments__list,
.fm-comments__list .comment-reply-link,
.fm-comments .comment-reply-title {
  font-family: var(--fm-font-stack-body);
}

.fm-comments__title,
.fm-comments .comment-reply-title {
  margin: 0;
  color: #132238;
  font-size: calc(clamp(1.2rem, 2.2vw, 1.65rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1.5;
}

.fm-comments__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-comments__list .children {
  display: grid;
  gap: 14px;
  margin: 14px 0 0;
  padding: 0 18px 0 0;
  list-style: none;
  border-right: 1px solid rgba(229, 106, 138, 0.18);
}

.fm-comments__list .comment-body {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.fm-comments__list .comment-meta {
  display: grid;
  gap: 4px;
  align-items: start;
  color: #5e6978;
  font-size: 0.98rem;
}

.fm-comments__list .comment-author {
  color: #132238;
}

.fm-comments__list .comment-metadata {
  display: block;
}

.fm-comments__list .comment-author .fn {
  font-style: normal;
}

.fm-comments__list .comment-metadata a,
.fm-comments__list .comment-reply-link {
  color: var(--fm-accent-dark);
}

.fm-comments__list .comment-content {
  color: #1f2d40;
  line-height: 2.05;
}

.fm-comments__list .comment-content p:last-child {
  margin-bottom: 0;
}

.fm-comment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.fm-comment-form__field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fm-comment-form__field--full,
.fm-comment-form__actions,
.fm-comments .comment-respond .form-submit,
.fm-comments .comment-notes,
.fm-comments .logged-in-as {
  grid-column: 1 / -1;
}

.fm-comment-form .comment-form-author {
  order: 1;
}

.fm-comment-form .comment-form-comment {
  order: 2;
}

.fm-comment-form__actions,
.fm-comments .comment-respond .form-submit {
  order: 3;
}

.fm-comment-form label {
  color: #5e6978;
  font-size: 0.98rem;
}

.fm-comment-form input,
.fm-comment-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(31, 54, 88, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #132238;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.fm-comment-form textarea {
  min-height: 220px;
  resize: vertical;
}

.fm-comment-form input::placeholder,
.fm-comment-form textarea::placeholder {
  color: #8d8790;
}

.fm-comment-form input:focus,
.fm-comment-form textarea:focus {
  border-color: rgba(229, 106, 138, 0.48);
  box-shadow: 0 0 0 4px rgba(229, 106, 138, 0.12);
  background: #ffffff;
}

.fm-comment-form__actions {
  margin: 0;
  display: flex;
  justify-content: flex-start;
}

.fm-comment-form__submit {
  min-width: 170px;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--fm-accent) 0%, var(--fm-accent-dark) 100%);
  color: #ffffff;
  font-size: calc(1rem * var(--fm-font-size-body-scale) / 100);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.fm-comment-form__submit:hover,
.fm-comment-form__submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(191, 78, 108, 0.22);
  filter: saturate(1.05);
}

.fm-comment-form__note,
.fm-comments .logged-in-as,
.fm-comments .comment-notes,
.fm-comments .form-allowed-tags,
.fm-comments .no-comments {
  margin: 0;
  color: #5e6978;
  line-height: 1.8;
}

.fm-comments .comment-reply-title small {
  display: inline-flex;
  margin-inline-start: 8px;
}

.fm-comments .comment-reply-title small a {
  color: var(--fm-accent-dark);
  font-size: 0.94rem;
}

.fm-comments .comment-form-cookies-consent {
  display: none !important;
}

.fm-comments .navigation {
  display: flex;
  justify-content: center;
}

.fm-comments .nav-links {
  border: 1px solid rgba(229, 106, 138, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.single-episode .fm-shell {
  width: min(1360px, calc(100% - 32px));
}

.fm-episode-stage,
.fm-episode-chapters {
  padding-inline: 0;
}

.fm-episode-nav-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(31, 54, 88, 0.12);
}

.fm-episode-nav-card {
  min-height: auto;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid rgba(31, 54, 88, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fm-episode-nav-card--story {
  background: transparent;
}

.fm-episode-nav-card:hover,
.fm-episode-nav-card:focus-visible {
  transform: none;
  border-color: rgba(31, 54, 88, 0.12);
  background: transparent;
  box-shadow: none;
}

.fm-story-chapters {
  padding: 26px;
}

.fm-story-chapters__head {
  margin-bottom: 18px;
  text-align: center;
}

.fm-story-chapters__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fm-story-chapter-card,
.fm-story-chapters__empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.fm-story-chapter-card:hover,
.fm-story-chapter-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(47, 116, 192, 0.24);
  background: #f2f8ff;
}

.fm-story-chapter-card__title {
  color: #132238;
}

.fm-story-chapter-card__subtitle,
.fm-story-chapters__empty p {
  margin-top: 4px;
  color: #5e6978;
}

.fm-episode-featured {
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(31, 54, 88, 0.1);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.fm-story-content > :first-child,
.fm-reading-body > :first-child {
  margin-top: 0;
}

.fm-episode-list {
  display: grid;
  gap: 12px;
}

.fm-episode-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f8fbff;
}

.fm-episode-number {
  color: var(--fm-accent);
}

.fm-episode-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.fm-episode-nav a {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fbff;
}

.fm-nav {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 4px 0;
}

/* Dropdown toggle is mobile-only; hide by default. */
.fm-nav-toggle {
  display: none;
}

.fm-mobile-nav-host {
  display: contents;
}

/* Homepage header renders a second nav meant only for mobile; keep it hidden on desktop. */
.fm-site-header--home .fm-social-links .fm-mobile-nav-host--home {
  display: none;
}

/* Story template renders a second nav meant only for mobile; keep it hidden on desktop.
   This must be more specific than `.fm-nav { display:flex; }` above. */
.fm-nav.fm-story-mobile-nav {
  display: none;
}

.fm-nav-list {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

.fm-nav-list li {
  display: flex;
}

.fm-nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 16px;
  border: 1px solid #000000;
  background: linear-gradient(180deg, #fbd7b3 0%, #f5b77e 100%);
  color: #6d3403;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.fm-nav-list a:hover,
.fm-nav-list a:focus-visible {
  color: var(--fm-accent);
  border-color: #000000;
  background: linear-gradient(180deg, #fff6f9 0%, #f9dfe8 100%);
  transform: translateY(-1px);
  box-shadow:
    0 14px 24px rgba(191, 78, 108, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.fm-nav .current-menu-item > a,
.fm-nav .current_page_item > a,
.fm-nav .current-menu-ancestor > a {
  color: var(--fm-accent-dark);
  border-color: #000000;
  background: linear-gradient(180deg, #fff3f7 0%, #f7d7e3 100%);
  box-shadow:
    0 14px 24px rgba(191, 78, 108, 0.1),
    0 10px 20px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.fm-nav .current-menu-item > a::after,
.fm-nav .current_page_item > a::after,
.fm-nav .current-menu-ancestor > a::after {
  content: none;
}

.fm-stories-archive {
  display: grid;
  gap: 28px;
}

.fm-stories-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

.fm-stories-hero__copy,
.fm-stories-featured,
.fm-stories-grid-wrap {
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.fm-stories-hero__copy {
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(229, 106, 138, 0.14), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fff7fa 100%);
}

.fm-stories-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.fm-stories-stat {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(229, 106, 138, 0.14);
}

.fm-stories-stat__value {
  display: block;
  color: #132238;
  font-size: calc(clamp(1.6rem, 3vw, 2.5rem) * var(--fm-font-size-heading-scale) / 100);
  line-height: 1;
}

.fm-stories-stat__label {
  display: block;
  margin-top: 8px;
  color: #5e6978;
}

.fm-stories-featured {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  min-height: 100%;
}

.fm-stories-featured__media,
.fm-stories-card__media {
  display: block;
  background: linear-gradient(180deg, #f2f7ff 0%, #dfeffd 100%);
}

.fm-stories-featured__media img,
.fm-stories-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-stories-featured__media img {
  min-height: 100%;
}

.fm-stories-featured__placeholder,
.fm-stories-card__placeholder {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(47, 116, 192, 0.18), rgba(110, 168, 230, 0.08)),
    linear-gradient(180deg, #f7fbff 0%, #eaf3ff 100%);
}

.fm-stories-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.fm-stories-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.fm-stories-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fm-accent-soft-2);
  color: var(--fm-accent-dark);
  border: 1px solid rgba(229, 106, 138, 0.14);
}

.fm-stories-grid-wrap {
  padding: 28px;
}

.fm-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fm-announcement-load-state {
  margin-top: 22px;
  color: #5e6978;
  text-align: center;
}

.fm-announcement-sentinel {
  width: 100%;
  height: 1px;
}

.fm-announcement-pagination[hidden] {
  display: none !important;
}

.fm-stories-card {
  overflow: hidden;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fm-stories-card:hover,
.fm-stories-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(47, 116, 192, 0.18);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.fm-stories-card__media img,
.fm-stories-card__placeholder {
  aspect-ratio: 16 / 10;
}

.fm-stories-card__body {
  padding: 22px;
}

.post-type-archive-announcement .fm-stories-card__body {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-type-archive-announcement .fm-stories-card .fm-card-title,
.post-type-archive-announcement .fm-stories-card .fm-card-title a {
  color: #132238;
  direction: rtl;
  unicode-bidi: isolate;
}

.post-type-archive-announcement .fm-stories-card__body {
  direction: rtl;
  unicode-bidi: isolate;
}

.post-type-archive-announcement .fm-stories-card .fm-muted {
  color: #5e6978;
}

.navigation.pagination {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fm-accent-soft-2);
  color: #1f3658;
}

.nav-links .page-numbers.current {
  background: var(--fm-accent);
  color: #ffffff;
}

.fm-site-header,
.fm-panel,
.fm-home-ad,
.fm-story-stage,
.fm-ebook-layout,
.fm-episode-hero,
.fm-stories-card,
.nav-links {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fm-ebook-cover-card,
.fm-story-stage__cover,
.fm-ebook-purchase {
  border-radius: 0;
  box-shadow: none;
}

.single-ebook .fm-ebook-cover-card {
  padding: 14px;
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 18px 34px rgba(31, 41, 55, 0.1),
    0 6px 14px rgba(31, 41, 55, 0.06);
}

.single-ebook .fm-ebook-cover-card img,
.single-ebook .fm-ebook-cover-card__placeholder {
  border-radius: 16px;
}

.fm-site-header,
.fm-shell,
.fm-hero-art {
  width: min(1240px, calc(100% - 64px));
}

.fm-site-header {
  margin-top: 36px;
  padding: 0;
}

.fm-banner-placeholder {
  min-height: 120px;
  margin-bottom: 22px;
  border-width: 0 0 1px;
  border-style: dashed;
  border-color: rgba(229, 106, 138, 0.22);
  border-radius: 0;
}

.fm-header-bar {
  gap: 28px;
  padding: 0 0 10px;
}

.fm-site-header--home .fm-header-bar {
  row-gap: 4px;
}

.fm-shell {
  margin: 40px auto 92px;
}

.fm-shell > * + * {
  margin-top: 48px;
}

.fm-hero-art {
  margin-top: 32px;
}

.fm-hero-art__frame {
  aspect-ratio: 16 / 8;
  min-height: 0;
}

.fm-home-ad {
  min-height: 120px;
  border-top: 1px dashed rgba(229, 106, 138, 0.22);
  border-bottom: 1px dashed rgba(229, 106, 138, 0.22);
}

.fm-panel {
  padding: 0;
}

.fm-section-head {
  margin-bottom: 34px;
}

.fm-section-head--compact {
  margin-bottom: 22px;
}

.fm-home-genre,
.fm-home-bookshelf,
.fm-story-stage,
.fm-ebook-layout,
.fm-episode-hero,
.fm-episode-stage,
.fm-episode-chapters {
  padding-block: 8px;
}

.fm-episode-stack,
.fm-bookshelf-books,
.fm-story-chapters__grid {
  gap: 32px;
}

.fm-episode-card {
  gap: 16px;
}

.fm-story-stage__cover,
.fm-ebook-cover-card,
.fm-episode-featured {
  overflow: hidden;
}

.fm-story-stage__summary,
.fm-story-stage__content,
.fm-ebook-description,
.fm-ebook-body,
.fm-episode-reading {
  max-width: 72ch;
}

.fm-ebook-content-pane,
.fm-episode-stage__intro {
  gap: 22px;
}

@media (min-width: 721px) {
  /* On desktop, only remove the placeholder chrome when a desktop image exists. */
  .fm-home-ad--filled-desktop {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Desktop homepage ad should be ONLY the ad area (no extra white card body). */
  .fm-home-ad--filled-desktop .fm-home-ad__card {
    padding: 0;
    gap: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .fm-home-ad--filled-desktop .fm-home-ad__meta,
  .fm-home-ad--filled-desktop .fm-home-ad__title,
  .fm-home-ad--filled-desktop .fm-ad-placeholder {
    display: none !important;
  }

  .fm-home-ad--filled-desktop .fm-home-ad__card .fm-ad-media--home {
    margin: 0;
    overflow: hidden;
    border: 1.5px solid #000000;
    border-radius: 16px;
  }

  .fm-home-ad--filled-desktop .fm-home-ad__card .fm-ad-media--home img {
    border-radius: 16px;
    box-shadow: none;
  }

  /* Desktop homepage ad placeholder: show ONLY the placement box (no big empty card body). */
  .fm-home-ad:not(.fm-home-ad--filled-desktop) .fm-home-ad__card {
    padding: 0;
    gap: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .fm-home-ad:not(.fm-home-ad--filled-desktop) .fm-home-ad__meta,
  .fm-home-ad:not(.fm-home-ad--filled-desktop) .fm-home-ad__title {
    display: none !important;
  }

  .fm-home-ad:not(.fm-home-ad--filled-desktop) .fm-home-ad__card .fm-ad-placeholder {
    margin: 0;
    width: 100%;
    min-height: var(--fm-ad-slot-height, 180px);
    border-radius: 16px;
  }

  /* Desktop placeholders for other ad slots: remove outer chrome so only the outlined placement remains. */
  .fm-archive-ad:not(.fm-ad-slot--filled-desktop),
  .fm-episode-inline-ad:not(.fm-ad-slot--filled-desktop),
  .fm-announcement-sidebar__ad:not(.fm-ad-slot--filled-desktop),
  .fm-story-top-ad:not(.fm-ad-slot--filled-desktop),
  .fm-episode-rail__ad:not(.fm-ad-slot--filled-desktop) {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    place-items: stretch;
  }

  /* Desktop: if a desktop image exists for any ad slot, hide the placeholder. */
  .fm-ad-slot--filled-desktop .fm-ad-placeholder {
    display: none;
  }

  /* All ads: ensure desktop images are displayed */
  .fm-archive-ad .fm-ad-media--desktop,
  .fm-episode-inline-ad .fm-ad-media--desktop,
  .fm-announcement-sidebar__ad .fm-ad-media--desktop,
  .fm-episode-rail__ad .fm-ad-media--desktop,
  .fm-story-top-ad .fm-ad-media--desktop {
    display: block;
  }

  /* Desktop: hide mobile images on all ads */
  .fm-archive-ad .fm-ad-media--mobile,
  .fm-episode-inline-ad .fm-ad-media--mobile,
  .fm-announcement-sidebar__ad .fm-ad-media--mobile,
  .fm-episode-rail__ad .fm-ad-media--mobile,
  .fm-story-top-ad .fm-ad-media--mobile {
    display: none !important;
  }

  /* All ads: use theme settings for sizing instead of placeholders */
  .fm-archive-ad.fm-ad-slot--filled-desktop,
  .fm-episode-inline-ad.fm-ad-slot--filled-desktop,
  .fm-announcement-sidebar__ad.fm-ad-slot--filled-desktop,
  .fm-episode-rail__ad.fm-ad-slot--filled-desktop,
  .fm-story-top-ad.fm-ad-slot--filled-desktop {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Desktop placeholders for other ad slots: remove outer chrome so only the outlined placement remains. */
  .fm-archive-ad:not(.fm-ad-slot--filled-desktop),
  .fm-episode-inline-ad:not(.fm-ad-slot--filled-desktop),
  .fm-announcement-sidebar__ad:not(.fm-ad-slot--filled-desktop),
  .fm-story-top-ad:not(.fm-ad-slot--filled-desktop),
  .fm-episode-rail__ad:not(.fm-ad-slot--filled-desktop) {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    place-items: stretch;
  }
}

@media (max-width: 720px) {
  /* When the hamburger is moved next to the page heading, keep title centered and put hamburger at the right edge. */
  .fm-mobile-head-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Use physical padding so RTL doesn't flip which side is reserved. */
    padding-right: 54px; /* reserve space for the 44px hamburger + gap */
    padding-left: 54px; /* keep visual center in the viewport */
  }

  .fm-mobile-head-row .fm-mobile-nav-host {
    position: absolute;
    /* Use physical positioning so RTL doesn't flip it to the left side. */
    right: 0;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 44px;
    z-index: 50;
  }

  .fm-mobile-head-row .fm-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
  }

  .fm-mobile-head-row .fm-nav-toggle__bars {
    display: grid;
    gap: 4px;
  }

  .fm-mobile-head-row .fm-nav-toggle__bar {
    width: 18px;
    height: 2px;
    background: #000000;
    border-radius: 99px;
  }

  .fm-mobile-head-row .fm-nav-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* When opened next to the heading, drop the menu down as a full-width panel. */
  .fm-mobile-head-row .fm-mobile-nav-host .fm-nav-dropdown {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 10px);
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  /* Mobile: social icons should be visible ONLY on the homepage. */
  .fm-header-bar__social {
    display: none;
  }

  .fm-site-header--home .fm-header-bar__social {
    display: block;
  }

  .fm-site-header--home .fm-header-social-stack {
    justify-items: stretch;
  }

  .fm-site-header--home .fm-header-social-row {
    position: relative;
    width: 100%;
    justify-content: center;
  }

  .fm-site-header--home .fm-header-search {
    display: inline-flex;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    align-items: center;
    z-index: 60;
  }

  .fm-site-header--home .fm-header-search.is-open {
    z-index: 1000;
  }

  /* Mobile: search opens as a popup (not inline expand). */
  .fm-site-header--home .fm-header-search__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 120;
  }

  .fm-site-header--home .fm-header-search.is-open .fm-header-search__backdrop {
    display: block;
  }

  .fm-site-header--home .fm-header-search__form {
    display: none;
    position: fixed;
    inset: 0;
    width: auto;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    background: transparent;
    z-index: 130;
    padding: 0 18px;
    margin: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    transition: none;
    align-items: center;
    justify-content: center;
  }

  .fm-site-header--home .fm-header-search.is-open .fm-header-search__form {
    display: flex;
    width: auto;
    opacity: 1;
  }

  .fm-site-header--home .fm-header-search__input {
    height: 46px;
    font-size: 1.04rem;
    width: min(560px, calc(100vw - 72px));
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(31, 54, 88, 0.28);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  }

  /* Mobile-only dropdown menu for archive + genre pages. */
  body.post-type-archive-story .fm-header-bar__nav,
  body.post-type-archive-episode .fm-header-bar__nav,
  body.post-type-archive-ebook .fm-header-bar__nav,
  body.post-type-archive-announcement .fm-header-bar__nav,
  body.tax-story_genre .fm-header-bar__nav,
  body.single-episode .fm-header-bar__nav,
  body.single-story .fm-header-bar__nav,
  body.single-announcement .fm-header-bar__nav,
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav {
    position: relative;
  }

  body.post-type-archive-story .fm-header-bar__nav .fm-nav-toggle,
  body.post-type-archive-episode .fm-header-bar__nav .fm-nav-toggle,
  body.post-type-archive-ebook .fm-header-bar__nav .fm-nav-toggle,
  body.post-type-archive-announcement .fm-header-bar__nav .fm-nav-toggle,
  body.tax-story_genre .fm-header-bar__nav .fm-nav-toggle,
  body.single-episode .fm-header-bar__nav .fm-nav-toggle,
  body.single-story .fm-header-bar__nav .fm-nav-toggle,
  body.single-announcement .fm-header-bar__nav .fm-nav-toggle,
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    /* Force visual right edge placement regardless of RTL quirks. */
    margin-left: auto;
    margin-right: 0;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
  }

  body.post-type-archive-story .fm-header-bar__nav .fm-nav-toggle__bars,
  body.post-type-archive-episode .fm-header-bar__nav .fm-nav-toggle__bars,
  body.post-type-archive-ebook .fm-header-bar__nav .fm-nav-toggle__bars,
  body.post-type-archive-announcement .fm-header-bar__nav .fm-nav-toggle__bars,
  body.tax-story_genre .fm-header-bar__nav .fm-nav-toggle__bars,
  body.single-episode .fm-header-bar__nav .fm-nav-toggle__bars,
  body.single-story .fm-header-bar__nav .fm-nav-toggle__bars,
  body.single-announcement .fm-header-bar__nav .fm-nav-toggle__bars,
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-nav-toggle__bars {
    display: grid;
    gap: 4px;
  }

  body.post-type-archive-story .fm-header-bar__nav .fm-nav-toggle__bar,
  body.post-type-archive-episode .fm-header-bar__nav .fm-nav-toggle__bar,
  body.post-type-archive-ebook .fm-header-bar__nav .fm-nav-toggle__bar,
  body.post-type-archive-announcement .fm-header-bar__nav .fm-nav-toggle__bar,
  body.tax-story_genre .fm-header-bar__nav .fm-nav-toggle__bar,
  body.single-episode .fm-header-bar__nav .fm-nav-toggle__bar,
  body.single-story .fm-header-bar__nav .fm-nav-toggle__bar,
  body.single-announcement .fm-header-bar__nav .fm-nav-toggle__bar,
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-nav-toggle__bar {
    width: 18px;
    height: 2px;
    background: #000000;
    border-radius: 99px;
  }

  /* Homepage: hamburger next to social icons */
  .fm-site-header--home .fm-social-links {
    position: relative;
    width: 100%;
    justify-content: center;
    gap: 14px;
    padding-inline: 0;
    /* Reserve space for the hamburger on the right so the icons stay centered. */
    padding-right: 54px; /* 40px button + gap */
    padding-left: 54px;
  }

  .fm-site-header--home .fm-social-links::before {
    height: 24px;
  }

  .fm-site-header--home .fm-social-links .fm-mobile-nav-host--home {
    position: absolute;
    right: 0;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    display: block;
  }

  .fm-site-header--home .fm-social-links .fm-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
  }

  .fm-site-header--home .fm-social-links .fm-nav-toggle__bars {
    display: grid;
    gap: 4px;
  }

  .fm-site-header--home .fm-social-links .fm-nav-toggle__bar {
    width: 18px;
    height: 2px;
    background: #000000;
    border-radius: 99px;
  }

  body.post-type-archive-story .fm-header-bar__nav .fm-nav-dropdown,
  body.post-type-archive-episode .fm-header-bar__nav .fm-nav-dropdown,
  body.post-type-archive-ebook .fm-header-bar__nav .fm-nav-dropdown,
  body.post-type-archive-announcement .fm-header-bar__nav .fm-nav-dropdown,
  body.tax-story_genre .fm-header-bar__nav .fm-nav-dropdown,
  body.single-episode .fm-header-bar__nav .fm-nav-dropdown,
  body.single-story .fm-header-bar__nav .fm-nav-dropdown,
  body.single-announcement .fm-header-bar__nav .fm-nav-dropdown,
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-nav-dropdown,
  .fm-site-header--home .fm-social-links .fm-nav-dropdown,
  .fm-mobile-head-row .fm-nav-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transform-origin: top center;
    transition:
      opacity 160ms ease,
      transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s linear 200ms;
  }

  /* Header dropdown positioning (any page where the host stays in the header bar) */
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-nav-dropdown {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 10px);
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    z-index: 60;
  }

  .fm-site-header--home .fm-social-links .fm-nav-dropdown {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 10px);
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    z-index: 60;
  }

  body.post-type-archive-story .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  body.post-type-archive-episode .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  body.post-type-archive-ebook .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  body.post-type-archive-announcement .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  body.tax-story_genre .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  body.single-episode .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  body.single-story .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  body.single-announcement .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  .fm-site-header--home .fm-social-links .fm-mobile-nav-host.is-open .fm-nav-dropdown,
  .fm-mobile-head-row .fm-mobile-nav-host.is-open .fm-nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 180ms ease,
      transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s linear 0s;
  }

  /* Hamburger icon animation (3 lines -> X) */
  body.post-type-archive-story .fm-header-bar__nav .fm-nav-toggle__bar,
  body.post-type-archive-episode .fm-header-bar__nav .fm-nav-toggle__bar,
  body.post-type-archive-ebook .fm-header-bar__nav .fm-nav-toggle__bar,
  body.post-type-archive-announcement .fm-header-bar__nav .fm-nav-toggle__bar,
  body.tax-story_genre .fm-header-bar__nav .fm-nav-toggle__bar,
  body.single-episode .fm-header-bar__nav .fm-nav-toggle__bar,
  body.single-story .fm-header-bar__nav .fm-nav-toggle__bar,
  body.single-announcement .fm-header-bar__nav .fm-nav-toggle__bar,
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-nav-toggle__bar,
  .fm-site-header--home .fm-social-links .fm-nav-toggle__bar,
  .fm-mobile-head-row .fm-nav-toggle__bar {
    transition: transform 200ms ease, opacity 160ms ease;
    transform-origin: center;
  }

  body.post-type-archive-story .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  body.post-type-archive-episode .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  body.post-type-archive-ebook .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  body.post-type-archive-announcement .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  body.tax-story_genre .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  body.single-episode .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  body.single-story .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  body.single-announcement .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  .fm-site-header--home .fm-social-links .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1),
  .fm-mobile-head-row .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.post-type-archive-story .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  body.post-type-archive-episode .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  body.post-type-archive-ebook .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  body.post-type-archive-announcement .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  body.tax-story_genre .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  body.single-episode .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  body.single-story .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  body.single-announcement .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  .fm-site-header--home .fm-social-links .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2),
  .fm-mobile-head-row .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  body.post-type-archive-story .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  body.post-type-archive-episode .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  body.post-type-archive-ebook .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  body.post-type-archive-announcement .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  body.tax-story_genre .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  body.single-episode .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  body.single-story .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  body.single-announcement .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  .fm-site-header--home .fm-social-links .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3),
  .fm-mobile-head-row .fm-mobile-nav-host.is-open .fm-nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  @media (prefers-reduced-motion: reduce) {
    body.post-type-archive-story .fm-header-bar__nav .fm-nav-dropdown,
    body.post-type-archive-episode .fm-header-bar__nav .fm-nav-dropdown,
    body.post-type-archive-ebook .fm-header-bar__nav .fm-nav-dropdown,
    body.post-type-archive-announcement .fm-header-bar__nav .fm-nav-dropdown,
    body.tax-story_genre .fm-header-bar__nav .fm-nav-dropdown,
    body.single-episode .fm-header-bar__nav .fm-nav-dropdown,
    body.single-story .fm-header-bar__nav .fm-nav-dropdown,
    body.single-announcement .fm-header-bar__nav .fm-nav-dropdown,
    .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-nav-dropdown,
    .fm-site-header--home .fm-social-links .fm-nav-dropdown,
    .fm-mobile-head-row .fm-nav-dropdown,
    body.post-type-archive-story .fm-header-bar__nav .fm-nav-toggle__bar,
    body.post-type-archive-episode .fm-header-bar__nav .fm-nav-toggle__bar,
    body.post-type-archive-ebook .fm-header-bar__nav .fm-nav-toggle__bar,
    body.post-type-archive-announcement .fm-header-bar__nav .fm-nav-toggle__bar,
    body.tax-story_genre .fm-header-bar__nav .fm-nav-toggle__bar,
    body.single-episode .fm-header-bar__nav .fm-nav-toggle__bar,
    body.single-story .fm-header-bar__nav .fm-nav-toggle__bar,
    body.single-announcement .fm-header-bar__nav .fm-nav-toggle__bar,
    .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-nav-toggle__bar,
    .fm-site-header--home .fm-social-links .fm-nav-toggle__bar,
    .fm-mobile-head-row .fm-nav-toggle__bar {
      transition: none;
    }
  }

  body.post-type-archive-story .fm-header-bar__nav .fm-nav-list,
  body.post-type-archive-episode .fm-header-bar__nav .fm-nav-list,
  body.post-type-archive-ebook .fm-header-bar__nav .fm-nav-list,
  body.post-type-archive-announcement .fm-header-bar__nav .fm-nav-list,
  body.tax-story_genre .fm-header-bar__nav .fm-nav-list,
  body.single-episode .fm-header-bar__nav .fm-nav-list,
  body.single-story .fm-header-bar__nav .fm-nav-list,
  body.single-announcement .fm-header-bar__nav .fm-nav-list,
  .fm-site-header:not(.fm-site-header--home) .fm-header-bar__nav .fm-nav-list,
  .fm-site-header--home .fm-social-links .fm-nav-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fm-home-ad__card {
    padding: 16px 14px;
    gap: 10px;
  }

  /* Mobile homepage ads: when a mobile ad image exists, show ONLY the ad area (no blank card body). */
  .fm-home-ad--filled-mobile .fm-home-ad__card {
    padding: 0;
    gap: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .fm-home-ad--filled-mobile .fm-home-ad__meta,
  .fm-home-ad--filled-mobile .fm-home-ad__title,
  .fm-home-ad--filled-mobile .fm-ad-placeholder {
    display: none !important;
  }

  .fm-home-ad--filled-mobile .fm-home-ad__card .fm-ad-media--mobile {
    margin: 0;
    overflow: hidden;
    border: 1.5px solid #000000;
    border-radius: 16px;
    aspect-ratio: auto;
  }

  .fm-home-ad--filled-mobile .fm-home-ad__card .fm-ad-media--mobile img {
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: none;
  }

  /* Mobile homepage ads: when NO mobile image exists, show ONLY the placement box (no blank area). */
  .fm-home-ad:not(.fm-home-ad--filled-mobile) .fm-home-ad__card {
    padding: 0;
    gap: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .fm-home-ad:not(.fm-home-ad--filled-mobile) .fm-home-ad__meta,
  .fm-home-ad:not(.fm-home-ad--filled-mobile) .fm-home-ad__title {
    display: none !important;
  }

  .fm-home-ad:not(.fm-home-ad--filled-mobile) .fm-home-ad__card .fm-ad-placeholder {
    margin: 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 16px;
    background: #ffffff;
  }

  /* Never show desktop ad media on mobile. */
  .fm-ad-media--desktop,
  .fm-home-ad--filled-desktop .fm-ad-media--desktop {
    display: none !important;
  }

  .fm-ad-media--mobile {
    display: block;
  }

  /* Keep the same title/meta height as normal cards, but never show the text. */
  .fm-home-ad__title {
    min-height: 0;
  }

  /* Make mobile ads match the homepage card image height rhythm.
     Put aspect-ratio on the container (reliable) and make the img fill it. */
  .fm-home-ad--filled-mobile .fm-ad-media--mobile {
    aspect-ratio: 16 / 9;
  }

  .fm-home-ad--filled-mobile .fm-ad-media--mobile img {
    height: 100%;
    object-fit: cover;
  }

  /* Make the ad media sit like a card thumbnail (flush to edges). */
  .fm-home-ad__card .fm-ad-media--mobile {
    margin: -16px -14px 0;
    border-radius: 22px 22px 0 0;
  }

  .fm-home-ad__card .fm-ad-media--mobile img {
    border-radius: 22px 22px 0 0;
    box-shadow: none;
  }

  .fm-home-ad__card .fm-ad-placeholder {
    margin: -16px -14px 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 22px 22px 0 0;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
  }

  /* Episode page: make inline/context ads match homepage ad sizing (mobile only). */
  body.single-episode .fm-episode-inline-ad.fm-ad-slot--filled-mobile,
  body.single-episode .fm-episode-rail__ad.fm-ad-slot--filled-mobile {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: 0;
  }

  body.single-episode .fm-episode-inline-ad.fm-ad-slot--filled-mobile .fm-ad-media--mobile,
  body.single-episode .fm-episode-rail__ad.fm-ad-slot--filled-mobile .fm-ad-media--mobile {
    margin: 0;
    display: block;
    overflow: hidden;
    border: 1.5px solid #000000;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
  }

  body.single-episode .fm-episode-inline-ad.fm-ad-slot--filled-mobile .fm-ad-media--mobile img,
  body.single-episode .fm-episode-rail__ad.fm-ad-slot--filled-mobile .fm-ad-media--mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none;
  }

  /* Episode inline ad lives inside the reading column (max-width: 72ch).
     On mobile, break the ad out so it matches the full-width homepage ad rhythm. */
  body.single-episode .fm-episode-reading .fm-episode-inline-ad {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    /* Center the breakout element relative to the viewport. */
    margin-left: calc(50% - 50vw + 12px);
    margin-right: calc(50% - 50vw + 12px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Placeholder sizing for episode inline ads on mobile (match homepage 16:9). */
  body.single-episode .fm-episode-reading .fm-episode-inline-ad .fm-ad-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 16px;
  }

  .fm-home-ad,
  .fm-archive-ad,
  .fm-episode-inline-ad,
  .fm-announcement-sidebar__ad,
  .fm-story-top-ad,
  .fm-home-ad--below-menu {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    justify-self: stretch;
    align-self: stretch;
    margin-inline: 0;
    box-sizing: border-box;
  }

  /* Homepage ads: match the exact same edge inset as the mobile menu + cards (no negative margins). */
  .fm-shell--home > .fm-home-ad,
  .fm-shell--home > .fm-home-ad--below-menu {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 2px;
    padding-right: 2px;
    box-sizing: border-box;
  }

  .fm-archive-ad,
  .fm-episode-inline-ad,
  .fm-announcement-sidebar__ad,
  .fm-story-top-ad,
  .fm-home-ad--below-menu {
    padding: 14px;
    border-radius: 18px;
  }

  /* Remove extra outer padding for homepage ads so the outline/card matches story cards exactly. */
  .fm-home-ad,
  .fm-home-ad--below-menu {
    padding: 0;
    border-radius: 0;
  }

  .fm-home-ad--filled,
  .fm-archive-ad--filled,
  .fm-episode-inline-ad.fm-theme-ad-slot--filled,
  .fm-announcement-sidebar__ad.fm-theme-ad-slot--filled {
    padding: 0;
    border-radius: 0;
  }

  .fm-banner-placeholder {
    min-height: 110px;
    border-radius: 18px;
  }

  .fm-home-ad {
    min-height: 144px;
  }

  .fm-home-ad--below-menu {
    margin-top: 0;
  }

  /* Mobile homepage ads: when a mobile image exists, remove the placeholder chrome
     so the ad media (with its own outline) matches story card edges. */
  .fm-home-ad--filled-mobile {
    min-height: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .fm-archive-ad,
  .fm-episode-inline-ad,
  .fm-announcement-sidebar__ad,
  .fm-story-top-ad,
  .fm-home-ad--below-menu {
    min-height: 132px;
  }

  /* Filled ad slots should shrink-wrap the image (avoid extra blank space). */
  .fm-home-ad--filled,
  .fm-archive-ad--filled,
  .fm-episode-inline-ad.fm-theme-ad-slot--filled,
  .fm-announcement-sidebar__ad.fm-theme-ad-slot--filled,
  .fm-episode-rail__ad--filled {
    min-height: 0;
  }

  .fm-episode-rail__ad {
    min-height: 240px;
  }

  .fm-ad-media,
  .fm-ad-media--home,
  .fm-ad-media--episode,
  .fm-archive-ad__media {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .fm-ad-media img,
  .fm-archive-ad__media img,
  .fm-announcement-sidebar__ad .fm-ad-media img,
  .fm-episode-inline-ad .fm-ad-media img,
  .fm-episode-rail__ad .fm-ad-media img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .fm-ad-media img,
  .fm-archive-ad__media img,
  .fm-announcement-sidebar__ad .fm-ad-media img,
  .fm-episode-inline-ad .fm-ad-media img,
  .fm-episode-rail__ad .fm-ad-media img {
    border-radius: 14px;
  }

  .fm-home-ad--filled .fm-ad-media--home img,
  .fm-archive-ad--filled .fm-archive-ad__media img,
  .fm-episode-inline-ad.fm-theme-ad-slot--filled .fm-ad-media img,
  .fm-announcement-sidebar__ad.fm-theme-ad-slot--filled .fm-ad-media img,
  .fm-episode-rail__ad--filled .fm-ad-media img {
    border-radius: 0;
  }

  .fm-site-header,
  .fm-shell,
  .fm-site-footer,
  .fm-hero-art {
    width: min(100%, calc(100% - 24px));
  }

  /* Keep the home header aligned with the same mobile container width as cards/ads. */
  .fm-site-header--home {
    width: min(100%, calc(100% - 24px));
  }

  .fm-site-header {
    margin-top: 18px;
  }

  .fm-story-top-ad {
    width: 100%;
    margin: 0 0 14px;
  }

  .fm-story-top-ad .fm-ad-media,
  .fm-story-top-ad img {
    width: 100%;
  }

  .fm-story-top-cover {
    width: 100%;
    margin: 0 0 14px;
  }

  .fm-story-top-meta {
    width: 100%;
    margin: 0 0 14px;
  }

  .fm-story-top-meta__title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .fm-story-top-meta__author {
    font-size: 0.96rem;
  }

  /* Story pages now use the same header hamburger dropdown menu on mobile,
     so keep the header bar visible and remove the old bottom menu. */
  .single-story .fm-site-header > .fm-header-bar {
    display: grid;
  }

  .single-story .fm-story-mobile-nav {
    display: none !important;
  }

  .single-story .fm-story-mobile-subscribe-anchor {
    display: block;
    width: 100%;
    margin: 18px auto 0;
  }

  .single-story .fm-story-mobile-subscribe-anchor .fmss-trigger-wrap {
    margin-top: 0;
  }

  .single-story .fmss-trigger-button {
    min-height: 52px;
    padding: 0 14px;
  }

  .fm-shell {
    margin: 20px auto 44px;
  }

  .fm-shell--home {
    margin-top: 0;
    /* Mobile vertical rhythm for homepage stacks (ads, headings, cards). */
    --fm-home-mobile-stack-gap: 22px;
    --fm-home-mobile-head-gap: 16px;
    --fm-home-mobile-top-ad-gap: 22px; /* menu -> first content block */
    padding-top: var(--fm-home-mobile-top-ad-gap);
  }

  .fm-shell--home > * + * {
    margin-top: var(--fm-home-mobile-stack-gap);
  }

  .fm-shell--home > .fm-home-ad--below-menu {
    margin-top: 0;
    margin-bottom: 0;
  }

  .fm-shell--home > .fm-home-ad--below-menu + * {
    margin-top: var(--fm-home-mobile-stack-gap);
  }

  .fm-shell--home > .fm-home-ad--below-menu + .fm-panel,
  .fm-shell--home > .fm-home-ad--below-menu + .fm-home-bookshelf {
    padding-top: 0;
  }

  .fm-shell--home > .fm-home-ad--below-menu + * .fm-section-head--compact {
    margin-bottom: var(--fm-home-mobile-head-gap);
  }

  .fm-shell--home > .fm-panel:first-of-type + .fm-home-ad {
    margin-top: var(--fm-home-mobile-stack-gap);
    margin-bottom: 0;
  }

  .fm-shell--home > .fm-panel:first-of-type {
    padding-bottom: 0;
  }

  .fm-shell--home > .fm-panel:first-of-type + .fm-home-ad + .fm-panel,
  .fm-shell--home > .fm-panel:first-of-type + .fm-home-ad + .fm-home-bookshelf {
    padding-top: 0;
  }

  .fm-shell--home > .fm-panel:first-of-type + .fm-home-ad + * .fm-section-head--compact {
    margin-bottom: var(--fm-home-mobile-head-gap);
  }

  .fm-shell--home > .fm-home-ad + .fm-panel,
  .fm-shell--home > .fm-home-ad + .fm-home-bookshelf {
    padding-top: 0;
  }

  .fm-shell--home > .fm-home-ad + * .fm-section-head,
  .fm-shell--home > .fm-home-ad + * .fm-section-head--compact {
    margin-top: 0;
    margin-bottom: var(--fm-home-mobile-head-gap);
  }

  .fm-shell--home > .fm-home-ad {
    margin-bottom: 0;
  }

  .fm-shell--home > .fm-panel,
  .fm-shell--home > .fm-home-bookshelf {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .fm-shell--home > .fm-panel + .fm-home-ad,
  .fm-shell--home > .fm-home-bookshelf + .fm-home-ad {
    margin-top: var(--fm-home-mobile-stack-gap);
    padding-top: 0;
  }

  .fm-site-footer {
    margin-bottom: 18px;
  }

  .fm-hero-art {
    margin-top: 18px;
  }

  .fm-hero-art__frame {
    min-height: 300px;
    aspect-ratio: auto;
    border-radius: 24px;
  }

  .fm-hero-art__frame img {
    object-position: center center;
  }

  .fm-hero-art__caption {
    inset-inline: 14px;
    bottom: 14px;
    justify-content: center;
    padding: 0;
  }

  .fm-hero-art__title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
    min-height: 52px;
    padding: 0 14px;
    border-radius: 16px;
    font-family: var(--fm-font-homepage-cards-heading);
    color: #ffffff;
    font-size: calc(1.22rem * var(--fm-font-size-homepage-cards-heading-scale) / 100);
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: normal;
    text-shadow: none;
    text-wrap: balance;
  }

  .fm-episode-hero {
    padding: 20px;
  }

  .fm-home-bookshelf {
    padding: 24px 16px 28px;
  }

  .fm-ebook-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .fm-ebook-cover-pane {
    position: static;
  }

  .single-ebook .fm-ebook-purchase {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .single-ebook .fm-ebook-price-block {
    width: 100%;
    justify-items: center;
    text-align: center;
  }

  .fm-payment-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 20px 16px 18px;
    border-radius: 22px;
  }

  .fm-payment-modal__header {
    margin-top: -4px;
  }

  .fm-payment-upload__button {
    width: 100%;
    justify-self: stretch;
  }

  .fm-bookshelf-books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
  }

  .fm-book-item {
    width: 100%;
  }

  .fm-book-item__meta {
    text-align: center;
  }

  .fm-header-bar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "social"
      "nav";
    gap: 0;
    padding-bottom: 0;
  }

  .fm-site-header--home .fm-header-bar__social {
    margin-top: 20px;
  }

  .fm-social-links {
    justify-content: center;
    padding-inline-start: 0;
  }

  .fm-header-social-stack {
    justify-items: center;
  }

  .fm-social-links::before {
    display: none;
  }

  /* Homepage: keep social icons centered while reserving room for the hamburger on the right edge. */
  .fm-site-header--home .fm-social-links {
    padding-right: 54px; /* 40px button + gap */
    padding-left: 54px;
  }

  .fm-site-header--home .fm-social-links .fm-mobile-nav-host--home {
    right: 0;
  }

  .fm-nav {
    width: 100%;
    justify-content: center;
  }

  /* Let the mobile menu buttons reach the same near-edge width as homepage cards. */
  .fm-site-header--home .fm-header-bar__nav {
    /* Avoid negative margins on mobile; they can cause one-sided overflow in RTL layouts. */
    margin-top: 28px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .fm-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    /* Keep the same subtle 2px inset used by card stacks without shifting the whole grid. */
    padding-left: 2px;
    padding-right: 2px;
  }

  .fm-nav-list li {
    display: flex;
    width: 100%;
    justify-content: stretch;
  }

  .fm-nav-list a {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
  }

  .fm-section-title--home {
    display: flex;
    width: calc((100% - 10px) / 2);
    min-width: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
    min-height: 52px;
    padding: 0 14px;
    margin-inline: auto;
  }

  /* Mobile: archive + genre page titles should look like homepage heading buttons. */
  body.post-type-archive-story .fm-section-head .fm-page-title,
  body.post-type-archive-episode .fm-section-head .fm-page-title,
  body.post-type-archive-ebook .fm-section-head .fm-page-title,
  body.post-type-archive-announcement .fm-section-head .fm-page-title,
  body.tax-story_genre .fm-section-head .fm-page-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc((100% - 10px) / 2);
    min-width: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
    min-height: 52px;
    padding: 0 14px;
    margin-inline: auto;
    border: 1px solid rgba(102, 18, 41, 0.34);
    border-radius: 16px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 44%),
      linear-gradient(135deg, #ef86a5 0%, #d44f7a 52%, #b83a60 100%);
    box-shadow:
      0 0 0 1px #000000,
      0 10px 20px rgba(162, 39, 76, 0.2),
      0 1px 0 rgba(255, 255, 255, 0.32) inset,
      0 -1px 0 rgba(120, 24, 50, 0.18) inset;
    color: #ffffff;
    font-family: var(--fm-font-stack-body);
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    direction: rtl;
    unicode-bidi: isolate;
  }

  .fm-nav-list a,
  .fm-section-title--home {
    font-size: 1.28rem;
  }

  .fm-home-grid,
  .fm-story-hero,
  .fm-episode-nav {
    grid-template-columns: 1fr;
  }

  .fm-episode-row {
    grid-template-columns: 1fr;
  }

  .fm-home-latest > .fm-episode-stack > .fm-episode-card:first-child {
    grid-column: span 1;
    min-height: 220px;
  }

  .fm-story-stage,
  .fm-story-chapters {
    padding: 20px;
  }

  .fm-panel,
  .fm-home-ad,
  .fm-home-bookshelf,
  .fm-stories-grid-wrap,
  .fm-stories-hero__copy {
    padding: 18px 16px;
  }

  /* On mobile, filled ad slots should not have extra container padding. */
  .fm-home-ad--filled-mobile,
  .fm-archive-ad.fm-ad-slot--filled-mobile,
  .fm-episode-inline-ad.fm-ad-slot--filled-mobile,
  .fm-announcement-sidebar__ad.fm-ad-slot--filled-mobile,
  .fm-story-top-ad.fm-ad-slot--filled-mobile,
  .fm-episode-rail__ad.fm-ad-slot--filled-mobile {
    padding: 0;
  }

  /* After the padding reset above, re-apply the same 2px mobile inset used by homepage card stacks. */
  .fm-shell--home > .fm-home-ad--filled-mobile,
  .fm-shell--home > .fm-home-ad--below-menu.fm-home-ad--filled-mobile {
    padding-inline: 2px;
    box-sizing: border-box;
  }

  .fm-home-genre,
  .fm-home-bookshelf {
    display: flex;
    flex-direction: column;
    gap: var(--fm-home-mobile-head-gap, 12px);
    padding-inline: 0;
    padding-block: 0;
  }

  .fm-home-genre .fm-section-head,
  .fm-home-bookshelf .fm-section-head {
    padding-inline: 12px;
    margin-bottom: 0;
  }

  .fm-home-genre .fm-episode-stack,
  .fm-home-bookshelf .fm-bookshelf-grid {
    /* Match the same edge inset as the mobile menu grid. */
    margin-left: 0;
    margin-right: 0;
    padding-left: 2px;
    padding-right: 2px;
    margin-top: 0;
  }

  /* Homepage story cards: tighter spacing on mobile without changing colors/outline. */
  .fm-home-genre .fm-episode-card {
    min-height: 0;
    padding: 16px 14px;
    gap: 10px;
  }

  .fm-home-genre .fm-episode-thumb {
    margin: -16px -14px 0;
  }

  .fm-home-genre .fm-story-meta {
    margin-bottom: 0;
    gap: 8px;
  }

  .fm-home-genre .fm-episode-card .fm-card-title {
    letter-spacing: normal;
    line-height: 1.5;
  }

  .post-type-archive-story .fm-stories-hero__copy,
  .post-type-archive-story .fm-stories-featured,
  .post-type-archive-story .fm-stories-grid-wrap,
  .post-type-archive-announcement .fm-stories-grid-wrap,
  .post-type-archive-episode .fm-panel,
  .tax-story_genre .fm-panel {
    padding: 16px 14px;
  }

  .post-type-archive-story .fm-page-title,
  .post-type-archive-episode .fm-page-title,
  .tax-story_genre .fm-page-title,
  .post-type-archive-announcement .fm-page-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.4;
  }

  .post-type-archive-story .fm-page-copy,
  .post-type-archive-episode .fm-page-copy,
  .tax-story_genre .fm-page-copy {
    font-size: 1rem;
    line-height: 1.9;
  }

  .post-type-archive-episode .fm-section-head,
  .tax-story_genre .fm-section-head,
  .post-type-archive-ebook .fm-section-head,
  .post-type-archive-announcement .fm-section-head {
    margin-bottom: 0;
    text-align: center;
    margin-top: 8px;
  }

  /* Move hamburger menu to same line as heading on archive/genre pages */
  body.post-type-archive-story .fm-header-bar,
  body.post-type-archive-episode .fm-header-bar,
  body.post-type-archive-ebook .fm-header-bar,
  body.post-type-archive-announcement .fm-header-bar,
  body.tax-story_genre .fm-header-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
  }

  body.post-type-archive-story .fm-header-bar__nav,
  body.post-type-archive-episode .fm-header-bar__nav,
  body.post-type-archive-ebook .fm-header-bar__nav,
  body.post-type-archive-announcement .fm-header-bar__nav,
  body.tax-story_genre .fm-header-bar__nav {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: auto;
  }

  body.post-type-archive-story .fm-nav-toggle,
  body.post-type-archive-episode .fm-nav-toggle,
  body.post-type-archive-ebook .fm-nav-toggle,
  body.post-type-archive-announcement .fm-nav-toggle,
  body.tax-story_genre .fm-nav-toggle {
    align-self: center;
    margin-left: 0;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .post-type-archive-story .fm-stories-hero__copy {
    text-align: center;
  }

  .post-type-archive-episode .fm-episode-stack,
  .tax-story_genre .fm-episode-stack,
  .post-type-archive-announcement .fm-stories-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Mobile: match the same edge inset used by the mobile menu (2px) on non-home grids and ads. */
  body.post-type-archive-episode .fm-episode-stack,
  body.tax-story_genre .fm-home-genre .fm-episode-stack,
  body.post-type-archive-story .fm-stories-grid,
  body.post-type-archive-announcement .fm-stories-grid,
  body.post-type-archive-ebook .fm-bookshelf-grid {
    margin-left: 0;
    margin-right: 0;
    padding-left: 2px;
    padding-right: 2px;
    box-sizing: border-box;
  }

  /* Genre page: remove side padding from the panel wrapper so the 2px grid inset controls the edges. */
  body.tax-story_genre .fm-panel.fm-home-genre {
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
  }

  /* Archive ads: keep vertical padding, but align the left/right edges to the same 2px inset. */
  body.post-type-archive-story .fm-archive-ad,
  body.post-type-archive-episode .fm-archive-ad,
  body.post-type-archive-ebook .fm-archive-ad,
  body.post-type-archive-announcement .fm-archive-ad,
  body.tax-story_genre .fm-archive-ad {
    padding-left: 2px;
    padding-right: 2px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .fm-home-bookshelf .fm-bookshelf-books > .fm-book-item:nth-child(n+5) {
    display: none;
  }

  .post-type-archive-story .fm-stories-featured__body,
  .post-type-archive-story .fm-stories-card__body,
  .post-type-archive-announcement .fm-stories-card__body,
  .post-type-archive-episode .fm-episode-card,
  .tax-story_genre .fm-episode-card {
    padding: 16px 14px;
  }

  .post-type-archive-story .fm-stories-stat {
    padding: 14px 16px;
  }

  .post-type-archive-story .fm-stories-tags,
  .tax-story_genre .fm-story-meta,
  .post-type-archive-episode .fm-story-meta {
    justify-content: center;
  }

  .fm-story-stage__title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .fm-episode-stage__title {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
  }

  .fm-episode-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "episodes"
      "story";
    gap: 16px;
  }

  .fm-episode-rail {
    position: static;
  }

  .single-episode .fm-episode-stage {
    gap: 14px;
    min-width: 0;
  }

  .single-episode .fm-episode-stage__intro {
    gap: 8px;
    min-width: 0;
  }

  .single-episode .fm-episode-stage__cover {
    margin-top: 12px;
  }

  .single-episode .fm-episode-reading {
    margin-top: 16px;
    min-width: 0;
    direction: rtl;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .single-episode .fm-episode-reading p,
  .single-episode .fm-episode-reading li,
  .single-episode .fm-episode-reading blockquote,
  .single-episode .fm-episode-reading div,
  .single-episode .fm-episode-reading span {
    direction: rtl;
    text-align: inherit;
    unicode-bidi: plaintext;
  }

  .single-episode .fm-episode-rail {
    gap: 12px;
    min-width: 0;
  }

  .single-episode .fm-episode-rail__card {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .single-episode .fm-episode-rail--story .fm-episode-rail__title,
  .single-episode .fm-episode-rail__title {
    font-size: 1.18rem;
    line-height: 1.55;
  }

  .single-episode .fm-episode-rail__meta,
  .single-episode .fm-episode-rail__copy {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .single-episode .fm-episode-option-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
  }

  .single-episode .fm-episode-option {
    padding: 12px 10px;
    border-radius: 14px;
    min-width: 0;
  }

  .single-episode .fm-episode-option__title {
    font-size: 0.98rem;
  }

  .single-episode .fm-episode-rail__ad {
    min-height: 180px;
    padding: 10px;
    border-radius: 18px;
  }

  .single-episode .fm-episode-audio-reader,
  .single-episode .fm-episode-reactions,
  .single-episode .fm-episode-comments,
  .single-episode .fm-comments,
  .single-episode .fm-comments__shell {
    min-width: 0;
  }

  .single-episode .fm-episode-audio-reader__controls {
    width: 100%;
  }

  .single-episode .fm-episode-audio-reader__seek {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  body.single-episode {
    overflow-x: hidden;
  }

  .fm-story-stage__button {
    flex-basis: 100%;
  }

  .fm-story-chapters__grid {
    grid-template-columns: 1fr;
  }

  .fm-episode-nav-grid {
    grid-template-columns: 1fr;
  }

  .fm-stories-hero,
  .fm-stories-featured {
    grid-template-columns: 1fr;
  }

  .fm-stories-hero__stats,
  .fm-stories-grid {
    grid-template-columns: 1fr;
  }

  .fm-stories-card__body {
    padding: 18px 16px;
  }

  .single-story .fm-story-stage__title,
  .single-story .fm-story-stage__meta,
  .single-story .fm-story-stage__cover,
  .single-story .fm-story-stage__content,
  .single-story .fm-story-chapters__head,
  .single-story .fm-story-chapters__grid,
  .single-announcement .fm-story-stage__title,
  .single-announcement .fm-story-stage__meta,
  .single-announcement .fm-story-stage__cover,
  .single-announcement .fm-story-stage__content,
  .single-ebook .fm-ebook-body,
  .single-episode .fm-episode-stage__title,
  .single-episode .fm-episode-stage__meta,
  .single-episode .fm-episode-reading,
  .single-episode .fm-episode-reactions,
  .single-episode .fm-episode-comments {
    width: 100%;
    max-width: 100%;
  }

  .single-story .fm-story-chapters__grid {
    grid-template-columns: 1fr;
  }

  .fm-announcement-single-layout {
    display: block;
  }

  .fm-announcement-single-layout.has-left-rail,
  .fm-announcement-single-layout.has-sidebar-ad {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "latest"
      "sidebar"
      "main";
    gap: 20px;
    direction: rtl;
  }

  .fm-announcement-latest,
  .fm-announcement-single-layout.has-sidebar-ad .fm-announcement-sidebar {
    position: static;
  }

  .fm-episode-reactions {
    margin-top: 28px;
    padding: 18px 14px;
  }

  .fm-episode-reactions__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fm-episode-comments {
    margin-top: 32px;
    padding: 22px 16px;
  }

  .fm-comment-form__actions {
    justify-content: stretch;
  }

  .fm-comment-form__submit {
    width: 100%;
  }

  .fm-comments__list .children {
    padding-right: 12px;
  }

  /* Apply responsive ad sizing to all ad types on mobile */
  .fm-archive-ad .fm-ad-media--mobile,
  .fm-episode-inline-ad .fm-ad-media--mobile,
  .fm-announcement-sidebar__ad .fm-ad-media--mobile,
  .fm-episode-rail__ad .fm-ad-media--mobile,
  .fm-story-top-ad .fm-ad-media--mobile {
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
    border-radius: 16px;
  }

  .fm-archive-ad .fm-ad-media--mobile img,
  .fm-episode-inline-ad .fm-ad-media--mobile img,
  .fm-announcement-sidebar__ad .fm-ad-media--mobile img,
  .fm-episode-rail__ad .fm-ad-media--mobile img,
  .fm-story-top-ad .fm-ad-media--mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
  }

  /* Ensure all ads use full-width mobile display */
  .fm-archive-ad.fm-ad-slot--filled-mobile,
  .fm-episode-inline-ad.fm-ad-slot--filled-mobile,
  .fm-announcement-sidebar__ad.fm-ad-slot--filled-mobile,
  .fm-episode-rail__ad.fm-ad-slot--filled-mobile,
  .fm-story-top-ad.fm-ad-slot--filled-mobile {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Mobile: only show mobile images, hide desktop ones on all ads */
  .fm-archive-ad .fm-ad-media--desktop,
  .fm-episode-inline-ad .fm-ad-media--desktop,
  .fm-announcement-sidebar__ad .fm-ad-media--desktop,
  .fm-episode-rail__ad .fm-ad-media--desktop,
  .fm-story-top-ad .fm-ad-media--desktop {
    display: none !important;
  }

  /* Remove placeholder when mobile image exists on all ads */
  .fm-archive-ad.fm-ad-slot--filled-mobile .fm-ad-placeholder,
  .fm-episode-inline-ad.fm-ad-slot--filled-mobile .fm-ad-placeholder,
  .fm-announcement-sidebar__ad.fm-ad-slot--filled-mobile .fm-ad-placeholder,
  .fm-episode-rail__ad.fm-ad-slot--filled-mobile .fm-ad-placeholder,
  .fm-story-top-ad.fm-ad-slot--filled-mobile .fm-ad-placeholder {
    display: none !important;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .fm-site-header,
  .fm-shell,
  .fm-site-footer,
  .fm-hero-art {
    width: min(100%, calc(100% - 40px));
  }

  .fm-header-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fm-social-links {
    justify-content: center;
    padding-inline-start: 0;
  }

  .fm-header-social-stack {
    justify-items: center;
  }

  .fm-social-links::before {
    display: none;
  }

  .fm-nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .fm-ebook-layout {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .fm-episode-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "story"
      "episodes";
    gap: 22px;
  }

  .fm-episode-rail {
    position: static;
  }

  .fm-bookshelf-books {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .fm-stories-hero,
  .fm-stories-featured {
    grid-template-columns: 1fr;
  }

  .fm-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fm-story-chapters__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep all horizontal ad placements visually consistent. */
.fm-home-ad,
.fm-archive-ad,
.fm-episode-inline-ad,
.fm-episode-rail__ad,
.fm-announcement-sidebar__ad {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}

/* Homepage ad uses an inner card wrapper for episode-card sizing. The outer wrapper is just layout spacing. */
.fm-home-ad {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}

/* Single-outline ad placeholder (used when the relevant viewport image is missing). */
.fm-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #000000;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Desktop: if a desktop image exists for the slot, hide the placeholder. */
@media (min-width: 721px) {
  .fm-ad-slot--filled-desktop .fm-ad-placeholder {
    display: none;
  }
}

/* Mobile: if a mobile image exists for the slot, hide the placeholder. */
@media (max-width: 720px) {
  .fm-ad-slot--filled-mobile .fm-ad-placeholder {
    display: none;
  }
}

.fm-home-ad--filled,
.fm-archive-ad--filled,
.fm-episode-inline-ad.fm-theme-ad-slot--filled,
.fm-announcement-sidebar__ad.fm-theme-ad-slot--filled,
.fm-episode-rail__ad--filled {
  border: 0;
}

.fm-archive-ad .fm-archive-ad__media,
.fm-episode-inline-ad .fm-ad-media,
.fm-episode-rail__ad .fm-ad-media,
.fm-announcement-sidebar__ad .fm-ad-media {
  display: block;
  overflow: hidden;
  border: 1.5px solid #000000;
  border-radius: 16px;
}

.fm-archive-ad .fm-archive-ad__media img,
.fm-episode-inline-ad .fm-ad-media img,
.fm-episode-rail__ad .fm-ad-media img,
.fm-announcement-sidebar__ad .fm-ad-media img {
  border-radius: 16px;
}

/* Keep a subtle base lift on card surfaces across home + archive pages. */
.fm-home-genre .fm-episode-card,
.fm-home-bookshelf .fm-book-item__cover,
.post-type-archive-story .fm-stories-card,
.post-type-archive-episode .fm-episode-card,
.tax-story_genre .fm-episode-card {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
