@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: #fff;
  --bg-soft: #f6f7f8;
  --ink: #1b1d21;
  --muted: #6b7280;
  --line: #e6e8eb;
  --accent: #1f4e79;
  --accent-soft: rgba(31, 78, 121, .08);
  --radius: 16px;
  --font: "IRANSans", Tahoma, 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-"]) { font-family: var(--font); }
i[class*="fa-"], .fa-light {
  font-family: "Font Awesome 6 Pro" !important;
  font-weight: 300 !important;
}
a { color: inherit; text-decoration: none; }

.hub-top {
  border-bottom: 1px solid var(--line);
}
.hub-top:not(:has(.hub-top-inner)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: calc(.5rem + env(safe-area-inset-top)) 1.1rem .5rem;
}
.hub-top-inner {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 56px;
  padding: calc(.5rem + env(safe-area-inset-top)) 1.1rem .5rem;
  width: min(720px, 100%);
  margin: 0 auto;
}
.site-logo { display: flex; flex-shrink: 0; }
.site-logo-img {
  width: auto; height: 28px; max-width: 72px;
  object-fit: contain;
}
.site-title-row {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hero-logo {
  display: block; width: min(240px, 78vw); height: auto; margin: 0 auto .75rem;
}
.header-spacer { flex: 1; }
.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 strong { font-size: 1.05rem; font-weight: 700; }
.site-title em { font-style: normal; font-size: .72rem; 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-menu > summary {
  list-style: none;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line);
  cursor: pointer;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: auto; z-index: 20;
  min-width: 11.5rem; padding: .35rem; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
}
.site-dropdown a {
  display: flex; align-items: center; min-height: 40px; padding: 0 .75rem;
  border-radius: 10px; font-size: .9rem;
}
.site-dropdown a:hover { background: var(--bg-soft); color: var(--accent); }
.hub-login {
  height: 38px; padding: 0 1rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: .88rem;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--muted); }

.hub {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 1.4rem 1.1rem 2rem;
}
.hero { margin: .2rem 0 1.3rem; }
.hero h1, .hero h2 { margin: 0 0 .4rem; font-size: clamp(1.35rem, 5vw, 1.85rem); font-weight: 700; }
.hero p { margin: 0; color: var(--muted); line-height: 1.7; }

.intent {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 1.2rem;
}
.intent a {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 .9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); color: var(--accent);
  font-size: .88rem; font-weight: 700;
}
.intent a:hover { border-color: #d7e3ef; background: #fff; }

.dl-btn {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.dl-meta { color: var(--muted); margin: 0 0 1rem; }
.dl-list { line-height: 2; color: var(--ink); padding-inline-start: 1.2rem; }

.cards { display: grid; gap: .85rem; }
.card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-height: 108px;
}
.card:hover {
  border-color: #d7e3ef;
  background: #fbfdff;
  box-shadow: 0 10px 28px rgba(31, 78, 121, .06);
}
.card-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.25rem;
}
.card-body { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.card-body small { color: var(--accent); font-size: .75rem; }
.card-body strong { font-size: 1.12rem; }
.card-body em {
  font-style: normal; color: var(--muted); font-size: .86rem; line-height: 1.65;
}
.stat {
  margin-top: .2rem;
  color: var(--ink);
  font-size: .8rem;
  min-height: 1.1em;
}
.go { color: var(--muted); font-size: .95rem; }

.hub-faq {
  margin: 1.6rem 0 0.4rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.hub-faq h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.hub-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.9rem;
  margin: 0 0 0.55rem;
}
.hub-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.hub-faq summary::-webkit-details-marker { display: none; }
.hub-faq details p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.92rem;
}
.hub-faq a { color: var(--accent); }

.hub-foot {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  padding: 0 1rem calc(1.4rem + env(safe-area-inset-bottom));
}

.card-feature {
  border-color: #c5d6e8;
  background: linear-gradient(180deg, #f4f8fc, #fff);
  min-height: 128px;
}
.poet-grid { margin: 1.4rem 0 0; }
.poet-grid h2 { margin: 0 0 .75rem; font-size: 1.05rem; }
.poet-grid nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.poet-grid a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
}
.poet-grid img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .poet-grid nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
