/* ACM blog theme: aligns blog pages with the homepage design (ink / paper / signal / clay, Frank Ruhl headings) */
:root{ --ink:#161A1D; --paper:#F6F4EF; --signal:#3A66B2; --clay:#BC984B; --hair:rgba(22,26,29,0.12); --muted:#5B6168; }

html body{ background:var(--paper) !important; color:var(--ink) !important; font-family:'Assistant',ui-sans-serif,system-ui,sans-serif !important; }
::selection{ background:var(--signal); color:var(--paper); }

/* ---------- Header ---------- */
nav.navbar{ display:none !important; }
.acm-header{ position:sticky; top:0; z-index:150; background:rgba(246,244,239,0.92); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid var(--hair); direction:rtl; }
.acm-header .ah-in{ max-width:1100px; margin:0 auto; padding:0 20px; height:68px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.acm-header .ah-logo img{ height:34px; width:auto; display:block; }
.acm-header .ah-links{ display:flex; align-items:center; gap:28px; font-size:15px; }
.acm-header .ah-links a{ color:var(--ink); text-decoration:none; transition:color .2s; }
.acm-header .ah-links a:hover, .acm-header .ah-links a.on{ color:var(--signal); }
.acm-header .ah-cta{ display:inline-flex; align-items:center; gap:14px; }
.acm-header .ah-en{ font-size:13px; color:var(--muted); text-decoration:none; }
.acm-header .ah-btn{ background:var(--ink); color:var(--paper) !important; text-decoration:none; font-size:14px; font-weight:600; padding:10px 18px; border-radius:2px; transition:background .2s; white-space:nowrap; }
.acm-header .ah-btn:hover{ background:var(--signal); }
@media (max-width:900px){ .acm-header .ah-links{ display:none; } .acm-header .ah-in{ height:60px; } .acm-header .ah-logo img{ height:28px; } .acm-header .ah-btn{ padding:9px 14px; font-size:13px; } }

/* ---------- Typography ---------- */
main h1, h1{ font-family:'Frank Ruhl Libre',ui-serif,serif !important; font-weight:700 !important; color:var(--ink) !important; letter-spacing:-0.01em; line-height:1.18 !important; }
main h2, .article-body h2{ font-family:'Frank Ruhl Libre',ui-serif,serif !important; font-weight:700 !important; color:var(--ink) !important; letter-spacing:-0.005em; border-right-color:var(--clay) !important; }
.article-body h3, main h3{ font-family:'Assistant',sans-serif !important; color:var(--ink); }
.article-body p, .article-body li{ color:#2B3035; }
main a{ color:var(--signal); }
.article-body strong{ color:var(--ink); }

/* subtitle / meta text */
main > div > p[style*="color:#6B7280"], main p[style*="font-size:20px"]{ color:var(--muted) !important; font-weight:500 !important; }

/* ---------- Containers ---------- */
.article-body{ background:#fff !important; border:1px solid var(--hair) !important; border-radius:4px !important; box-shadow:none !important; }
.wrap, main{ background:transparent !important; }

/* tags */
.tag, .tag-blue, .tag-purple, .tag-green, .tag-amber, .tag.blue, .tag.purple, .tag.green, .tag.amber, .tag.red{
  background:transparent !important; color:var(--muted) !important; border:1px solid var(--hair) !important; border-radius:2px !important; font-weight:600 !important; letter-spacing:.01em; }

/* author row */
.author-avatar, div[style*="linear-gradient(135deg,#2563EB,#1E40AF)"]{ background:var(--ink) !important; color:var(--paper) !important; font-family:'Frank Ruhl Libre',serif !important; }
.author-row, div[style*="border-bottom:2px solid #E5E7EB"]{ border-bottom:1px solid var(--hair) !important; }

/* table of contents */
.toc{ background:var(--paper) !important; border:1px solid var(--hair) !important; border-radius:4px !important; box-shadow:none !important; }
.toc a{ color:var(--ink) !important; }
.toc a:hover{ color:var(--signal) !important; }
.toc h4{ font-family:'Frank Ruhl Libre',serif !important; color:var(--ink) !important; }

/* info boxes */
.box, .highlight-box, .green-box, .ai-box, .warning-card, .checklist-box, .stats-box, .stat-box, .stat-card, .tool-card, .score-card, .path-chip, .check-row{
  border-radius:4px !important; box-shadow:none !important; }
.box-blue, .highlight-box, .ai-box{ background:rgba(58,102,178,0.06) !important; border-right:3px solid var(--signal) !important; }
.box-amber, .box-purple{ background:rgba(188,152,75,0.10) !important; border-right:3px solid var(--clay) !important; }
.box-green, .green-box{ background:rgba(5,150,105,0.06) !important; border-right:3px solid #2F7D63 !important; }
.box-red{ background:rgba(153,27,27,0.05) !important; border-right:3px solid #9B2C2C !important; }
.box-blue p, .box-amber p, .box-purple p, .box-green p, .highlight-box p, .ai-box p{ color:var(--ink) !important; }
.checklist-box, .stats-box, .stat-box, .stat-card, .tool-card, .score-card{ background:var(--paper) !important; border:1px solid var(--hair) !important; }
.stat-num, .score-num, .stat-value{ color:var(--signal) !important; font-family:'Frank Ruhl Libre',serif !important; }

/* timeline */
.timeline-year{ background:var(--ink) !important; color:var(--paper) !important; border-radius:2px !important; box-shadow:none !important; font-family:'Frank Ruhl Libre',serif !important; }
.timeline::before, .timeline-item::before{ background:var(--hair) !important; }
.timeline-content{ border-radius:4px !important; box-shadow:none !important; }

/* screenshots */
.shot img{ border-radius:4px !important; border:1px solid var(--hair) !important; box-shadow:none !important; }

/* CTA */
.cta-box{ background:var(--ink) !important; border-radius:4px !important; box-shadow:none !important; }
.cta-box::before, .cta-box::after{ display:none !important; }
.cta-box h3{ font-family:'Frank Ruhl Libre',serif !important; color:var(--paper) !important; }
.btn-white{ background:var(--paper) !important; color:var(--ink) !important; border-radius:2px !important; box-shadow:none !important; }
.btn-white:hover{ background:#fff !important; }
.btn-wa, .cta-box a[style*="background:white"]{ border-radius:2px !important; box-shadow:none !important; }

/* sources + bottom nav */
.sources{ border-top:1px solid var(--hair) !important; }
.sources a{ color:var(--signal) !important; }
.nav-links{ border-top:1px solid var(--hair) !important; }
.nav-links a, a[style*="color:#7C3AED"]{ color:var(--signal) !important; }

/* blog index cards */
.card{ background:#fff !important; border:1px solid var(--hair) !important; border-radius:4px !important; box-shadow:none !important; transition:border-color .2s, transform .2s !important; }
.card:hover{ border-color:var(--signal) !important; transform:translateY(-2px) !important; box-shadow:none !important; }
.card h2{ font-family:'Frank Ruhl Libre',serif !important; color:var(--ink) !important; }
.card .read-more{ color:var(--signal) !important; }
.card .meta{ color:var(--muted) !important; }

/* code */
.article-body code{ background:var(--paper) !important; border-color:var(--hair) !important; border-radius:2px !important; }

/* ---------- Footer ---------- */
.acm-footer{ background:var(--ink); color:var(--paper); direction:rtl; margin-top:64px; font-family:'Assistant',sans-serif; }
.acm-footer .af-in{ max-width:1100px; margin:0 auto; padding:48px 20px 28px; }
.acm-footer .af-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px; }
.acm-footer img{ height:30px; width:auto; margin-bottom:14px; }
.acm-footer p{ font-size:14px; line-height:1.7; color:rgba(246,244,239,0.65); margin:0; max-width:320px; }
.acm-footer h5{ font-size:14px; font-weight:600; margin:0 0 12px; color:var(--paper); }
.acm-footer ul{ list-style:none; margin:0; padding:0; }
.acm-footer li{ margin-bottom:8px; }
.acm-footer a{ color:rgba(246,244,239,0.72); text-decoration:none; font-size:14px; }
.acm-footer a:hover{ color:var(--paper); }
.acm-footer .af-bottom{ margin-top:36px; padding-top:20px; border-top:1px solid rgba(246,244,239,0.15); font-size:12px; color:rgba(246,244,239,0.5); }
.acm-footer .af-bottom a{ font-size:12px; text-decoration:underline; }
@media (max-width:700px){ .acm-footer .af-grid{ grid-template-columns:1fr 1fr; } .acm-footer .af-brand{ grid-column:1 / -1; } }


/* CTA text inside article */
.article-body .cta-box p, .cta-box p{ color:rgba(246,244,239,0.82); }

/* cookie banners */
#cookieBanner .cb-inner{ background:var(--ink) !important; border-radius:4px !important; }
#cookieAccept{ background:var(--signal) !important; border-radius:2px !important; }
#cookieDecline{ border-radius:2px !important; }
