/* Khalq Welfare Society: "Greenprint" drawing sheet.
   Bottle-green print with pale lime linework, plan-paper zones for photos,
   red for dimension lines and the one action. */

@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("../fonts/sofia-sans-condensed-variable-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("../fonts/noto-nastaliq-urdu-600-subset.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* print (dark zones) */
  --print: #0F3D2A;
  --print-2: #154A33;
  --print-3: #0A2C1E;
  --line: #E8EFC8;          /* linework and text on print */
  --mist: #B7C9A7;          /* secondary text on print */
  --line-soft: rgba(232, 239, 200, 0.3);
  --line-faint: rgba(232, 239, 200, 0.12);
  --dim: #FF8B7B;           /* dimension lines on print */

  /* paper (light zones) */
  --paper: #E9EED0;
  --paper-2: #DDE5BD;
  --ink: #0E2419;
  --ink-2: #3A5043;
  --rule: rgba(14, 36, 25, 0.28);
  --link: #0E5A35;

  --red: #C4302A;
  --red-dark: #9F231E;

  --font-body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Sofia Sans Condensed", "Sofia Sans", "Arial Narrow", sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

  --container: 76rem;
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --zone-pad: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  scrollbar-color: #2F6E4E var(--print-3);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--print);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-cond);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
p, li, dd, figcaption, td { text-wrap: pretty; }

[lang="ur"] {
  font-family: var(--font-ur);
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0;
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus, var(--ink));
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--line); color: var(--ink); padding: 0.75rem 1rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.05rem;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.button:active { transform: translateY(1px); }
.button--lg { min-height: 3.25rem; padding: 0.8rem 1.35rem; font-size: 1.125rem; }
.button--red { background: var(--red); color: #fff; }
.button--red:hover { background: var(--red-dark); }
.button--line { border-color: var(--line); color: var(--line); background: transparent; }
.button--line:hover { background: rgba(232, 239, 200, 0.12); }
.button--ink { background: var(--ink); color: var(--paper); }
.button--ink:hover { background: #1E3A2B; }

/* ---------- Header ---------- */
.site-header {
  --focus: var(--line);
  position: sticky; top: 0; z-index: 50;
  background: var(--print);
  color: var(--line);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.55); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: inherit; text-decoration: none; margin-right: auto;
}
.brand__logo { width: 44px; height: 44px; border-radius: 3px; background: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-cond); font-weight: 750; font-size: 1.25rem; letter-spacing: 0.005em; }
.brand__ur { font-size: 0.875rem; line-height: 1.75; color: var(--mist); text-align: left; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  color: var(--line); text-decoration: none;
  font-family: var(--font-cond); font-weight: 600; font-size: 1.0625rem;
  padding-block: 0.6rem;
  background: linear-gradient(var(--dim), var(--dim)) left calc(100% - 0.35rem) / 0 1.5px no-repeat;
  transition: background-size 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { background-size: 100% 1.5px; }
.site-nav__cta { min-height: 2.75rem; }

.menu-toggle { display: none; }

@media (max-width: 1040px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.45rem;
    min-height: 2.75rem; padding: 0.45rem 0.85rem;
    background: transparent; color: var(--line);
    border: 1.5px solid var(--line-soft); border-radius: 2px;
    font: 700 1.0625rem/1 var(--font-cond); cursor: pointer;
  }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--print-2);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); background: none; font-size: 1.25rem; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 1.0625rem; }
}

/* ---------- Sheets: one continuous drawing, framed by hairlines ---------- */
.sheet { position: relative; }
.sheet > .container,
.site-footer__inner { width: calc(100% - 1rem); }
.sheet > .container {
  position: relative;
  padding-block: var(--zone-pad);
  border-inline: 1px solid var(--frame);
}
/* registration crosses where each zone starts */
.sheet > .container::before,
.sheet > .container::after {
  content: ""; position: absolute; top: -7px; width: 15px; height: 15px;
  background:
    linear-gradient(var(--frame-strong), var(--frame-strong)) center / 1px 100% no-repeat,
    linear-gradient(var(--frame-strong), var(--frame-strong)) center / 100% 1px no-repeat;
  z-index: 2;
}
.sheet > .container::before { left: -8px; }
.sheet > .container::after { right: -8px; }

.sheet--print {
  --frame: var(--line-soft);
  --frame-strong: var(--line);
  --focus: var(--line);
  background-color: var(--print);
  color: var(--line);
}
.sheet--print a:not(.button) { color: var(--line); }
.sheet--paper {
  --frame: var(--rule);
  --frame-strong: var(--ink);
  --focus: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

/* View title, as on a drawing: name, thick rule, thin rule */
.zone-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem 3rem;
  align-items: end;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 3px solid var(--frame-strong);
  box-shadow: 0 5px 0 -4px var(--frame-strong);
}
.zone-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.zone-head h2 > span { display: block; }
.zone-head h2 .ur {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem); line-height: 2.1; margin-top: 0.35rem;
  color: var(--ink-2); text-align: left;
}
.sheet--print .zone-head h2 .ur { color: var(--mist); }
.zone-head__lead { max-width: 38rem; font-size: 1.125rem; color: var(--ink-2); }
.sheet--print .zone-head__lead { color: var(--mist); }

@media (max-width: 860px) {
  .zone-head { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero > .container { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.9rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.012em;
  max-width: 12ch;
}
.hero__lead {
  margin-top: 1.5rem; max-width: 34rem;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55;
  color: var(--mist);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

/* the section drawing */
.drawing { margin: 0; }
.drawing__sheet {
  position: relative;
  padding: 1.75rem 0 3.25rem 3rem;
}
.drawing__floors {
  list-style: none; margin: 0; padding: 0;
  border-top: 4px solid var(--line);
  position: relative;
}
/* parapet */
.drawing__floors::before {
  content: ""; position: absolute; left: -10px; right: -10px; top: -14px; height: 10px;
  border: 2px solid var(--line); border-bottom: 0;
}
.floor-band {
  border-inline: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  padding: 0.75rem calc(var(--core) + 0.85rem) 0 0.85rem;
  background: rgba(10, 44, 30, 0.55);
}
.floor-band__name {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--font-cond); font-weight: 750; font-size: 1.125rem;
}
.floor-band__name [lang="ur"] { font-size: 0.875rem; line-height: 1.9; color: var(--mist); }
.floor-band__rooms {
  list-style: none; margin: 0.5rem 0 0 -0.85rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr));
  border-top: 1px solid var(--line-soft);
}
.floor-band__rooms li {
  padding: 0.6rem 0.85rem 0.7rem;
  font-family: var(--font-cond); font-weight: 600; font-size: 0.9375rem; line-height: 1.3;
  color: var(--line);
  border-right: 1px solid var(--line-soft);
}
.floor-band__rooms li:last-child { border-right: 0; }
.floor-band__name a {
  color: inherit;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--line-soft); text-underline-offset: 0.22em;
}
.floor-band__name a:hover { text-decoration-color: var(--dim); text-decoration-thickness: 2px; }

/* stair and lift core, running through every floor as in each plan's key */
.drawing__sheet { --core: 2.5rem; }
.drawing__core {
  position: absolute; z-index: 1; pointer-events: none;
  top: calc(1.75rem + 4px); bottom: calc(3.25rem + 14px + 3px); right: 3px;
  width: var(--core);
  border-left: 1px solid var(--line-soft);
  background: repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 9px);
}
.drawing__core span {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap; padding: 0.1rem 0.45rem;
  background: var(--print); color: var(--mist);
  font-family: var(--font-cond); font-weight: 600; font-size: 0.875rem;
}

.drawing__ground {
  height: 14px; margin-inline: -1.25rem;
  border-top: 2px solid var(--line);
  background: repeating-linear-gradient(-45deg, var(--line-soft) 0 1px, transparent 1px 7px);
}
.drawing__dim { position: absolute; color: var(--dim); font-family: var(--font-cond); font-weight: 600; font-size: 0.9375rem; }
.drawing__dim--v {
  left: 0.6rem; top: 1.75rem; bottom: calc(3.25rem + 14px);
  border-left: 1px solid var(--dim);
}
.drawing__dim--v::before, .drawing__dim--v::after {
  content: ""; position: absolute; left: -7px; width: 13px; height: 1px; background: var(--dim);
  transform: rotate(-45deg);
}
.drawing__dim--v::before { top: 0; }
.drawing__dim--v::after { bottom: 0; }
.drawing__dim--v span {
  position: absolute; top: 50%; left: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
  background: var(--print); padding: 0 0.4rem; white-space: nowrap;
}
.drawing__dim--h {
  left: 3rem; right: 0; bottom: 0.9rem;
  border-top: 1px solid var(--dim);
  text-align: center;
}
.drawing__dim--h::before, .drawing__dim--h::after {
  content: ""; position: absolute; top: -7px; width: 1px; height: 13px; background: var(--dim);
  transform: rotate(45deg);
}
.drawing__dim--h::before { left: 0; }
.drawing__dim--h::after { right: 0; }
.drawing__dim--h span { position: relative; top: -0.8rem; background: var(--print); padding: 0 0.5rem; }

.drawing__note {
  display: grid; gap: 0.15rem;
  margin-left: 3rem; padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  color: var(--mist); font-size: 0.9375rem;
}
.drawing__note-title { font-family: var(--font-cond); font-weight: 750; font-size: 1.125rem; color: var(--line); }
.drawing__note-count { margin-top: 0.35rem; font-family: var(--font-cond); font-weight: 650; font-size: 1.0625rem; color: var(--dim); }

/* one authored moment: the building rises floor by floor */
@media (prefers-reduced-motion: no-preference) {
  .js .floor-band {
    animation: rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(0.2s + var(--i) * 0.24s);
  }
  .js .drawing__floors::before { animation: fade 0.5s ease both 0.95s; }
  .js .drawing__dim--v { animation: grow-v 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 1.05s; transform-origin: bottom; }
  .js .drawing__dim--h { animation: grow-h 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.15s; transform-origin: left; }
  .js .drawing__note { animation: fade 0.6s ease both 1.25s; }
  .js .drawing__core { animation: fade 0.5s ease both 0.9s; }
}
@keyframes rise {
  from { clip-path: inset(100% -12px 0 -12px); opacity: 0.25; }
  to { clip-path: inset(-12px -12px -12px -12px); opacity: 1; }
}
@keyframes grow-v { from { transform: scaleY(0); } to { transform: none; } }
@keyframes grow-h { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
}
@media (max-width: 520px) {
  .drawing__sheet { padding-left: 2.25rem; }
  .drawing__dim--v { left: 0.3rem; }
  .drawing__dim--h { left: 2.25rem; }
  .drawing__note { margin-left: 2.25rem; }
  .drawing__ground { margin-inline: -0.6rem; }
  .drawing__sheet { --core: 1.9rem; }
  .floor-band__rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floor-band__rooms li { border-bottom: 1px solid var(--line-soft); }
  .floor-band__rooms li:nth-child(2n) { border-right: 0; }
  .floor-band__rooms li:last-child, .floor-band__rooms li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* ---------- Photos and detail bubbles ---------- */
.photo { margin: 0; }
.photo img { width: 100%; border: 1px solid var(--rule); background: var(--paper-2); }
.photo figcaption {
  display: flex; align-items: center; gap: 0.65rem;
  margin-top: 0.65rem; font-size: 0.9375rem; color: var(--ink-2);
}
.bubble {
  flex: none; position: relative;
  width: 2.75rem; height: 2.75rem; border: 1.5px solid currentColor; border-radius: 50%;
  display: grid; grid-template-rows: 1fr 1fr; place-items: center;
  color: var(--ink); font-family: var(--font-cond); line-height: 1;
}
.bubble::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.bubble b { font-weight: 750; font-size: 0.9375rem; align-self: end; padding-bottom: 2px; }
.bubble i { font-style: normal; font-weight: 600; font-size: 0.75rem; align-self: start; padding-top: 2px; letter-spacing: 0.01em; }

/* ---------- Centre ---------- */
.centre {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "lead count count"
    "lead a b";
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
.photo--lead { grid-area: lead; }
.centre > .photo:nth-of-type(2) { grid-area: a; }
.centre > .photo:nth-of-type(3) { grid-area: b; }
.centre__count {
  grid-area: count;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: center;
  padding-block: 0.25rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.count { grid-row: span 2; display: flex; align-items: flex-start; font-family: var(--font-cond); font-weight: 800; line-height: 0.9; }
.count__num { font-size: clamp(3.4rem, 6vw, 5.5rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.count__plus { font-size: 1.5rem; color: var(--red); margin-left: 0.1em; }
.count__label { font-family: var(--font-cond); font-weight: 700; font-size: 1.25rem; line-height: 1.15; align-self: end; }
.count__source { font-size: 0.875rem; color: var(--ink-2); align-self: start; margin-top: 0.35rem; }
.centre__give { margin-top: 2rem; font-size: 1.0625rem; }
.centre__give a { font-weight: 700; margin-left: 0.25rem; }

@media (max-width: 960px) {
  .centre { grid-template-columns: 1fr 1fr; grid-template-areas: "count count" "lead lead" "a b"; }
}
@media (max-width: 560px) {
  .centre { grid-template-columns: 1fr; grid-template-areas: "count" "lead" "a" "b"; }
  .centre__count { grid-template-columns: 1fr; }
  .count { grid-row: auto; }
}

/* ---------- Hospital plans ---------- */
.plans {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.plans__key {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  display: grid; gap: 1.75rem;
}
.key {
  display: flex; flex-direction: column;
  border-top: 4px solid var(--line);
}
.key__floor {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  min-height: 3.5rem; padding: 0.35rem 0.85rem;
  border: 2px solid var(--line); border-top: 0;
  font-family: var(--font-cond); font-weight: 700; font-size: 1.125rem;
  text-decoration: none;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.sheet--print .key__floor { color: var(--line); }
.key__floor [lang="ur"] { font-size: 0.875rem; line-height: 1.8; color: inherit; opacity: 0.85; }
.key__floor:hover { background: rgba(232, 239, 200, 0.1); }
.sheet--print .key__floor.is-current { background: var(--line); color: var(--ink); }
.key__ground {
  height: 12px; margin-inline: -0.75rem;
  border-top: 2px solid var(--line);
  background: repeating-linear-gradient(-45deg, var(--line-soft) 0 1px, transparent 1px 7px);
}
.rendering { margin: 0; }
.rendering img { width: 100%; border: 1px solid var(--line-soft); }
.rendering figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--mist); }

.plans__floors { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.floor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "plan" "schedule";
  gap: 1.25rem 2.25rem;
  padding-top: 1.25rem;
  border-top: 3px solid var(--line);
  transition: color 0.45s ease, border-color 0.45s ease, opacity 0.45s ease;
}
.floor__head { grid-area: head; display: grid; gap: 0.4rem; }
.floor__head h3 {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.floor__head h3 [lang="ur"] { font-size: clamp(0.9375rem, 1.4vw, 1.125rem); color: var(--mist); }
.floor__head p { color: var(--mist); max-width: 40rem; }

.schedule {
  grid-area: schedule;
  list-style: none; margin: 0; padding: 0;
  counter-reset: room;
  columns: 3; column-gap: 1.75rem;
  font-size: 0.9375rem;
}
.schedule li {
  counter-increment: room;
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line-soft);
  break-inside: avoid;
  line-height: 1.3;
}
.schedule li::before {
  content: counter(room);
  flex: none; width: 1.6rem;
  font-family: var(--font-cond); font-weight: 700; font-size: 0.875rem;
  color: var(--dim); font-variant-numeric: tabular-nums;
}
.floor__plan { grid-area: plan; margin: 0; max-width: 700px; }
.floor__plan a { display: block; }
.floor__plan img { width: 100%; border: 1px solid var(--line-soft); background: var(--paper); }
.floor__plan figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--mist); }

/* only the floor in view is inked; the others stay in pencil */
.js .plans__floors.is-tracking .floor:not(.is-current) { border-top-color: var(--line-soft); }
.js .plans__floors.is-tracking .floor:not(.is-current) .floor__head h3 { color: var(--mist); }
.js .plans__floors.is-tracking .floor:not(.is-current) .floor__plan img { border-color: var(--line-faint); }
.floor__plan img { transition: border-color 0.45s ease; }

.plans__ask {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-soft);
}
.plans__ask p { font-family: var(--font-cond); font-weight: 700; font-size: 1.25rem; }

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .plans__key { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 760px) {
  .schedule { columns: 2; }
}
@media (max-width: 720px) {
  .plans { gap: 1.5rem; }
  .plans__key { display: contents; }
  .rendering { order: 0; }
  .plans__key .key {
    order: 1;
    position: sticky; top: var(--header-h); z-index: 5;
    flex-direction: row-reverse;
    margin-inline: -0.25rem;
    border-top: 0;
    background: var(--print);
    box-shadow: 0 10px 14px -12px rgba(0, 0, 0, 0.7);
  }
  .plans__key .key__floor {
    flex: 1; flex-direction: column; justify-content: center; gap: 0;
    min-height: 3.6rem; padding: 0.3rem 0.4rem 0.15rem;
    border: 2px solid var(--line); border-left-width: 0;
    line-height: 1.1;
  }
  .plans__key .key__floor:last-of-type { border-left-width: 2px; }
  .plans__key .key__floor [lang="ur"] { font-size: 0.75rem; line-height: 1.7; }
  .plans__key .key__ground { display: none; }
  .plans__floors { order: 2; }
}
@media (max-width: 420px) {
  .schedule { columns: 1; }
}

/* ---------- Programmes ---------- */
.programmes {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--ink);
  font-size: 1.0625rem;
}
.programmes thead th {
  background: var(--ink); color: var(--paper);
  text-align: left; padding: 0.7rem 1.1rem;
  font-family: var(--font-cond); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em;
}
.programmes tbody th, .programmes td {
  padding: 1.1rem 1.1rem; vertical-align: top; text-align: left;
  border-top: 1px solid var(--rule);
}
.programmes tbody th {
  width: 15rem;
  font-family: var(--font-cond); font-weight: 750; font-size: 1.5rem; line-height: 1.1;
  border-right: 1px solid var(--rule);
}
.programmes tbody th > span { display: block; }
.programmes tbody th [lang="ur"] { font-size: 1.125rem; color: var(--ink-2); margin-top: 0.2rem; }
.programmes td { max-width: 65ch; }
.programmes td .ur-line { display: block; margin-top: 0.35rem; text-align: left; font-size: 1.0625rem; color: var(--ink-2); }

@media (max-width: 640px) {
  .programmes, .programmes tbody, .programmes tr, .programmes th, .programmes td { display: block; width: auto; }
  .programmes thead { display: none; }
  .programmes tbody th { border-right: 0; padding-bottom: 0.35rem; }
  .programmes tbody td { border-top: 0; padding-top: 0; }
  .programmes tbody tr { border-top: 1px solid var(--rule); }
  .programmes tbody tr:first-child { border-top: 0; }
  .programmes tbody th { border-top: 0; }
}

/* ---------- People ---------- */
.people { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.people__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  padding-bottom: 0.9rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.people__title [lang="ur"] { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.people__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
}
.person { margin: 0; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.person img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border: 1px solid var(--rule); }
.person figcaption { display: grid; gap: 0.3rem; color: var(--ink-2); }
.person strong { font-family: var(--font-cond); font-weight: 750; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.person__role { font-family: var(--font-cond); font-weight: 700; color: var(--red); font-size: 1.0625rem; }

.events {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.events .photo img { aspect-ratio: 3 / 2; object-fit: cover; }

@media (max-width: 860px) {
  .people__list { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr 1fr; }
  .events .photo:last-child { grid-column: span 2; }
}
@media (max-width: 520px) {
  .person { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; }
  .events { grid-template-columns: 1fr; }
  .events .photo:last-child { grid-column: auto; }
}

/* ---------- Registration: title block ---------- */
.title-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 3px solid var(--line);
}
.tb {
  padding: 0.9rem 1.1rem 1.05rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: grid; align-content: start; gap: 0.35rem;
}
.tb dt {
  font-family: var(--font-cond); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.04em; color: var(--mist);
}
.tb dd {
  margin: 0;
  font-family: var(--font-cond); font-weight: 650; font-size: 1.25rem; line-height: 1.32;
}
.tb--name { grid-column: span 2; grid-row: span 2; }
.tb--name dd { display: flex; align-items: center; gap: 1rem; font-size: 1.5rem; font-weight: 750; line-height: 1.15; }
.tb--name img { width: 60px; height: 60px; background: #fff; border-radius: 3px; flex: none; }
.tb--name [lang="ur"] { font-size: 1.0625rem; color: var(--mist); font-weight: 600; }
.tb--wide { grid-column: span 2; }
.tb__code { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: #fff; }

@media (max-width: 960px) {
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb--name { grid-row: auto; }
}
@media (max-width: 560px) {
  .title-block { grid-template-columns: 1fr; }
  .tb--name, .tb--wide { grid-column: auto; }
  .tb { border-right: 0; }
}

/* ---------- Support ---------- */
.ways {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
}
.ways { counter-reset: way; }
.ways li { counter-increment: way; padding-top: 1rem; border-top: 2px solid var(--ink); }
.ways h3::before {
  content: counter(way); display: inline-block; min-width: 1.4rem;
  color: var(--red); font-variant-numeric: tabular-nums;
}
.ways h3 { font-size: 1.5rem; line-height: 1.1; margin-bottom: 0.5rem; }
.ways p { color: var(--ink-2); max-width: 34ch; }
.support__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: clamp(2.25rem, 4vw, 3rem); }

@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: start; }
.contact .zone-head { grid-template-columns: 1fr; margin-bottom: 0; padding-bottom: 0; border-bottom: 0; box-shadow: none; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.contact__list li {
  display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line-soft);
}
.contact__list .icon { width: 1.5rem; height: 1.5rem; color: var(--dim); margin-top: 0.15rem; }
.contact__label { font-family: var(--font-cond); font-weight: 600; font-size: 0.9375rem; color: var(--mist); }
.contact__list p:not(.contact__label) { font-size: 1.25rem; font-family: var(--font-cond); font-weight: 650; }
.contact__list a { font-weight: 600; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--print-3); color: var(--mist); font-size: 0.9375rem; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  border-inline: 1px solid var(--line-soft);
}
.site-footer strong { color: var(--line); font-weight: 700; }
