/* Shared design for every page except the home page: guides, hubs, calculator, pricing, about, support, legal.
   Same tokens, type and header as the home page (index.html), so the whole site reads as one product.
   Page-specific rules stay inline on each page, after this file. */
:root{
  --ink:#1d1d1f; --muted:#6e6e73; --bg:#fff; --bg2:#f5f5f7; --line:#e6e6e9;
  --accent:#226CD0; --accent-ink:#1859B5; --soft:#f5f5f7;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:68px}
body{margin:0;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;
  font:17px/1.65 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;letter-spacing:-0.01em}
html[lang=ar] body{font:17px/1.85 "IBM Plex Sans Arabic",-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;letter-spacing:0}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
img{max-width:100%}

/* header: the home page's */
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.82);
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid rgba(0,0,0,.06)}
.site-header .in{max-width:1000px;margin:0 auto;padding:0 20px;height:52px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-weight:600;font-size:18px;letter-spacing:-0.02em}
.brand:hover{text-decoration:none}
.brand img{width:26px;height:26px;border-radius:7px;display:block}
.site-nav{display:flex;align-items:center;gap:22px}
.site-nav a{color:var(--muted);font-size:14px;white-space:nowrap}
.site-nav a:hover{color:var(--ink);text-decoration:none}
.site-nav .dl{background:var(--accent);color:#fff;font-weight:500;padding:7px 15px;border-radius:980px}
.site-nav .dl:hover{background:var(--accent-ink);color:#fff}
@media(max-width:600px){.site-nav .opt{display:none}.site-nav{gap:16px}}

/* page */
main{max-width:720px;margin:0 auto;padding:18px 20px 24px}
.crumbs{max-width:720px;margin:0 auto;padding:22px 20px 0;font-size:13px;color:var(--muted);line-height:1.5}
.crumbs a{color:var(--muted)}
h1{font-size:clamp(31px,5.4vw,44px);line-height:1.1;font-weight:700;letter-spacing:-0.03em;margin:0 0 12px}
h2{font-size:clamp(23px,3.4vw,28px);line-height:1.22;font-weight:700;letter-spacing:-0.022em;margin:48px 0 12px}
h3{font-size:19px;line-height:1.35;font-weight:600;letter-spacing:-0.015em;margin:30px 0 8px}
html[lang=ar] h1{line-height:1.4;letter-spacing:0}
html[lang=ar] h2{line-height:1.5;letter-spacing:0}
html[lang=ar] h3{line-height:1.6;letter-spacing:0}
p{margin:0 0 16px}
main ul,main ol{padding-inline-start:22px;margin:0 0 16px}
html[lang=ar] ol{list-style-type:arabic-indic}
li{margin:6px 0}
strong{font-weight:600}
.byline{color:var(--muted);font-size:14px;margin:0 0 22px}
.note{font-size:14px;color:var(--muted);line-height:1.55}
.answer{background:var(--bg2);border-radius:18px;padding:20px 22px;font-size:18px;line-height:1.6;margin:0 0 8px}
.answer p{margin:0}
.answer p+p{margin-top:10px}

/* tables: the same cell widths as before, so tables still fit a 375 px phone */
.table-wrap{overflow-x:auto;margin:16px 0 10px}
table{width:100%;border-collapse:collapse;font-size:15px}
th,td{text-align:start;vertical-align:top;padding-block:10px;padding-inline:0 12px;border-bottom:1px solid var(--line)}
thead th{font-size:13px;font-weight:600;color:var(--ink);border-bottom:1.5px solid var(--ink);letter-spacing:0;text-transform:none}
tbody th{font-weight:500}
td.num,th.num{text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
thead th.num{white-space:normal}
td a{overflow-wrap:anywhere}
@media(max-width:430px){table{font-size:14px}th,td{padding-inline-end:8px}td.num{white-space:normal}}

/* FAQ */
details{border:1px solid var(--line);border-radius:14px;padding:14px 18px;margin:10px 0}
summary{font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:baseline;gap:14px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";color:var(--muted);font-weight:400;font-size:21px;line-height:1}
details[open] summary::after{content:"\2212"}
details p{margin:10px 0 0;color:#3a3a3c}

/* sources */
.sources{font-size:14px;color:#3a3a3c;line-height:1.55}
.sources li{margin:8px 0;overflow-wrap:anywhere}

/* figure */
.figure{margin:22px 0;text-align:center}
.figure img{width:260px;max-width:70%;height:auto;border-radius:22px;border:1px solid var(--line)}
.figure figcaption{font-size:13px;color:var(--muted);margin-top:8px}

/* get the app */
.cta{display:grid;grid-template-columns:auto 1fr;column-gap:16px;align-items:center;background:var(--bg2);
  border-radius:22px;padding:22px;margin:48px 0 12px}
.cta::before{content:"";grid-row:1 / span 2;width:60px;height:60px;border-radius:14px;
  background:url(/icon-180.png) center/cover;box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.cta p{margin:0;font-size:16px;line-height:1.5}
.cta a{justify-self:start;line-height:0;margin-top:12px}
.cta img{display:block;width:150px;height:auto}

/* related */
.related{display:grid;gap:8px;margin:0 0 16px}
.related a{display:flex;justify-content:space-between;gap:12px;padding:13px 16px;border:1px solid var(--line);
  border-radius:14px;color:var(--ink);font-weight:500;line-height:1.4}
.related a::after{content:"\203A";color:var(--muted);font-size:20px;line-height:1}
html[lang=ar] .related a::after{content:"\2039"}
.related a:hover{border-color:#c7c7cc;text-decoration:none}

/* guide hubs: each entry is a card, the whole card is the link */
main .entry{position:relative;margin:10px 0;padding:14px 18px;border:1px solid var(--line);border-radius:14px;transition:border-color .15s}
main .entry:hover{border-color:#c7c7cc}
main .entry a{color:var(--ink)}
main .entry a:hover{text-decoration:none}
main .entry a::after{content:"";position:absolute;inset:0;border-radius:14px}
main .entry strong{font-weight:600}
main .entry br{display:none}
main .entry .blurb{display:block;margin-top:3px;font-size:15px;color:var(--muted);line-height:1.5}

/* footer: the home page's */
.site-footer{border-top:1px solid var(--line);margin-top:56px;padding:30px 20px 56px;color:var(--muted);font-size:13px}
.site-footer .in{max-width:1000px;margin:0 auto;display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between}
.site-footer .row{display:flex;flex-wrap:wrap;gap:8px 18px}
.site-footer a{color:var(--muted)}
.site-footer a:hover{color:var(--ink);text-decoration:none}
.site-footer .fine{flex-basis:100%}
