/* XFH theme - extracted from themes/xfh/index.html */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f14;
}
::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

.xfh-tag-fantasy {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-emerald-900/50 text-emerald-300 border border-emerald-600/50;
}
.xfh-tag-incest {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-purple-900/50 text-purple-300 border border-purple-600/50;
}
.xfh-tag-adultery {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-red-900/50 text-red-300 border border-red-600/50;
}
.xfh-tag-romance {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-rose-900/50 text-rose-300 border border-rose-600/50;
}
.xfh-tag-erotica {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-amber-900/50 text-amber-300 border border-amber-600/50;
}
.xfh-tag-interfaith {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-cyan-900/50 text-cyan-300 border border-cyan-600/50;
}
.xfh-tag-special-sex-stories {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-fuchsia-900/50 text-fuchsia-300 border border-fuchsia-600/50;
}
.xfh-tag-mix-hot-collections {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-orange-900/50 text-orange-300 border border-orange-600/50;
}
.xfh-tag-hottest-hindi-sex-story {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-sky-900/50 text-sky-300 border border-sky-600/50;
}
.xfh-tag-default {
  @apply px-1.5 py-0.2 text-[11px] font-bold rounded bg-indigo-900/50 text-indigo-300 border border-indigo-600/50;
}

/* Plain CSS fallbacks (Tailwind CDN @apply may not process this file) */
.category-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid transparent;
  line-height: 1.4;
}
.category-badge.incest {
  background: rgba(88, 28, 135, 0.5);
  color: #d8b4fe;
  border-color: rgba(147, 51, 234, 0.5);
}
.category-badge.adultery {
  background: rgba(127, 29, 29, 0.5);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.5);
}
.category-badge.erotica {
  background: rgba(120, 53, 15, 0.5);
  color: #fcd34d;
  border-color: rgba(217, 119, 6, 0.5);
}
.category-badge.fantasy {
  background: rgba(6, 78, 59, 0.5);
  color: #6ee7b7;
  border-color: rgba(5, 150, 105, 0.5);
}
.category-badge.romance {
  background: rgba(136, 19, 55, 0.5);
  color: #fda4af;
  border-color: rgba(225, 29, 72, 0.5);
}
.category-badge.interfaith {
  background: rgba(22, 78, 99, 0.5);
  color: #67e8f9;
  border-color: rgba(8, 145, 178, 0.5);
}
.category-badge.special-sex-stories {
  background: rgba(112, 26, 117, 0.5);
  color: #f0abfc;
  border-color: rgba(192, 38, 211, 0.5);
}
.category-badge.mix-hot-collections {
  background: rgba(124, 45, 18, 0.5);
  color: #fdba74;
  border-color: rgba(234, 88, 12, 0.5);
}
.category-badge.hottest-hindi-sex-story {
  background: rgba(12, 74, 110, 0.5);
  color: #7dd3fc;
  border-color: rgba(14, 165, 233, 0.5);
}
.category-badge.default {
  background: rgba(49, 46, 129, 0.5);
  color: #a5b4fc;
  border-color: rgba(79, 70, 229, 0.5);
}

.xfh-pagination .page-link-active {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

/* Post detail body — premium Hindi + Hinglish novel reader */
.xfh-post-body,
.xfh-reader {
  /* Comfortable measure: ~60–72 characters */
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
  font-family: 'Noto Sans Devanagari', Inter, 'Segoe UI', system-ui, sans-serif;
  font-size: 1.125rem;          /* 18px — primary reading size */
  line-height: 1.85;
  letter-spacing: 0.012em;
  font-weight: 400;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #d8dee6;
  hanging-punctuation: first last;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.xfh-post-body > [data-content-for] > p:first-child,
.xfh-post-body > p:first-child {
  margin-top: 0.15em;
}
.xfh-post-body p {
  margin: 0 0 1.28em;
  orphans: 3;
  widows: 3;
}
.xfh-post-body p:last-child {
  margin-bottom: 0.35em;
}
.xfh-post-body br + br {
  display: block;
  content: '';
  margin-top: 0.7em;
}
.xfh-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.xfh-post-body a {
  color: #58a6ff;
}
.xfh-post-body blockquote {
  margin: 0.95em 0;
}

/* Devanagari-heavy chapters: more air for matras */
.hindi_lan.xfh-post-body,
.xfh-post-body.hindi_lan,
.mixed_lan.xfh-post-body,
.xfh-post-body.mixed_lan {
  font-size: 1.2rem;            /* ~19.2px */
  line-height: 2.02;
  letter-spacing: 0.018em;
  word-spacing: 0.05em;
  color: #e2e8f0;
}
.hindi_lan.xfh-post-body p,
.xfh-post-body.hindi_lan p,
.mixed_lan.xfh-post-body p,
.xfh-post-body.mixed_lan p {
  margin-bottom: 1.38em;
}

/* Story card reading surface */
.xfh-story-card .xfh-reader-pad {
  padding: 1.15rem 1.05rem 1.45rem;
}
@media (min-width: 640px) {
  .xfh-story-card .xfh-reader-pad {
    padding: 1.4rem 1.55rem 1.7rem;
  }
}
@media (min-width: 768px) {
  .xfh-story-card .xfh-reader-pad {
    padding: 1.55rem 1.95rem 1.95rem;
  }
  .xfh-post-body,
  .xfh-reader {
    font-size: 1.15rem;         /* ~18.4px desktop Latin/Hinglish */
    line-height: 1.9;
  }
  .hindi_lan.xfh-post-body,
  .xfh-post-body.hindi_lan,
  .mixed_lan.xfh-post-body,
  .xfh-post-body.mixed_lan {
    font-size: 1.25rem;         /* 20px desktop Hindi */
    line-height: 2.08;
  }
}

/* Thread title — readable with mixed scripts */
.xfh-thread-title {
  font-family: 'Noto Sans Devanagari', 'Hanken Grotesk', Inter, sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f0f3f6;
  text-wrap: balance;
}

/* Chapter / section cues */
.xfh-post-body p.xfh-ch-title,
.xfh-post-body .xfh-ch-title {
  margin: 1.75em 0 1.05em;
  padding: 0.6em 0 0.5em;
  font-size: 1.14em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f0c14d;
  border-bottom: 1px solid rgba(210, 153, 34, 0.35);
}
.xfh-post-body p.xfh-ch-cue,
.xfh-post-body .xfh-ch-cue {
  margin: 1.35em 0 0.95em;
  padding: 0.5em 0.8em;
  font-weight: 650;
  color: #e3b341;
  background: rgba(210, 153, 34, 0.08);
  border-left: 3px solid rgba(210, 153, 34, 0.55);
  border-radius: 0 4px 4px 0;
}

/* Dialogue lines */
.xfh-post-body p.xfh-dialogue,
.xfh-post-body .xfh-dialogue {
  margin: 0.9em 0;
  padding: 0.4em 0 0.4em 0.9em;
  border-left: 3px solid rgba(88, 166, 255, 0.45);
  color: #e6edf3;
}
.xfh-post-body .xfh-speaker {
  font-weight: 700;
  color: #79b8ff;
  margin-right: 0.15em;
}

/* Quoted speech inside narration */
.xfh-post-body .xfh-quote {
  color: #e8eef5;
  font-weight: 500;
}

/* Inner thoughts / monologue */
.xfh-post-body em.xfh-thought,
.xfh-post-body .xfh-thought {
  font-style: italic;
  font-weight: 400;
  color: #c9d1d9;
  opacity: 0.95;
}

/* Short emotional beat paragraphs — breathing space only */
.xfh-post-body p.xfh-beat,
.xfh-post-body .xfh-beat {
  margin: 1.35em 0;
  padding: 0.15em 0;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #eef2f7;
}

/* Highlight-style keyword emphasis (render-time) */
.xfh-post-body strong.xfh-kw,
.xfh-post-body .xfh-kw {
  font-weight: 700;
  color: #f2cc60;
  letter-spacing: 0.01em;
}

/* Replies stay denser — don't force story reader measure */
.xfh-reply-body.xfh-post-body {
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.7;
}

[data-theme="light"] .xfh-post-body p.xfh-ch-title,
[data-theme="light"] .xfh-post-body .xfh-ch-title {
  color: #9a6700;
  border-bottom-color: rgba(154, 103, 0, 0.3);
}
[data-theme="light"] .xfh-post-body p.xfh-ch-cue,
[data-theme="light"] .xfh-post-body .xfh-ch-cue {
  color: #9a6700;
  background: rgba(210, 153, 34, 0.1);
  border-left-color: rgba(154, 103, 0, 0.45);
}
[data-theme="light"] .xfh-post-body p.xfh-dialogue,
[data-theme="light"] .xfh-post-body .xfh-dialogue {
  border-left-color: rgba(37, 99, 235, 0.4);
  color: var(--xf-on-variant, #1f2328);
}
[data-theme="light"] .xfh-post-body .xfh-speaker {
  color: #1d4ed8;
}
[data-theme="light"] .xfh-post-body .xfh-quote {
  color: #24292f;
}
[data-theme="light"] .xfh-post-body em.xfh-thought,
[data-theme="light"] .xfh-post-body .xfh-thought {
  color: #57606a;
}
[data-theme="light"] .xfh-post-body p.xfh-beat,
[data-theme="light"] .xfh-post-body .xfh-beat {
  color: #0d1117;
}
[data-theme="light"] .xfh-post-body strong.xfh-kw,
[data-theme="light"] .xfh-post-body .xfh-kw {
  color: #9a6700;
}

/* ========== Page + image skeleton / lazy-load ========== */
@keyframes xfh-skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes xfh-skel-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

.xfh-page-skel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow: hidden;
  background: transparent;
}
body.xfh-page-loading .xfh-page-skel {
  opacity: 1;
}
.xfh-page-skel-bar {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, #388bfd, #58a6ff, #388bfd);
  border-radius: 0 2px 2px 0;
  animation: xfh-skel-bar 1.1s ease-in-out infinite;
}
body.xfh-page-loading .xfh-page-content {
  opacity: 0.55;
}
.xfh-page-content {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.xfh-img-skel {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  border-radius: 6px;
  overflow: hidden;
  background: #21262d;
  line-height: 0;
}
.xfh-img-skel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #21262d 0%,
    #30363d 40%,
    #3d444d 50%,
    #30363d 60%,
    #21262d 100%
  );
  background-size: 200% 100%;
  animation: xfh-skel-shimmer 1.35s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.xfh-img-skel.is-loaded::before,
.xfh-img-skel.is-error::before {
  opacity: 0;
  animation: none;
}
.xfh-img-skel img.lazy,
.xfh-post-body img.lazy,
img.lazy {
  max-width: 100%;
  height: auto;
  min-height: 48px;
  opacity: 0.35;
  filter: blur(2px);
  transition: opacity 0.4s ease, filter 0.4s ease;
  background: transparent;
}
.xfh-img-skel.is-loaded img,
.xfh-img-skel img.xfh-img-loaded,
img.lazy.loaded,
img.lazy.xfh-img-loaded {
  opacity: 1;
  filter: none;
  min-height: 0;
}
.xfh-img-skel.is-error img {
  opacity: 0.5;
  filter: grayscale(0.4);
}

[data-theme="light"] .xfh-page-skel-bar {
  background: linear-gradient(90deg, #006194, #007bb9, #006194);
}
[data-theme="light"] .xfh-img-skel {
  background: #e5eeff;
}
[data-theme="light"] .xfh-img-skel::before {
  background: linear-gradient(
    90deg,
    #e5eeff 0%,
    #dce9ff 40%,
    #f8f9ff 50%,
    #dce9ff 60%,
    #e5eeff 100%
  );
  background-size: 200% 100%;
}
[data-theme="light"] body.xfh-page-loading .xfh-page-content {
  opacity: 0.7;
}

/* ========== Light / Dark theme overrides ==========
   Light palette from public/themes/xfh/index.light.html (MD3 blue surface)
   Dark structure unchanged — only colors remapped below.
*/
[data-theme="light"] {
  color-scheme: light;
  --xf-bg: #f8f9ff;
  --xf-surface: #ffffff;
  --xf-surface-low: #eff4ff;
  --xf-surface-mid: #e5eeff;
  --xf-surface-high: #dce9ff;
  --xf-surface-highest: #d3e4fe;
  --xf-border: #bfc7d2;
  --xf-outline: #707881;
  --xf-on-surface: #0b1c30;
  --xf-on-variant: #3f4850;
  --xf-primary: #006194;
  --xf-primary-hover: #007bb9;
  --xf-primary-soft: #cce5ff;
}
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="light"] body {
  background-color: var(--xf-bg) !important;
  color: var(--xf-on-surface) !important;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="light"] ::selection {
  background-color: var(--xf-primary-soft);
  color: #001d31;
}

/* Core xf* tokens → light surfaces */
[data-theme="light"] .bg-xfDarkBg { background-color: var(--xf-bg) !important; }
[data-theme="light"] .bg-xfCardBg { background-color: var(--xf-surface) !important; }
[data-theme="light"] .bg-xfSubNav,
[data-theme="light"] .bg-xfSubNav\/90 { background-color: var(--xf-surface-low) !important; }
[data-theme="light"] .bg-xfHover,
[data-theme="light"] .bg-xfHover\/60,
[data-theme="light"] .bg-xfHover\/40 { background-color: var(--xf-surface-mid) !important; }
[data-theme="light"] .border-xfBorder,
[data-theme="light"] .border-xfBorderMuted,
[data-theme="light"] .divide-xfBorder > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--xf-border) !important;
}
[data-theme="light"] .border-xfAccent { border-color: var(--xf-primary) !important; }
[data-theme="light"] .text-xfAccent { color: var(--xf-primary) !important; }

/* Neutrals → on-surface hierarchy */
[data-theme="light"] .text-gray-200 { color: var(--xf-on-surface) !important; }
[data-theme="light"] .text-gray-300 { color: var(--xf-on-variant) !important; }
[data-theme="light"] .text-gray-400 { color: var(--xf-outline) !important; }
[data-theme="light"] .text-gray-500 { color: var(--xf-outline) !important; }
[data-theme="light"] .text-gray-600 { color: #8a929c !important; }
[data-theme="light"] .placeholder-gray-500::placeholder { color: var(--xf-outline) !important; }

/* Headings / white text on dark cards → ink */
[data-theme="light"] h1.text-white,
[data-theme="light"] h2.text-white,
[data-theme="light"] h3.text-white,
[data-theme="light"] h4.text-white,
[data-theme="light"] .text-white,
[data-theme="light"] span.text-white.font-semibold,
[data-theme="light"] span.font-semibold.text-white { color: var(--xf-on-surface) !important; }
[data-theme="light"] header .text-xl.text-white,
[data-theme="light"] header .text-xl.font-black { color: var(--xf-primary) !important; }
[data-theme="light"] header nav a.text-white,
[data-theme="light"] header nav a.font-semibold { color: var(--xf-primary) !important; }
[data-theme="light"] header nav a.text-gray-300 { color: var(--xf-on-variant) !important; }
[data-theme="light"] header {
  box-shadow: 0 1px 2px rgba(11, 28, 48, 0.06);
}

/* Primary / accent blues (index.light primary #006194) */
[data-theme="light"] .text-blue-400,
[data-theme="light"] .text-blue-300,
[data-theme="light"] .text-blue-200,
[data-theme="light"] .hover\:text-blue-400:hover { color: var(--xf-primary) !important; }
[data-theme="light"] .text-blue-500 { color: var(--xf-primary-hover) !important; }
[data-theme="light"] .bg-blue-600,
[data-theme="light"] .bg-blue-500,
[data-theme="light"] a.bg-blue-600,
[data-theme="light"] button.bg-blue-600 {
  background-color: var(--xf-primary) !important;
  color: #ffffff !important;
}
[data-theme="light"] .hover\:bg-blue-500:hover,
[data-theme="light"] .hover\:bg-blue-600:hover {
  background-color: var(--xf-primary-hover) !important;
  color: #ffffff !important;
}
[data-theme="light"] .bg-amber-600,
[data-theme="light"] .bg-amber-500,
[data-theme="light"] .bg-emerald-600,
[data-theme="light"] a.bg-blue-600.text-white,
[data-theme="light"] button.bg-blue-600 .text-white,
[data-theme="light"] .bg-blue-600 .text-white,
[data-theme="light"] .bg-blue-600 i,
[data-theme="light"] .bg-blue-500 i {
  color: #ffffff !important;
}
[data-theme="light"] .border-blue-500,
[data-theme="light"] .focus\:border-blue-500:focus,
[data-theme="light"] .focus\:ring-blue-500:focus {
  border-color: var(--xf-primary) !important;
}
[data-theme="light"] .focus\:ring-blue-500:focus,
[data-theme="light"] .focus\:ring-1.focus\:ring-blue-500:focus {
  --tw-ring-color: var(--xf-primary);
}
[data-theme="light"] .ring-blue-500 { --tw-ring-color: var(--xf-primary); }

/* Hardcoded dark hex utilities → light surfaces */
[data-theme="light"] .bg-\[\#0d1117\],
[data-theme="light"] .bg-\[\#161b22\] { background-color: var(--xf-surface) !important; }
[data-theme="light"] .bg-\[\#1c222b\] { background-color: var(--xf-surface-low) !important; }
[data-theme="light"] .bg-\[\#21262d\],
[data-theme="light"] .bg-\[\#252b34\] { background-color: var(--xf-surface-mid) !important; }
[data-theme="light"] .bg-\[\#30363d\] { background-color: var(--xf-surface-highest) !important; }
[data-theme="light"] .hover\:bg-\[\#30363d\]:hover,
[data-theme="light"] .hover\:bg-\[\#252b34\]:hover { background-color: var(--xf-surface-high) !important; }
[data-theme="light"] .hover\:border-\[\#484f58\]:hover { border-color: var(--xf-outline) !important; }
[data-theme="light"] .hover\:text-white:hover { color: var(--xf-primary) !important; }
[data-theme="light"] .hover\:bg-xfHover\/40:hover,
[data-theme="light"] .hover\:bg-xfHover\/60:hover { background-color: var(--xf-surface-mid) !important; }

/* Secondary / ghost buttons stay readable */
[data-theme="light"] a.bg-\[\#21262d\].text-gray-200,
[data-theme="light"] a.bg-\[\#21262d\].text-white,
[data-theme="light"] button.bg-\[\#21262d\] {
  color: var(--xf-on-surface) !important;
  border-color: var(--xf-border) !important;
}

[data-theme="light"] #xfh-theme-select {
  background-color: var(--xf-surface) !important;
  color: var(--xf-on-surface) !important;
  border-color: var(--xf-border) !important;
}
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--xf-surface-low); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #afb8c1; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--xf-outline); }
[data-theme="light"] .user-arrow-point {
  border-left-color: var(--xf-surface);
}

/* Soft pastel category badges (index.light prefix chips) */
[data-theme="light"] .category-badge.incest {
  background: #faf5ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}
[data-theme="light"] .category-badge.adultery {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}
[data-theme="light"] .category-badge.erotica {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
[data-theme="light"] .category-badge.fantasy {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
[data-theme="light"] .category-badge.romance {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}
[data-theme="light"] .category-badge.interfaith {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}
[data-theme="light"] .category-badge.special-sex-stories {
  background: #fdf4ff;
  color: #a21caf;
  border-color: #f5d0fe;
}
[data-theme="light"] .category-badge.mix-hot-collections {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
[data-theme="light"] .category-badge.hottest-hindi-sex-story {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}
[data-theme="light"] .category-badge.default {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

[data-theme="light"] .xfh-pagination .page-link-active {
  background: var(--xf-primary);
}
[data-theme="light"] .xfh-post-body a {
  color: var(--xf-primary);
}
[data-theme="light"] .xfh-post-body,
[data-theme="light"] .xfh-reader {
  color: #1f2328;
}
[data-theme="light"] .hindi_lan.xfh-post-body,
[data-theme="light"] .xfh-post-body.hindi_lan,
[data-theme="light"] .mixed_lan.xfh-post-body,
[data-theme="light"] .xfh-post-body.mixed_lan {
  color: #161b22;
}
[data-theme="light"] .xfh-thread-title {
  color: #0d1117;
}

/* ========== Quill editor — readable on both themes ========== */
.xfh-quill-wrap {
  border-radius: 6px;
  overflow: visible;
}
.xfh-quill-wrap .ql-toolbar.ql-snow {
  border: 1px solid #30363d;
  border-radius: 6px 6px 0 0;
  background: #21262d;
  color: #e6edf3;
  padding: 6px 8px;
}
.xfh-quill-wrap .ql-container.ql-snow {
  border: 1px solid #30363d;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #0d1117;
  min-height: 160px;
  font-size: 15px;
}
.xfh-quill-wrap .ql-editor {
  color: #e6edf3 !important;
  min-height: 140px;
  line-height: 1.6;
}
.xfh-quill-wrap .ql-editor.ql-blank::before {
  color: #8b949e !important;
  font-style: normal;
  opacity: 1;
}
.xfh-quill-wrap .ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Toolbar icon strokes / fills — light on dark toolbar */
.xfh-quill-wrap .ql-snow .ql-stroke {
  stroke: #c9d1d9 !important;
}
.xfh-quill-wrap .ql-snow .ql-fill,
.xfh-quill-wrap .ql-snow .ql-stroke.ql-fill {
  fill: #c9d1d9 !important;
}
.xfh-quill-wrap .ql-snow .ql-picker {
  color: #e6edf3 !important;
}
.xfh-quill-wrap .ql-snow .ql-picker-label {
  color: #e6edf3 !important;
  border-color: transparent;
}
.xfh-quill-wrap .ql-snow .ql-picker-label:hover,
.xfh-quill-wrap .ql-snow .ql-picker-label.ql-active {
  color: #58a6ff !important;
}
.xfh-quill-wrap .ql-snow .ql-picker-options {
  background-color: #161b22 !important;
  border: 1px solid #30363d !important;
  color: #e6edf3 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 60;
}
.xfh-quill-wrap .ql-snow .ql-picker-item {
  color: #e6edf3 !important;
}
.xfh-quill-wrap .ql-snow .ql-picker-item:hover,
.xfh-quill-wrap .ql-snow .ql-picker-item.ql-selected {
  color: #58a6ff !important;
  background: #21262d;
}
.xfh-quill-wrap .ql-snow .ql-tooltip {
  background: #161b22;
  border: 1px solid #30363d;
  color: #e6edf3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 70;
}
.xfh-quill-wrap .ql-snow .ql-tooltip input[type="text"] {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #e6edf3;
}
.xfh-quill-wrap .ql-snow .ql-tooltip a {
  color: #58a6ff;
}
.xfh-quill-wrap .ql-snow button:hover,
.xfh-quill-wrap .ql-snow button:focus,
.xfh-quill-wrap .ql-snow button.ql-active {
  color: #58a6ff;
}
.xfh-quill-wrap .ql-snow button:hover .ql-stroke,
.xfh-quill-wrap .ql-snow button:focus .ql-stroke,
.xfh-quill-wrap .ql-snow button.ql-active .ql-stroke {
  stroke: #58a6ff !important;
}
.xfh-quill-wrap .ql-snow button:hover .ql-fill,
.xfh-quill-wrap .ql-snow button.ql-active .ql-fill {
  fill: #58a6ff !important;
}
.xfh-quill-wrap .ql-uploading {
  opacity: 0.6;
  pointer-events: none;
}

/* Light site theme → light editor chrome (index.light palette) */
[data-theme="light"] .xfh-quill-wrap .ql-toolbar.ql-snow {
  background: var(--xf-surface-low);
  border-color: var(--xf-border);
  color: var(--xf-on-surface);
}
[data-theme="light"] .xfh-quill-wrap .ql-container.ql-snow {
  background: var(--xf-surface);
  border-color: var(--xf-border);
}
[data-theme="light"] .xfh-quill-wrap .ql-editor {
  color: var(--xf-on-surface) !important;
}
[data-theme="light"] .xfh-quill-wrap .ql-editor.ql-blank::before {
  color: var(--xf-outline) !important;
}
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-stroke {
  stroke: var(--xf-on-variant) !important;
}
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-fill,
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-stroke.ql-fill {
  fill: var(--xf-on-variant) !important;
}
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-picker,
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-picker-label,
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-picker-item {
  color: var(--xf-on-surface) !important;
}
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-picker-options {
  background-color: var(--xf-surface) !important;
  border-color: var(--xf-border) !important;
  color: var(--xf-on-surface) !important;
}
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-picker-item:hover,
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-picker-item.ql-selected {
  background: var(--xf-surface-low);
  color: var(--xf-primary) !important;
}
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-tooltip {
  background: var(--xf-surface);
  border-color: var(--xf-border);
  color: var(--xf-on-surface);
}
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-tooltip input[type="text"] {
  background: var(--xf-surface);
  border-color: var(--xf-border);
  color: var(--xf-on-surface);
}
[data-theme="light"] .xfh-quill-wrap .ql-snow button:hover,
[data-theme="light"] .xfh-quill-wrap .ql-snow button.ql-active,
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-picker-label:hover,
[data-theme="light"] .xfh-quill-wrap .ql-snow .ql-picker-label.ql-active {
  color: var(--xf-primary) !important;
}
[data-theme="light"] .xfh-quill-wrap .ql-snow button:hover .ql-stroke,
[data-theme="light"] .xfh-quill-wrap .ql-snow button.ql-active .ql-stroke {
  stroke: var(--xf-primary) !important;
}
[data-theme="light"] .xfh-quill-wrap .ql-snow button:hover .ql-fill,
[data-theme="light"] .xfh-quill-wrap .ql-snow button.ql-active .ql-fill {
  fill: var(--xf-primary) !important;
}
[data-theme="light"] .xfh-emoji-picker {
  background: var(--xf-surface) !important;
  border-color: var(--xf-border) !important;
}

/* Keep white label on filled primary / success buttons */
[data-theme="light"] .bg-blue-600,
[data-theme="light"] .bg-blue-500,
[data-theme="light"] .bg-emerald-600,
[data-theme="light"] .bg-emerald-500,
[data-theme="light"] .bg-amber-600,
[data-theme="light"] .bg-amber-500,
[data-theme="light"] .bg-red-600 {
  color: #ffffff !important;
}
[data-theme="light"] .bg-blue-600 *,
[data-theme="light"] .bg-blue-500 *,
[data-theme="light"] .bg-emerald-600 *,
[data-theme="light"] .bg-emerald-500 *,
[data-theme="light"] a.bg-blue-600,
[data-theme="light"] a.bg-blue-600 *,
[data-theme="light"] button.bg-blue-600,
[data-theme="light"] button.bg-blue-600 * {
  color: #ffffff !important;
}

/* ========== Action loaders ========== */
@keyframes xfh-spin {
  to { transform: rotate(360deg); }
}
.xfh-btn-loading {
  position: relative !important;
  pointer-events: none !important;
  opacity: 0.75 !important;
  color: transparent !important;
}
.xfh-btn-loading > * {
  visibility: hidden !important;
}
.xfh-btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: xfh-spin 0.7s linear infinite;
}
.xfh-btn-loading.xfh-btn-loading-dark::after {
  border-color: rgba(88, 166, 255, 0.25);
  border-top-color: #58a6ff;
}

.xfh-action-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.xfh-action-overlay.is-on {
  display: flex;
}
.xfh-action-overlay-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e6edf3;
  font-size: 13px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.xfh-action-overlay-box .xfh-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(88, 166, 255, 0.25);
  border-top-color: #58a6ff;
  border-radius: 50%;
  animation: xfh-spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Reply vs story visual polish */
.xfh-reply-body {
  font-size: 14.5px;
}
.xfh-story-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Other-author story update (not a comment) — subtle cue only */
.xfh-other-author-card {
  box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.35), 0 1px 0 rgba(255, 255, 255, 0.02);
}
.xfh-other-author-card .user-arrow-point {
  border-left-color: #2a2438;
}

[data-theme="light"] .xfh-other-author-card {
  background: #faf8ff !important;
  border-color: #ddd6fe !important;
  border-left-color: #8b5cf6 !important;
  box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.25);
}
[data-theme="light"] .xfh-other-author-card .bg-\[\#12101a\],
[data-theme="light"] .xfh-other-author-card .bg-\[\#16121f\] {
  background-color: #f5f3ff !important;
}
[data-theme="light"] .xfh-other-author-card .text-violet-300,
[data-theme="light"] .xfh-other-author-card .text-violet-300\/90,
[data-theme="light"] .xfh-other-author-card .text-violet-200 {
  color: #6d28d9 !important;
}

[data-theme="light"] .xfh-reply-card {
  background: #f3faf6 !important;
  border-color: #a7f3d0 !important;
  border-left-color: #059669 !important;
}
[data-theme="light"] .xfh-reply-card .bg-\[\#0f161c\],
[data-theme="light"] .xfh-reply-card .bg-\[\#152018\] {
  background-color: #ecfdf5 !important;
}
[data-theme="light"] .xfh-action-overlay-box {
  background: #ffffff;
  border-color: #bfc7d2;
  color: #0b1c30;
}
[data-theme="light"] .xfh-btn-loading::after {
  border-color: rgba(0, 97, 148, 0.25);
  border-top-color: #006194;
}

/* ========== Responsive / mobile ========== */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
.xfh-page-content {
  min-width: 0;
}
.xfh-page-content img,
.xfh-page-content video,
.xfh-page-content iframe,
.xfh-post-body img {
  max-width: 100%;
  height: auto;
}
.xfh-post-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.xfh-post-body pre,
.xfh-post-body code {
  white-space: pre-wrap;
  word-break: break-word;
}
.xfh-post-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.xfh-scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.xfh-scroll-x::-webkit-scrollbar {
  height: 4px;
}
.xfh-prefix-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.375rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.xfh-prefix-row > * {
  flex-shrink: 0;
}

#xfh-mobile-nav[hidden] {
  display: none !important;
}
#xfh-mobile-nav.is-open {
  display: block !important;
}

/* ========== Search suggest dropdown (realtime animated) ========== */
@keyframes xfhSuggestIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes xfhSuggestItemIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes xfhSuggestPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@keyframes xfhSuggestShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes xfhSuggestLiveDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.55); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(63, 185, 80, 0); }
}

.xfh-suggest {
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  max-height: min(22rem, 70vh);
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(22, 27, 34, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 0.75rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(88, 166, 255, 0.08);
  transform-origin: top center;
}
.xfh-suggest-fixed {
  position: fixed;
  z-index: 9999;
}
.xfh-suggest[hidden] {
  display: none !important;
}
.xfh-suggest.is-open {
  animation: xfhSuggestIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.xfh-suggest.is-updating .xfh-suggest-item {
  opacity: 0.55;
}
.xfh-suggest-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b949e;
  pointer-events: none;
}
.xfh-suggest-heading span {
  flex-shrink: 0;
}
.xfh-suggest-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #30363d, transparent);
}
.xfh-suggest-heading-tags {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid #21262d;
  color: #d2a8ff;
}
.xfh-suggest-heading-tags::after {
  background: linear-gradient(90deg, rgba(210, 168, 255, 0.35), transparent);
}
.xfh-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #e6edf3;
  font-size: 0.75rem;
  line-height: 1.35;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  animation: xfhSuggestItemIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.xfh-suggest-item:nth-child(1) { animation-delay: 0.02s; }
.xfh-suggest-item:nth-child(2) { animation-delay: 0.04s; }
.xfh-suggest-item:nth-child(3) { animation-delay: 0.06s; }
.xfh-suggest-item:nth-child(4) { animation-delay: 0.08s; }
.xfh-suggest-item:nth-child(5) { animation-delay: 0.1s; }
.xfh-suggest-item:nth-child(6) { animation-delay: 0.12s; }
.xfh-suggest-item:nth-child(7) { animation-delay: 0.14s; }
.xfh-suggest-item:nth-child(8) { animation-delay: 0.16s; }
.xfh-suggest-item:nth-child(9) { animation-delay: 0.18s; }
.xfh-suggest-item:nth-child(10) { animation-delay: 0.2s; }
.xfh-suggest-item:nth-child(11) { animation-delay: 0.22s; }
.xfh-suggest-item:nth-child(12) { animation-delay: 0.24s; }
.xfh-suggest-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.15s ease;
}
.xfh-suggest-item:hover,
.xfh-suggest-item.is-active {
  background: linear-gradient(90deg, rgba(88, 166, 255, 0.14), rgba(31, 36, 44, 0.9));
  color: #fff;
  transform: translateX(2px);
}
.xfh-suggest-item:hover::before,
.xfh-suggest-item.is-active::before {
  background: #58a6ff;
}
.xfh-suggest-item.is-tag:hover,
.xfh-suggest-item.is-tag.is-active {
  background: linear-gradient(90deg, rgba(188, 140, 255, 0.16), rgba(31, 36, 44, 0.9));
}
.xfh-suggest-item.is-tag:hover::before,
.xfh-suggest-item.is-tag.is-active::before {
  background: #bc8cff;
}
.xfh-suggest-item .xfh-suggest-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xfh-suggest-mark {
  color: #79c0ff;
  font-weight: 700;
  background: rgba(88, 166, 255, 0.16);
  border-radius: 0.2rem;
  padding: 0 0.12rem;
}
.xfh-suggest-item.is-tag .xfh-suggest-mark {
  color: #e2c5ff;
  background: rgba(188, 140, 255, 0.18);
}
.xfh-suggest-ico {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  text-align: center;
  color: #58a6ff;
  font-size: 0.7rem;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.2);
}
.xfh-suggest-hash {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  color: #bc8cff;
  background: rgba(188, 140, 255, 0.12);
  border: 1px solid rgba(188, 140, 255, 0.25);
}
.xfh-suggest-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #30363d;
  color: #8b949e;
}
.xfh-suggest-badge.is-post {
  color: #58a6ff;
  border-color: rgba(88, 166, 255, 0.35);
  background: rgba(88, 166, 255, 0.1);
}
.xfh-suggest-badge.is-tag {
  color: #d2a8ff;
  border-color: rgba(210, 168, 255, 0.35);
  background: rgba(210, 168, 255, 0.1);
}
.xfh-suggest.is-lg .xfh-suggest-item {
  font-size: 0.875rem;
  padding: 0.6rem 0.75rem;
}
.xfh-suggest.is-lg .xfh-suggest-hash,
.xfh-suggest.is-lg .xfh-suggest-ico {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8rem;
}
.xfh-suggest.is-lg .xfh-suggest-hash {
  font-size: 1.05rem;
}
.xfh-suggest-empty {
  padding: 0.85rem 0.75rem;
  font-size: 0.8rem;
  color: #8b949e;
  text-align: center;
}
.xfh-suggest-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
  padding: 0.45rem 0.55rem 0.2rem;
  border-top: 1px solid #21262d;
  font-size: 0.65rem;
  color: #8b949e;
  pointer-events: none;
}
.xfh-suggest-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.xfh-suggest-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #3fb950;
  animation: xfhSuggestLiveDot 1.4s ease-in-out infinite;
}
.xfh-suggest-live.is-busy .xfh-suggest-live-dot {
  background: #58a6ff;
  animation: xfhSuggestPulse 0.8s ease-in-out infinite;
}
.xfh-suggest-skel {
  padding: 0.45rem 0.55rem;
}
.xfh-suggest-skel-row {
  height: 0.85rem;
  border-radius: 0.35rem;
  margin: 0.45rem 0;
  background: linear-gradient(90deg, #21262d 0%, #30363d 45%, #21262d 90%);
  background-size: 200% 100%;
  animation: xfhSuggestShimmer 1.1s linear infinite;
}
.xfh-suggest-skel-row:nth-child(1) { width: 88%; }
.xfh-suggest-skel-row:nth-child(2) { width: 72%; }
.xfh-suggest-skel-row:nth-child(3) { width: 80%; }
.xfh-suggest-skel-row:nth-child(4) { width: 64%; }

@media (prefers-reduced-motion: reduce) {
  .xfh-suggest.is-open,
  .xfh-suggest-item,
  .xfh-suggest-live-dot,
  .xfh-suggest-skel-row {
    animation: none !important;
  }
  .xfh-suggest-item:hover,
  .xfh-suggest-item.is-active {
    transform: none;
  }
}

[data-theme="light"] .xfh-suggest {
  background: rgba(255, 255, 255, 0.97);
  border-color: #d0d7de;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
[data-theme="light"] .xfh-suggest-item {
  color: #1f2328;
}
[data-theme="light"] .xfh-suggest-item:hover,
[data-theme="light"] .xfh-suggest-item.is-active {
  background: linear-gradient(90deg, rgba(9, 105, 218, 0.08), #f6f8fa);
  color: #0d1117;
}
[data-theme="light"] .xfh-suggest-heading {
  color: #656d76;
}
[data-theme="light"] .xfh-suggest-heading::after,
[data-theme="light"] .xfh-suggest-heading-tags,
[data-theme="light"] .xfh-suggest-foot {
  border-color: #d0d7de;
}
[data-theme="light"] .xfh-suggest-heading-tags {
  color: #8250df;
}
[data-theme="light"] .xfh-suggest-mark {
  color: #0969da;
  background: rgba(9, 105, 218, 0.12);
}
[data-theme="light"] .xfh-suggest-skel-row {
  background: linear-gradient(90deg, #eaeef2 0%, #f6f8fa 45%, #eaeef2 90%);
  background-size: 200% 100%;
}

/* Quill editor mobile */
.xfh-quill-wrap .ql-toolbar.ql-snow {
  display: flex;
  flex-wrap: wrap;
  padding: 4px;
}
.xfh-quill-wrap .ql-container.ql-snow {
  font-size: 15px;
}
.xfh-quill-wrap .ql-editor {
  min-height: 120px;
}

/* Semantic SEO headings that keep Tailwind visual styles (no browser h* chrome) */
.xfh-seo-heading {
  margin: 0;
  padding: 0;
}
@media (max-width: 640px) {
  .xfh-page-content h1:not(.xfh-seo-heading):not(.xfh-thread-title) {
    font-size: 1.25rem;
    line-height: 1.35;
    word-break: break-word;
  }
  .xfh-page-content h2:not(.xfh-seo-heading) {
    font-size: 1.1rem;
  }
  .xfh-page-content h2.xfh-seo-heading,
  .xfh-page-content h3.xfh-seo-heading,
  .xfh-page-content h4.xfh-seo-heading {
    font-size: inherit;
    line-height: inherit;
  }
  /* Auth / form cards */
  .xfh-auth-card-head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .xfh-auth-secure {
    display: none;
  }
  /* Replies stay compact on small screens; story body keeps reading size */
  .xfh-reply-card .xfh-post-body,
  .xfh-reply-body {
    font-size: 0.9375rem;
    line-height: 1.65;
  }
  .xfh-story-card .xfh-post-body:not(.xfh-reply-body) {
    font-size: 1.075rem;        /* ~17.2px floor on phones */
    line-height: 1.88;
  }
  .xfh-story-card .hindi_lan.xfh-post-body,
  .xfh-story-card .xfh-post-body.hindi_lan,
  .xfh-story-card .mixed_lan.xfh-post-body,
  .xfh-story-card .xfh-post-body.mixed_lan {
    font-size: 1.14rem;         /* ~18.25px Hindi on phones */
    line-height: 2;
  }
  .xfh-story-card .xfh-reader-pad {
    padding: 1rem 0.9rem 1.25rem;
  }
  /* Filters modal full-bleed feel */
  #xfh-filters-modal > div {
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 380px) {
  header .font-display {
    font-size: 1rem;
  }
}
