/* =============================================================================
   Al Kausar — public website
   Ported from the approved prototype (reference/prototype-src/styles.css).

   Royal Maroon / ivory / antique gold, fixed and approved. One deliberate
   light theme.

   Direction: everything that flips uses CSS logical properties, so Urdu (RTL)
   and English (LTR) come from this one sheet. The masthead and the hero are
   the exceptions — they are pinned `direction: ltr` because the approved
   composition is English-left / emblem-centre / Urdu-right in *both*
   languages, as on the letterhead.
   ============================================================================= */

:root {
  --maroon: #76132d;
  --maroon-2: #520c22;
  --maroon-3: #931d3f;
  --maroon-ink: #4a1220;

  --ivory: #fbf6ec;
  --paper: #fffdf8;
  --sand: #f4ecdc;
  --line: #e8dccb;
  --line-2: #d9c7ad;

  --gold: #b98a3e;
  --gold-soft: #f3e3bf;
  --green: #0d6a4b;
  --green-soft: #e3f2ea;

  --ink: #33262a;
  --muted: #7d6a6e;
  --warn: #9a5b0d;
  --warn-soft: #fdf0d9;
  --bad: #a3243b;
  --info: #2f5d7c;
  --info-soft: #e6eff5;

  --f-ur: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif;
  --f-nst: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
  --f-en: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --f-ui: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;

  --r: 12px;
  --r-s: 8px;
  --sh: 0 10px 28px rgb(74 18 32 / 7%);
  --sh-2: 0 18px 40px rgb(74 18 32 / 14%);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-ur);
  font-size: 15px;
  line-height: 1.75;
}
html[lang='en'] body { font-family: var(--f-ui); line-height: 1.55; }

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Western digits inside Urdu, never reordered (HANDOVER §13). */
.num, bdi.num {
  font-family: var(--f-ui);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.ltr { direction: ltr; unicode-bidi: isolate; }
.nst { font-family: var(--f-nst); }
.muted { color: var(--muted); }
.sm { font-size: 12.5px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--maroon); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--r-s) var(--r-s);
}
.skip-link:focus { inset-inline-start: 0; }

/* -----------------------------------------------------------------------------
   Masthead — the approved composition, fixed LTR in both languages
   -------------------------------------------------------------------------- */

.ohead {
  background: var(--paper);
  border-top: 7px solid var(--maroon-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
}
.ohead::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0 14px, #d6b77d 15px 16px, transparent 17px 34px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 24%, transparent 76%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 24%, transparent 76%, #000);
}

.mast {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  max-width: 1500px;
  margin: auto;
  padding: 30px max(16px, 5vw) 16px;
  position: relative;
}
.mast .en { text-align: left; color: var(--maroon); }
.mast .en small { display: block; font: 700 12px var(--f-en); color: var(--green); letter-spacing: .3px; }
.mast .en strong { display: block; font: 700 clamp(15px, 2vw, 30px)/1.15 var(--f-en); letter-spacing: -.3px; }
.mast .en span { display: block; font: clamp(10px, 1vw, 15px) var(--f-en); letter-spacing: .8px; margin-top: 3px; }
.mast img { width: 108px; height: 108px; object-fit: contain; display: block; margin: auto; filter: drop-shadow(0 3px 5px #4a122018); }
.mast .ur { direction: rtl; text-align: right; color: var(--maroon); }
.mast .ur small { display: block; font: 600 12px var(--f-ur); color: var(--green); }
.mast .ur strong { display: block; font: 700 clamp(19px, 2.6vw, 38px)/1.45 var(--f-ur); }
.mast .ur span { display: block; font: 700 clamp(11px, 1.15vw, 17px) var(--f-ur); color: var(--maroon-3); }

.langsw { position: absolute; top: 8px; inset-inline-end: max(16px, 2vw); display: flex; gap: 4px; z-index: 3; }
.langsw a {
  border: 1px solid var(--line-2); background: #fff; color: var(--maroon);
  border-radius: 7px; padding: 3px 10px; font-size: 12px;
}
.langsw a.on { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* -----------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.pnav {
  background: linear-gradient(93deg, #57091f, #841533 50%, #57091f);
  color: #fff;
  border-bottom: 3px solid #d6a957;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 3px 12px #3f142030;
}
.pnav-in {
  max-width: 1500px; margin: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 0 max(16px, 3vw); min-height: 54px;
}
.pnav-links { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; list-style: none; margin: 0; padding: 0; }
.pnav-links::-webkit-scrollbar { display: none; }
.pnav-links a { display: block; padding: 14px 13px; white-space: nowrap; font-size: 14.5px; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.pnav-links a:hover, .pnav-links .current-menu-item > a, .pnav-links a.on { background: #ffffff14; border-bottom-color: #f0c879; }

.pnav .apply {
  background: linear-gradient(#fff2d4, #f2d293); color: var(--maroon-2);
  border-radius: 9px; padding: 8px 16px; font-weight: 800; white-space: nowrap; font-size: 14px;
}
.pnav .apply:hover { background: linear-gradient(#f2d293, #e8c27c); }

.navtoggle { display: none; background: none; border: 1px solid #ffffff66; color: #fff; border-radius: 7px; padding: 4px 10px; }
.navtoggle svg { width: 20px; height: 20px; display: block; }

/* -----------------------------------------------------------------------------
   Home — the approved composition
   -------------------------------------------------------------------------- */

.home { background: linear-gradient(180deg, #fff9ee, #f7eedd); }

.hero3 {
  direction: ltr;
  display: grid;
  grid-template-columns: 49% 33% 18%;
  height: clamp(320px, 30vw, 420px);
  overflow: hidden;
}

.h-gate { position: relative; background-size: cover; background-position: center 55%; }
.h-gate::after {
  /* This gradient was sized to make a white headline legible. The headline is
     gone, so it only has to carry the button now — lighter, and less of the
     photograph obscured. */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(28 10 14 / 52%), rgb(28 10 14 / 10%) 48%, transparent);
}
.h-gate .copy {
  /* With no heading above it the button sits lower, clear of the archway in
     the photograph. */
  position: absolute; z-index: 2; left: 5%; bottom: 16%; max-width: 62%;
  color: #fff; direction: rtl; text-align: left; text-shadow: 0 2px 8px #0009;
}
html[lang='en'] .h-gate .copy { direction: ltr; }
.h-gate h1 { font: 700 clamp(26px, 3vw, 50px)/1.75 var(--f-nst); margin: 0 0 4px; white-space: pre-line; }
html[lang='en'] .h-gate h1 { font: 700 clamp(26px, 3vw, 46px)/1.15 var(--f-en); margin-bottom: 12px; }
.h-gate p { margin: 0 0 16px; font-size: clamp(12px, 1.1vw, 17px); color: #fbe9d4; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #7a0021; color: #fff; border: 1px solid #e8bb83;
  border-radius: 40px; padding: 9px 22px; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 12px #3a101a30; text-shadow: none;
}
.pill-btn:hover { background: #5f0620; }
.pill-btn svg { width: 16px; height: 16px; }

.photo-tag {
  position: absolute; z-index: 2; bottom: 10px; right: 12px;
  background: #3d0f1fd0; color: #fff; font: 11px var(--f-ui);
  padding: 4px 9px; border-radius: 5px;
}

.h-build { position: relative; overflow: hidden; display: block; }
.h-build img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; transition: transform .5s; }
.h-build:hover img { transform: scale(1.025); }

/* The building is never shown as finished (HANDOVER §3.4). */
.uc-tag {
  position: absolute; bottom: 10px; right: 12px;
  background: #6d132ae6; color: #fff; border: 1px solid #d6b07c;
  padding: 5px 10px; border-radius: 5px;
  font: 700 11.5px var(--f-ui); letter-spacing: .3px;
}
html[lang='ur'] .uc-tag { font: 700 12.5px var(--f-ur); }

.h-mission {
  direction: rtl;
  background: radial-gradient(ellipse at top right, #fffefb 20%, #f6e9d2 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14px 10px; border-left: 1px solid #e8d0a4; position: relative;
}
html[lang='en'] .h-mission { direction: ltr; }
.h-mission .star { width: 46px; height: 46px; opacity: .55; margin-bottom: 6px; color: var(--gold); }
.h-mission h2 { font: 700 clamp(20px, 2vw, 33px)/2 var(--f-nst); color: #850829; margin: 0 0 8px; white-space: pre-line; }
html[lang='en'] .h-mission h2 { font: 700 clamp(18px, 1.7vw, 27px)/1.25 var(--f-en); margin-bottom: 12px; }
.h-mission p { font-size: 12.5px; color: #6b4c47; margin: 0 0 16px; line-height: 1.7; }
.h-mission .pill-btn { font-size: 13.5px; padding: 8px 16px; }

/* Eight feature cards in one row */
.feat8 {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px;
  padding: 16px max(16px, 2vw) 8px; max-width: 1700px; margin: auto;
}
.feat {
  border: 1px solid #edd8b9; border-radius: 12px;
  background: linear-gradient(#fffdf8, #fff8eb);
  min-height: 124px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 10px 6px; gap: 2px;
  box-shadow: 0 4px 13px #49242a0c; transition: transform .2s, box-shadow .2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 10px 22px #49242a1f; }
.feat svg { width: 34px; height: 34px; color: var(--maroon); margin-bottom: 4px; }
.feat strong { color: #850b2e; font-size: 15px; line-height: 1.5; }
.feat small { color: #7a6668; font-size: 11.5px; line-height: 1.5; }

/* Bottom row: announcements · welcome · quick links */
.bottom3 {
  display: grid; grid-template-columns: 29fr 46fr 25fr; gap: 14px;
  padding: 8px max(16px, 2vw) 18px; max-width: 1700px; margin: auto;
}
.box {
  background: var(--paper); border: 1px solid #e9d7bb; border-radius: 11px;
  box-shadow: 0 6px 15px #612d2210; min-width: 0; overflow: hidden;
}
.boxbar {
  background: linear-gradient(95deg, #72001d, #a1123a, #70001e); color: #fff;
  padding: 9px 14px; font-weight: 800; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.boxbar a { font-size: 12px; font-weight: 400; opacity: .92; }

.annlist { padding: 6px 14px 10px; }
.annlist a { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eadfce; font-size: 13.5px; }
.annlist a:last-of-type { border-bottom: 0; }
.annlist .d { font: 12px var(--f-ui); color: #9e8b82; white-space: nowrap; }
.annlist .t { flex: 1; min-width: 0; }

/* "No verified records" — never a fabricated placeholder row. */
.empty-line { font-size: 12.5px; color: var(--muted); padding: 14px 0; line-height: 1.9; }

.welcome-main { display: grid; grid-template-columns: 38% 62%; min-height: 180px; }
.welcome-art {
  background: radial-gradient(circle at 50% 40%, #e9cb97, #8a5737);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #fff3cc; position: relative; padding: 14px;
}
.welcome-art::after { content: ''; position: absolute; inset: 9px; border: 2px solid #fce5b55c; border-radius: 12px; }
.welcome-art svg { width: 74px; height: 74px; }
.welcome-art small { font: 700 15px var(--f-ur); direction: rtl; }
.welcome-copy { padding: 14px 22px; }
.welcome-copy h2 { margin: 0 0 4px; color: #850426; font: 700 24px/2 var(--f-nst); }
html[lang='en'] .welcome-copy h2 { font: 700 22px/1.3 var(--f-en); }
.welcome-copy p { font-size: 13.5px; color: #65535a; margin: 4px 0 10px; line-height: 1.95; }

.out-btn { display: inline-block; border: 1px solid #c79c57; border-radius: 7px; padding: 4px 13px; color: #8d1531; font-weight: 800; font-size: 12.5px; }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #eee3d2; }
.counters div { padding: 10px 8px; text-align: center; border-inline-start: 1px solid #eee3d2; }
.counters div:first-child { border-inline-start: 0; }
.counters strong { display: block; font: 700 22px var(--f-ui); color: var(--maroon); }
.counters small { display: block; font-size: 12px; color: #6b5a5c; }
.counters em { display: block; font-size: 10.5px; color: var(--warn); font-style: normal; }

.qlinks { padding: 6px 14px 12px; }
.qlinks a { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #eadfce; font-size: 13.5px; }
.qlinks a:last-child { border-bottom: 0; }
.qlinks svg { width: 18px; height: 18px; color: var(--maroon); flex: none; }
.qlinks b { margin-inline-start: auto; color: var(--gold); }

.disclaimer {
  max-width: 1700px; margin: auto; padding: 4px max(16px, 2vw) 22px;
  font-size: 12.5px; color: var(--muted); line-height: 1.9;
}

/* -----------------------------------------------------------------------------
   Generic page
   -------------------------------------------------------------------------- */

.pintro {
  background: radial-gradient(circle at 8% 0%, #f1e4cf, #fffdf9 55%);
  border-bottom: 1px solid var(--line);
  padding: 30px max(16px, 4vw) 22px;
}
.pintro .in { max-width: 1300px; margin: auto; }
.crumb { font-size: 12.5px; color: #907878; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.pintro h1 { font: 700 clamp(24px, 3vw, 34px)/1.6 var(--f-ur); color: var(--maroon); margin: 2px 0 4px; text-wrap: balance; }
html[lang='en'] .pintro h1 { font: 700 clamp(24px, 3vw, 34px)/1.2 var(--f-en); }
.pintro p { margin: 0; color: var(--muted); max-width: 70ch; }

.pbody { max-width: 1300px; margin: auto; padding: 24px max(16px, 4vw) 40px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card.raised { box-shadow: var(--sh); }
.card h2, .card h3 { color: var(--maroon); margin: 0 0 8px; line-height: 1.6; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 16.5px; }
html[lang='en'] .card h2, html[lang='en'] .card h3 { font-family: var(--f-en); line-height: 1.3; }

.prose { max-width: 72ch; line-height: 2.05; color: #5c4f51; }
html[lang='en'] .prose { line-height: 1.7; }
.prose p { margin: 0 0 12px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }

.note { background: var(--warn-soft); border: 1px solid #ecd6ad; color: #74532d; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; line-height: 1.8; }
.note.info { background: var(--info-soft); border-color: #c9dbe8; color: #2f4d63; }
.note.ok { background: var(--green-soft); border-color: #c6e0ce; color: #24553f; }

/* The chip that keeps this site honest (HANDOVER §3.3). */
.verify {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 11px var(--f-ui); color: #7f5b1d;
  background: #fff1cc; border: 1px solid #edd9a4;
  border-radius: 20px; padding: 2px 9px; white-space: nowrap;
}
html[lang='ur'] .verify { font: 700 12px var(--f-ur); }

.figs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.figs figure { margin: 0; }
.figs img { width: 100%; height: 330px; object-fit: cover; border-radius: 12px; display: block; }
.figs figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--maroon); color: #fff; border: 1px solid var(--maroon);
  border-radius: 9px; padding: 8px 16px; font-weight: 700; font-size: 13.5px;
}
.btn:hover { background: var(--maroon-2); }
.btn.sec { background: #fff; color: var(--maroon); border-color: var(--line-2); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot { background: #4f0b21; color: #f3dee1; border-top: 4px solid var(--gold); margin-top: 10px; }
.foot-in { max-width: 1400px; margin: auto; padding: 28px max(16px, 3vw); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 22px; }
.foot h4 { color: #f7d6a1; margin: 0 0 8px; font-size: 15px; }
.foot p { margin: 4px 0; font-size: 13px; }
.foot a:hover { text-decoration: underline; }
.foot-last { text-align: center; border-top: 1px solid #ffffff1c; padding: 10px 16px; font-size: 12px; color: #e6cdd0; }

/* The letterhead's green ornamental band. */
/* .foot-band removed from the footer at Asad's instruction; the artwork
   itself is kept for the M7 letterhead PDFs. */

/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

.tabbar { display: none; }

@media (max-width: 1250px) {
  .feat8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bottom3 { grid-template-columns: 1fr 1fr; }
  .bottom3 .welcome { grid-column: 1 / -1; order: -1; }
  .pnav-links a { padding: 14px 9px; font-size: 13.5px; }
}

@media (max-width: 850px) {
  .pnav-links { display: none; }
  .navtoggle { display: block; }
  .pnav-in { justify-content: space-between; }
  .pnav[data-open='true'] .pnav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; inset-inline: 0;
    background: #5d0a24; padding: 6px 10px 12px; max-height: 75vh; overflow: auto;
  }
  .hero3 { grid-template-columns: 1fr 1fr; height: auto; }
  .h-gate { grid-column: 1 / -1; min-height: 330px; }
  .h-build { height: 230px; }
  .h-mission { min-height: 230px; border-left: 0; }
  .grid2, .grid3, .figs { grid-template-columns: 1fr; }
  .mast { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 8px; padding-top: 30px; }
  .mast img { width: 68px; height: 68px; }
  .figs img { height: 250px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { padding-bottom: 64px; }
  .ohead { border-top-width: 5px; }
  .mast { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); padding: 30px 12px 10px; }
  .mast img { width: 52px; height: 52px; }
  .mast .en small, .mast .ur small { font-size: 9.5px; }
  .mast .en span { font-size: 8.5px; letter-spacing: .2px; }
  .hero3 { grid-template-columns: 1fr; }
  .h-gate { min-height: 300px; }
  .h-gate .copy { top: 14%; max-width: 84%; }
  .h-build { height: 210px; }
  .h-mission { min-height: 170px; }
  .feat8 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 12px; }
  .feat { min-height: 104px; }
  .bottom3 { grid-template-columns: 1fr; }
  .welcome-main { grid-template-columns: 1fr; }
  .welcome-art { min-height: 120px; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counters div:nth-child(3) { border-inline-start: 0; }
  .counters div:nth-child(n+3) { border-top: 1px solid #eee3d2; }
  .foot-in { grid-template-columns: 1fr; }

  /* Mobile bottom tab bar (HANDOVER §7). */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; bottom: 0; inset-inline: 0; z-index: 45;
    background: var(--paper); border-top: 1px solid var(--line-2);
    padding: 4px max(6px, env(safe-area-inset-left, 0px)) calc(4px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 18px #4a122014;
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    font-size: 11px; color: #7a6266; padding: 4px 0;
  }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar a.on { color: var(--maroon); font-weight: 700; }
}

@media print {
  .pnav, .tabbar, .langsw, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* -----------------------------------------------------------------------------
   Bilingual page content
   Both languages are stored in one page and the reader's choice decides which
   is shown. One page, one edit — the two cannot drift apart.
   -------------------------------------------------------------------------- */

html[lang='ur'] .ak-en,
html[lang='en'] .ak-ur { display: none; }

.ak-ur { direction: rtl; text-align: right; }
.ak-en { direction: ltr; text-align: left; }

.prose h2 { color: var(--maroon); font-size: 20px; margin: 20px 0 8px; line-height: 1.6; }
html[lang='en'] .prose h2 { font-family: var(--f-en); line-height: 1.3; }
.prose .note { margin: 14px 0; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }

/* -----------------------------------------------------------------------------
   Fixes found by looking at the rendered page
   -------------------------------------------------------------------------- */

/* An unsized inline SVG fills its container. The footer's staff-portal lock
   was rendering several hundred pixels tall. Constrain every icon that is not
   given an explicit size by its own rule. */
.foot svg,
.qlinks svg,
.annlist svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  flex: none;
}
.foot a { display: inline-flex; align-items: center; gap: 7px; }

/* The mission panel is the narrowest column in the hero (18%). Nastaliq sets
   wide and does not break mid-word, so the heading has to be allowed to shrink
   further than the other two panels and to wrap anywhere it must. */
.h-mission { padding: 14px 12px; overflow: hidden; }
.h-mission h2 {
  font-size: clamp(16px, 1.5vw, 26px);
  line-height: 1.9;
  overflow-wrap: anywhere;
  max-width: 100%;
}
html[lang='en'] .h-mission h2 { font-size: clamp(15px, 1.3vw, 22px); line-height: 1.25; }
.h-mission p { font-size: 12px; overflow-wrap: anywhere; max-width: 100%; }

/* A Latin label and its number are one unit and must not be split by the
   surrounding Urdu run. */
.ltr-unit {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--f-ui);
  display: inline-block;
}
