
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("/fonts/Vazirmatn-Regular.ttf") format("truetype"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("/fonts/Vazirmatn-Bold.ttf") format("truetype"); }



*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 1rem; line-height: 1.85;
  min-height: 100vh; display: flex; flex-direction: column; } 
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: .25rem; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .6em; color: var(--deep, inherit); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; inset-inline-start: 1rem; top: -3rem; background: var(--accent); color: var(--accent-ink); padding: .5rem .9rem; border-radius: .5rem; z-index: 10; }
.skip:focus { top: .75rem; }

main { padding-block: 1.75rem 3rem; flex: 1 0 auto; }


.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.2rem; border-radius: .6rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--deep, #4a1212); }
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.25rem; }


.intro { max-width: var(--measure); padding-block: .5rem 1.5rem; }

.academy { max-width: var(--measure); padding-block: 0 1.5rem; }
.academy .actions { margin-block: .75rem 0; }
.lead { font-size: 1.1rem; color: var(--muted); }
.list { margin-top: 1rem; }
.list > h2 { padding-bottom: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.list-intro { max-width: var(--measure); color: var(--muted); margin-top: -.5rem; }
.more-all { margin-top: 1.5rem; }


.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-link { display: flex; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover .card-title { color: var(--accent); }
.card-media { width: 7rem; flex-shrink: 0; align-self: flex-start; aspect-ratio: 3 / 4; background: var(--surface); }

.card-media img { width: 100%; height: 100%; object-fit: var(--card-fit, cover); }
.card-body { padding: .8rem .9rem .9rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-title { margin-bottom: .3rem; }
.card-meta { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.card-summary { font-size: .92rem; color: var(--muted); margin-bottom: .8rem; }
.card-more { margin-top: auto; color: var(--accent); font-weight: 700; font-size: .9rem; }


.item { display: grid; gap: 1.5rem; }
.item-media img { border-radius: var(--radius); border: 1px solid var(--line); }
.facts { margin: 1rem 0; padding: .75rem 1rem; background: var(--surface); border-radius: var(--radius); display: grid; gap: .35rem; }
.facts div { display: flex; gap: .75rem; }
.facts dt { color: var(--muted); min-width: 3.5rem; }
.facts dd { margin: 0; font-weight: 700; }
.note { color: var(--muted); }


.page, .post, .list-page > .lead, .list-page > .list-intro, .list-page > .prose { max-width: var(--measure); }

.list-page > .list-intro { margin-top: 0; }
.list-page > .prose { margin-bottom: 1.75rem; }
.post-meta { color: var(--muted); font-size: .9rem; }
.post-media img { border-radius: var(--radius); margin-block: 1rem; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1em 0; padding: .2em 1em; border-inline-start: 3px solid var(--accent); color: var(--muted); }


.page table, .post table { width: 100%; border-collapse: collapse; margin-block: 1rem 1.5rem; font-size: .95rem; }
.page th, .page td, .post th, .post td { text-align: start; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th, .post th { color: var(--muted); font-weight: 700; font-size: .85rem; border-bottom-color: var(--rule); }
.page tbody tr:last-child td, .post tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .card-link { flex-direction: column; }
  .card-media { width: auto; align-self: stretch; }
  .card-body { padding: .9rem 1rem 1rem; }
  h1 { font-size: 1.85rem; }
  .item.has-media { grid-template-columns: minmax(0, 18rem) 1fr; align-items: start; }
}
@media (min-width: 64rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .prose { font-size: 1.1rem; }
}
@media print {
  .skip, .actions { display: none; }
}
