/* BOSALA header + footer (optional). Self-contained: own tokens, prefixed bsc-. */
.bsc { --surface:#fff; --surface-2:#E8ECF0; --bg:#F2F4F6; --ink:#0E131A; --ink-2:#38424F; --mute:#5C6877; --line:#DCE1E7; --line-strong:#BCC5CF; --accent:#F16915; --accent-hover:#DA5A0B; --accent-ink:#B04507; --accent-soft:#FDE6D6; --on-accent:#0E131A; --r-1:6px; --r-2:12px; --r-pill:999px; --gutter:clamp(16px,4vw,32px);
  font-family:"IBM Plex Sans Arabic","Space Grotesk",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif; font-size:1rem; line-height:1.65; color:var(--ink); -webkit-font-smoothing:antialiased; }
.bsc, .bsc *, .bsc *::before, .bsc *::after { box-sizing:border-box; }
.bsc ul { list-style:none; margin:0; padding:0; } .bsc h3 { margin:0; font-size:.9375rem; line-height:1.2; }
.bsc a { color:inherit; text-decoration:none; } .bsc button, .bsc input { font:inherit; color:inherit; } .bsc button { cursor:pointer; }
.bsc :focus-visible { outline:2px solid var(--accent-ink); outline-offset:3px; border-radius:var(--r-1); }
.bsc [hidden] { display:none !important; }
.bsc-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.bsc-wrap { width:100%; max-width:calc(1240px + 2 * var(--gutter)); margin-inline:auto; padding-inline:var(--gutter); }
.bsc-icon { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

/* mask-tinted logo */
.bsc-logo { display:block; height:42px; aspect-ratio:685/237; }
.bsc-logo > span, .bsc-logo--white { display:block; height:100%; width:100%; background:var(--accent); -webkit-mask:url("../img/logo-white.png") center/contain no-repeat; mask:url("../img/logo-white.png") center/contain no-repeat; }
.bsc-footer .bsc-logo--white { background:#fff; height:42px; aspect-ratio:685/237; width:auto; }

/* header */
.bsc-header { position:sticky; top:0; z-index:9990; background:var(--surface); border-bottom:1px solid var(--line); }
body.admin-bar .bsc-header { top:32px; } @media (max-width:782px){ body.admin-bar .bsc-header { top:46px; } }
.bsc-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:24px; align-items:center; padding-block:12px; }
.bsc-actions { display:flex; gap:8px; align-items:center; }
.bsc-ibtn { position:relative; width:44px; height:44px; display:grid; place-items:center; background:transparent; border:1px solid transparent; border-radius:var(--r-2); color:var(--ink); }
.bsc-ibtn:hover { background:var(--surface-2); }
.bsc-badge { position:absolute; inset-block-start:2px; inset-inline-end:0; min-width:18px; height:18px; padding-inline:5px; border-radius:var(--r-pill); background:var(--accent); color:var(--on-accent); font-family:"Space Grotesk",sans-serif; font-size:11px; font-weight:700; display:grid; place-items:center; }
.bsc-search { display:flex; align-items:center; gap:8px; height:48px; padding-inline:16px 4px; background:#F2F4F6; border:1px solid var(--line-strong); border-radius:var(--r-2); }
.bsc-search:focus-within { border-color:var(--accent-ink); box-shadow:0 0 0 3px var(--accent-soft); }
.bsc-search input[type=search] { flex:1; min-width:0; height:100%; border:0; background:transparent; outline:none; font-size:.9375rem; box-shadow:none; padding:0; }
.bsc-search input::placeholder { color:var(--mute); }
.bsc-search button { min-height:38px; padding-inline:14px; border:0; border-radius:var(--r-1); background:var(--accent); color:var(--on-accent); font-weight:600; font-size:.9375rem; }
.bsc-search button:hover { background:var(--accent-hover); }
.bsc-nav { overflow-x:auto; scrollbar-width:none; }
.bsc-nav::-webkit-scrollbar { display:none; }
.bsc-menu { display:flex; gap:24px; white-space:nowrap; }
.bsc-menu a { display:inline-flex; align-items:center; padding-block:10px; font-size:.9375rem; font-weight:500; color:var(--ink-2); border-bottom:2px solid transparent; }
.bsc-menu a:hover, .bsc-menu .current-menu-item > a { color:var(--ink); border-bottom-color:var(--accent); }
@media (max-width:860px) { .bsc-row { grid-template-columns:auto auto; justify-content:space-between; gap:12px; } .bsc-search { grid-column:1/-1; order:3; } .bsc-logo { height:36px; } }

/* footer */
.bsc-footer { background:#0B1015; color:#EDF0F3; padding-block:48px 32px; margin-block-start:0; }
.bsc-fgrid { display:grid; grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr)); gap:32px; }
.bsc-footer h3 { color:#8E9AA8; margin-block-end:12px; }
.bsc-footer li { margin-block-end:8px; font-size:.9375rem; }
.bsc-footer a:hover { color:var(--accent); }
@media (max-width:720px) { .bsc-fgrid { grid-template-columns:minmax(0,1fr); } }

/* mobile: the two-row header is ~170px tall, so it scrolls away instead of staying pinned and eating the viewport */
@media (max-width: 860px) { .bsc-header { position: relative; } body.admin-bar .bsc-header { top: auto; } }
