@font-face {
  font-family: "Vazirmatn Variable";
  src: url("/fonts/vazirmatn-arabic.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Vazirmatn Variable";
  src: url("/fonts/vazirmatn-latin.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #221b17;
  --body: #493e38;
  --muted: #756861;
  --paper: #f7f1ea;
  --card: #fffdf9;
  --orange: #eb6d1f;
  --orange-dark: #b94208;
  --orange-soft: #fff0e2;
  --line: #e7dad0;
  --green: #20735b;
  --shadow: 0 18px 55px rgba(77, 47, 27, .09);
  font-family: "Vazirmatn Variable", Vazirmatn, Tahoma, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 92% 4%, rgba(235, 109, 31, .09), transparent 25rem), var(--paper);
  color: var(--ink);
  font-weight: 450;
  line-height: 2.05;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid rgba(235, 109, 31, .35); outline-offset: 4px; border-radius: .35rem; }

.article-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3.5rem); border-bottom: 1px solid rgba(210, 193, 181, .75); background: rgba(247, 241, 234, .9); backdrop-filter: blur(14px); }
.article-header .brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 820; }
.article-header .brand i { width: .8rem; height: .8rem; border-radius: 70% 30% 65% 35%; background: var(--orange); transform: rotate(45deg); }
.header-action { padding: .55rem .95rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 760; line-height: 1.5; text-decoration: none; }

.breadcrumbs { width: min(70rem, calc(100% - 2rem)); margin: 1rem auto 0; color: var(--muted); font-size: .76rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "‹"; margin-right: .35rem; color: #b4a49a; }
.breadcrumbs a { text-decoration: none; }

.article-layout { display: grid; grid-template-columns: minmax(0, 48rem) 15rem; gap: 2.25rem; width: min(70rem, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0; align-items: start; }
article { min-width: 0; }
.article-card { padding: clamp(1.25rem, 4vw, 3.6rem); border: 1px solid rgba(219, 203, 192, .85); border-radius: 1.7rem; background: rgba(255, 253, 249, .92); box-shadow: var(--shadow); }
.toc { position: sticky; top: 1.25rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255, 253, 249, .72); }
.toc strong { display: block; margin-bottom: .45rem; font-size: .78rem; }
.toc ol { margin: 0; padding-right: 1.1rem; }
.toc li { margin: .25rem 0; color: var(--muted); font-size: .76rem; line-height: 1.75; }
.toc a { text-decoration: none; }

.kicker { margin: 0 0 .55rem; color: var(--orange-dark); font-size: .78rem; font-weight: 800; }
h1 { margin: 0 0 1.15rem; font-size: clamp(2rem, 5.2vw, 4rem); font-weight: 860; line-height: 1.32; letter-spacing: -.02em; text-wrap: balance; }
.summary { margin: 0 0 1.25rem; color: #5d4f48; font-size: clamp(1rem, 2.2vw, 1.18rem); font-weight: 520; line-height: 2; }
.article-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin: 0 0 2rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
.status-badge { display: inline-flex; align-items: center; gap: .38rem; width: fit-content; margin-bottom: 1rem; padding: .35rem .7rem; border-radius: 999px; background: #e9f4ef; color: var(--green); font-size: .72rem; font-weight: 780; }
.status-badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(32, 115, 91, .12); }
h2 { scroll-margin-top: 1.5rem; margin: 3.2rem 0 .75rem; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 790; line-height: 1.6; letter-spacing: -.012em; text-wrap: balance; }
h3 { margin: 2rem 0 .35rem; font-size: 1.1rem; font-weight: 760; }
p, li { color: var(--body); }
p { margin: .8rem 0; }
ul, ol { padding-right: 1.3rem; }
li { margin-bottom: .45rem; }
strong { color: var(--ink); }

.quick-answer { margin: 1.6rem 0; padding: 1.3rem 1.45rem; border: 1px solid #f0c5a8; border-radius: 1rem; background: var(--orange-soft); }
.quick-answer strong { display: block; margin-bottom: .2rem; color: var(--orange-dark); }
.callout { margin: 2rem 0; padding: 1.25rem 1.4rem; border-right: 4px solid var(--orange); border-radius: .9rem; background: #fff8f1; }
.callout strong { display: block; }
.callout--warning { border-color: #ba3c2b; background: #fff0ed; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-right: 1.8rem; }
.checklist li::before { content: "✓"; position: absolute; right: 0; top: .05rem; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #e6f2ed; color: var(--green); font-size: .72rem; font-weight: 900; }

.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .86rem; }
th, td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
th { background: #f4ebe3; color: var(--ink); font-weight: 760; }
tr:last-child td { border-bottom: 0; }
.not-announced { color: #9c3e17; font-weight: 760; }

.game-cta { position: relative; overflow: hidden; margin: 2.4rem 0; padding: clamp(1.35rem, 4vw, 2rem); border-radius: 1.35rem; background: var(--ink); color: #fff; }
.game-cta::after { content: "۱۴۰۶"; position: absolute; left: -.6rem; bottom: -1.6rem; color: rgba(255, 255, 255, .06); font-size: 6rem; font-weight: 900; line-height: 1; }
.game-cta > * { position: relative; z-index: 1; }
.game-cta small { color: #ffb37f; font-weight: 760; }
.game-cta h2, .game-cta h3 { margin: .25rem 0 .35rem; color: #fff; }
.game-cta p { max-width: 36rem; margin: 0 0 1rem; color: #e7ddd6; }
.game-button { display: inline-flex; align-items: center; gap: .55rem; padding: .72rem 1.1rem; border-radius: .8rem; background: var(--orange); color: #fff; font-size: .86rem; font-weight: 800; line-height: 1.55; text-decoration: none; box-shadow: 0 9px 25px rgba(235, 109, 31, .26); }
.game-button::after { content: "←"; font-size: 1.05rem; }
.game-button:hover { background: #f27b32; }

.faq { margin: 1rem 0; border: 1px solid var(--line); border-radius: .9rem; background: var(--card); }
.faq summary { cursor: pointer; padding: 1rem 1.15rem; color: var(--ink); font-weight: 720; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; float: left; color: var(--orange); font-size: 1.25rem; }
.faq[open] summary::before { content: "−"; }
.faq p { margin: 0; padding: 0 1.15rem 1rem; }

.source-note { margin: 2.2rem 0 0; padding: 1rem 1.15rem; border: 1px dashed #cfbdb0; border-radius: .9rem; color: var(--muted); font-size: .78rem; }
.source-note a { color: var(--orange-dark); font-weight: 700; }
.related { margin-top: 3.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.related-card { padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--card); text-decoration: none; }
.related-card small { display: block; color: var(--orange-dark); font-size: .7rem; font-weight: 760; }
.related-card strong { display: block; margin-top: .15rem; line-height: 1.65; }
.article-footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.home-link { display: inline-block; margin-top: .65rem; color: var(--orange-dark); font-weight: 760; text-decoration: none; }

.hub-hero { width: min(70rem, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 8vw, 6.5rem) 0 2rem; }
.hub-hero h1 { max-width: 53rem; }
.hub-hero .summary { max-width: 46rem; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: min(70rem, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 5rem; }
.hub-card { display: flex; flex-direction: column; min-height: 15rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--card); box-shadow: 0 12px 35px rgba(77, 47, 27, .06); text-decoration: none; }
.hub-card--primary { grid-column: 1 / -1; min-height: 18rem; background: var(--ink); }
.hub-card small { color: var(--orange-dark); font-size: .73rem; font-weight: 780; }
.hub-card h2 { margin: .4rem 0; font-size: clamp(1.3rem, 3vw, 2rem); }
.hub-card p { margin: 0; }
.hub-card span { margin-top: auto; color: var(--orange-dark); font-size: .82rem; font-weight: 800; }
.hub-card--primary small, .hub-card--primary span { color: #ffad73; }
.hub-card--primary h2 { color: #fff; }
.hub-card--primary p { max-width: 42rem; color: #dfd3cb; }

@media (max-width: 850px) {
  .article-layout { display: block; width: min(48rem, calc(100% - 1.5rem)); }
  .toc { position: static; margin: 0 0 1rem; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card--primary { grid-column: auto; }
}

@media (max-width: 600px) {
  .article-header { padding: .8rem .85rem; }
  .header-action { padding: .5rem .72rem; font-size: .7rem; }
  .breadcrumbs { width: calc(100% - 1.5rem); }
  .article-card { border-radius: 1.15rem; }
  .related-grid { grid-template-columns: 1fr; }
  .hub-grid, .hub-hero { width: calc(100% - 1.5rem); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
