/* Generated by tools/build_index.py from tools/site_header.js (decision 145): the one header of the Arqam page, the manual
   and the playground. Do not edit; edit tools/site_header.js. @author Mohsen Alyafei */

/* decisions 143 and 145: one header for the Arqam page, the manual and the playground */
header.ah{direction:ltr;position:sticky;top:0;z-index:1030;height:56px;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:0 14px;background:linear-gradient(135deg,#1d1859,#3b2db3 60%,#6a5cff);color:#fff;border:0;margin:0;font:14px/1.3 "Segoe UI",Cairo,system-ui,sans-serif}
header.ah *{box-sizing:border-box}
header.ah .ah-sp{flex:1 1 0;min-width:4px}
header.ah nav.ah-tabs{display:flex;gap:3px;flex:none;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:11px;padding:3px;margin:0}
header.ah .ah-tab{display:block;color:rgba(255,255,255,.92);text-decoration:none;font:600 13px/1.2 "Segoe UI",Cairo,sans-serif;padding:6px 12px;border-radius:8px;white-space:nowrap;background:none}
header.ah .ah-tab:hover{background:rgba(255,255,255,.16);color:#fff}
header.ah .ah-tab[aria-current=page]{background:#fff;color:#1d1859}
header.ah .ah-mid{display:flex;align-items:center;gap:8px;min-width:0;flex:0 1 auto}
header.ah .ah-btn{cursor:pointer;display:inline-flex;align-items:center;gap:5px;height:32px;background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:9px;padding:0 11px;font:600 13px "Segoe UI",Cairo,sans-serif;text-decoration:none;white-space:nowrap}
header.ah .ah-btn:hover{background:rgba(255,255,255,.26);color:#fff}
header.ah .ah-btn.ah-back{background:#fff;color:#1d1859;border-color:#fff}header.ah .ah-btn.ah-back:hover{background:#FFD233;border-color:#FFD233}
header.ah .ah-btn[hidden]{display:none}
header.ah .ah-badge{flex:none;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:1px 10px;font-size:12px;color:#fff;white-space:nowrap}
header.ah a.ah-brand{flex:none;display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none;background:none;padding:0}
header.ah .ah-en{font:700 19px/1 "Segoe UI",Cairo,sans-serif;letter-spacing:.01em}
header.ah .ah-logo{display:block;width:40px;height:auto;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}
header.ah a:focus-visible,header.ah button:focus-visible{outline:2px solid #FFD233;outline-offset:2px}
header.ah .ah-more{display:none;flex:none;width:38px;height:36px;border-radius:9px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:#fff;font-size:20px;line-height:1;cursor:pointer;padding:0}
header.ah .ah-menu{position:absolute;top:56px;left:8px;min-width:220px;background:#fff;color:#1B1A2E;border-radius:12px;box-shadow:0 14px 40px rgba(20,10,80,.3);padding:6px;display:flex;flex-direction:column;gap:2px;z-index:1050}
header.ah .ah-menu[hidden]{display:none}
header.ah .ah-menu a,header.ah .ah-menu button{display:block;text-align:left;border:0;background:none;color:#1B1A2E;font:600 14px "Segoe UI",Cairo,sans-serif;padding:10px 12px;border-radius:8px;text-decoration:none;cursor:pointer}
header.ah .ah-menu a:hover,header.ah .ah-menu button:hover{background:#efedff}
header.ah .ah-menu [aria-current=page]{background:#efedff;color:#3b2db3}
header.ah .ah-menu hr{border:0;border-top:1px solid #e3e1f0;margin:4px 6px}
@media (max-width:1250px){header.ah .ah-mid .ah-badge{display:none}}
@media (max-width:1100px){header.ah .ah-ver{display:none}}
@media (max-width:980px){header.ah .ah-gh{display:none}header.ah .ah-en{display:none}}
@media (max-width:760px){header.ah{gap:8px;padding:0 10px}header.ah nav.ah-tabs,header.ah .ah-gh,header.ah .ah-ver{display:none}header.ah .ah-more{display:block}header.ah .ah-logo{width:36px}header.ah .ah-mid .ah-hide-phone{display:none}}
@media print{header.ah{position:static;background:none;color:#000;border-bottom:1px solid #ccc}header.ah nav.ah-tabs,header.ah .ah-btn,header.ah .ah-badge,header.ah .ah-more,header.ah .ah-mid{display:none}header.ah a.ah-brand{color:#000}}

/* decision 165: the header 44 px high, smaller buttons */
header.ah{height:44px;gap:8px;padding:0 12px}
header.ah nav.ah-tabs{gap:2px;border-radius:9px;padding:2px}
header.ah .ah-tab{font-size:12px;padding:5px 10px;border-radius:7px}
header.ah .ah-mid{gap:6px}
header.ah .ah-btn{height:26px;padding:0 9px;font-size:12px;border-radius:7px;gap:4px}
header.ah .ah-badge{font-size:11px;padding:0 8px}
header.ah a.ah-brand{gap:7px}header.ah .ah-en{font-size:16px}header.ah .ah-logo{width:30px}
header.ah .ah-more{width:32px;height:28px;font-size:17px;border-radius:7px}
header.ah .ah-menu{top:44px}
/* decision 181: the menu of the manuals under the tab «Manual» */
header.ah .ah-dd{position:relative;display:block}
header.ah .ah-dd-m{display:none;position:absolute;top:100%;left:0;min-width:230px;background:#fff;color:#1B1A2E;border-radius:10px;box-shadow:0 14px 40px rgba(20,10,80,.3);padding:6px;z-index:1060}
header.ah .ah-dd:hover .ah-dd-m,header.ah .ah-dd:focus-within .ah-dd-m{display:flex;flex-direction:column;gap:2px}
header.ah .ah-dd-m a{display:block;padding:7px 10px;border-radius:7px;text-decoration:none;color:#1B1A2E;font:600 13px "Segoe UI",Cairo,sans-serif}
header.ah .ah-dd-m a small{display:block;font-weight:400;font-size:11.5px;color:#5c5a72}
header.ah .ah-dd-m a:hover,header.ah .ah-dd-m a:focus{background:#efedff;outline:none}
@media (max-width:760px){header.ah{gap:6px;padding:0 8px}header.ah .ah-logo{width:28px}}
/* decision 195: the words beside the page's tools (the playground's «188 currencies · 252 units», «no network …») are plain, with a dot between them */
header.ah .ah-mid .ah-badge{background:none;border:0;border-radius:0;padding:0;color:rgba(255,255,255,.85)}
header.ah .ah-mid .ah-badge+.ah-badge::before{content:"·";margin:0 8px 0 2px;opacity:.55}
/* decision 165: one footer, 28 px, fixed at the bottom of every page */
body{padding-bottom:28px}
footer.af{direction:ltr;position:fixed;left:0;right:0;bottom:0;z-index:1029;height:28px;box-sizing:border-box;margin:0;max-width:none;display:flex;align-items:center;gap:10px;padding:0 14px;background:#1d1859;color:rgba(255,255,255,.82);font:12px/1 Cairo,"Segoe UI",sans-serif;text-align:left;border:0;white-space:nowrap}
footer.af *{box-sizing:border-box}
footer.af .af-c,footer.af .af-v{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis}footer.af .af-v{text-align:right}
footer.af .af-pg{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;min-width:170px}
footer.af .af-pg:empty{min-width:0}
footer.af .af-pg b{color:#fff;font-weight:700;font-variant-numeric:tabular-nums}
footer.af .af-a{display:inline-flex;align-items:center;justify-content:center;width:22px;height:20px;border-radius:5px;background:rgba(255,255,255,.14);color:#fff;font-size:15px;line-height:1;text-decoration:none}
footer.af .af-a:hover{background:rgba(255,255,255,.3)}footer.af .af-a[aria-disabled=true]{opacity:.3;pointer-events:none}
footer.af a:focus-visible{outline:2px solid #FFD233;outline-offset:1px}
@media (max-width:600px){footer.af .af-v{display:none}footer.af .af-c{flex:0 1 auto}footer.af .af-pg{margin-left:auto;min-width:0}}
@media print{footer.af{display:none}body{padding-bottom:0}}

/* decision 217: the header 56 px high on every page (option A) */
:root{--ah-h:56px}
header.ah{height:var(--ah-h);gap:10px;padding:0 14px}
header.ah nav.ah-tabs{gap:2px;border-radius:10px;padding:3px}
header.ah .ah-tab{font-size:13px;padding:7px 11px;border-radius:7px}
header.ah .ah-mid{gap:8px}
header.ah .ah-btn{height:32px;padding:0 11px;font-size:12.5px;border-radius:8px;gap:5px}
header.ah .ah-badge{font-size:12px}
header.ah a.ah-brand{gap:8px}header.ah .ah-en{font-size:18px}header.ah .ah-logo{width:32px}
header.ah .ah-more{width:36px;height:34px;font-size:19px;border-radius:8px}
header.ah .ah-menu{top:var(--ah-h)}
