:root {
        color-scheme: light;
        --ink: #16181d;
        --muted: #5d6570;
        --line: #e4e7ec;
        --paper: #fff;
        --card: #fff;
        --wash: #f6f7f9;
        --green: #0d7a45;
        --green-soft: #e8f6ee;
        --gold: #d89b09;
        --danger: #9d2c2c;
        --link: #0b4f9c;
        --max: 1120px;
        --footer-cta-height: 76px;
      }
      html[data-theme="dark"] {
        color-scheme: dark;
        --ink: #e8eaed;
        --muted: #a7b0ba;
        --line: #2c333d;
        --paper: #121418;
        --card: #1b2028;
        --wash: #232a33;
        --green: #3ecf8e;
        --green-soft: #163528;
        --gold: #f0b429;
        --danger: #ff8f8f;
        --link: #9ec1ff;
      }
      * { box-sizing: border-box; }
      html { scroll-behavior: smooth; }
      body {
        margin: 0;
        color: var(--ink);
        background: var(--paper);
        font-family: Vazirmatn, IRANSans, Tahoma, sans-serif;
        font-size: 17px;
        line-height: 1.75;
        padding-bottom: calc(var(--footer-cta-height) + env(safe-area-inset-bottom, 0px));
      }
      a { color: inherit; }
      img { max-width: 100%; }
      .skip {
        position: absolute;
        inset-inline-start: 12px;
        top: -40px;
        background: #000;
        color: #fff;
        padding: 8px 12px;
        z-index: 5;
      }
      .skip:focus { top: 8px; }
      .disclose {
        background: var(--wash);
        color: var(--muted);
        font-size: 13px;
        text-align: center;
        padding: 8px 16px;
        border-bottom: 1px solid var(--line);
      }
      .disclose a { color: var(--ink); }
      .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        max-width: var(--max);
        margin: 0 auto;
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
      }
      .brand {
        display: flex;
        align-items: center;
        text-decoration: none;
        line-height: 1;
      }
      .brand img { height: 32px; width: auto; display: block; }
      html[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg); }
      .nav { display: flex; gap: 18px; align-items: center; font-size: 14px; font-weight: 600; }
      .nav a { text-decoration: none; }
      .nav a:hover { text-decoration: underline; }
      .login {
        text-decoration: none;
        border: 1px solid var(--ink);
        border-radius: 999px;
        padding: 6px 12px;
        font-size: 13px;
      }
      .wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px 64px; }
      .crumbs { color: var(--muted); font-size: 13px; margin: 22px 0 8px; }
      .crumbs a { color: var(--muted); text-decoration: none; }
      .crumbs a:hover { text-decoration: underline; }
      h1 {
        font-size: clamp(32px, 5vw, 52px);
        line-height: 1.25;
        letter-spacing: -0.03em;
        font-weight: 800;
        margin: 0 0 12px;
      }
      .verified {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 18px;
        align-items: center;
        color: var(--muted);
        font-size: 14px;
        margin-bottom: 18px;
      }
      .pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--green);
        font-weight: 700;
      }
      .pill i {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--green);
        color: #fff;
        font-style: normal;
        font-size: 11px;
        display: inline-grid;
        place-items: center;
      }
      .byline {
        display: flex;
        gap: 14px;
        align-items: center;
        padding: 14px 0 18px;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
      }
      .avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--ink);
        color: #fff;
        display: grid;
        place-items: center;
        font-weight: 800;
        flex: none;
      }
      .byline p { margin: 0; color: var(--muted); font-size: 14px; }
      .byline strong { color: var(--ink); }
      .lede { font-size: 18px; max-width: 46rem; }
      .jump {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 8px 0 28px;
      }
      .jump a, .sort button, .btn {
        font-family: inherit;
        cursor: pointer;
      }
      .jump a {
        text-decoration: none;
        background: var(--wash);
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 600;
      }
      h2 { font-size: 30px; line-height: 1.35; letter-spacing: -0.03em; margin: 42px 0 8px; }
      h3 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.02em; }
      .section-kicker { color: var(--muted); margin-top: 0; }
      .cards { display: grid; gap: 14px; }
      .card, .review, .stat, .method, .faq details, .note {
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--card);
      }
      .card { padding: 18px 18px 16px; }
      .card-top, .review-top, .card-actions, .scoreline {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: flex-start;
      }
      .rank {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--ink);
        color: #fff;
        display: inline-grid;
        place-items: center;
        font-size: 14px;
        font-weight: 800;
        flex: none;
      }
      .nameblock { display: flex; gap: 12px; align-items: center; }
      .latin { color: var(--muted); font-size: 13px; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
      .best {
        display: inline-block;
        background: var(--green-soft);
        color: var(--green);
        font-size: 12px;
        font-weight: 700;
        border-radius: 999px;
        padding: 2px 8px;
        margin-top: 4px;
      }
      .score { text-align: left; min-width: 88px; }
      .score b { font-size: 28px; letter-spacing: -0.04em; display: block; line-height: 1; }
      .score span, .muted { color: var(--muted); font-size: 12px; }
      .stars { position: relative; display: inline-block; color: #ddd; letter-spacing: 1px; font-size: 14px; line-height: 1; }
      .stars-fill {
        position: absolute;
        inset-inline-start: 0;
        top: 0;
        width: var(--p);
        overflow: hidden;
        color: var(--gold);
        white-space: nowrap;
      }
      .offer {
        margin: 12px 0;
        background: var(--wash);
        border-radius: 10px;
        padding: 10px 12px;
        font-size: 14px;
      }
      .offer b { display: block; }
      .pros { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
      .pros li::before { content: "✓ "; color: var(--green); font-weight: 800; }
      .card-actions, .review .actions { margin-top: 14px; flex-wrap: wrap; }
      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border-radius: 8px;
        padding: 10px 14px;
        font-weight: 700;
        font-size: 14px;
        border: 1px solid var(--ink);
        background: var(--ink);
        color: #fff;
      }
      .btn.ghost { background: var(--card); color: var(--ink); }
      .btn:hover { opacity: 0.92; }
      .caution {
        margin: 10px 0 0;
        color: var(--danger);
        background: color-mix(in srgb, var(--danger) 12%, var(--card));
        border-radius: 8px;
        padding: 8px 10px;
        font-size: 13px;
      }
      .sort {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        margin: 14px 0;
      }
      .sort span { font-size: 14px; font-weight: 700; }
      .sort button {
        border: 1px solid var(--line);
        background: var(--card);
        border-radius: 999px;
        padding: 7px 12px;
        font-weight: 650;
        font-size: 13px;
      }
      .sort button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
      .status { color: var(--muted); font-size: 14px; margin-top: 0; }
      .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
      .table-wrap table { width: 100%; border-collapse: collapse; min-width: 760px; }
      .table-wrap th, .table-wrap td { text-align: right; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
      .table-wrap th { font-size: 12px; color: var(--muted); background: var(--wash); }
      .table-wrap tr:last-child td { border-bottom: 0; }
      td.num, th.num { text-align: center; font-variant-numeric: tabular-nums; }
      .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
      .stat { padding: 16px; }
      .stat b { display: block; font-size: 32px; letter-spacing: -0.04em; line-height: 1.1; }
      .stat span { color: var(--muted); font-size: 14px; }
.weights { display: grid; gap: 10px; margin-top: 12px; }
.stack {
  display: flex;
  min-height: 64px;
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0 8px;
}
.stack span {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 6px;
  color: #fff;
  background: #16181d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.stack span:nth-child(even) { background: #3a4150; }
      .mini-bars { display: grid; gap: 4px; margin-top: 8px; min-width: 180px; }
      .mini-bars div { display: grid; grid-template-columns: 92px 1fr 28px; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
      .mini-bars i { display: block; height: 6px; background: var(--green); border-radius: 99px; }
      .reviews { display: grid; gap: 16px; }
      .review { padding: 20px; }
      .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
      .cols ul { margin: 8px 0 0; padding: 0 18px 0 0; }
      .cols h4 { margin: 0; font-size: 14px; }
      .good h4 { color: var(--green); }
      .bad h4 { color: var(--danger); }
      .faq details { padding: 12px 16px; margin-top: 8px; }
      .faq summary { cursor: pointer; font-weight: 700; }
      .note { padding: 14px 16px; background: var(--wash); font-size: 14px; }
      footer.site {
        border-top: 1px solid var(--line);
        padding: 28px 20px 40px;
        color: var(--muted);
        font-size: 13px;
      }
      footer.site .wrap { padding-bottom: 0; }
      footer.site a { color: var(--ink); }
      @media (max-width: 720px) {
        .stats, .cols { grid-template-columns: 1fr; }
        .stack { flex-direction: column; }
        .nav .hide-sm { display: none; }
        .card-top { flex-direction: column; }
        .score { text-align: right; }
      }

.story { max-width: 820px; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.story-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.story-card a { display: block; text-decoration: none; color: inherit; height: 100%; }
.story-card img { width: 100%; height: 150px; object-fit: cover; background: var(--wash); display: block; }
.story-card-body { padding: 12px 14px 16px; }
.story-card h2, .story-card h3 { font-size: 18px; line-height: 1.45; margin: 0 0 6px; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.meta a { color: var(--ink); }
.prose { font-size: 17px; }
.prose > *:first-child { margin-top: 0; }
.prose img { height: auto; border-radius: 12px; margin: 12px auto; display: block; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.prose h2, .prose h3, .wrap > h2 { scroll-margin-top: 16px; }
.prose h2, .prose h3 { font-size: 24px; margin: 28px 0 8px; }
.lwptoc, .ez-toc-container, #ez-toc-container, .toc_container { display: none !important; }
.prose table { width: 100%; min-width: 0; border-collapse: collapse; margin: 16px 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: right; vertical-align: top; }
.prose .shortc-button {
  display: inline-flex;
  margin: 8px 0;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}
.intro { margin-bottom: 8px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.pager a, .pager .current, .pager .pages {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.pager .current { background: var(--ink); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags a {
  text-decoration: none;
  background: var(--wash);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}
@media (max-width: 720px) {
  :root { --footer-cta-height: 104px; }
  .story-grid { grid-template-columns: 1fr; }
  .site-chrome { left: 10px; bottom: calc(var(--footer-cta-height) + 12px); }
  .toc-panel { right: 10px; width: min(18rem, calc(100vw - 76px)); }
  .footer-cta a { font-size: 14px; }
}

.site-chrome {
  position: fixed;
  z-index: 80;
  left: 16px;
  bottom: calc(var(--footer-cta-height) + 12px);
  display: grid;
  gap: 8px;
}
.chrome-btn, .toc-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  padding: 0;
}
.chrome-btn svg, .toc-close svg { width: 20px; height: 20px; display: block; }
.chrome-btn .icon-moon, html[data-theme="dark"] .chrome-btn .icon-sun { display: none; }
html[data-theme="dark"] .chrome-btn .icon-moon { display: block; }
.toc-panel {
  position: fixed;
  z-index: 81;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: min(20rem, calc(100vw - 88px));
  max-height: min(70vh, 32rem);
  overflow: auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  padding: 14px 14px 16px;
}
.toc-panel[hidden] { display: none !important; }
.toc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.toc-head strong { font-size: 15px; }
.toc-close { width: 32px; height: 32px; box-shadow: none; }
.toc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 14px;
  line-height: 1.5;
}
.toc-list a:hover, .toc-list a[aria-current="true"] { background: var(--wash); }
.toc-list .toc-h3 a { padding-inline-start: 18px; color: var(--muted); font-size: 13px; }
.footer-cta {
  position: fixed;
  z-index: 79;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}
.footer-cta a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.footer-cta-primary { background: var(--green); color: #fff; }
.footer-cta-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.footer-cta a:hover { filter: brightness(1.05); }
.footer-cta a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
