/*
 * /blog — the articles (blog.php, 20/09/2026).
 *
 * Loaded after davar.css and landing-home.css and built on them: the nav, footer, buttons, container
 * and type come from the home page, so an article looks like the rest of the site and nothing is
 * defined twice. Only what an article needs is here — the card grid, the reading column, and the
 * body text a writer produces with Markdown.
 *
 * Right-to-left throughout (Kurdish is the first language), so every offset is a logical property.
 * The brand's rules hold: no shadows, 12px cards, amber only on a main action.
 */

.b-page .h-nav-links .is-here { color: var(--d-text); }

/* ── the list ─────────────────────────────────────────────────────────────────────────────────── */

.b-page .b-hero { padding: calc(var(--h-nav) + clamp(40px, 7vw, 88px)) 0 clamp(24px, 3vw, 40px); }
.b-page .b-hero .h-lead { margin-top: 16px; }

.b-page .b-grid {
    display: grid; gap: clamp(20px, 2.4vw, 28px);
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.b-page .b-card { min-width: 0; }
.b-page .b-card-link {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    border: 1px solid var(--d-hairline-soft); border-radius: var(--d-r-card);
    background: var(--d-surface-1); color: var(--d-text); text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}
.b-page .b-card-link:hover { border-color: var(--d-hairline-strong); background: var(--d-surface-2); }
.b-page .b-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--d-surface-3); }
.b-page .b-card-img-none { display: grid; place-items: center; color: var(--d-text-2); }
.b-page .b-card-img-none .material-icons { font-size: 34px; }
.b-page .b-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.b-page .b-card-meta,
.b-page .b-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-family: var(--d-mono); font-size: 12.5px; color: var(--d-text-2);
}
.b-page .b-card-title { font-size: 19px; line-height: 1.35; font-weight: 500; }
.b-page .b-card-text { font-size: 14.5px; line-height: 1.6; color: var(--d-text-2); }
.b-page .b-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--d-link); font-size: 14px; }
.b-page .b-card-more .material-icons { font-size: 18px; }
[dir="rtl"] .b-page .b-card-more .material-icons { transform: scaleX(-1); }

.b-page .b-none { color: var(--d-text-2); font-size: 16px; }
.b-page .b-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.b-page .b-pager-at { font-family: var(--d-mono); font-size: 13px; color: var(--d-text-2); }

/* ── one article ──────────────────────────────────────────────────────────────────────────────── */

.b-page .b-draft {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: var(--h-nav); padding: 12px 16px;
    background: var(--d-amber); color: var(--d-on-amber); font-size: 14px;
}
.b-page .b-article { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 5vw, 72px); }
.b-page .b-draft + .b-article { padding-top: clamp(28px, 4vw, 48px); }
.b-page .b-article:first-child { padding-top: calc(var(--h-nav) + clamp(36px, 6vw, 80px)); }

/* A reading measure, not a layout width: ~68 characters is where the eye stops working for it. */
.b-page .b-narrow { max-width: 760px; }
.b-page .b-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--d-mono); font-size: 12.5px; color: var(--d-text-2); margin-bottom: 20px; }
.b-page .b-crumbs a { color: var(--d-text-2); }
.b-page .b-crumbs a:hover { color: var(--d-text); }
html .b-page h1.b-title { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
.b-page .b-summary { margin-top: 16px; }
.b-page .b-meta { margin-top: 20px; }
.b-page .b-meta a { color: var(--d-link); }
.b-page .b-cover { display: block; width: 100%; margin-top: 32px; border-radius: var(--d-r-card); border: 1px solid var(--d-hairline-soft); }

/* ── the text the writer produced ─────────────────────────────────────────────────────────────── */

.b-page .b-body { margin-top: clamp(28px, 4vw, 44px); font-size: 17px; line-height: 1.75; color: var(--d-text); }
.b-page .b-body > :first-child { margin-top: 0; }
.b-page .b-body p { margin: 0 0 20px; }
.b-page .b-body h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; margin: 40px 0 14px; font-weight: 500; }
.b-page .b-body h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.3; margin: 32px 0 10px; font-weight: 500; }
.b-page .b-body h4 { font-size: 17px; margin: 26px 0 8px; font-weight: 500; }
.b-page .b-body ul,
.b-page .b-body ol { margin: 0 0 20px; padding-inline-start: 24px; }
.b-page .b-body li { margin-bottom: 8px; }
.b-page .b-body a { color: var(--d-link); text-underline-offset: 3px; text-decoration: underline; }
.b-page .b-body strong { font-weight: 600; }
.b-page .b-body code {
    font-family: var(--d-mono); font-size: .9em; padding: 2px 6px;
    border-radius: 6px; background: var(--d-surface-2); color: var(--d-text);
}
.b-page .b-body blockquote {
    /* Logical only: the article carries its own dir, so a physical padding would be wrong half the time. */
    margin: 28px 0; padding-block: 4px; padding-inline: 20px 0;
    border-inline-start: 2px solid var(--d-amber); color: var(--d-text-2);
}
.b-page .b-body blockquote p { margin: 0; }
.b-page .b-body hr { margin: 36px 0; border: 0; border-top: 1px solid var(--d-hairline); }
.b-page .b-body img { display: block; max-width: 100%; height: auto; margin: 28px 0; border-radius: var(--d-r-card); border: 1px solid var(--d-hairline-soft); }

.b-page .b-after { margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--d-hairline-soft); }
.b-page .b-article[dir="rtl"] .b-after .material-icons { transform: scaleX(-1); }

.b-page .b-empty { padding: calc(var(--h-nav) + 40px) 0 40px; }
.b-page .b-empty .h-btn { margin-top: 28px; }

/*
 * AN ARTICLE IS SET IN ITS OWN LANGUAGE'S TYPE (20/09/2026), whatever the interface around it is.
 * The site's rules key off the <html> element, so a Kurdish reader opening the English article was
 * being shown Latin words set in Rabar. The date and the reading time are interface text and stay
 * with the interface — only the title, summary and body follow the article.
 */
html .b-page .b-article[lang="en"] .b-title { font-family: var(--d-display); font-weight: 400; letter-spacing: -0.01em; }
.b-page .b-article[lang="en"] .b-summary,
.b-page .b-article[lang="en"] .b-body { font-family: var(--d-ui); }
html .b-page .b-article[lang="ku"] .b-title { font-family: var(--d-ku); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.b-page .b-article[lang="ku"] .b-summary,
.b-page .b-article[lang="ku"] .b-body { font-family: var(--d-ku); }

/* Kurdish reads a little larger, as it does everywhere else on the site. */
.b-page .b-article[lang="ku"] .b-body { font-size: 18px; line-height: 1.95; }
:is([lang="ku"], [lang="ar"]) .b-page .b-card-title { line-height: 1.5; }
:is([lang="ku"], [lang="ar"]) .b-page .b-card-meta,
:is([lang="ku"], [lang="ar"]) .b-page .b-meta,
:is([lang="ku"], [lang="ar"]) .b-page .b-crumbs { font-family: inherit; letter-spacing: 0; }

@media (max-width: 640px) {
    .b-page .b-grid { grid-template-columns: 1fr; }
    .b-page .b-pager { flex-direction: column; gap: 12px; }
    .b-page .b-pager .h-btn { width: 100%; justify-content: center; }
}
