/* Before the Design: blog pages. Built on the site's own system (black, white, #e6e6e8 lines, weight 600 headings). */

/* ---------- index ---------- */
.post-list { list-style: none; margin: 0; padding: 0 8vw 88px; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; padding: 40px 0; }
.post-list strong { display: block; font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.post-list p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 30rem; }
.post-list a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
html[lang="ar"] .post-list strong { font-size: clamp(30px, 3vw, 46px); line-height: 1.3; letter-spacing: 0; font-weight: 600; }
html[lang="ar"] .post-list p { font-size: 19px; line-height: 1.75; }

/* ---------- article ---------- */
.post-hero { padding-bottom: 36px; }
.post-crumb { margin: 0 0 22px; font-size: 15px; }
.post-crumb a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-hero h1 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.06; max-width: 15em; text-wrap: balance; }
.post-body { padding: 8px 8vw 72px; }
.post-body > * { max-width: 40rem; }
.post-body h2 { margin: 64px 0 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.post-body h2:first-child { margin-top: 24px; }
.post-body p { margin: 18px 0 0; font-size: 18px; line-height: 1.65; letter-spacing: -0.01em; }
.post-items { margin-top: 20px; }
.post-items article { padding: 22px 0; border-top: 1px solid var(--line); }
.post-items article:first-child { border-top: 0; padding-top: 4px; }
.post-items article:last-child { padding-bottom: 0; }
.post-items h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.post-items p { margin-top: 8px; font-size: 17px; line-height: 1.55; }
.post-ul { list-style: none; margin: 20px 0 0; padding: 0; }
.post-ul li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.post-ul li:first-child { border-top: 0; padding-top: 4px; }

html[lang="ar"] body .post-hero h1 { font-weight: 600; line-height: 1.35 !important; letter-spacing: 0; font-size: clamp(34px, 4.2vw, 54px) !important; }
html[lang="ar"] .post-crumb { font-size: 17px; }
html[lang="ar"] .post-body h2 { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.4; letter-spacing: 0; }
html[lang="ar"] .post-body p { font-size: 19px; line-height: 1.9; letter-spacing: 0; }
html[lang="ar"] .post-items h3 { font-size: 23px; line-height: 1.5; letter-spacing: 0; }
html[lang="ar"] .post-items p { font-size: 18px; line-height: 1.8; }
html[lang="ar"] .post-ul li { font-size: 18px; line-height: 1.75; }

/* ---------- mobile ---------- */
@media (max-width: 800px) {
  .post-list { padding: 0 20px 56px; }
  .post-list a { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  html[lang] body .post-list strong { font-size: 26px; line-height: 1.12; letter-spacing: -0.035em; }
  html[lang="ar"] body .post-list strong { font-size: 27px; line-height: 1.4; letter-spacing: 0; }
  html[lang] body .post-list p { font-size: 17px; line-height: 1.5; }
  html[lang="ar"] body .post-list p { font-size: 17px; line-height: 1.75; }

  html[lang] body main .post-hero { padding: 70px 20px 28px; }
  html[lang] body .post-crumb { font-size: 15px; margin-bottom: 18px; }
  html[lang="ar"] body .post-crumb { font-size: 17px; }
  html[lang="en"] body main .post-hero h1 { font-size: clamp(32px, 9vw, 40px) !important; line-height: 1.06 !important; letter-spacing: -0.04em !important; }
  html[lang="ar"] body main .post-hero h1 { font-size: clamp(30px, 8.6vw, 38px) !important; line-height: 1.4 !important; letter-spacing: 0 !important; }
  html[lang] body .post-body { padding: 4px 20px 56px; }
  html[lang] body .post-body h2 { margin-top: 48px; font-size: 26px; line-height: 1.12; letter-spacing: -0.035em; }
  html[lang="ar"] body .post-body h2 { font-size: 27px; line-height: 1.45; letter-spacing: 0; }
  html[lang] body .post-body h2:first-child { margin-top: 16px; }
  html[lang] body .post-body p { font-size: 17px !important; line-height: 1.6 !important; }
  html[lang="ar"] body .post-body p { font-size: 18px !important; line-height: 1.85 !important; }
  html[lang] body .post-items h3 { font-size: 21px !important; line-height: 1.25 !important; margin: 0; }
  html[lang="ar"] body .post-items h3 { font-size: 22px !important; line-height: 1.5 !important; }
  html[lang] body .post-items p { font-size: 17px !important; line-height: 1.55 !important; }
  html[lang="ar"] body .post-items p { font-size: 17px !important; line-height: 1.8 !important; }
  html[lang] body .post-ul li { font-size: 17px; line-height: 1.5; }
  html[lang="ar"] body .post-ul li { font-size: 17px; line-height: 1.75; }
}

/* ---------- "more from" band ---------- */
.post-more { background: hsl(var(--muted)); border-top: 1px solid var(--line); padding: 64px 8vw 72px; }
.post-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
.post-more-head h2 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.post-more-head a { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.more-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.more-cards li { display: flex; }
.more-cards a { display: flex; flex-direction: column; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 24px; transition: border-color .2s; }
.more-cards a:hover { border-color: #111; }
.more-cards strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }
.more-cards p { margin: 14px 0 0; font-size: 16px; line-height: 1.5; }
.more-read { margin-top: auto; padding-top: 24px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
html[lang="ar"] .post-more-head h2 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.4; letter-spacing: 0; }
html[lang="ar"] .more-cards strong { font-size: 23px; line-height: 1.45; letter-spacing: 0; }
html[lang="ar"] .more-cards p { font-size: 17px; line-height: 1.75; }
@media (max-width: 1000px) { .more-cards { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  html[lang] body .post-more { padding: 44px 20px 48px; }
  html[lang] body .post-more-head h2 { font-size: 24px !important; line-height: 1.2 !important; letter-spacing: -0.03em !important; }
  html[lang="ar"] body .post-more-head h2 { font-size: 24px !important; line-height: 1.45 !important; letter-spacing: 0 !important; }
  html[lang] body .more-cards a { padding: 24px 22px 20px; }
  html[lang] body .more-cards strong { font-size: 21px !important; line-height: 1.25 !important; letter-spacing: -0.025em !important; }
  html[lang="ar"] body .more-cards strong { font-size: 22px !important; line-height: 1.5 !important; letter-spacing: 0 !important; }
  html[lang] body .more-cards p { font-size: 16px !important; }
  html[lang="ar"] body .more-cards p { font-size: 17px !important; line-height: 1.75 !important; }
}
