/* Schooliy blog: the landing page's colours and type, set for reading. Shared by /blog/ and /ar/blog/. */
:root {
  --paper: #f6f7f9;
  --step: #e6ebf1;
  --ink: #0b1d2e;
  --soft: #46566a;
  --blue: #005ea4;
  --blue-press: #004a82;
  --yellow: #f2b705;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 clamp(16px, 2.2vw, 32px) 4rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 22px 0 1rem; margin-bottom: 2.5rem; }
.brand { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: clamp(12px, 2vw, 24px); }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 8px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.meta { color: var(--soft); font-size: 0.875rem; margin-bottom: 1.5rem; }
h1 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 0.75rem; text-wrap: balance; }
[dir='rtl'] h1 { letter-spacing: 0; line-height: 1.25; }
.lead { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); line-height: 1.4; margin-bottom: 2.5rem; max-width: 36ch; text-wrap: pretty; }
article h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; margin: 2.5rem 0 0.75rem; color: var(--blue); text-wrap: balance; }
article h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.faq { margin-top: 1rem; }
.faq h3 { margin-top: 1.25rem; }
.meta a { color: var(--soft); text-decoration: none; }
.meta a:hover { text-decoration: underline; }
article p, article li { margin-bottom: 0.9rem; text-wrap: pretty; }
article ul, article ol { padding-inline-start: 1.4rem; margin-bottom: 1rem; }
article a { color: var(--blue); }
.cta-box { background: var(--yellow); color: var(--ink); padding: 2rem clamp(16px, 2.2vw, 32px); margin: 3rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.cta-box h2, .cta-box h3 { font-size: 1.35rem; line-height: 1.2; margin: 0; color: var(--ink); }
.cta-box p { margin: 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; background: var(--blue); color: #ffffff; text-decoration: none; font-weight: 600; font-size: 0.9rem; border-radius: 0; }
.btn:hover { background: var(--blue-press); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #ffffff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0.5rem; }
.post-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.post-list li { padding: 0.9rem 0; }
.post-list a { color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.post-list a:hover { color: var(--blue); }
.post-list p { color: var(--ink); margin-top: 0.35rem; font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
.post-list .meta { display: block; margin: 0.4rem 0 0; font-size: 0.875rem; }
.cat { margin-top: 2.5rem; }
.cat h2 { font-size: 0.95rem; font-weight: 700; color: var(--soft); margin: 0 0 0.25rem; }
.muted { color: var(--soft); margin-top: 2.5rem; }
.muted a { color: var(--blue); }
.footer { margin-top: 4rem; padding: 1.25rem 0 0; color: var(--soft); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.related { margin-top: 2.5rem; }
.related h2 { font-size: 0.875rem; font-weight: 700; color: var(--soft); margin: 0 0 0.5rem; }
.related ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.related a { color: var(--blue); text-decoration: none; font-weight: 500; }
.related a:hover { text-decoration: underline; }

/* Index: two columns of posts on wide screens; the page is wider than a post so the list fills it. */
.wrap:has(.post-grid) { max-width: 64rem; }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem 3rem; }
@media (min-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
.cat h2 { margin-top: 1rem; }
/* Pictures inside posts: the product itself, full measure, with a caption. */
figure { margin: 1.75rem 0; }
figure img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; background: var(--step); }
figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--soft); }
