/* Guides extend the existing site design system without changing legal or exam CSS. */
.article-main {width:min(860px,calc(100% - 40px));margin:0 auto;flex:1;padding:42px 0 76px}
.guide-topline {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:26px}
.crumbs {display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--muted);font-weight:700;font-size:12px}
.crumbs a {color:var(--muted);text-decoration:none}
.crumbs a:hover {color:var(--primary)}
.lang-switch {display:inline-flex;align-items:center;gap:6px;border:1px solid var(--card-border);background:var(--soft);border-radius:12px;padding:3px}
.lang-switch a {display:inline-block;padding:6px 11px;color:var(--muted);text-decoration:none;border-radius:9px;font-size:12px;font-weight:750;line-height:1.4}
.lang-switch a[aria-current="page"] {background:var(--card);color:var(--text);box-shadow:0 2px 9px rgba(0,0,0,.08)}
.guide-header {padding-bottom:26px;border-bottom:1px solid var(--card-border)}
.guide-header .kicker {font-size:12px}
.guide-header h1 {font-size:clamp(31px,4.4vw,48px);max-width:850px;line-height:1.16;margin-bottom:15px}
.guide-header .lead {max-width:795px;font-size:16px;color:var(--body)}
.date-line {color:var(--muted);font-size:12px;margin:14px 0 0}
.answer-card {margin:27px 0 26px;padding:19px 22px;border:1px solid rgba(96,165,250,.3);background:rgba(96,165,250,.095);border-radius:18px;color:var(--body);font-size:16px;line-height:1.75}
.answer-card strong {color:var(--text)}
.facts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:24px 0 32px}
.fact {padding:14px 10px;text-align:center;background:var(--soft);border:1px solid var(--card-border);border-radius:14px}
.fact b {color:var(--text);font-size:clamp(18px,2.6vw,25px);letter-spacing:-.04em;display:block;line-height:1.3}
.fact span {font-size:11px;color:var(--muted);font-weight:730;display:block;margin-top:4px}
.guide-article section {margin-top:30px}
.guide-article h2 {font-size:clamp(19px,2.4vw,24px);margin:0 0 12px;line-height:1.3}
.guide-article p {font-size:15px;line-height:1.85;margin:0 0 13px}
.guide-article ul,.guide-article ol {font-size:15px;line-height:1.8}
.guide-article li {padding-left:5px;margin:8px 0}
.guide-article a {font-weight:700}
.guide-article h3 {font-size:16px;margin:22px 0 6px;line-height:1.45}
.guide-faq,.guide-sources,.guide-related {border-top:1px solid var(--card-border);margin-top:38px;padding-top:6px}
.guide-faq h2,.guide-sources h2,.guide-related h2 {font-size:22px}
.guide-faq h3 {font-size:16px;font-weight:800;margin:21px 0 8px}
.guide-faq p {margin:0 0 15px}
.guide-sources ul {list-style:none;padding:0;display:grid;gap:8px}
.guide-sources li {padding:0;margin:0}
.guide-sources a {font-size:14px;font-weight:650}
.related-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.related-card {background:var(--soft);border:1px solid var(--card-border);border-radius:16px;text-decoration:none!important;padding:15px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--text)!important;font-size:14px;font-weight:780!important;line-height:1.4}
.related-card:hover {background:var(--soft-hover);border-color:rgba(96,165,250,.4)}
.related-arrow {color:var(--primary)}
.app-cta {background:radial-gradient(circle at 92% 15%,rgba(96,165,250,.16),transparent 45%),var(--card);border:1px solid var(--card-border);border-radius:24px;margin:44px 0 0;padding:26px;display:grid;grid-template-columns:72px minmax(0,1fr);gap:20px;align-items:start;box-shadow:0 16px 55px rgba(0,0,0,.1)}
.app-cta img {width:72px;height:72px;border-radius:20px;box-shadow:0 8px 20px rgba(0,0,0,.14)}
.app-cta .cta-kicker {color:var(--primary);font-size:11px;font-weight:850;letter-spacing:.11em;margin:0 0 7px}
.app-cta h2 {font-size:23px;line-height:1.2;margin:0 0 9px;letter-spacing:-.035em}
.app-cta p {margin:0;color:var(--body);font-size:14px;line-height:1.7}
.cta-actions {display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}
.cta-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;background:linear-gradient(135deg,var(--primary),var(--primary-strong));color:white!important;padding:11px 17px;text-decoration:none!important;font-size:13px;font-weight:850;border-radius:12px;min-height:42px}
.cta-button.secondary {background:var(--soft);border:1px solid var(--card-border);color:var(--text)!important}
.cta-button:hover {opacity:.92}
.footer a {color:var(--muted);text-decoration:none}
.footer a:hover {color:var(--primary)}
@media(max-width:700px) {
 .article-main {width:calc(100% - 34px);padding:27px 0 46px}
 .guide-header h1 {font-size:32px}
 .answer-card {padding:16px 17px;margin:24px 0}
 .facts {grid-template-columns:repeat(2,1fr);gap:8px}
 .guide-article p {font-size:14.5px}
 .related-grid {grid-template-columns:1fr}
 .app-cta {padding:20px;grid-template-columns:55px 1fr;gap:14px}
 .app-cta img {width:55px;height:55px;border-radius:14px}
 .app-cta h2 {font-size:20px}
 .cta-actions {grid-column:1/-1}
 .cta-button {width:100%}
 .guide-topline {gap:10px}
}
@media print {.app-cta,.guide-topline,.lang-switch,.guide-related {display:none!important}.article-main {width:100%;padding:0}.guide-header h1 {font-size:28pt}}

/* Identical three header controls to the site's homepage (language / theme / app). */
.page .header {width:100%;padding:18px 38px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:nowrap}
.page .brand {display:flex;align-items:center;gap:12px;flex-shrink:0;color:var(--text);text-decoration:none}
.page .brand img {width:44px;height:44px;border-radius:14px;display:block;flex:0 0 auto}
.page .brand-label {display:flex;flex-direction:column;gap:2px}
.page .brand-title {font-size:22px;font-weight:850;letter-spacing:-.04em}
.page .brand-subtitle {font-size:13px;font-weight:650;color:var(--muted)}
.page .header-actions {display:flex;align-items:center;gap:10px;justify-content:flex-end;margin-left:auto;flex-wrap:wrap}
.page .header-actions select,.page .header-actions button {border:1px solid var(--card-border);border-radius:15px;padding:10px 13px;min-height:42px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:780;line-height:1.2;background:var(--soft);color:var(--text);text-align:center}
.page .header-actions select {appearance:none;padding:0 18px;height:42px;text-align-last:center;width:auto;max-width:190px}
.page .header-actions button:hover,.page .header-actions select:hover {background:var(--soft-hover)}
.page .header-actions .download-button {min-height:42px;padding:10px 16px;background:linear-gradient(135deg,var(--primary),var(--primary-strong));border:0;color:white;text-decoration:none;border-radius:15px;font-size:14px;font-weight:820;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;}
.page .download-icons {display:inline-flex;align-items:center;gap:6px;line-height:1}
.page .download-icon-box {width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);font-size:11px;}
.page .guide-topline .lang-switch {display:none}
@media(max-width:720px){
 .page .header{padding:18px;align-items:flex-start;flex-wrap:wrap}
 .page .brand-title {font-size:19px}
 .page .brand-subtitle {display:none}
 .page .header-actions{width:100%;margin:0}
 .page .header-actions select,.page .header-actions button{width:100%;max-width:unset}
 .page .header-actions .download-button{width:100%}
}

/* Table of contents, inline app box and hub cards (generated by tools/build_blog.py). */
.guide-toc {margin:0 0 8px;padding:18px 22px;border:1px solid var(--card-border);background:var(--soft);border-radius:18px}
.guide-toc h2 {font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.guide-toc ol {margin:0;padding-inline-start:20px;display:grid;gap:6px;font-size:14px;line-height:1.5}
.guide-toc a {color:var(--text);text-decoration:none;font-weight:700}
.guide-toc a:hover {color:var(--primary)}
.inline-app {margin:30px 0 4px;padding:16px 18px;border-radius:18px;border:1px solid rgba(96,165,250,.32);background:rgba(96,165,250,.08);display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.inline-app img {width:52px;height:52px;border-radius:14px;flex:0 0 auto}
.inline-app-text {flex:1;min-width:200px;display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:1.5;color:var(--body)}
.inline-app-text strong {color:var(--text);font-size:15px}
.inline-app-actions {display:flex;gap:8px;flex-wrap:wrap}
.cta-button.small {min-height:38px;padding:8px 14px;font-size:13px}
.cta-button[aria-disabled="true"] {background:var(--soft);color:var(--muted)!important;border:1px solid var(--card-border);cursor:default;opacity:.8}
.hub-grid {display:grid;gap:14px;margin-top:28px}
.hub-card {position:relative;display:flex;flex-direction:column;gap:6px;padding:20px 48px 20px 22px;border-radius:18px;border:1px solid var(--card-border);background:var(--soft);text-decoration:none;color:var(--text)}
.hub-card:hover {background:var(--soft-hover);border-color:rgba(96,165,250,.4)}
.hub-card-title {font-size:18px;font-weight:850;line-height:1.35}
.hub-card-desc {font-size:14px;color:var(--muted);line-height:1.55}
.hub-card .related-arrow {position:absolute;right:20px;top:20px}
@media(max-width:700px){.inline-app-actions{width:100%}.inline-app-actions .cta-button{flex:1}}

/* Arabic / Persian: layout and text positions stay exactly as in every other language;
   only the reading direction of the text itself is right-to-left. */
.rtl-text :is(h1,h2,h3,p,li,.answer-card,.inline-app-text,.hub-card-title,.hub-card-desc,.related-text,.crumbs > *) {unicode-bidi:plaintext;text-align:left}
.rtl-text .fact span {unicode-bidi:plaintext}
