@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("assets/NotoNastaliqUrdu-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14312b;
  --green: #0b3f35;
  --green-deep: #062d26;
  --green-soft: #dfece5;
  --ivory: #f7f4ec;
  --paper: #fffdf8;
  --gold: #d4a334;
  --gold-soft: #f8e5b5;
  --line: #d7ddd4;
  --muted: #64726c;
  --danger: #b7412e;
  --shadow: 0 24px 60px rgba(6, 45, 38, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.urdu, html[lang="ur"] body { font-family: "Noto Nastaliq Urdu", serif; }
.urdu { line-height: 2; }
.shell { min-height: 85svh; }
.topbar {
  position: sticky;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 92px;
  margin-bottom: -92px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.17);
  background: linear-gradient(180deg, rgba(6,45,38,.62), rgba(6,45,38,.24));
  box-shadow: 0 12px 36px rgba(4, 31, 26, .12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.topbar.is-scrolled { border-color: rgba(255,255,255,.22); background: rgba(6,45,38,.92); box-shadow: 0 12px 30px rgba(4,31,26,.22); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: -0.02em; }
.brand picture { display: block; flex: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: white; }
.brand span { max-width: 235px; font-size: 0.86rem; line-height: 1.15; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.88rem; font-weight: 650; }
.nav a { padding: 8px 0 7px; opacity: 0.94; border-bottom: 1px solid transparent; transition: opacity 180ms ease, color 180ms ease, border-color 180ms ease; }
.nav a:hover { opacity: 0.7; }
.nav a.is-active { color: #f6d981; border-color: currentColor; }
.nav-tools { display: flex; align-items: center; gap: 11px; }
.language-toggle {
  min-width: 46px;
  padding: 8px 11px;
  color: white;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 750;
}
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px; color: inherit; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .78rem; font-weight: 760; }
.menu-toggle span { font-size: 1rem; line-height: 1; }
.menu-scrim { position: fixed; z-index: 30; inset: 0; width: 100%; padding: 0; border: 0; background: rgba(6,45,38,.45); opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.menu-scrim.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu { position: fixed; z-index: 31; top: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; width: min(360px, calc(100vw - 24px)); padding: 20px; color: var(--ink); background: rgba(255,253,248,.94); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 28px 80px rgba(4,31,26,.28); backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15); transform: translateX(calc(100% + 28px)); transition: transform 260ms cubic-bezier(.2,.8,.2,1); }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.mobile-menu-label { color: #8c6715; font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.menu-close { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; color: var(--green); border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.55rem; line-height: 1; }
.mobile-menu-links { display: grid; gap: 2px; margin-top: 22px; }
.mobile-menu-links a { padding: 13px 0; color: var(--green); border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 760; }
.mobile-menu-foot { margin-top: auto; padding-top: 20px; color: var(--muted); font-size: .86rem; line-height: 1.7; }
html[dir="rtl"] .mobile-menu { right: auto; left: 12px; transform: translateX(calc(-100% - 28px)); }
html[dir="rtl"] .mobile-menu.is-open { transform: translateX(0); }
body.menu-open { overflow: hidden; }

.inner-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 48px)); min-height: 92px; margin: auto; color: var(--green); isolation: isolate; }
.inner-header::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; content: ""; border-bottom: 1px solid rgba(20,49,43,.1); background: rgba(247,244,236,.93); box-shadow: 0 8px 22px rgba(20,49,43,.05); transform: translateX(-50%); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); }
.inner-header .nav { margin-left: auto; margin-right: 38px; }
.inner-header .language-toggle { color: var(--green); border-color: rgba(11,63,53,.55); }
.inner-header .menu-toggle { color: var(--green); border-color: rgba(11,63,53,.4); background: rgba(11,63,53,.04); }
.inner-header .nav a.is-active { color: #8c6715; }

.hero {
  position: relative;
  min-height: clamp(720px, 56.25vw, 900px);
  overflow: hidden;
  color: white;
  background: var(--green-deep);
}
.hero-media { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #062d26 0%, rgba(6, 45, 38, .98) 34%, rgba(6, 45, 38, .72) 45%, rgba(6, 45, 38, .18) 63%, rgba(6, 45, 38, .03) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(630px, calc(100% - 96px));
  margin-left: max(48px, calc((100vw - 1180px) / 2));
  padding: clamp(178px, 15vw, 228px) 0 82px;
  animation: lift-in 700ms ease-out both;
}
.eyebrow { margin: 0 0 13px; color: #f6d981; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.45rem); line-height: 0.98; letter-spacing: -0.065em; }
.hero .urdu.hero-title { max-width: 790px; font-size: clamp(2.3rem, 4.7vw, 4.6rem); line-height: 1.4; letter-spacing: 0; }
.hero-summary { max-width: 570px; margin: 26px 0 0; color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--green-deep); background: var(--gold-soft); }
.button-quiet { color: white; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.05); }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 112px 0; }
.section-label { display: block; margin-bottom: 12px; color: #8c6715; font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section h2 { max-width: 720px; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.03; letter-spacing: -.055em; }
.section h2.urdu { line-height: 1.55; letter-spacing: 0; }
.section-intro { max-width: 630px; margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.pledge { background: var(--green-soft); }
.pledge-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(350px, 1.1fr); gap: 72px; align-items: center; }
.pledge-copy { padding-left: 18px; border-left: 2px solid var(--gold); }
.pledge-copy p { margin: 18px 0 0; color: var(--muted); line-height: 1.75; }
.pledge-points { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.pledge-points li { padding: 0 0 20px; border-bottom: 1px solid rgba(20,49,43,.18); font-size: 1.04rem; font-weight: 670; }
.pledge-points li:last-child { padding-bottom: 0; border-bottom: 0; }
.pledge-points span { display: block; margin-top: 5px; color: var(--muted); font-size: .92rem; font-weight: 400; line-height: 1.55; }

.panel-section { background: var(--paper); }
.panel-lead { display: block; }
.panel-image { overflow: hidden; background: #e7ebe4; border: 1px solid #d2c59f; }
.panel-image img { width: 100%; height: auto; transition: transform 600ms ease; }
.panel-image:hover img { transform: scale(1.018); }
.panel-aside { max-width: 690px; margin: 46px auto 0; text-align: center; }
.panel-aside p { margin: 20px 0 0; color: var(--muted); line-height: 1.75; }
.candidate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; margin-top: 82px; border-top: 1px solid var(--line); }
.candidate { display: grid; grid-template-columns: minmax(135px, .7fr) minmax(0, 1.3fr); gap: 22px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.candidate-meta { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start; }
.candidate-photo { width: 58px; height: 58px; object-fit: cover; border: 2px solid #efe1b8; border-radius: 50%; background: var(--green-soft); }
.candidate-role { margin: 0; color: #8c6715; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.candidate-name { margin: 5px 0 0; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.025em; }
.candidate-description { max-width: 620px; margin: 0; color: #46554e; font-size: .94rem; line-height: 1.7; }

.lookup-section {
    position: relative;
    color: white;
    background: var(--green-deep);
    scroll-margin-top: 16px;
    padding-top: 2%;
}
.lookup-section::before { position: absolute; inset: 0 0 auto; height: 4px; content: ""; background: var(--gold); }
.lookup-layout { display: grid; grid-template-columns: minmax(0, .74fr) minmax(440px, 1.26fr);  align-items: center; }
.lookup-section .section { padding: 90px 0 96px; }
.lookup-section .section-label { color: #f6d981; }
.lookup-section h2 { max-width: 560px; font-size: clamp(2.3rem, 4.7vw, 4.35rem); }
.lookup-section p { max-width: 520px; color: rgba(255,255,255,.75); line-height: 1.75; }
.lookup-form { display: grid; gap: 12px; padding: 10px 0 10px 34px; border-left: 1px solid rgba(246,217,129,.65); }
.lookup-form label { color: rgba(255,255,255,.8); font-size: .84rem; font-weight: 700; }
.lookup-tools { display: grid; gap: 22px; }
.lookup-control { display: flex; gap: 0; border-bottom: 2px solid var(--gold); background: var(--paper); }
.lookup-control input { min-width: 0; flex: 1; padding: 18px 18px; color: var(--ink); border: 0; outline: 0; background: transparent; }
.lookup-control input::placeholder { color: #89958f; }
.lookup-control button { min-width: 114px; padding: 11px 17px; color: var(--green-deep); border: 0; background: var(--gold-soft); font-weight: 850; }
.search-hint { margin: 1px 0 0; color: rgba(255,255,255,.65); font-size: .78rem; line-height: 1.55; }
.plot-lookup { padding: 18px 0 0 34px; border-top: 1px solid rgba(246,217,129,.34); }
.plot-lookup summary { color: #f6d981; cursor: pointer; font-size: .84rem; font-weight: 830; list-style: none; }
.plot-lookup summary::-webkit-details-marker { display: none; }
.plot-lookup summary::after { display: inline-block; margin-left: 9px; content: "+"; font-size: 1.05rem; line-height: 0; }
.plot-lookup[open] summary::after { content: "−"; }
.plot-lookup > p { max-width: 620px; margin: 13px 0 0; color: rgba(255,255,255,.72); font-size: .8rem; line-height: 1.6; }
.plot-lookup form { display: grid; gap: 13px; margin-top: 16px; }
.plot-lookup-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .44fr); gap: 12px; }
.plot-lookup label { display: grid; gap: 7px; color: rgba(255,255,255,.75); font-size: .72rem; font-weight: 760; }
.plot-lookup input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--ink); border: 0; outline: 0; background: var(--paper); font: inherit; }
.plot-lookup button { width: fit-content; min-height: 42px; padding: 10px 16px; color: var(--green-deep); border: 0; background: var(--gold-soft); font: inherit; font-size: .82rem; font-weight: 850; }
.plot-lookup small { color: rgba(255,255,255,.6); font-size: .72rem; line-height: 1.5; }
.form-message { min-height: 24px; margin: 0; color: #f6d981; font-size: .85rem; line-height: 1.55; }
.form-message.error { color: #ffd0c7; }

.text-action { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding-bottom: 5px; color: var(--green); border-bottom: 1px solid var(--gold); font-size: .88rem; font-weight: 820; transition: color 160ms ease, border-color 160ms ease; }
.text-action:hover { color: #8c6715; border-color: currentColor; }
.guide-preview { background: var(--paper); }
.guide-preview-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(390px, 1.12fr); gap: 88px; align-items: end; }
.guide-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-facts > div { min-width: 0; padding: 21px 20px 24px 0; }
.guide-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.guide-facts dt, .guide-hero-facts dt { color: #8c6715; font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.guide-facts dd, .guide-hero-facts dd { margin: 8px 0 0; color: var(--ink); font-size: .98rem; font-weight: 760; line-height: 1.35; }

.announcements { background: #eef3ee; }
.announcements-layout { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); gap: 88px; align-items: start; }
.notice-list { border-top: 1px solid var(--line); }
.notice { position: relative; display: block; padding: 21px 42px 22px 0; border-bottom: 1px solid var(--line); transition: color 180ms ease, padding 180ms ease; }
.notice:hover { padding-right: 48px; color: #735512; }
.notice-meta { display: flex; justify-content: space-between; gap: 18px; color: #8c6715; font-size: .7rem; font-weight: 830; letter-spacing: .1em; text-transform: uppercase; }
.notice-meta time { color: var(--muted); font-weight: 720; letter-spacing: .04em; }
.notice h3 { margin: 10px 0 0; font-size: 1.24rem; line-height: 1.25; letter-spacing: -.03em; }
.notice p { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.notice-action { position: absolute; top: 50%; right: 4px; color: #8c6715; font-size: 1.45rem; transform: translateY(-50%); }
.updates-list-section { padding: 46px 0 96px; background: var(--ivory); }
.updates-list-section .notice { padding-top: 25px; padding-bottom: 26px; }
.update-story { padding: 82px 0 96px; background: var(--ivory); }
.update-story .information-back { margin-bottom: 55px; }
.update-story-meta { display: flex; align-items: center; gap: 15px; color: #8c6715; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.update-story-meta time { color: var(--muted); font-weight: 720; letter-spacing: .04em; }
.update-story h1 { max-width: 820px; margin: 18px 0 0; color: var(--green-deep); font-size: clamp(2.65rem, 5.5vw, 5.25rem); line-height: 1; letter-spacing: -.065em; }
.update-story h1.urdu { line-height: 1.5; letter-spacing: 0; }
.update-story-lead { max-width: 690px; margin: 24px 0 0; color: #53625c; font-size: 1.15rem; line-height: 1.7; }
.update-story-body { max-width: 740px; margin-top: 42px; padding-top: 31px; border-top: 1px solid var(--line); }
.update-story-body p { margin: 0; color: var(--ink); font-size: 1.04rem; line-height: 1.85; }

.information-shell { min-height: 100svh; background: var(--ivory); }
.information-hero { padding: 86px 0 92px; color: white; background: var(--green-deep); }
.information-width { width: min(900px, calc(100% - 48px)); margin: auto; }
.information-back { margin-bottom: 48px; color: rgba(255,255,255,.78); border-color: rgba(246,217,129,.75); }
.information-back:hover { color: #f6d981; }
.information-hero .section-label { color: #f6d981; }
.information-hero h1 { max-width: 740px; margin: 0; color: white; font-size: clamp(2.85rem, 6vw, 5.15rem); line-height: 1; letter-spacing: -.065em; }
.information-hero h1.urdu { line-height: 1.5; letter-spacing: 0; }
.information-hero p { max-width: 680px; margin: 22px 0 0; color: rgba(255,255,255,.8); font-size: 1.06rem; line-height: 1.75; }
.information-body { padding: 26px 0 84px; }
.information-sections { border-top: 1px solid var(--line); }
.information-section { display: grid; grid-template-columns: minmax(220px, .58fr) minmax(0, 1.42fr); gap: 64px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.information-section h2 { margin: 0; color: var(--green); font-size: 1.25rem; line-height: 1.25; letter-spacing: -.025em; }
.information-section p { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.75; }

.bank-section { background: #f0ebe0; }
.bank-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(420px, 1.16fr); gap: 76px; align-items: center; }
.bank-copy .section-intro { max-width: 560px; }
.bank-details { max-width: 590px; margin: 34px 0 0; border-top: 1px solid rgba(20,49,43,.24); }
.bank-details > div { display: grid; grid-template-columns: minmax(128px, .56fr) minmax(0, 1.44fr); gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(20,49,43,.18); }
.bank-details dt { color: #64726c; font-size: .7rem; font-weight: 830; letter-spacing: .09em; text-transform: uppercase; }
.bank-details dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; color: var(--green-deep); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; font-weight: 760; overflow-wrap: anywhere; }
.bank-details dd span { min-width: 0; }
.copy-button { flex: none; padding: 4px 0; color: #8c6715; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: .7rem; font-weight: 850; }
.bank-guide-link { margin-top: 24px; }
.bank-poster { display: block; width: 100%; overflow: hidden; background: var(--paper); box-shadow: 0 20px 44px rgba(20,49,43,.11); }
.bank-poster img { width: 100%; height: auto; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.contact h2 { max-width: 540px; }
.contact-links { display: grid; min-width: 288px; gap: 0; }
.contact-line { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); transition: color 160ms ease, border-color 160ms ease; }
.contact-line:first-child { border-top: 1px solid var(--line); }
.contact-line span { color: var(--muted); font-size: .72rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.contact-line strong { color: var(--green); font-size: 1.05rem; letter-spacing: -.02em; text-align: right; }
.contact-line:hover { color: #8c6715; border-color: var(--gold); }
.footer { color: rgba(255,255,255,.78); background: var(--green-deep); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(160px, .55fr) minmax(180px, .65fr); gap: 48px; width: min(1180px, calc(100% - 48px)); margin: auto; padding: 60px 0 48px; }
.footer-brand .brand { color: white; }
.footer-brand p { margin: 18px 0 0; color: #f6d981; font-size: 1.02rem; font-weight: 720; }
.footer-brand small { display: block; max-width: 460px; margin-top: 13px; color: rgba(255,255,255,.64); font-size: .82rem; line-height: 1.6; }
.footer-group { display: grid; align-content: start; gap: 10px; }
.footer-group h2 { margin: 0 0 7px; color: #f6d981; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.footer-group a { width: fit-content; color: rgba(255,255,255,.78); font-size: .88rem; line-height: 1.5; transition: color 160ms ease; }
.footer-group a:hover { color: #f6d981; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1180px, calc(100% - 48px)); margin: auto; padding: 20px 0 28px; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.16); font-size: .78rem; }
.footer-credit { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.62); font-weight: 650; text-decoration: none; transition: color 160ms ease; }
.footer-credit:hover { color: #f6d981; }

.guide-shell { min-height: 100svh; background: var(--ivory); }
.guide-header { min-height: 92px; }
.guide-header .language-toggle { color: var(--green); border-color: rgba(11,63,53,.55); }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); min-height: 440px; color: white; background: var(--green-deep); }
.guide-hero-copy { align-self: center; width: 100%; margin: 0; padding: 84px 32px 84px max(24px, calc((100vw - 1180px) / 2)); }
.guide-back { margin-bottom: 54px; color: rgba(255,255,255,.78); border-color: rgba(246,217,129,.75); }
.guide-back:hover { color: #f6d981; }
.guide-hero .section-label { color: #f6d981; }
.guide-hero h1 { max-width: 650px; margin: 0; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.07em; }
.guide-hero h1.urdu { font-size: clamp(2.3rem, 4.7vw, 4.5rem); line-height: 1.45; letter-spacing: 0; }
.guide-hero p { max-width: 560px; margin: 21px 0 0; color: rgba(255,255,255,.78); font-size: 1.05rem; line-height: 1.7; }
.guide-hero-facts { display: grid; align-content: center; gap: 0; margin: 0; padding: 0 max(24px, calc((100vw - 1180px) / 2)) 0 58px; background: #0b3f35; }
.guide-hero-facts > div { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.guide-hero-facts > div:first-child { border-top: 1px solid rgba(255,255,255,.18); }
.guide-hero-facts dt { color: #f6d981; }
.guide-hero-facts dd { color: white; font-size: 1.12rem; }
.guide-page-width { width: min(1080px, calc(100% - 48px)); margin: auto; }
.guide-checklist { background: var(--paper); }
.guide-checklist-layout { display: grid; grid-template-columns: minmax(210px, .6fr) minmax(0, 1.4fr); gap: 84px; align-items: center; padding-top: 68px; padding-bottom: 68px; }
.guide-checklist h2, .guide-faq > .guide-page-width > h2 { max-width: 630px; margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.03; letter-spacing: -.055em; }
.guide-checklist h2.urdu, .guide-faq > .guide-page-width > h2.urdu { line-height: 1.55; letter-spacing: 0; }
.guide-checklist-items { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.guide-checklist-items li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 670; line-height: 1.5; }
.guide-checklist-items li > span { color: #8c6715; font-size: .76rem; font-weight: 850; letter-spacing: .08em; }
.guide-faq { padding: 104px 0; background: var(--ivory); }
.guide-groups { margin-top: 62px; border-top: 1px solid var(--line); }
.guide-group { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 70px; padding: 38px 0 40px; border-bottom: 1px solid var(--line); }
.guide-group-heading > span { display: block; color: #8c6715; font-size: .68rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.guide-group-heading h3 { max-width: 300px; margin: 10px 0 0; color: var(--ink); font-size: 1.35rem; letter-spacing: -.035em; line-height: 1.18; }
.guide-group-heading.urdu h3 { font-size: 1.55rem; line-height: 1.8; letter-spacing: 0; }
.guide-questions { border-top: 1px solid rgba(20,49,43,.16); }
.guide-questions details { border-bottom: 1px solid rgba(20,49,43,.16); }
.guide-questions summary { position: relative; padding: 17px 34px 17px 0; color: var(--green); cursor: pointer; font-size: .98rem; font-weight: 760; line-height: 1.45; list-style: none; }
.guide-questions summary::-webkit-details-marker { display: none; }
.guide-questions summary::after { position: absolute; top: 16px; right: 2px; content: "+"; color: #8c6715; font-size: 1.25rem; font-weight: 450; transition: transform 160ms ease; }
.guide-questions details[open] summary::after { transform: rotate(45deg); }
.guide-answer { padding: 0 0 21px; }
.guide-answer p { margin: 0; color: #53625c; font-size: .94rem; line-height: 1.72; }
.guide-disclaimer { padding: 64px 0 76px; color: white; background: var(--green); }
.guide-disclaimer .section-label { color: #f6d981; }
.guide-disclaimer p { max-width: 710px; margin: 0; color: rgba(255,255,255,.84); line-height: 1.75; }
.guide-disclaimer .text-action { color: white; border-color: #f6d981; }
.guide-disclaimer .text-action:hover { color: #f6d981; }

.results-page { min-height: 100svh; background: var(--ivory); }
.results-header { display: flex; justify-content: space-between; align-items: center; width: min(1080px, calc(100% - 48px)); margin: auto; min-height: 92px; }
.results-header .brand { color: var(--green); }
.results-header .language-toggle { color: var(--green); border-color: var(--green); }
.results-wrap { width: min(1080px, calc(100% - 48px)); margin: auto; padding: 62px 0 96px; }
.back-link { display: inline-flex; gap: 9px; align-items: center; color: #6c514f; font-size: .88rem; font-weight: 760; }
.results-title { margin: 18px 0 0; font-size: clamp(2rem, 4.4vw, 3.8rem); letter-spacing: -.06em; line-height: 1; }
.results-title.urdu { line-height: 1.5; letter-spacing: 0; }
.results-subtitle { max-width: 690px; margin: 16px 0 0; color: var(--muted); line-height: 1.7; }
.result-search { max-width: 690px; margin-top: 27px; padding-top: 17px; border-top: 1px solid var(--line); }
.result-search > label { display: block; margin-bottom: 9px; color: var(--green); font-size: .8rem; font-weight: 830; letter-spacing: .045em; }
.result-search-control { display: flex; gap: 0; border: 1px solid rgba(11,63,53,.27); background: var(--paper); box-shadow: 0 8px 18px rgba(20,49,43,.05); }
.result-search-control input { min-width: 0; flex: 1; padding: 13px 14px; color: var(--ink); border: 0; outline: 0; background: transparent; }
.result-search-control button { min-width: 108px; padding: 10px 16px; color: var(--green-deep); border: 0; border-left: 1px solid rgba(11,63,53,.18); background: var(--gold-soft); font-size: .84rem; font-weight: 850; }
.result-search-hint, .result-search-message { margin: 7px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.result-search-message { min-height: 18px; color: var(--danger); }
.results-warning { margin: 32px 0 0; padding: 15px 18px; color: #6b4f08; border-left: 3px solid var(--gold); background: var(--gold-soft); font-size: .9rem; line-height: 1.6; }
.results-list { margin-top: 36px; border-top: 1px solid var(--line); }
.result { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.result-serial { color: #8c6715; font-size: .8rem; font-weight: 800; padding-top: 7px; }
.identity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.result-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.result-name { margin: 0; font-size: clamp(1.2rem, 2.5vw, 1.5rem); letter-spacing: -.03em; line-height: 1.25; }
mark { padding: 0 .11em; color: inherit; background: var(--gold-soft); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.profile-link { display: inline-block; margin-top: 22px; padding-bottom: 4px; color: var(--green); border-bottom: 1px solid var(--gold); font-size: .84rem; font-weight: 800; transition: color 160ms ease, border-color 160ms ease; }
.profile-link:hover { color: #8c6715; border-color: currentColor; }
.profile-card-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px 15px; color: var(--green-deep); border: 1px solid rgba(11,63,53,.28); background: var(--paper); font-size: .85rem; font-weight: 830; transition: color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.profile-card-link:hover { color: #8c6715; border-color: var(--gold); transform: translateY(-1px); }
.profile-record { margin-top: 40px; border-top: 1px solid var(--line); }
.profile-identity { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .48fr); gap: 36px 52px; padding: 34px 0 38px; }
.profile-entry { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.profile-entry span, .profile-name-field > span, .profile-cnic > span, .profile-field dt { color: var(--muted); font-size: .7rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.profile-entry strong { color: #8c6715; font-size: .84rem; letter-spacing: .08em; }
.profile-name-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.profile-name-field h2 { margin: 7px 0 0; color: var(--ink); font-size: clamp(1.3rem, 2.35vw, 1.85rem); letter-spacing: -.035em; line-height: 1.15; text-align: left; }
.profile-cnic { align-self: end; padding: 20px 0 2px 26px; border-left: 2px solid var(--gold); }
.profile-cnic > span, .profile-cnic small { display: block; }
.profile-cnic strong { display: block; margin-top: 7px; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1.2rem, 2vw, 1.55rem); font-variant-numeric: tabular-nums; letter-spacing: .035em; line-height: 1.2; white-space: nowrap; }
.profile-cnic small { margin-top: 9px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.profile-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.profile-group { min-width: 0; padding: 29px 28px 36px 0; }
.profile-group + .profile-group { padding-left: 28px; border-left: 1px solid var(--line); }
.profile-group h2 { margin: 0; color: #8c6715; font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.profile-group h2.urdu { font-size: 1rem; letter-spacing: 0; }
.profile-fields { display: grid; gap: 19px; margin: 24px 0 0; }
.profile-field { min-width: 0; }
.profile-field dd { margin: 6px 0 0; color: var(--ink); font-size: .98rem; font-weight: 620; line-height: 1.55; overflow-wrap: anywhere; }
.empty-state { margin-top: 34px; padding: 28px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); line-height: 1.7; }
.loading { display: flex; align-items: center; min-height: 55svh; color: var(--muted); }

.card-page-wrap { padding-top: 52px; }
.card-page-title { margin-top: 18px; }
.voter-card { position: relative; margin-top: 39px; overflow: hidden; color: var(--ink); border: 1px solid rgba(11,63,53,.22); background: var(--paper); box-shadow: 0 24px 55px rgba(6,45,38,.15); }
.voter-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; content: ""; background: var(--gold); }
.voter-card-head { padding: 21px 28px 19px 32px; color: white; border-bottom: 5px solid var(--gold); background: var(--green-deep); }
.voter-card-brand { display: flex; gap: 16px; align-items: center; }
.voter-card-brand > img { width: 61px; height: 61px; padding: 2px; object-fit: contain; border-radius: 50%; background: white; }
.voter-card-brand span, .voter-card-brand small { display: block; color: rgba(255,255,255,.76); font-size: .67rem; font-weight: 720; letter-spacing: .065em; text-transform: uppercase; }
.voter-card-brand strong { display: block; margin-top: 3px; color: #f6d981; font-size: 1rem; letter-spacing: -.015em; }
.voter-card-brand small { margin-top: 4px; color: rgba(255,255,255,.58); font-size: .6rem; }
.voter-card-body { display: grid; grid-template-columns: minmax(0, 1fr) 184px; gap: 28px; padding: 27px 29px 25px 32px; }
.voter-card-main { min-width: 0; }
.voter-card-person { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.voter-card-person > span, .voter-card-details h3, .voter-card-details dt { color: var(--muted); font-size: .66rem; font-weight: 840; letter-spacing: .1em; text-transform: uppercase; }
.voter-card-person h2 { margin: 7px 0 0; color: var(--green-deep); font-size: clamp(1.55rem, 3vw, 2.18rem); letter-spacing: -.045em; line-height: 1.1; }
.voter-card-person p { margin: 8px 0 0; color: #53625c; font-size: .87rem; font-weight: 650; }
.voter-card-details { margin-top: 19px; }
.voter-card-details h3 { margin: 0 0 12px; color: #8c6715; }
.voter-card-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 0; border-top: 1px solid var(--line); }
.voter-card-details dl > div { min-width: 0; padding: 9px 0 10px; border-bottom: 1px solid var(--line); }
.voter-card-details dd { margin: 4px 0 0; color: var(--ink); font-size: .86rem; font-weight: 690; line-height: 1.35; overflow-wrap: anywhere; }
.voter-card-verify { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 15px 0 10px 23px; border-left: 1px solid var(--line); text-align: center; }
.voter-card-qr { width: 132px; padding: 7px; background: white; border: 1px solid var(--line); }
.voter-card-qr svg { display: block; width: 100%; height: auto; }
.voter-card-verify p { margin: 11px 0 0; color: #64726c; font-size: .72rem; font-weight: 730; line-height: 1.4; }
.voter-card-verify-link { margin-top: 9px; color: #8c6715; border-bottom: 1px solid currentColor; font-size: .69rem; font-weight: 800; }
.voter-card-foot { padding: 11px 32px; color: rgba(255,255,255,.76); background: var(--green); font-size: .68rem; line-height: 1.5; }
.card-actions { display: flex; flex-wrap: wrap; gap: 11px 12px; align-items: center; margin-top: 22px; }
.card-actions .button { min-width: auto; }
.card-download-link { color: white !important; border-color: var(--green-deep); background: var(--green-deep); }
.card-download-link:hover { color: white !important; border-color: var(--green); background: var(--green); }
.card-share-link { color: var(--green-deep) !important; border-color: rgba(11,63,53,.24); background: var(--gold-soft); }
.card-share-link:hover { color: var(--green-deep) !important; border-color: var(--gold); background: #f6d981; }
.card-copy-link { padding: 9px 0; color: #8c6715; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: .79rem; font-weight: 830; }

/* Editorial studio — deliberately operational rather than a public-site variant. */
.admin-body { min-height: 100svh; background: #e8ede7; }
.admin-shell { display: grid; grid-template-columns: 254px minmax(0, 1fr); min-height: 100svh; }
.admin-rail { position: sticky; top: 0; display: flex; flex-direction: column; height: 100svh; padding: 24px 16px 20px; color: #d9e6dd; background: #062d26; }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.admin-brand img { width: 46px; height: 46px; border: 2px solid var(--gold); border-radius: 50%; background: #fff; }
.admin-brand span { display: grid; gap: 3px; }
.admin-brand strong { font-size: .95rem; letter-spacing: -.015em; }
.admin-brand small { color: rgba(217,230,221,.7); font-size: .72rem; }
.admin-nav { display: grid; gap: 4px; padding-top: 19px; }
.admin-nav a { display: grid; gap: 3px; padding: 11px 12px; border-radius: 5px; color: #d9e6dd; transition: color 160ms ease, background 160ms ease; }
.admin-nav a span { font-size: .91rem; font-weight: 740; }
.admin-nav a small { color: rgba(217,230,221,.65); font-size: .72rem; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-nav a.is-current { color: #1c301e; background: var(--gold-soft); }
.admin-nav a.is-current small { color: rgba(28,48,30,.68); }
.admin-rail-foot { display: grid; gap: 8px; margin-top: auto; padding: 19px 8px 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(217,230,221,.62); font-size: .71rem; line-height: 1.5; }
.admin-rail-foot a { color: var(--gold-soft); font-weight: 700; }
.admin-workspace { width: min(1240px, 100%); margin: 0 auto; padding: 58px clamp(28px, 6vw, 88px) 80px; }
.admin-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 39px; border-bottom: 1px solid rgba(20,49,43,.18); }
.admin-kicker, .editor-label { margin: 0 0 9px; color: #8c6715; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.admin-kicker .urdu { margin-left: 7px; font-size: .83rem; letter-spacing: 0; text-transform: none; }
.admin-topline h1 { max-width: 660px; margin: 0; color: var(--green-deep); font-size: clamp(2.35rem, 4.6vw, 4.25rem); line-height: .98; letter-spacing: -.065em; }
.admin-topline > div > p:last-child { max-width: 610px; margin: 17px 0 0; color: var(--muted); font-size: .99rem; line-height: 1.65; }
.admin-primary-action { display: inline-grid; flex: none; gap: 2px; min-width: 142px; padding: 14px 17px; color: #fff; border: 0; border-radius: 4px; background: var(--green-deep); box-shadow: 0 12px 24px rgba(6,45,38,.16); font: inherit; text-align: left; transition: transform 160ms ease, background 160ms ease; }
.admin-primary-action:hover { background: var(--green); transform: translateY(-2px); }
.admin-primary-action span { font-size: .91rem; font-weight: 790; }
.admin-primary-action small { color: rgba(255,255,255,.72); font-size: .68rem; }
.admin-flash { margin: 27px 0 0; padding: 13px 16px; color: #1e563b; border-left: 3px solid #4e9c6b; background: #e7f2e8; font-size: .9rem; font-weight: 720; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; margin-top: 37px; background: rgba(20,49,43,.18); border: 1px solid rgba(20,49,43,.18); }
.admin-stats > div { min-height: 160px; padding: 23px 25px; background: rgba(255,253,248,.74); }
.admin-stats dt { color: #8c6715; font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.admin-stats dd { margin: 15px 0 8px; color: var(--green-deep); font-size: 2.55rem; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.admin-stats small { color: var(--muted); font-size: .79rem; }
.admin-ledger { margin-top: 45px; padding-top: 26px; border-top: 2px solid var(--green-deep); }
.admin-ledger-wide { margin-top: 32px; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.admin-section-heading p { margin: 0 0 5px; color: #8c6715; font-size: .69rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.admin-section-heading h2 { margin: 0; color: var(--green-deep); font-size: 1.45rem; letter-spacing: -.04em; }
.admin-section-heading > a { padding-bottom: 3px; color: #8c6715; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 780; }
.admin-update-list { border-top: 1px solid rgba(20,49,43,.17); }
.admin-update-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 20px; align-items: center; min-height: 119px; padding: 20px 0; border-bottom: 1px solid rgba(20,49,43,.17); }
.admin-update-status { display: flex; flex-wrap: wrap; gap: 6px; align-self: start; padding-top: 4px; }
.status-mark, .feature-mark { display: inline-flex; align-items: center; min-height: 21px; padding: 3px 7px; border-radius: 999px; font-size: .64rem; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .05em; }
.status-mark.published { color: #1c5537; background: #dceee0; }
.status-mark.draft { color: #76551a; background: #f5e7ba; }
.feature-mark { color: #65490e; background: transparent; border: 1px solid rgba(140,103,21,.4); text-transform: none; letter-spacing: 0; }
.admin-update-copy { min-width: 0; }
.admin-update-copy p { margin: 0 0 7px; color: var(--muted); font-size: .76rem; }
.admin-update-copy h2 { overflow: hidden; margin: 0; color: var(--green-deep); font-size: 1.04rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.admin-update-copy > span { display: block; overflow: hidden; margin-top: 4px; color: #68756d; font-size: .84rem; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
.admin-update-actions a { display: inline-flex; gap: 8px; padding: 9px 0; color: var(--green-deep); border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 790; }
.admin-update-actions a span { color: #8c6715; }
.admin-empty { margin: 0; padding: 26px 0; color: var(--muted); line-height: 1.65; }
.admin-back { display: inline-block; margin: 28px 0 0; color: #8c6715; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 760; }
.editor-form { margin-top: 28px; }
.editor-section { display: grid; grid-template-columns: minmax(190px, .4fr) minmax(0, 1fr); gap: 54px; padding: 38px 0; border-top: 1px solid rgba(20,49,43,.17); }
.editor-intro { border-top: 2px solid var(--green-deep); }
.editor-section h2 { margin: 0; color: var(--green-deep); font-size: 1.45rem; line-height: 1.08; letter-spacing: -.045em; }
.editor-section > div > p:not(.editor-label) { margin: 11px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.editor-controls, .editor-fields { display: grid; gap: 17px; }
.editor-fields-two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.editor-fields label, .editor-controls label { display: grid; gap: 7px; color: var(--green-deep); font-size: .84rem; font-weight: 760; }
.editor-fields label > span { color: var(--muted); font-size: .7rem; font-weight: 600; }
.editor-fields input, .editor-fields textarea, .editor-fields select, .editor-controls select { width: 100%; min-height: 46px; padding: 11px 12px; color: var(--ink); border: 1px solid rgba(20,49,43,.28); border-radius: 3px; outline: none; background: rgba(255,253,248,.8); font: inherit; line-height: 1.45; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.editor-fields textarea { min-height: 90px; resize: vertical; }
.editor-fields input:focus, .editor-fields textarea:focus, .editor-fields select:focus, .editor-controls select:focus { border-color: #8c6715; background: #fffefb; box-shadow: 0 0 0 3px rgba(212,163,52,.18); }
.editor-full { grid-column: 1 / -1; }
.editor-check { grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; padding-top: 4px; }
.editor-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); }
.editor-check span { grid-column: 2; }
.editor-check small { grid-column: 2; color: var(--muted); font-size: .74rem; font-weight: 550; }
.editor-section-urdu { background: rgba(223,236,229,.44); }
.editor-section-urdu::before { position: absolute; }
.editor-section-urdu > div:first-child, .editor-section-urdu > div:last-child { padding-left: 0; }
.editor-section-urdu .editor-label { letter-spacing: 0; text-transform: none; }
.editor-section-urdu .editor-fields { padding-right: 25px; }
.editor-section-urdu .editor-fields textarea, .editor-section-urdu .editor-fields input { line-height: 2; }
.editor-savebar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 32px 0 14px; }
.editor-savebar > a { color: var(--muted); border-bottom: 1px solid currentColor; font-size: .84rem; font-weight: 700; }
.editor-savebar .admin-primary-action { min-width: 166px; text-align: center; }
.admin-form-errors { margin: 28px 0 0; padding: 17px 18px; color: #712e22; border-left: 3px solid var(--danger); background: #f7e4df; font-size: .87rem; line-height: 1.6; }
.admin-form-errors strong { display: block; }
.admin-form-errors ul { margin: 7px 0 0; padding-left: 19px; }
.editor-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(183,65,46,.35); }
.editor-danger-zone p { display: grid; gap: 3px; margin: 0; }
.editor-danger-zone strong { color: #782e20; font-size: .87rem; }
.editor-danger-zone span { color: var(--muted); font-size: .76rem; }
.editor-danger-zone button { padding: 9px 0; color: var(--danger); border: 0; border-bottom: 1px solid currentColor; background: transparent; font: inherit; font-size: .8rem; font-weight: 800; }
.admin-gate { display: grid; justify-items: center; max-width: 500px; min-height: 100svh; margin: 0 auto; padding: 18vh 28px 50px; color: var(--green-deep); text-align: center; }
.admin-gate img { width: 86px; height: 86px; margin-bottom: 22px; border: 2px solid var(--gold); border-radius: 50%; background: #fff; }
.admin-gate > span { color: #8c6715; font-size: .73rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.admin-gate h1 { margin: 17px 0 0; font-size: clamp(2.1rem, 6vw, 3.35rem); line-height: 1; letter-spacing: -.06em; }
.admin-gate p { max-width: 390px; margin: 16px 0 28px; color: var(--muted); line-height: 1.7; }
.update-story-media { width: 100%; max-height: 550px; margin: 34px 0; object-fit: cover; background: var(--green-soft); }
.update-source-note { margin-top: 37px !important; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.65; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-rail { position: static; display: grid; grid-template-columns: auto 1fr; gap: 15px 26px; width: 100%; height: auto; padding: 16px max(20px, calc((100% - 720px) / 2)); }
  .admin-brand { padding: 0; border: 0; }
  .admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 0; }
  .admin-nav a { display: block; padding: 8px 10px; }
  .admin-nav a small { display: none; }
  .admin-rail-foot { display: none; }
  .admin-workspace { padding: 42px max(24px, calc((100% - 720px) / 2)) 68px; }
  .editor-section { gap: 32px; }
}

@media (max-width: 680px) {
  .admin-rail { grid-template-columns: 1fr; gap: 13px; }
  .admin-brand { padding-left: 2px; }
  .admin-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .admin-nav a { flex: none; }
  .admin-workspace { padding-top: 32px; }
  .admin-topline { align-items: flex-start; flex-direction: column; padding-bottom: 30px; }
  .admin-topline h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .admin-primary-action { min-width: 154px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-stats > div { min-height: 122px; }
  .admin-update-row { grid-template-columns: 1fr auto; gap: 9px 16px; min-height: 0; }
  .admin-update-status { grid-column: 1 / -1; }
  .admin-update-copy h2, .admin-update-copy > span { white-space: normal; }
  .editor-section { grid-template-columns: 1fr; gap: 21px; padding: 31px 0; }
  .editor-fields-two { grid-template-columns: 1fr; }
  .editor-section-urdu .editor-fields { padding-right: 0; }
  .editor-savebar { align-items: stretch; flex-direction: column-reverse; }
  .editor-savebar .admin-primary-action { width: 100%; text-align: center; }
  .editor-danger-zone { align-items: flex-start; flex-direction: column; }
}
.card-action-status { flex-basis: 100%; min-height: 18px; margin: 0; color: #64726c; font-size: .76rem; }
.card-print-note { margin: 12px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.card-verification-banner { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: center; margin-top: 28px; padding: 15px 18px; color: var(--green-deep); border-left: 4px solid #27845b; background: #e4f2e9; }
.card-verification-seal { display: grid; width: 38px; height: 38px; place-items: center; color: white; border-radius: 50%; background: #27845b; font-size: 1.3rem; font-weight: 900; }
.card-verification-banner span:not(.card-verification-seal) { display: block; color: #22734e; font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.card-verification-banner strong { display: block; margin-top: 2px; font-size: .98rem; letter-spacing: -.015em; }
.card-verification-banner p { margin: 3px 0 0; color: #49675a; font-size: .78rem; line-height: 1.45; }
.verification-result { display: flex; gap: 20px; align-items: center; margin-top: 42px; padding: 27px 30px; color: var(--green-deep); border-top: 4px solid #27845b; background: #e4f2e9; }
.verification-seal { display: grid; flex: none; width: 48px; height: 48px; place-items: center; color: white; border-radius: 50%; background: #27845b; font-size: 1.7rem; font-weight: 900; }
.verification-result span, .verification-record > h2 { color: #22734e; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.verification-result h1 { margin: 6px 0 0; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.04em; }
.verification-result p { max-width: 700px; margin: 9px 0 0; color: #49675a; font-size: .9rem; line-height: 1.55; }
.verification-record { padding: 35px 0 8px; }
.verification-record > h2 { margin: 0 0 18px; }
.verification-record dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.verification-record dl > div { min-width: 0; padding: 17px 18px 18px 0; border-bottom: 1px solid var(--line); }
.verification-record dl > div:nth-child(3n + 2), .verification-record dl > div:nth-child(3n + 3) { padding-left: 18px; border-left: 1px solid var(--line); }
.verification-record dt { color: var(--muted); font-size: .68rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.verification-record dd { margin: 6px 0 0; color: var(--ink); font-size: .94rem; font-weight: 680; line-height: 1.45; overflow-wrap: anywhere; }
.verification-record .button { margin-top: 26px; }

/* Editorial composer: a quiet writing surface with a small, mobile-safe toolset. */
.editor-publication-state { display: grid; gap: 8px; padding: 15px 16px; border-left: 3px solid rgba(11,63,53,.6); background: rgba(255,253,248,.72); }
.editor-publication-state p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.editor-generated-field { display: grid; align-content: start; gap: 7px; min-height: 46px; padding: 11px 12px; color: var(--green-deep); border: 1px solid rgba(20,49,43,.23); background: rgba(255,253,248,.52); }
.editor-generated-field > span { color: var(--green-deep); font-size: .84rem; font-weight: 760; }
.editor-generated-field code { overflow: hidden; color: #31554b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.editor-generated-field strong { font-size: .84rem; }
.editor-generated-field small { color: var(--muted); font-size: .7rem; font-weight: 600; line-height: 1.45; }
.editor-rich-field { display: grid; gap: 7px; }
.editor-rich-field > label { display: grid; gap: 3px; color: var(--green-deep); font-size: .84rem; font-weight: 760; }
.editor-rich-field > label span { color: var(--muted); font-size: .7rem; font-weight: 600; }
.markdown-editor { overflow: hidden; border: 1px solid rgba(20,49,43,.28); border-radius: 3px; background: #fffefb; box-shadow: 0 1px 0 rgba(20,49,43,.03); transition: border-color 160ms ease, box-shadow 160ms ease; }
.markdown-editor:focus-within { border-color: #8c6715; box-shadow: 0 0 0 3px rgba(212,163,52,.18); }
.markdown-toolbar { display: flex; flex-wrap: wrap; gap: 0; min-height: 41px; padding: 4px; border-bottom: 1px solid rgba(20,49,43,.15); background: #edf2ed; }
.markdown-toolbar button { min-width: 34px; min-height: 32px; padding: 5px 8px; color: #31554b; border: 0; border-radius: 2px; background: transparent; font: inherit; font-size: .77rem; font-weight: 850; transition: color 140ms ease, background 140ms ease; }
.markdown-toolbar button:hover, .markdown-toolbar button:focus-visible, .markdown-toolbar button.is-active { color: var(--green-deep); outline: none; background: var(--gold-soft); }
.markdown-toolbar .markdown-source-toggle { margin-left: auto; color: #8c6715; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.is-urdu .markdown-toolbar .markdown-source-toggle { margin-right: auto; margin-left: 0; }
.markdown-editor-canvas { min-height: 270px; }
.markdown-editor-prose { min-height: 270px; padding: 16px 18px; color: var(--ink); outline: none; font: inherit; font-size: .97rem; line-height: 1.75; }
.markdown-editor-prose > :first-child { margin-top: 0; }
.markdown-editor-prose > :last-child { margin-bottom: 0; }
.markdown-editor-prose h2, .markdown-editor-prose h3 { margin: 1.25em 0 .46em; color: var(--green-deep); letter-spacing: -.025em; line-height: 1.15; }
.markdown-editor-prose h2 { font-size: 1.36rem; }
.markdown-editor-prose h3 { font-size: 1.12rem; }
.markdown-editor-prose p { margin: .72em 0; }
.markdown-editor-prose ul, .markdown-editor-prose ol { margin: .82em 0; padding-inline-start: 1.45em; }
.markdown-editor-prose a { color: #8c6715; text-decoration: underline; text-underline-offset: 2px; }
.markdown-editor.is-urdu .markdown-editor-prose { font-family: "Noto Nastaliq Urdu", Amiri, serif; font-size: 1.02rem; line-height: 2.28; text-align: right; }
.markdown-editor.is-urdu .markdown-editor-prose h2, .markdown-editor.is-urdu .markdown-editor-prose h3 { line-height: 1.75; }
.editor-source-hidden { display: none !important; }
.editor-rich-field.is-source-visible .markdown-editor-canvas { display: none; }
.editor-rich-field.is-source-visible textarea.editor-source-hidden { display: block !important; min-height: 270px; }
.editor-ai-actions { display: grid; gap: 9px; padding: 14px 0 2px; border-top: 1px solid rgba(20,49,43,.14); }
.editor-ai-actions > span { color: #8c6715; font-size: .68rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.editor-ai-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-ai-actions button, .editor-undo button, .editor-save-draft, .editor-unpublish { min-height: 37px; padding: 8px 10px; color: var(--green-deep); border: 1px solid rgba(20,49,43,.25); border-radius: 3px; background: rgba(255,253,248,.6); font: inherit; font-size: .78rem; font-weight: 780; transition: border-color 140ms ease, background 140ms ease; }
.editor-ai-actions button:hover, .editor-ai-actions button:focus-visible, .editor-undo button:hover, .editor-undo button:focus-visible, .editor-save-draft:hover, .editor-save-draft:focus-visible, .editor-unpublish:hover, .editor-unpublish:focus-visible { border-color: #8c6715; outline: 0; background: var(--gold-soft); }
.editor-ai-actions .editor-ai-main { justify-self: start; color: #fff; border-color: var(--green-deep); background: var(--green-deep); }
.editor-ai-actions .editor-ai-main:hover { color: #fff; background: var(--green); }
.editor-ai-actions .editor-ai-all { color: #fff; border-color: var(--green-deep); background: var(--green-deep); }
.editor-ai-actions .editor-ai-all:hover, .editor-ai-actions .editor-ai-all:focus-visible { color: #fff; border-color: var(--green); background: var(--green); }
.editor-ai-actions small { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.editor-ai-note { margin: 0; padding: 11px 12px; color: #566860; border-left: 2px solid var(--gold); background: rgba(255,253,248,.58); font-size: .76rem; line-height: 1.5; }
.editor-summary-preview { display: grid; gap: 5px; padding: 13px 14px; color: #566860; border-left: 2px solid rgba(140,103,21,.55); background: rgba(255,253,248,.54); }
.editor-summary-preview > span { color: #8c6715; font-size: .67rem; font-weight: 830; letter-spacing: .08em; text-transform: uppercase; }
.editor-summary-preview p { margin: 0; font-size: .79rem; line-height: 1.55; }
.editor-save-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.editor-unpublish { color: #782e20; border-color: rgba(183,65,46,.35); }
.editor-undo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 7px; padding-top: 20px; border-top: 1px solid rgba(20,49,43,.17); }
.editor-undo span { color: var(--muted); font-size: .75rem; }

/* Writing-first editorial flow. Generated data remains in the form, but no
   longer competes with the author’s title and story. */
.admin-nav-signout { display: none !important; }
.admin-composer-workspace { width: min(980px, 100%); padding-top: 34px; }
.composer-topline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 22px; align-items: end; padding-bottom: 23px; border-bottom: 1px solid rgba(20,49,43,.18); }
.composer-back { grid-column: 1 / -1; width: max-content; color: #8c6715; border-bottom: 1px solid currentColor; font-size: .79rem; font-weight: 780; }
.composer-heading p { margin: 0 0 6px; color: #8c6715; font-size: .67rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.composer-heading h1 { margin: 0; color: var(--green-deep); font-size: clamp(1.72rem, 3vw, 2.46rem); line-height: 1.02; letter-spacing: -.055em; }
.composer-topline > .status-mark { align-self: center; }
.editor-composer { margin-top: 22px; }
.editor-locale-tabs { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid rgba(20,49,43,.19); border-radius: 999px; background: rgba(255,253,248,.56); }
.editor-locale-tabs button { min-height: 34px; padding: 6px 14px; color: #52655d; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: .78rem; font-weight: 790; }
.editor-locale-tabs button:hover:not(:disabled), .editor-locale-tabs button:focus-visible { color: var(--green-deep); outline: 0; background: rgba(212,163,52,.18); }
.editor-locale-tabs button.is-active { color: #fff; background: var(--green-deep); box-shadow: 0 2px 6px rgba(6,45,38,.18); }
.editor-locale-tabs button:disabled { cursor: not-allowed; opacity: .47; }
.editor-language-panel { display: none; gap: 18px; padding: 26px 0 28px; }
.editor-language-panel.is-active { display: grid; }
.editor-language-panel-urdu { direction: rtl; }
.editor-language-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.editor-language-heading p { margin: 0; color: var(--green-deep); font-size: 1.06rem; font-weight: 810; letter-spacing: -.02em; }
.editor-language-heading span { color: var(--muted); font-size: .76rem; line-height: 1.5; text-align: right; }
.editor-language-panel-urdu .editor-language-heading span { text-align: left; }
.editor-title-field { display: grid; gap: 8px; color: var(--green-deep); font-size: .84rem; font-weight: 790; }
.editor-title-field input, .editor-options-fields input { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); border: 1px solid rgba(20,49,43,.28); border-radius: 3px; outline: none; background: #fffefb; font: inherit; line-height: 1.45; transition: border-color 160ms ease, box-shadow 160ms ease; }
.editor-title-field input { color: var(--green-deep); font-size: clamp(1.2rem, 2vw, 1.48rem); font-weight: 740; letter-spacing: -.025em; }
.editor-title-field input:focus, .editor-options-fields input:focus { border-color: #8c6715; box-shadow: 0 0 0 3px rgba(212,163,52,.18); }
.editor-language-panel-urdu .editor-title-field input { font-family: "Noto Nastaliq Urdu", Amiri, serif; font-size: 1.2rem; line-height: 2; text-align: right; }
.editor-composer .editor-rich-field { gap: 8px; }
.editor-composer .editor-rich-field > label { font-size: .83rem; }
.editor-composer .editor-ai-actions { padding-top: 17px; }
.editor-ai-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.editor-ai-primary > span { color: #8c6715; font-size: .68rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.editor-ai-more { width: max-content; max-width: 100%; }
.editor-ai-more summary { width: max-content; max-width: 100%; padding: 7px 0; color: #52655d; border-bottom: 1px solid rgba(20,49,43,.3); cursor: pointer; font-size: .76rem; font-weight: 760; }
.editor-ai-more summary::marker { color: #8c6715; }
.editor-ai-more > div { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.editor-savebar { position: sticky; bottom: 12px; z-index: 3; margin: 2px -14px 0; padding: 13px 14px; border: 1px solid rgba(20,49,43,.2); border-radius: 6px; background: rgba(255,253,248,.92); box-shadow: 0 12px 34px rgba(6,45,38,.12); backdrop-filter: blur(12px); }
.editor-savebar .admin-primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 14px; text-align: center; }
.editor-savebar .admin-primary-action:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; transform: none; }
.editor-autosave-state { display: inline-flex; align-items: center; gap: 8px; min-height: 22px; color: #52655d; font-size: .78rem; font-weight: 720; }
.editor-autosave-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #779178; box-shadow: 0 0 0 3px rgba(119,145,120,.12); }
.editor-savebar[data-autosave-state="saving"] .editor-autosave-dot { background: #b38321; box-shadow: 0 0 0 3px rgba(179,131,33,.14); animation: editor-save-pulse 1.05s ease-in-out infinite; }
.editor-savebar[data-autosave-state="saved"] .editor-autosave-dot { background: #477c53; box-shadow: 0 0 0 3px rgba(71,124,83,.13); }
.editor-savebar[data-autosave-state="error"] .editor-autosave-state { color: #8c3527; }
.editor-savebar[data-autosave-state="error"] .editor-autosave-dot { background: #b7412e; box-shadow: 0 0 0 3px rgba(183,65,46,.13); }
.editor-composer[data-ai-busy="true"] .editor-ai-more, .editor-composer[data-ai-busy="true"] .editor-locale-tabs { pointer-events: none; opacity: .62; }
@keyframes editor-save-pulse { 50% { opacity: .42; transform: scale(.78); } }
.editor-publishing-options { margin-top: 25px; border-top: 1px solid rgba(20,49,43,.18); border-bottom: 1px solid rgba(20,49,43,.18); }
.editor-publishing-options > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; color: var(--green-deep); cursor: pointer; font-size: .85rem; font-weight: 790; }
.editor-publishing-options > summary::marker { color: #8c6715; }
.editor-publishing-options > summary small { color: var(--muted); font-size: .71rem; font-weight: 650; }
.editor-options-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: 2px 0 23px; }
.editor-options-fields label { display: grid; gap: 7px; color: var(--green-deep); font-size: .82rem; font-weight: 760; }
.editor-options-fields label > span, .editor-options-fields label > small { color: var(--muted); font-size: .7rem; font-weight: 600; }
.editor-options-fields .editor-check { grid-template-columns: auto 1fr; align-content: start; padding-top: 6px; }
.editor-options-fields .editor-check span, .editor-options-fields .editor-check small { grid-column: 2; }
.editor-options-full { grid-column: 1 / -1; }
.update-story-body h2, .update-story-body h3 { margin: 1.45em 0 .55em; color: var(--green-deep); line-height: 1.2; }
.update-story-body h2 { font-size: 1.48rem; }
.update-story-body h3 { font-size: 1.15rem; }
.update-story-body p { margin: .9em 0; }
.update-story-body ul, .update-story-body ol { margin: 1em 0; padding-inline-start: 1.4em; }
.update-story-body a { color: #8c6715; text-decoration: underline; text-underline-offset: 2px; }
.update-story-body blockquote { margin: 1.3em 0; padding: 5px 18px; color: #50655d; border-inline-start: 3px solid var(--gold); }

@media (max-width: 680px) {
  .editor-generated-field { min-height: 0; }
  .markdown-toolbar { position: sticky; top: 0; z-index: 1; }
  .markdown-toolbar button { min-width: 32px; padding-inline: 7px; }
  .markdown-editor-canvas, .markdown-editor-prose { min-height: 220px; }
  .markdown-editor-prose { padding: 14px 15px; font-size: .95rem; }
  .markdown-editor.is-urdu .markdown-editor-prose { font-size: .96rem; line-height: 2.18; }
  .editor-ai-actions > div, .editor-save-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-ai-actions button, .editor-save-actions > * { width: 100%; }
  .editor-ai-actions .editor-ai-main { width: auto; }
  .editor-savebar { align-items: stretch; }
  .editor-undo { align-items: stretch; }
}

@media (max-width: 900px) {
  .admin-nav-signout { display: block !important; }
  .admin-composer-workspace { padding-top: 28px; }
}

@media (max-width: 680px) {
  .admin-nav-signout { color: var(--gold-soft) !important; border: 1px solid rgba(246,217,129,.5); }
  .admin-nav-signout:hover { background: rgba(255,255,255,.08) !important; }
  .composer-topline { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding-bottom: 19px; }
  .composer-back { font-size: .76rem; }
  .composer-heading h1 { font-size: 1.8rem; }
  .editor-composer { margin-top: 18px; }
  .editor-language-panel { gap: 16px; padding: 21px 0 24px; }
  .editor-language-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .editor-language-heading span, .editor-language-panel-urdu .editor-language-heading span { text-align: inherit; }
  .editor-ai-primary { display: flex !important; }
  .editor-ai-primary .editor-ai-all { width: auto; }
  .editor-ai-more > div { display: flex !important; }
  .editor-ai-more > div button { width: auto; }
  .editor-savebar { bottom: 8px; margin-inline: -8px; padding: 11px 10px; border-radius: 5px; }
  .editor-savebar .editor-save-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-savebar .editor-save-actions > * { width: 100%; }
  .editor-options-fields { grid-template-columns: 1fr; gap: 17px; }
  .editor-options-full { grid-column: auto; }
}

html[dir="rtl"] .topbar, html[dir="rtl"] .hero-copy, html[dir="rtl"] .section, html[dir="rtl"] .results-wrap, html[dir="rtl"] .results-header, html[dir="rtl"] .footer { text-align: right; }
html[dir="rtl"] .pledge-copy { padding-right: 18px; padding-left: 0; border-right: 2px solid var(--gold); border-left: 0; }
html[dir="rtl"] .inner-header .nav { margin-right: auto; margin-left: 38px; }
html[dir="rtl"] .results-warning { border-right: 3px solid var(--gold); border-left: 0; }
html[dir="rtl"] .lookup-form { padding-right: 34px; padding-left: 0; border-right: 1px solid rgba(246,217,129,.65); border-left: 0; }
html[dir="rtl"] .plot-lookup { padding-right: 34px; padding-left: 0; }
html[dir="rtl"] .plot-lookup summary::after { margin-right: 9px; margin-left: 0; }
html[dir="rtl"] .contact-line strong { text-align: left; }
html[dir="rtl"] .guide-nav { margin-right: auto; margin-left: 42px; }
html[dir="rtl"] .guide-preview-layout, html[dir="rtl"] .bank-layout, html[dir="rtl"] .guide-checklist-layout, html[dir="rtl"] .guide-group { text-align: right; }
html[dir="rtl"] .guide-facts > div { padding-right: 0; padding-left: 20px; }
html[dir="rtl"] .guide-facts > div + div { padding-right: 20px; padding-left: 0; border-right: 1px solid var(--line); border-left: 0; }
html[dir="rtl"] .guide-hero-copy { padding-right: max(24px, calc((100vw - 1180px) / 2)); padding-left: 32px; }
html[dir="rtl"] .guide-hero-facts { padding-right: 58px; padding-left: max(24px, calc((100vw - 1180px) / 2)); }
html[dir="rtl"] .guide-questions summary { padding-right: 0; padding-left: 34px; }
html[dir="rtl"] .guide-questions summary::after { right: auto; left: 2px; }
html[dir="rtl"] .profile-cnic { padding-right: 26px; padding-left: 0; border-right: 2px solid var(--gold); border-left: 0; text-align: left; }
html[dir="rtl"] .profile-group { padding-right: 0; padding-left: 28px; }
html[dir="rtl"] .profile-group + .profile-group { padding-right: 28px; padding-left: 0; border-right: 1px solid var(--line); border-left: 0; }
html[dir="rtl"] .lookup-control input { direction: ltr; text-align: left; }
html[dir="rtl"] .notice { padding-right: 0; padding-left: 42px; }
html[dir="rtl"] .notice:hover { padding-right: 0; padding-left: 48px; }
html[dir="rtl"] .notice-action { right: auto; left: 4px; }
html[dir="rtl"] .information-hero, html[dir="rtl"] .information-body, html[dir="rtl"] .footer-inner, html[dir="rtl"] .footer-bottom { text-align: right; }
html[dir="rtl"] .voter-card::before { right: 0; left: auto; }
html[dir="rtl"] .voter-card-head { padding-right: 32px; padding-left: 28px; }
html[dir="rtl"] .voter-card-body { padding-right: 32px; padding-left: 29px; }
html[dir="rtl"] .voter-card-verify { padding-right: 23px; padding-left: 0; border-right: 1px solid var(--line); border-left: 0; }
html[dir="rtl"] .voter-card-foot { padding-right: 32px; padding-left: 32px; }
html[dir="rtl"] .card-verification-banner { border-right: 4px solid #27845b; border-left: 0; }
html[dir="rtl"] .verification-record dl > div { padding-right: 0; padding-left: 18px; }
html[dir="rtl"] .verification-record dl > div:nth-child(3n + 2), html[dir="rtl"] .verification-record dl > div:nth-child(3n + 3) { padding-right: 18px; padding-left: 0; border-right: 1px solid var(--line); border-left: 0; }

@keyframes lift-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

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

@media (max-width: 780px) {
  .topbar, .section, .results-wrap, .results-header, .guide-header, .inner-header { width: min(100% - 32px, 1180px); }
  .topbar { position: sticky; width: 100%; height: 75px; margin-bottom: -75px; padding: 0 16px; background: linear-gradient(180deg, rgba(6,45,38,.68), rgba(6,45,38,.18)); }
  .guide-header { min-height: 75px; }
  .brand img { width: 45px; height: 45px; }
  .brand span { max-width: 150px; font-size: .7rem; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .hero::after { display: none; }
  .hero-copy { width: 100%; margin: 0; padding: 45px 16px 58px; background: var(--green-deep); }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .hero .urdu.hero-title { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .section { padding: 76px 0; }
  .pledge-grid, .lookup-layout, .guide-preview-layout, .announcements-layout, .bank-layout, .guide-checklist-layout, .guide-group { grid-template-columns: 1fr; gap: 42px; }
  .panel-aside { margin-top: 34px; text-align: left; }
  html[dir="rtl"] .panel-aside { text-align: right; }
  .candidate-list { grid-template-columns: 1fr; margin-top: 56px; }
  .candidate { grid-template-columns: minmax(116px, .65fr) minmax(0, 1.35fr); gap: 16px; }
  .candidate-meta { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .candidate-photo { width: 52px; height: 52px; }
  .lookup-section .section { padding: 72px 0 76px; }
  .lookup-form { padding: 0; border-left: 0; }
  html[dir="rtl"] .lookup-form { border-right: 0; }
  .plot-lookup { padding-left: 0; }
  html[dir="rtl"] .plot-lookup { padding-right: 0; }
  .plot-lookup-fields { grid-template-columns: 1fr; }
  .lookup-control { flex-direction: column; }
  .lookup-control button { min-height: 46px; }
  .guide-preview-layout { align-items: start; }
  .guide-facts { grid-template-columns: 1fr; }
  .guide-facts > div { padding: 16px 0 18px; }
  .guide-facts > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .bank-layout { align-items: start; }
  .bank-details { margin-top: 28px; }
  .bank-details > div { grid-template-columns: minmax(112px, .65fr) minmax(0, 1.35fr); gap: 14px; }
  .bank-poster { max-width: 520px; }
  .guide-hero { display: block; min-height: 0; }
  .guide-hero-copy { width: 100%; margin: 0; padding: 48px 16px 58px; }
  .guide-back { margin-bottom: 42px; }
  .guide-hero h1 { font-size: clamp(2.9rem, 13vw, 4.4rem); }
  .guide-hero h1.urdu { font-size: clamp(2.15rem, 9vw, 3.15rem); }
  .guide-hero-facts { padding: 0 16px; }
  .guide-hero-facts > div { padding: 17px 0 19px; }
  .guide-page-width { width: min(100% - 32px, 1080px); }
  .guide-checklist-layout { padding-top: 56px; padding-bottom: 56px; }
  .guide-faq { padding: 76px 0; }
  .guide-groups { margin-top: 42px; }
  .guide-group { padding: 32px 0; }
  .guide-group-heading h3 { max-width: none; }
  .guide-questions summary { padding-top: 16px; padding-bottom: 16px; }
  .guide-questions summary::after { top: 15px; }
  .contact { grid-template-columns: 1fr; align-items: start; }
  .contact-links { width: 100%; }
  .identity { grid-template-columns: 1fr; gap: 16px; }
  .result-search-control { flex-direction: column; }
  .result-search-control button { min-height: 44px; border-top: 1px solid rgba(11,63,53,.18); border-left: 0; }
  .profile-identity { grid-template-columns: 1fr; gap: 26px; padding: 28px 0 32px; }
  .profile-entry { padding-bottom: 14px; }
  .profile-name-grid { grid-template-columns: 1fr; gap: 22px; }
  .profile-cnic { padding: 18px 0 0 18px; }
  .profile-groups { grid-template-columns: 1fr; }
  .profile-group { padding: 27px 0 30px; }
  .profile-group + .profile-group { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 22px; }
  .card-page-wrap { padding-top: 40px; }
  .voter-card { margin-top: 31px; }
  .voter-card-body { grid-template-columns: 1fr; gap: 20px; padding: 22px 20px 20px 23px; }
  .voter-card-verify { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 17px; align-items: center; justify-items: start; padding: 19px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .voter-card-qr { grid-row: span 2; width: 112px; }
  .voter-card-verify p { margin: 0; }
  .voter-card-verify-link { margin-top: 2px; }
  .voter-card-foot { padding: 12px 20px 12px 23px; }
  .card-verification-banner { margin-top: 22px; padding: 14px 15px; }
  .verification-result { align-items: flex-start; margin-top: 32px; padding: 22px 20px; }
  .verification-record dl { grid-template-columns: 1fr; }
  .verification-record dl > div, .verification-record dl > div:nth-child(3n + 2), .verification-record dl > div:nth-child(3n + 3) { padding-right: 0; padding-left: 0; border-left: 0; }
  html[dir="rtl"] .voter-card-body { padding-right: 23px; padding-left: 20px; }
  html[dir="rtl"] .voter-card-verify { justify-items: end; padding-right: 0; padding-left: 0; border-right: 0; text-align: right; }
  html[dir="rtl"] .voter-card-foot { padding-right: 23px; padding-left: 20px; }
  html[dir="rtl"] .verification-record dl > div, html[dir="rtl"] .verification-record dl > div:nth-child(3n + 2), html[dir="rtl"] .verification-record dl > div:nth-child(3n + 3) { padding-right: 0; padding-left: 0; border-right: 0; }
  html[dir="rtl"] .profile-cnic { padding-right: 18px; padding-left: 0; }
  html[dir="rtl"] .profile-group { padding-right: 0; padding-left: 0; }
  html[dir="rtl"] .profile-group + .profile-group { padding-right: 0; border-right: 0; }
  html[dir="rtl"] .guide-nav { margin-left: 0; }
  html[dir="rtl"] .guide-facts > div { padding-right: 0; padding-left: 0; }
  html[dir="rtl"] .guide-facts > div + div { padding-right: 0; border-right: 0; }
  html[dir="rtl"] .guide-hero-copy { padding-right: 16px; padding-left: 16px; }
  html[dir="rtl"] .guide-hero-facts { padding-right: 16px; padding-left: 16px; }
  html[dir="rtl"] .notice { padding-right: 0; padding-left: 32px; }
  html[dir="rtl"] .notice:hover { padding-right: 0; padding-left: 32px; }
  .information-hero { padding: 60px 0 66px; }
  .information-width { width: min(100% - 32px, 900px); }
  .information-back { margin-bottom: 36px; }
  .information-hero h1 { font-size: clamp(2.45rem, 11vw, 3.9rem); }
  .information-section { grid-template-columns: 1fr; gap: 13px; padding: 31px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; width: min(100% - 32px, 1180px); padding: 48px 0 38px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; width: min(100% - 32px, 1180px); }
  .update-story { padding: 60px 0 72px; }
  .update-story .information-back { margin-bottom: 42px; }
  .update-story h1 { font-size: clamp(2.35rem, 10vw, 3.7rem); }
}

@media (max-width: 430px) {
  .hero-copy { padding-bottom: 42px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .section h2 { font-size: 2.15rem; }
  .profile-cnic strong { font-size: 1.12rem; }
}

@media (max-width: 560px) {
  .profile-fields { grid-template-columns: 1fr; }
  .notice { padding-right: 32px; }
  .notice-meta { display: grid; gap: 5px; }
  .voter-card-head { padding: 18px 17px 16px 20px; }
  .voter-card-brand { gap: 12px; }
  .voter-card-brand > img { width: 51px; height: 51px; }
  .voter-card-brand strong { font-size: .9rem; }
  .voter-card-details dl { grid-template-columns: 1fr; }
  .voter-card-person h2 { font-size: 1.45rem; }
  .card-actions { display: grid; grid-template-columns: 1fr; }
  .card-actions .button { width: 100%; }
  html[dir="rtl"] .voter-card-head { padding-right: 20px; padding-left: 17px; }
}

@media (max-width: 780px) {
  .no-js .static-topbar { position: relative; height: auto; min-height: 75px; margin-bottom: 0; flex-wrap: wrap; padding-bottom: 10px; }
  .no-js .static-topbar .nav { display: flex; order: 3; width: 100%; gap: 16px; overflow-x: auto; padding: 7px 0 0; white-space: nowrap; }
  .no-js .static-topbar .nav a { flex: none; }
  .no-js .static-inner-header { flex-wrap: wrap; min-height: 75px; padding-bottom: 10px; }
  .no-js .static-inner-header .nav { display: flex; order: 3; width: 100%; gap: 16px; overflow-x: auto; padding: 7px 0 0; white-space: nowrap; }
}

@media print {
  @page { size: landscape; margin: 10mm; }
  body { background: white; }
  .no-print, .results-header, .card-page-title, .card-page-wrap > .results-subtitle { display: none !important; }
  .results-page, .results-wrap, .card-page-wrap { width: auto; min-height: 0; margin: 0; padding: 0; background: white; }
  .voter-card { margin: 0; box-shadow: none; break-inside: avoid; }
  .voter-card-head { padding-top: 14px; padding-bottom: 13px; }
  .voter-card-body { gap: 20px; padding-top: 17px; padding-bottom: 16px; }
  .voter-card-details dl > div { padding-top: 6px; padding-bottom: 7px; }
  .voter-card-qr { width: 116px; }
}
