/* GVAND public website. No external requests: fonts are served from /site/fonts (SIL Open Font License, see OFL files).
   Colours (owner's choice): navy #26235B = brand and text · yellow #FFD43B = the one main action, always with navy text ·
   blue #276DC2 = links and second buttons. Never yellow text on white, never blue text on navy. */
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("fonts/NotoSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("fonts/NotoSansArabic-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }

:root {
  --navy: #26235B; --navy-2: #312E72; --yellow: #FFD43B; --blue: #276DC2; --blue-dark: #1D5499;
  --bg: #F5F6FA; --surface: #FFFFFF; --text: #26235B; --muted: #4A4D6A; --line: #E2E4EE; --border: #C9CCDB;
  --soft-yellow: #FFF4CC; --soft-blue: #E4EEFA; --soft-navy: #E6E5F2;
  --danger: #FBE4E2; --danger-ink: #8C1D18;
  --link: var(--blue); --radius: 18px; --max: 1140px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141330; --surface: #1E1C44; --text: #EDEDF7; --muted: #B9BAD3; --line: #34325F; --border: #4A4880;
    --soft-yellow: #3A3420; --soft-blue: #233A63; --soft-navy: #2A2862; --danger: #4A1A17; --danger-ink: #F6B6AE; --link: #8DB6EE; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 "Manrope", system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", sans-serif; }
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Manrope", system-ui, sans-serif; line-height: 1.85; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip:focus { inset-inline-start: 8px; z-index: 10; }

/* Header: navy, continues into the hero on the home page */
header.site { background: var(--navy); color: #fff; }
header.site .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; min-height: 72px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: .06em; color: #fff; text-decoration: none; }
.brand .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--yellow); display: grid; place-items: center; }
.brand .mark svg { width: 22px; height: 22px; }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a { color: #fff; text-decoration: none; font-weight: 600; opacity: .9; }
nav.main a:hover { opacity: 1; color: #fff; }
nav.main a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.spacer { flex: 1; }
.langs { display: flex; gap: 12px; font-size: 15px; }
.langs a { color: #fff; opacity: .75; text-decoration: none; }
.langs a[aria-current="true"] { opacity: 1; font-weight: 800; }

/* Buttons: yellow = the main action (navy text); ghost = second action */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; background: var(--yellow); color: var(--navy); padding: 10px 22px; border-radius: 14px; text-decoration: none; font-weight: 800; border: 0; }
.btn:hover { color: var(--navy); filter: brightness(1.04); }
.btn.ghost { background: transparent; color: var(--link); border: 2px solid var(--link); font-weight: 700; }
.hero-band .btn.ghost, header.site .btn.ghost { color: #fff; border-color: rgba(255,255,255,.65); }

.notice { background: var(--soft-yellow); color: var(--text); font-size: 15px; font-weight: 600; }
.notice .wrap { padding-block: 10px; }
.draft { background: var(--danger); color: var(--danger-ink); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }

/* Home hero */
.hero-band { background: var(--navy); color: #fff; border-radius: 0 0 36px 36px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 40px 64px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -.01em; }
[dir="rtl"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero p { font-size: 19px; opacity: .9; max-width: 56ch; margin: 0; }
.hero .panel { background: var(--surface); color: var(--text); border-radius: 24px; padding: 24px; }
.hero .panel h2 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--link); }
[dir="rtl"] .hero .panel h2 { text-transform: none; letter-spacing: 0; font-size: 16px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

main.wrap { padding-block: 40px 64px; }
h1 { font-size: 36px; line-height: 1.2; font-weight: 800; }
h2 { font-size: 24px; margin-top: 40px; font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft-blue); color: var(--link); display: grid; place-items: center; }
.card .icon svg { width: 24px; height: 24px; }
ol.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 64px; position: relative; }
[dir="rtl"] ol.steps li { padding: 16px 64px 16px 18px; }
ol.steps li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px;
  background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 800; background: var(--soft-navy); }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.legal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px 24px; }
.legal h2 { font-size: 20px; margin-top: 26px; }
.meta { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; list-style: none; }
.chips li { background: var(--soft-blue); color: var(--link); border-radius: 999px; padding: 5px 14px; font-size: 15px; font-weight: 700; }

footer.site { background: var(--navy); color: #fff; font-size: 15px; margin-top: 24px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; padding-block: 28px; align-items: center; }
footer.site a { color: #fff; opacity: .85; }
footer.site a:hover { opacity: 1; color: #fff; }
footer.site .muted { color: #fff; opacity: .7; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 44px; } }
@media (max-width: 640px) { nav.main { order: 3; width: 100%; } body { font-size: 16px; } .legal { padding: 4px 16px 18px; } header.site .btn { display: none; } }

/* Advertisement (website sidebar placement): always labelled in grey, never in brand colours, never covers content */
.ad { max-width: 320px; margin: 2rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .95rem; }
.ad a { display: flex; flex-direction: column; gap: .35rem; color: inherit; text-decoration: none; }
.ad img, .ad video { width: 100%; height: auto; border-radius: 10px; background: var(--line); }
.ad-label { display: inline-block; margin-bottom: .4rem; padding: .05rem .5rem; border-radius: 6px; background: #E9EAF1; color: #26235B; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.ad-cta { align-self: flex-start; margin-top: .2rem; padding: .35rem .8rem; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; }
.ad small { display: block; margin-top: .4rem; color: var(--muted); }
@media (min-width: 1100px) { main.wrap { position: relative; } }
