/* Hisabra website: base styles shared by every page. Colours and fonts come from brand.css.
   Everything that has a side uses logical properties (inline-start, inline-end), so Arabic and Urdu mirror by themselves. */
:root {
  --max: 1200px; --gut: clamp(16px, 4vw, 40px);
  --r-s: 6px; --r-m: 10px; --r-l: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --e-out: cubic-bezier(.2, .7, .2, 1); --e-io: cubic-bezier(.65, 0, .35, 1); --e-pop: cubic-bezier(.3, 1.4, .5, 1);
  --d-fb: 160ms; --d-comp: 340ms; --d-seq: 900ms;
  --dir: 1;
  --focus: #2F55B8;
  --m-l: var(--vd-mark); --m-r: var(--ink); --m-b: var(--gold); --wm: var(--ink);
}
:root[dir="rtl"] { --dir: -1; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* a form or panel set to hidden by a script must really disappear */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-text); font-optical-sizing: auto; text-rendering: optimizeLegibility; overflow-x: hidden; }
:is(:lang(ar), :lang(ckb)) body, :root:is(:lang(ar), :lang(ckb)) { font-size: 18px; } :root:is(:lang(ar), :lang(ckb)) body { line-height: 1.8; }
:root:lang(ur) body { font-size: 18px; line-height: 1.95; }
:root:is(:lang(ar), :lang(ckb)) *, :root:lang(ur) * { letter-spacing: 0 !important; }   /* spacing between letters would break the joined script */
img, svg { max-width: 100%; }
a { color: var(--vd); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--vd-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mut { color: var(--muted); } .small { font-size: .875rem; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.08; }
h1, h2 { font-weight: 800; font-stretch: 80%; letter-spacing: -.015em; }
:root:is(:lang(ar), :lang(ckb)) h1, :root:is(:lang(ar), :lang(ckb)) h2, :root:is(:lang(ar), :lang(ckb)) h3, :root:is(:lang(ar), :lang(ckb)) h4 { line-height: 1.4; }
:root:lang(ur) h1, :root:lang(ur) h2, :root:lang(ur) h3 { line-height: 1.95; font-weight: 600; }
:root:lang(ur) h4 { line-height: 1.7; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--muted); max-width: 36em; margin: 14px 0 0; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.22em; }
.ic.big { width: 44px; height: 44px; stroke-width: 1.5; }
:root[dir="rtl"] .arr { transform: scaleX(-1); }
.tick { color: var(--vd); width: 1.15em; height: 1.15em; stroke-width: 2.4; }

/* ----- the mark and the wordmark ----- */
.logo { height: 34px; width: auto; display: block; }
.logo .m-l, .mark .m-l { fill: var(--m-l); } .logo .m-r, .mark .m-r { fill: var(--m-r); }
.logo .m-b1, .logo .m-b2, .mark .m-b1, .mark .m-b2 { fill: var(--m-b); } .logo .wm { fill: var(--wm); }
.logo.on-dark { --m-l: var(--vd-bright); --m-r: #F4F7F5; --wm: #fff; }

/* ----- header ----- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--d-fb) linear, box-shadow var(--d-comp) var(--e-out); }
.top.stuck { border-color: var(--line); box-shadow: 0 14px 28px -26px rgba(10, 46, 43, .55); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.panel { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.nav { display: flex; align-items: center; gap: 2px; }
.nv { position: relative; }
.nv-b, .nv-a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 500 16px/1.3 var(--f-text); text-decoration: none; cursor: pointer; transition: background var(--d-fb) linear; }
.nv-b:hover, .nv-a:hover, .nv.open > .nv-w > .nv-b { background: var(--line-2); color: var(--ink); }
.nv-b::after, .nv-a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 7px; background: linear-gradient(var(--gold) 0 2px, transparent 2px 5px, var(--gold) 5px 7px); transform: scaleX(0); transform-origin: left; transition: transform var(--d-comp) var(--e-out); }
:root[dir="rtl"] .nv-b::after, :root[dir="rtl"] .nv-a::after { transform-origin: right; }
.nv-b:hover::after, .nv-a:hover::after, .nv.open > .nv-w > .nv-b::after, .nv-a[aria-current="page"]::after, .nv-b:focus-visible::after, .nv-a:focus-visible::after { transform: scaleX(1); }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--d-comp) var(--e-out); }
.nv.open .chev { transform: rotate(180deg); }
/* the drop-down: it grows from the top edge, then its items settle in one after the other */
.mm { position: absolute; top: calc(100% + 10px); inset-inline-start: -16px; z-index: 5; width: max-content; max-width: min(92vw, 720px); visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-6px) scale(.985); transform-origin: top; transition: opacity var(--d-fb) linear, transform var(--d-comp) var(--e-out), visibility 0s linear var(--d-comp); }
.nv.open > .mm { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition: opacity var(--d-fb) linear, transform var(--d-comp) var(--e-out), visibility 0s; }
html:not(.js) .nv:hover > .mm, html:not(.js) .nv:focus-within > .mm { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
.mm::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; }   /* keeps the menu open while the pointer crosses the gap */
.mm-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 34px 60px -30px rgba(10, 46, 43, .5); overflow: hidden; min-width: 560px; }
.mm-in.one { grid-template-columns: minmax(0, 1fr); min-width: 380px; }
.mm-list { padding: 10px; display: grid; gap: 2px; align-content: start; }
.mi { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background var(--d-fb) linear; }
.mi:hover, .mi:focus-visible { background: var(--paper); color: var(--ink); }
.mi-i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--paper); font-size: 24px; } .mi:hover .mi-i { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mi-t { display: grid; gap: 1px; min-width: 0; } .mi-t b { font: 650 15.5px/1.25 var(--f-text); } .mi-t small { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.mm-side { padding: 16px 18px; background: var(--paper-2); border-inline-start: 1px solid var(--line-2); display: grid; gap: 12px; align-content: start; }
.mm-tour { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.mm-tour:hover { color: #fff; background: var(--ink-2); } .mm-tour .mi-i { background: rgba(255, 255, 255, .1); margin-bottom: 6px; } .mm-tour b { font: 700 17px/1.2 var(--f-display); } .mm-tour small { color: var(--muted-dark); font-size: 13.5px; line-height: 1.4; }
.mm-tour .hi { --d: #E6F0EC; --t: #2CC7AE; }
.mm-h { margin: 0; font-weight: 650; font-size: 14px; color: var(--muted); }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; } .mm-chips a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.4; transition: background var(--d-fb) linear, border-color var(--d-fb) linear; } .mm-chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nv.open .mi, .nv.open .mm-side > * { animation: mm-in var(--d-comp) var(--e-out) backwards; }
.nv.open .mi:nth-child(2) { animation-delay: 25ms; } .nv.open .mi:nth-child(3) { animation-delay: 50ms; } .nv.open .mi:nth-child(4) { animation-delay: 75ms; } .nv.open .mi:nth-child(5) { animation-delay: 100ms; } .nv.open .mi:nth-child(6) { animation-delay: 125ms; } .nv.open .mi:nth-child(7) { animation-delay: 150ms; }
@keyframes mm-in { from { opacity: 0; transform: translateX(calc(-8px * var(--dir))); } to { opacity: 1; transform: none; } }
.tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.signin { position: relative; padding: 9px 12px; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 8px; white-space: nowrap; transition: background var(--d-fb) linear; }
.signin:hover { background: var(--line-2); color: var(--ink); } .signin[aria-current="page"] { background: var(--line-2); }
.lang { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a { padding: 4px 11px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.5; white-space: nowrap; transition: background var(--d-fb) linear, color var(--d-fb) linear; }
.lang a:hover { background: var(--line-2); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.menu { display: none; margin-inline-start: auto; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.menu .ic { width: 24px; height: 24px; } .menu .m-shut { display: none; }
.menu[aria-expanded="true"] .m-open { display: none; } .menu[aria-expanded="true"] .m-shut { display: inline; }

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-m); background: var(--vd); color: #fff; border: 2px solid var(--vd); font: 600 16.5px/1.2 var(--f-text); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--vd-hover); border-color: var(--vd-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .ic { transition: transform .2s var(--ease); } .btn:hover .arr { transform: translateX(calc(3px * var(--dir))); }
:root[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); } .btn.line:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); } .btn.gold:hover { background: #F3C566; border-color: #F3C566; color: var(--ink); }
.btn.line-d { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); } .btn.line-d:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }
.lnk { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--vd); } .lnk:hover { text-decoration: underline; }

/* ----- forms ----- */
.f { display: grid; gap: 14px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld label, .f > label.l { font-weight: 600; font-size: 15px; } .fld label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16.5px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; min-height: 46px; padding: 0 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 130px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-inline-end: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2E2B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
:root[dir="rtl"] select { background-position: left 12px center; }
input:hover, select:hover, textarea:hover { border-color: #9DB5AC; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vd); box-shadow: 0 0 0 3px rgba(10, 122, 105, .22); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(194, 58, 46, .15); }
.ltr-in { direction: ltr; text-align: left; }
.pw { position: relative; } .pw input { padding-inline-end: 48px; }
.eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.eye:hover { color: var(--ink); background: var(--line-2); } .eye .e-off { display: none; } .eye[aria-pressed="true"] .e-on { display: none; } .eye[aria-pressed="true"] .e-off { display: inline; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.chk input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--vd); flex: none; }
.err { color: var(--bad); font-weight: 500; font-size: 15px; margin: 0; min-height: 0; } .err:empty { display: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.done { padding: 4px 0; } .done h3 { font-size: 1.5rem; margin-bottom: 8px; } .done p { margin: 8px 0; }
.closed { padding: 8px 20px 20px; }

/* ----- footer ----- */
.foot { background: var(--ink); color: var(--muted-dark); margin-top: 0; padding: 56px 0 28px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1.3fr; gap: 28px; }
.foot h4 { color: #fff; font: 700 16px/1.3 var(--f-text); margin-bottom: 12px; }
.foot a { display: block; color: var(--muted-dark); text-decoration: none; padding: 4px 0; } .foot a:hover { color: #fff; text-decoration: underline; }
.foot p { margin: 0 0 12px; } .foot .fb p { margin-top: 14px; max-width: 24em; }
.foot .lang { margin-top: 10px; background: transparent; border-color: var(--ink-3); } .foot .lang a { display: inline-block; color: #fff; padding: 4px 11px; } .foot .lang a:hover { background: var(--ink-2); } .foot .lang a[aria-current="true"] { background: #fff; color: var(--ink); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--ink-3); padding-top: 18px; margin-top: 12px; font-size: 14px; }

/* ----- small screens ----- */
@media (max-width: 960px) {
  .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .fb { grid-column: 1 / -1; }
  .menu { display: grid; }
  .top .wrap { gap: 12px; }
  .panel { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 8px var(--gut) 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(10, 46, 43, .35); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
  .top.open .panel { display: flex; animation: panel-in var(--d-comp) var(--e-out) backwards; }
  @keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav { flex-direction: column; align-items: stretch; gap: 0; } .nv, .nv-a { border-bottom: 1px solid var(--line-2); }
  .nv-b, .nv-a { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 18px; min-height: 52px; border-radius: 0; } .nv-b:hover, .nv-a:hover, .nv.open > .nv-w > .nv-b { background: transparent; }
  .nv-b::after, .nv-a::after { inset-inline: 4px; bottom: 6px; }
  .nv-w { display: block; }
  .mm { position: static; width: auto; max-width: none; display: grid; grid-template-rows: 0fr; visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition: grid-template-rows var(--d-comp) var(--e-out); }
  .mm::before { display: none; }
  .nv.open > .mm { grid-template-rows: 1fr; }
  .mm-in, .mm-in.one { min-width: 0; display: block; overflow: hidden; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .nv:not(.open) .mm-in { visibility: hidden; }
  .mm-list { padding: 0 0 8px; } .mi { padding: 10px 4px; } .mi-i { background: #fff; }
  .mm-side { background: transparent; border: 0; padding: 4px 4px 14px; }
  .tools { flex-direction: column; align-items: stretch; margin: 0; gap: 12px; padding-top: 8px; } .tools .lang { align-self: flex-start; } .tools .btn, .tools .signin { text-align: center; justify-content: center; min-height: 50px; display: flex; align-items: center; } .tools .signin { border: 1.5px solid var(--line); background: #fff; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; } :root:is(:lang(ar), :lang(ckb)) body, :root:lang(ur) body { font-size: 17px; }
  .g2 { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .logo { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* touch: standalone links and switches get a 40px target */
@media (pointer: coarse), (max-width: 760px) {
  .foot a { padding: 9px 0; }
  .foot .lang a { padding: 9px 14px; }
  .lnk, .lnk-d { min-height: 40px; }
}
