/*
 * Blog LIST pages — /blogs, /fa/blogs, /ar/blogs, category, author, tag and page/N (2026-10-01 redesign).
 * Generated by the blog generator (scratchpad/blog-three/hubgen.py); post pages are styled by dn-blog-post.css.
 *
 * Palette: the site's own ivory / charcoal / gold (dn-ui-audit.css tokens). NO green. The only accent is gold:
 *   --dnb-gold       decorative (hairlines, frames, the active underline)
 *   --dnb-gold-text  gold for small TEXT (contrast >= 4.5:1 on white and on ivory)
 * Logical properties only (margin-inline, inset-inline, text-align:start): FA/AR mirror without a second sheet.
 */
.dnb {
  --dnb-ink: #171717;
  --dnb-ink-2: #3a3731;
  --dnb-muted: #615b52;
  --dnb-ivory: #F7F6F3;
  --dnb-paper: #ffffff;
  --dnb-line: rgba(23, 23, 23, 0.10);
  --dnb-line-gold: rgba(200, 163, 74, 0.38);
  --dnb-gold: #C8A34A;
  --dnb-gold-text: #7A5C14;
  --dnb-radius: 12px;
  --dnb-top: 0px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px max(16px, var(--dn-edge, 8px)) 72px;
  color: var(--dnb-ink);
  box-sizing: border-box;
}
.dnb *, .dnb *::before, .dnb *::after { box-sizing: border-box; }
.dnb a { color: inherit; text-decoration: none; }
.dnb :focus-visible { outline: 2px solid var(--dnb-gold-text); outline-offset: 2px; border-radius: 6px; }
.dnb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dnb [hidden] { display: none !important; }

/* ── Head ─────────────────────────────────────────────────────────────────────────────────── */
.dnb-head { display: grid; gap: 14px; padding: 20px 0 8px; }
.dnb-eyebrow {
  margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dnb-gold-text);
}
.dnb-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
html[dir="rtl"] .dnb-eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.dnb h1.dnb-h1 {
  margin: 0; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; color: var(--dnb-ink);
  overflow-wrap: anywhere;
}
html[dir="rtl"] .dnb h1.dnb-h1 { letter-spacing: 0; line-height: 1.3; }
.dnb p.dnb-lede { margin: 0; max-width: 62ch; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--dnb-muted); }
html[dir="rtl"] .dnb p.dnb-lede { line-height: 1.9; }

.dnb-who { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.dnb-who .dnb-avatar { width: 76px; height: 76px; flex: none; }
.dnb-who-meta { display: grid; gap: 2px; }
.dnb-who-role { margin: 0; font-size: 14px; font-weight: 600; color: var(--dnb-gold-text); }
.dnb-who-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; font-size: 14px; font-weight: 600; }
.dnb-who-links a { text-decoration: underline; text-decoration-color: var(--dnb-line-gold); text-underline-offset: 4px; }
.dnb-who-links a:hover { text-decoration-color: var(--dnb-gold-text); }

/* ── Search ───────────────────────────────────────────────────────────────────────────────── */
.dnb-search { position: relative; max-width: 560px; margin-top: 8px; }
.dnb-search svg { position: absolute; inset-inline-start: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dnb-muted); pointer-events: none; }
.dnb-search input[type="search"] {
  width: 100%; height: 52px; margin: 0; padding: 0 48px; border: 1px solid var(--dnb-line); border-radius: var(--dnb-radius);
  background: var(--dnb-paper); color: var(--dnb-ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dnb-search input[type="search"]::placeholder { color: #7a746a; opacity: 1; }
.dnb-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.dnb-search input[type="search"]:hover { border-color: var(--dnb-line-gold); }
.dnb-search input[type="search"]:focus { outline: none; border-color: var(--dnb-gold-text); box-shadow: 0 0 0 3px rgba(200, 163, 74, 0.28); }
.dnb-clear {
  position: absolute; inset-inline-end: 8px; top: 50%; width: 36px; height: 36px; padding: 0; transform: translateY(-50%);
  border: 0; border-radius: 8px; background: transparent; color: var(--dnb-muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.dnb-clear:hover { background: var(--dnb-ivory); color: var(--dnb-ink); }

/* ── Category chips (sticky under the site header, scrollable on phones) ──────────────────── */
.dnb-chips {
  position: sticky; top: var(--dnb-top); z-index: 5; margin: 18px calc(-1 * max(16px, var(--dn-edge, 8px))) 0;
  padding: 10px max(16px, var(--dn-edge, 8px)); background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--dnb-line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.dnb-chips ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.dnb-chips ul::-webkit-scrollbar { display: none; }
.dnb-chips li { flex: none; margin: 0; scroll-snap-align: start; }
.dnb-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 15px; border: 1px solid var(--dnb-line);
  border-radius: 999px; background: var(--dnb-paper); font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--dnb-ink-2);
  white-space: nowrap; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.dnb-chip:hover { border-color: var(--dnb-gold-text); }
.dnb-chip small { font-size: 12px; font-weight: 700; color: var(--dnb-muted); font-variant-numeric: tabular-nums; }
.dnb-chip.is-active { background: var(--dnb-ink); border-color: var(--dnb-ink); color: #fff; }
.dnb-chip.is-active small { color: rgba(255, 255, 255, 0.78); }
/* A tag-like label on a card: text only, no pill box, so it never competes with the title. */
.dnb-tag {
  display: inline-block; position: relative; z-index: 2; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dnb-gold-text); line-height: 1.4;
}
html[dir="rtl"] .dnb-tag { letter-spacing: 0; text-transform: none; font-size: 13px; }
a.dnb-tag:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Media (image 3:2 / 16:9 with reserved space, or the typographic gold-line card) ─────── */
.dnb-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--dnb-ivory); border-radius: var(--dnb-radius) var(--dnb-radius) 0 0; }
.dnb-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.dnb-media--type {
  display: grid; place-items: center; background: linear-gradient(160deg, #fbfaf7 0%, var(--dnb-ivory) 100%);
}
.dnb-media--type::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--dnb-line-gold); border-radius: 8px; }
.dnb-type { position: relative; display: grid; justify-items: center; gap: 12px; padding: 0 24px; text-align: center; }
.dnb-type img { width: auto; height: 44px; object-fit: contain; opacity: .92; }
.dnb-type i { display: block; width: 36px; height: 1px; background: var(--dnb-gold); }
.dnb-type span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dnb-gold-text); }
html[dir="rtl"] .dnb-type span { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ── Author / date / read time ────────────────────────────────────────────────────────────── */
.dnb-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dnb-meta-text { display: grid; gap: 1px; min-width: 0; line-height: 1.4; }
.dnb-meta .dnb-author { font-size: 14px; font-weight: 700; color: var(--dnb-ink-2); }
.dnb-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; font-size: 13px; color: var(--dnb-muted); }
.dnb-sub time { font-variant-numeric: tabular-nums; }
.dnb-dot { opacity: .55; }
.dnb-avatar {
  display: block; width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; background: var(--dnb-ivory);
  box-shadow: 0 0 0 1px var(--dnb-line-gold);
}
.dnb-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--y, 50%); transform: scale(var(--s, 1)); transform-origin: 50% var(--y, 50%); }
.dnb-avatar--mark { display: grid; place-items: center; background: #fff; }
.dnb-avatar--mark img { width: 56%; height: auto; object-fit: contain; transform: none; }
.dnb-lang { padding: 0 6px; border: 1px solid var(--dnb-line); border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--dnb-muted); }
/* Weighted faces of the site's own Open Sans (the theme names one family per weight; FA/AR are overridden by dn-ui-audit's Vazirmatn rule). */
.dnb-author, .dnb-tag, .dnb-flag, .dnb-eyebrow, .dnb-who-role, .dnb-type span, .dnb-lang, .dnb-chip small, .dnb-count { font-family: "Open Sans 700", "Open Sans", Arial, sans-serif; }

/* ── Featured (newest article) ────────────────────────────────────────────────────────────── */
.dnb-feature { position: relative; display: grid; gap: 22px; margin: 32px 0 44px; align-items: center; }
.dnb-feature .dnb-media { aspect-ratio: 16 / 9; border-radius: var(--dnb-radius); }
.dnb-feature-body { display: grid; gap: 14px; align-content: center; }
.dnb-flag { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dnb-ink); }
html[dir="rtl"] .dnb-flag { letter-spacing: 0; text-transform: none; font-size: 13px; }
.dnb-feature h2.dnb-title { margin: 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--dnb-ink); overflow-wrap: anywhere; }
html[dir="rtl"] .dnb-feature h2.dnb-title { letter-spacing: 0; line-height: 1.4; }
.dnb-feature p.dnb-excerpt { margin: 0; font-size: 17px; line-height: 1.65; color: var(--dnb-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html[dir="rtl"] .dnb-feature p.dnb-excerpt { line-height: 1.95; }
.dnb-feature .dnb-meta { margin-top: 4px; }
.dnb-feature .dnb-avatar { width: 44px; height: 44px; }
@media (min-width: 900px) { .dnb-feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } }

/* ── Card grid: 1 column phone, 2 tablet, 3 desktop ───────────────────────────────────────── */
.dnb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .dnb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }
@media (min-width: 1024px) { .dnb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; } }
.dnb-item { margin: 0; padding: 0; list-style: none; display: flex; }
.dnb-card {
  position: relative; display: flex; flex-direction: column; width: 100%; background: var(--dnb-paper); border: 1px solid var(--dnb-line);
  border-radius: var(--dnb-radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dnb-card:hover { border-color: var(--dnb-line-gold); box-shadow: 0 14px 34px rgba(23, 23, 23, 0.09); transform: translateY(-3px); }
.dnb-card:hover .dnb-media img { transform: scale(1.035); }
.dnb-card:focus-within { border-color: var(--dnb-gold-text); box-shadow: 0 0 0 2px rgba(122, 92, 20, 0.35); }
.dnb-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.dnb-card h3.dnb-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; color: var(--dnb-ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html[dir="rtl"] .dnb-card h3.dnb-title { letter-spacing: 0; line-height: 1.6; font-size: 18px; }
/* stretched link: the whole card is one target; the category label and nothing else sits above it */
.dnb-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dnb-title a:focus-visible { outline: none; }
.dnb-title a:focus-visible::after { outline: 2px solid var(--dnb-gold-text); outline-offset: -2px; border-radius: var(--dnb-radius); }
.dnb-card p.dnb-excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--dnb-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[dir="rtl"] .dnb-card p.dnb-excerpt { line-height: 1.9; font-size: 15.5px; }
.dnb-card .dnb-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--dnb-line); }

/* ── Pagination, results, empty states ────────────────────────────────────────────────────── */
.dnb-pager { margin-top: 48px; }
.dnb-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dnb-pager li { margin: 0; }
.dnb-pager a, .dnb-pager span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid var(--dnb-line);
  border-radius: var(--dnb-radius); background: var(--dnb-paper); font-size: 15px; font-weight: 600; color: var(--dnb-ink-2);
}
.dnb-pager a:hover { border-color: var(--dnb-gold-text); }
.dnb-pager [aria-current="page"] { background: var(--dnb-ink); border-color: var(--dnb-ink); color: #fff; }
.dnb-count { margin: 26px 0 0; font-size: 14px; font-weight: 600; color: var(--dnb-muted); }
.dnb-empty { margin: 28px 0 0; padding: 40px 24px; text-align: center; border: 1px dashed var(--dnb-line-gold); border-radius: var(--dnb-radius); background: var(--dnb-ivory); }
.dnb-empty p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--dnb-ink-2); }
.dnb-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--dnb-ink); border-radius: var(--dnb-radius);
  background: var(--dnb-ink); color: #fff !important; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.dnb-btn:hover { background: #000; }

@media (max-width: 639px) {
  .dnb { padding-top: 12px; padding-bottom: 56px; }
  .dnb-head { gap: 12px; padding-top: 12px; }
  .dnb-feature { margin: 24px 0 32px; gap: 16px; }
  .dnb-body { padding: 16px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .dnb *, .dnb *::before, .dnb *::after { transition: none !important; animation: none !important; }
  .dnb-card:hover { transform: none; }
  .dnb-card:hover .dnb-media img { transform: none; }
}
