@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/divan/assets/fonts/IRANSansX-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/divan/assets/fonts/IRANSansX-Bold.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --card: #ffffff;
  --ink: #1b1d21;
  --muted: #6b7280;
  --line: #e6e8eb;
  --accent: #1f4e79;
  --accent-soft: rgba(31, 78, 121, 0.08);
  --danger: #b42318;
  --radius: 14px;
  --dock-h: 64px;
  --top-h: 56px;
  --font: "IRANSans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.85;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
body *:not(i):not([class*="fa-"]):not(.fa):not(.fa-light) {
  font-family: var(--font);
}
i[class*="fa-"], .fa-light {
  font-family: "Font Awesome 6 Pro" !important;
  font-weight: 300 !important;
}
[v-cloak] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
button, input { font: inherit; color: inherit; }
button {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 0.8rem 2.8rem 0.8rem 1rem;
  outline: none;
}
input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}
input[type="search"]::placeholder { color: var(--muted); }

.seo-crawl img {
  max-width: 100%;
  object-fit: cover;
  vertical-align: middle;
}
.seo-crawl .poet-ssr-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 8px;
}
.seo-crawl .poet-ssr-avatar {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  object-fit: cover;
}
.seo-crawl .bio-teaser-img {
  display: block;
  width: 220px;
  height: 280px;
  max-width: min(100%, 220px);
  border-radius: 12px;
  object-fit: cover;
  float: right;
  margin: 0 0 0.75rem 1rem;
}
.seo-crawl .poet-bio-teaser::after {
  content: "";
  display: block;
  clear: both;
}
#app { display: none; }
body.js-app #seo-crawl { display: none !important; }
body.js-app #app { display: block !important; }
html.nf-bot #app { display: none !important; }
html.nf-bot .seo-crawl { display: block !important; }
#app { min-height: 100dvh; }

#app {
  min-height: 100dvh;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
}

.shell-top {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.shell-top-inner {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--top-h);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0.45rem 0.85rem;
  padding-top: calc(0.45rem + env(safe-area-inset-top));
}
.user-btn { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.site-title {
  margin: 0;
  flex-shrink: 0;
  direction: rtl;
  text-align: right;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.15;
}
.site-title a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.site-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-logo-img {
  width: auto;
  height: 28px;
  max-width: 72px;
  object-fit: contain;
  display: block;
}
.site-logo-img.square {
  width: 40px;
  height: 40px;
  max-width: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.site-title strong { font-size: 1.02rem; font-weight: 700; }
.site-title em { font-style: normal; font-size: 0.68rem; color: var(--muted); }
.site-menu { position: relative; flex-shrink: 0; direction: ltr; }
.menu-bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.site-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  z-index: 60;
  min-width: 11.5rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.site-dropdown a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.75rem;
  border-radius: 10px;
  color: inherit;
  font-size: 0.9rem;
}
.site-dropdown a:hover { background: var(--bg-soft); color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; font-weight: 700; }
.brand-text em { font-style: normal; font-size: 0.68rem; color: var(--muted); }
.top-actions { display: flex; gap: 0.35rem; align-items: center; flex-shrink: 0; }

.header-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  max-width: none;
  direction: rtl;
}
.header-search .search-field { flex: 1; min-width: 0; }
.header-search input[type="search"] {
  padding: 0.48rem 2.2rem 0.48rem 0.75rem;
  font-size: 0.9rem;
  background: var(--bg-soft);
}
.header-search .search-go {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.header-search .kind-trigger {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.kind-menu { position: relative; flex-shrink: 0; }
.kind-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 60;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.kind-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: right;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.86rem;
}
.kind-dropdown button i { width: 1.1rem; color: var(--muted); }
.kind-dropdown button.on,
.kind-dropdown button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.kind-dropdown button.on i,
.kind-dropdown button:hover i { color: var(--accent); }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
a.icon-btn { color: inherit; }
.icon-btn.on, .icon-btn:hover { color: var(--accent); border-color: #d7e3ef; }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.search-field { position: relative; flex: 1; }
.search-field .fa-magnifying-glass,
.search-field .fa-user {
  position: absolute;
  right: 12px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0.85rem 1rem 1rem;
}
.stage { position: relative; min-height: 40vh; }
.top-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 80;
  overflow: hidden;
  background: var(--accent-soft);
  pointer-events: none;
}
.top-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 35%;
  background: var(--accent);
  animation: loadslide 0.85s ease-in-out infinite alternate;
}
@keyframes loadslide {
  from { transform: translateX(180%); }
  to { transform: translateX(-280%); }
}

.hero { margin: 0.2rem 0 1rem; }
.hero h1 { margin: 0 0 0.35rem; font-size: clamp(1.35rem, 5vw, 1.8rem); font-weight: 700; }
.hero p { margin: 0; color: var(--muted); }

.home-faq {
  margin: 1.4rem 0 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.home-faq h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.home-faq details {
  margin: 0 0 0.45rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.home-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq details p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.intent-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0 0 0.95rem;
}
.intent-row a {
  display: inline-flex; align-items: center;
  min-height: 38px; padding: 0 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.86rem; font-weight: 700;
}

.filter-chip { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; align-items: center; }

.poet-grid {
  display: grid;
  gap: 0.55rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
.poet-card, .cat-row, .poem-list button, .poem-list a {
  width: 100%;
  text-align: right;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.poet-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  min-height: 72px;
  contain: layout paint;
}
.poet-card:hover, .cat-row:hover, .poem-list button:hover, .poem-list a:hover { border-color: #c5d4e3; }
.shelf-title { font-size: 1rem; margin: .6rem 0 .4rem; color: var(--muted, #64748b); }
.comments { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line, #e6e8eb); }
.comments h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.comment { padding: .6rem 0; border-bottom: 1px dashed var(--line, #e6e8eb); }
.comment-lead { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin: 0 0 .7rem; }
.comment-form input[type="text"],
.comment-form textarea {
  width: 100%; border: 1px solid var(--line, #e6e8eb); border-radius: 12px; padding: .7rem; font: inherit; margin: 0 0 .5rem;
}
.comment-hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.comment-file { display: block; font-size: .85rem; color: var(--muted, #64748b); margin: 0 0 .6rem; }
.comment-file input { display: block; margin-top: .35rem; max-width: 100%; }
.comment-photo { display: block; width: min(100%, 240px); height: auto; border-radius: 12px; margin: .45rem 0; }
.comment-replies { margin: .35rem 0 .2rem; padding-right: .8rem; border-right: 2px solid var(--line, #e6e8eb); }
.comment-reply-note { font-size: .85rem; margin: 0 0 .4rem; }
.comment .text-btn { margin-top: .2rem; }
.poet-photo {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  aspect-ratio: 1 / 1;
  background: #e8eef5;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.poet-photo-lg {
  width: 96px; height: 96px; border-radius: 50%;
  aspect-ratio: 1 / 1;
  border: 2px solid #e2e8f0;
}
.poet-initial {
  width: 48px; height: 48px; border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  flex-shrink: 0;
}
.poet-card.featured .poet-photo {
  width: 56px; height: 56px;
}
.poet-card.featured {
  border-color: #c9d7e8;
  background: linear-gradient(135deg, #fff 0%, #f4f8fc 100%);
}
.poet-links {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin: 0.35rem 0 0; font-size: 0.88rem;
}
.poet-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.poet-body { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.poet-body strong { font-weight: 700; }
.poet-body small, .poet-body em { font-style: normal; color: var(--muted); font-size: 0.78rem; }

.poet-head { display: flex; gap: 0.9rem; align-items: center; margin: 0.4rem 0 0.9rem; }
.poet-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin: 0.35rem 0 1rem;
}
.poet-badge {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; font-weight: 700;
}
.poet-badge-lg {
  width: 96px; height: 96px; border-radius: 24px; font-size: 2rem;
}
.poet-head h1 { margin: 0; font-size: 1.3rem; }
.poet-head-center h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 700;
}
.poet-head-center h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
}
.poet-head-center .poet-links { justify-content: center; margin-top: 0.15rem; }
.stats { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.85rem; }
.muted { color: var(--muted); }
.poet-bio-teaser {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.poet-bio-teaser h2 { margin: 0 0 0.5rem; font-size: 1.02rem; }
.poet-bio-teaser p {
  margin: 0 0 0.7rem;
  color: var(--text);
  line-height: 1.9;
  text-align: justify;
  font-size: 0.95rem;
}
.bio-page { max-width: 48rem; margin: 0 auto; }
.bio-head {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin: 0 0 1.4rem;
  flex-wrap: wrap;
}
.bio-hero-link {
  position: relative;
  display: block;
  flex: 0 0 auto;
  max-width: min(100%, 280px);
  text-decoration: none;
  color: inherit;
}
.bio-hero {
  width: 280px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  background: var(--bg-soft);
  display: block;
}
.bio-zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
}
.bio-zoom-hint {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  background: rgba(20, 16, 12, 0.72);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}
.bio-article h2 {
  margin: 1.6rem 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.6;
}
.bio-article h3 {
  margin: 1.2rem 0 0.5rem;
  font-size: 1.02rem;
}
.bio-article p {
  margin: 0 0 0.9rem;
  line-height: 2;
  text-align: justify;
  font-size: 0.98rem;
}
.bio-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.2rem 0 1.6rem;
}
@media (min-width: 720px) {
  .bio-gallery { grid-template-columns: 1fr 1fr; }
  .bio-shot-lead { grid-column: 1 / -1; }
}
.bio-gallery figure { margin: 0; }
.bio-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: var(--bg-soft);
}
.bio-shot-lead img { aspect-ratio: 3 / 4; }
.bio-gallery figcaption {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.bio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 6, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem 4rem;
}
.bio-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}
.bio-lightbox-close,
.bio-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.8rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
}
.bio-lightbox-close { top: 0.8rem; left: 0.8rem; }
.bio-lightbox-nav.prev { right: 0.6rem; top: 50%; transform: translateY(-50%); }
.bio-lightbox-nav.next { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.bio-lightbox-cap {
  position: absolute;
  bottom: 0.8rem;
  left: 1rem;
  right: 1rem;
  text-align: center;
  color: #eee;
  font-size: 0.9rem;
  margin: 0;
}
.bio-source { font-size: 0.82rem; color: var(--muted); }
.poet-bio-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.poet-bio-toggle:hover { text-decoration: underline; }
.poet-search { margin-bottom: 0.85rem; }
.shelf-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.desc {
  color: var(--muted); line-height: 1.8; font-size: 0.9rem;
  margin: 0 0 1rem; padding: 0.85rem;
  border: 1px solid var(--line); border-radius: 12px; max-height: 8rem; overflow: auto;
}
.sec-title { margin: 0.4rem 0 0.65rem; font-size: 0.8rem; color: var(--muted); font-weight: 700; }

.cat-list { display: grid; gap: 0.45rem; margin-bottom: 0.8rem; }
.view-poet .cat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (max-width: 720px) {
  .view-poet .cat-grid { grid-template-columns: 1fr; }
}
@media (min-width: 721px) and (max-width: 960px) {
  .view-poet .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.view-poet .cat-row {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
  min-height: 72px;
  padding: 0.75rem 0.85rem;
  text-align: right;
}
.view-poet .cat-row i {
  align-self: flex-end;
  color: var(--accent);
  opacity: 0.85;
}
.cat-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 54px; padding: 0.8rem 1rem;
}
.cat-row-text { display: flex; flex-direction: column; gap: 0.12rem; }
.cat-row-text small { color: var(--muted); font-size: 0.78rem; }
.cat-row em {
  font-style: normal; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px;
  padding: 0.15rem 0.55rem; font-size: 0.8rem; font-weight: 700;
}

.crumb {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  color: var(--muted); font-size: 0.8rem; margin-bottom: 0.75rem;
}
.crumb a { color: var(--accent); }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.list-head h1 { margin: 0; font-size: 1.25rem; }
.count { color: var(--muted); font-size: 0.82rem; }

.poem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.poem-list button, .poem-list a {
  padding: 0.85rem 1rem; min-height: 58px;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.poem-list .tag { color: var(--accent); font-size: 0.76rem; }
.poem-list small {
  color: var(--muted); font-size: 0.8rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
mark.search-hit, .search-hit {
  background: #000;
  color: #fff !important;
  padding: 0.08em 0.25em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.kind-row {
  display: grid; gap: 0.4rem; margin-bottom: 1rem;
}
.kind-row button,
.kind-row a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 12px;
  text-align: right; width: 100%;
}
.kind-row i { color: var(--accent); width: 1.2rem; text-align: center; }

.view-poem { padding-bottom: 1rem; }
.poem-head { text-align: center; margin: 0.3rem 0 1.2rem; }
.poet-line { margin: 0; color: var(--accent); font-weight: 700; }
.poem-head h1 { margin: 0.3rem 0; font-size: clamp(1.05rem, 3.6vw, 1.35rem); line-height: 1.7; font-weight: 700; }
.cat-line { margin: 0; color: var(--muted); font-size: 0.85rem; }

.verses { display: grid; gap: 0.65rem; max-width: none; margin: 0 auto; width: 100%; }
.couplet {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
.couplet .mesra {
  margin: 0;
  text-align: center;
  line-height: 2.2;
  font-size: clamp(1.08rem, 3.4vw, 1.22rem);
  font-weight: 400;
  letter-spacing: 0.015em;
}
.plain {
  white-space: pre-wrap; text-align: center; line-height: 2.1;
  font-family: inherit; max-width: 42rem; margin: 0 auto;
}
.related-searches {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.related-searches h2 { margin: 0 0 0.55rem; font-size: 0.95rem; }
.related-searches a, .related-searches li {
  display: inline-block;
  margin: 0 0 0.4rem 0.55rem;
  color: var(--accent);
  font-weight: 600;
}
.recitation {
  margin: 1.1rem auto 0;
  max-width: 40rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.recitation audio { width: 100%; }
.recitation figcaption {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.poem-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  max-width: 28rem;
  width: 100%;
  margin: 1.3rem auto 0;
}
.poem-nav .icon-btn { width: 100%; height: 44px; }

.view-fal { padding-top: 0.2rem; }
.fal-sheet {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 1.15rem 0.6rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(27, 29, 33, 0.04);
  position: relative;
}
.fal-sheet::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  position: absolute;
  inset-inline: 0;
  top: 0;
}
.fal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-width: 22rem;
  margin: 1.3rem auto 0;
}
.fal-actions-4 { max-width: 26rem; grid-template-columns: 1fr 1fr; }
.fal-hope {
  max-width: 36rem;
  margin: 1.4rem auto 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4f8f4;
}
.fal-hope h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.fal-hope > p { margin: 0 0 .7rem; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.fal-hope textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem;
  font: inherit;
  margin: .6rem 0;
}
.hope-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hope-chips button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .82rem;
  font-weight: 600;
}
.hope-chips button.on { border-color: var(--accent); color: var(--accent); }
.hope-card { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.hope-intro { font-weight: 700; color: var(--accent); margin: 0 0 .5rem; }
.hope-card h3 { margin: 0 0 .7rem; font-size: 1rem; }
.text-btn {
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}
.text-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.text-btn:disabled { opacity: 0.45; cursor: default; }
.share-ask {
  max-width: 26rem;
  margin: 0.9rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #faf8f4;
  display: grid;
  gap: 0.45rem;
}
.share-ask p {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}
.fal-share-msg {
  text-align: center;
  color: var(--accent);
  font-size: 0.85rem;
  margin: -0.4rem 0 0.9rem;
}

.tafsir-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}
.tafsir-tabs button {
  flex: 1;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.tafsir-tabs button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tafsir {
  margin: 1.4rem auto 0;
  max-width: 36rem;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #faf8f4;
  text-align: right;
}
.tafsir h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.tafsir h3 {
  margin: 0.85rem 0 0.3rem;
  font-size: 0.92rem;
}
.tafsir h4 {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
}
.tafsir p { margin: 0; line-height: 1.9; font-size: 0.9rem; }
.tafsir-result {
  font-weight: 700;
  color: var(--accent);
}
.tafsir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.85rem 0 0.2rem;
}
.tafsir-grid article {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.tafsir-note {
  margin-top: 0.85rem !important;
  color: var(--muted);
  font-size: 0.78rem !important;
}
@media (max-width: 640px) {
  .tafsir-grid { grid-template-columns: 1fr; }
}

.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 0.55rem; margin: 1rem 0 0.4rem;
}
.pager span { color: var(--muted); font-size: 0.85rem; min-width: 4.5rem; text-align: center; }

.state { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.state.err, .err-panel { color: var(--danger); }
.err-panel { margin: 1rem; padding: 1rem; border: 1px solid #f2c2c0; border-radius: 12px; background: #fff5f4; }
.foot { display: none; }

@media (max-width: 640px) {
  .site-title em { display: none; }
  .header-search .kind-trigger { width: 36px; height: 36px; }
  .header-search .search-go { width: 36px; height: 36px; }
}

@media (min-width: 900px) {
  #app { padding-bottom: 2rem; }
  .shell { padding-top: 1.1rem; }
  .poet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell-top-inner { padding-inline: 1rem; }
  .header-search { max-width: none; }
}

@media (min-width: 960px) {
  .couplet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.15rem;
    row-gap: 0;
    direction: rtl;
    align-items: baseline;
    padding: 0.5rem 0.15rem;
    border-bottom: 1px dashed var(--line);
    position: relative;
  }
  .couplet:not(.single)::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.35rem;
    bottom: 0.35rem;
    border-left: 1px dashed var(--line);
  }
  .couplet .mesra {
    font-size: clamp(0.92rem, 1.05vw, 1.08rem);
    line-height: 2.05;
    white-space: nowrap;
  }
  .couplet .mesra:first-child { text-align: end; padding-inline-end: 0.55rem; }
  .couplet .mesra:last-child { text-align: start; padding-inline-start: 0.55rem; }
  .couplet.single { grid-template-columns: 1fr; }
  .couplet.single .mesra { text-align: center; white-space: normal; }
  .verses { max-width: none; }
  .fal-sheet { padding-inline: 0.85rem; }
}

@media (min-width: 1100px) {
  .poet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.easy-read-open {
  margin-top: 0.7rem;
  height: 38px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}
.easy-read-open:hover { border-color: var(--accent); color: var(--accent); }

body.easy-read-on { overflow: hidden; }
.easy-read {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5.6rem 1.2rem 4.8rem;
}
.easy-read-close {
  position: absolute;
  top: max(0.8rem, env(safe-area-inset-top));
  left: max(0.8rem, env(safe-area-inset-left));
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
}
.easy-read-exit {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  left: max(3.4rem, calc(env(safe-area-inset-left) + 2.6rem));
  height: 42px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: inherit;
  font: inherit;
}
.easy-read-exit-bar {
  min-width: 5.5rem;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
}
.easy-read-audio {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.easy-read-play {
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: inherit;
  font: inherit;
}
.fal-deck {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  margin: 0 auto;
}
.fal-deck:not(.spinning) {
  min-height: 0;
  overflow: visible;
}
.fal-card {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem 0.65rem 1.25rem;
  box-shadow: 0 12px 36px rgba(27, 29, 33, 0.06);
  transition: transform 0.45s cubic-bezier(0.22, 0.82, 0.2, 1), opacity 0.32s ease;
  will-change: transform, opacity;
}
.fal-card.wait {
  transform: translateX(112%) rotate(4deg);
  opacity: 0;
  pointer-events: none;
}
.fal-card.in {
  transform: translateX(0) rotate(0);
  opacity: 1;
  z-index: 3;
}
.fal-card.out {
  transform: translateX(-112%) rotate(-5deg);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.fal-deck:not(.spinning) .fal-card.wait,
.fal-deck:not(.spinning) .fal-card.out { display: none; }
.fal-deck:not(.spinning) .fal-card.in {
  position: relative;
  inset: auto;
  transform: none;
  overflow: visible;
}
.fal-today {
  margin: 1.4rem auto 0;
  max-width: 42rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.fal-today h2 { margin: 0 0 0.55rem; font-size: 0.95rem; }
.fal-today ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.fal-today button {
  width: 100%;
  text-align: right;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-height: 44px;
  line-height: 1.55;
}
.fal-today button.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.easy-read-count {
  position: absolute;
  top: max(1.1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.55;
}
.easy-read-tools {
  position: absolute;
  top: max(3.2rem, calc(env(safe-area-inset-top) + 2.4rem));
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
  justify-content: center;
  width: min(36rem, calc(100% - 1.5rem));
}
.easy-read-ctrl {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
}
.easy-read-ctrl span { opacity: 0.7; }
.easy-read-ctrl em {
  font-style: normal;
  min-width: 1.6rem;
  text-align: center;
  font-size: 0.85rem;
}
.easy-read-ctrl button {
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  opacity: 0.85;
}
.easy-read-ctrl button:disabled { opacity: 0.28; }
.easy-read-swatches { display: flex; gap: 0.35rem; align-items: center; }
.easy-swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0;
}
.easy-swatch.on { outline: 2px solid currentColor; outline-offset: 2px; }
.easy-swatch.picker {
  overflow: hidden;
  position: relative;
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}
.easy-swatch.picker input {
  position: absolute;
  inset: -6px;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.easy-read-stage {
  width: min(36rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  text-align: center;
}
.easy-read-couplet { transition: opacity 0.18s ease, filter 0.18s ease; }
.easy-read-couplet.dim {
  opacity: 0.55;
  filter: blur(var(--easy-blur, 2px));
}
.easy-read-couplet.focus { opacity: 1; filter: none; }
.easy-read-mesra {
  margin: 0;
  font-size: var(--easy-font, 16px);
  line-height: 2.45;
  font-weight: 400;
}
.easy-read-bar {
  position: absolute;
  bottom: max(2.6rem, env(safe-area-inset-bottom));
  display: flex;
  gap: 0.7rem;
}
.easy-read-nav {
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  opacity: 0.85;
}
.easy-read-nav:disabled { opacity: 0.28; }
.easy-read-hint {
  position: absolute;
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.4;
  text-align: center;
  padding: 0 1rem;
}

.fz-foot {
  margin-top: 2.5rem;
  padding: 1.6rem 1rem 2.2rem;
  border-top: 1px solid rgba(11, 59, 90, 0.12);
  background: #f7f3ea;
  color: #3a3428;
}
.fz-foot-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
  text-align: center;
}
.fz-foot-text { margin: 0; font-size: 0.92rem; line-height: 1.8; }
.fz-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.1rem; }
.fz-foot-links a { color: #0b3b5a; text-decoration: none; }
.fz-foot-links a:hover { text-decoration: underline; }
.fz-foot-copy { color: #7a7264; font-size: 0.78rem; }
.poem-nav .icon-btn.on { color: #b8892c; }

