/* =====================================================================
   APPPMA — site theme
   All Pakistan PVC & Plastic Pipe Manufacturers Association
   One stylesheet for pgHome.master, index.aspx and every content page.
   ===================================================================== */

:root {
  --green-950: #04261A;
  --green-900: #06341F;
  --green-800: #0A4A2B;
  --green-700: #0B6A36;   /* primary actions, links (7:1 on white) */
  --green-600: #00923F;   /* logo green */
  --green-200: #BFE3CB;
  --green-100: #E2F2E7;
  --green-50:  #F1F8F3;
  --amber-400: #F4B04A;   /* accent on dark grounds */
  --amber-700: #8F5208;   /* accent text on light grounds */
  --amber-50:  #FDF4E6;
  --ink:       #13221A;
  --body:      #2E3D35;
  --muted:     #56675D;
  --line:      #DCE5DF;
  --bg:        #F5F7F5;
  --white:     #FFFFFF;
  --surface:   #FFFFFF;   /* card / panel background (changes in dark mode) */
  --line-strong: #C7D3CB;
  --on-dark:   #CFE3D6;   /* text on dark green grounds */
  --on-dark-muted: #8FAE9B;
  --danger:    #B42318;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(6, 52, 31, .06), 0 1px 3px rgba(6, 52, 31, .08);
  --shadow:    0 10px 30px -12px rgba(6, 52, 31, .25);
  --shadow-lg: 0 24px 60px -20px rgba(6, 52, 31, .35);

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--green-800); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.dnshow { display: none !important; }

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

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Buttons & form controls ---------- */
.btn, input[type=submit].btn, input[type=button].btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px;
  font: 600 15px/1.2 var(--font-head);
  border-radius: 10px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  -webkit-appearance: none; appearance: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: var(--white) !important; }
.btn-primary:hover { background: var(--green-800); color: var(--white); }
.btn-accent { background: var(--amber-400); color: var(--green-950) !important; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink) !important; }
.btn-ghost:hover { border-color: var(--green-700); color: var(--green-700) !important; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white) !important; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }

.input, input[type=text].input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: 400 15px/1.4 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-700) 14%, transparent); }
select.input { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B6A36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
.field-label { display: block; font: 600 14px/1.3 var(--font-head); color: var(--ink); margin-bottom: 8px; }
.enmemwatermark { color: var(--muted) !important; }

/* ===================================================================
   HEADER
   =================================================================== */
.topbar { background: var(--green-950); color: var(--on-dark); font-size: 13.5px; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar-info, .topbar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.topbar-info span, .topbar-info a, .topbar-links a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { width: 15px; height: 15px; color: var(--amber-400); }
.topbar-social { display: flex; gap: 2px; }
.topbar-social a { width: 30px; height: 30px; justify-content: center; border-radius: 50%; }
.topbar-social a:hover { background: rgba(255,255,255,.08); }
.topbar-social .icon { color: var(--on-dark); }

.site-header { background: var(--surface); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px color-mix(in srgb, var(--green-950) 45%, transparent); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 78px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font: 800 21px/1.15 var(--font-head); color: var(--green-700); letter-spacing: -.01em; }
.brand-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.brand:hover .brand-name { color: var(--green-800); }

/* Primary navigation */
.main-nav { display: flex; align-items: center; gap: 12px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; min-height: 44px;
  font: 600 15px/1 var(--font-head); color: var(--ink);
  text-decoration: none; background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.nav-list > li > a:hover, .nav-list > li > button:hover,
.nav-list > li:focus-within > button, .nav-list > li.is-open > button { background: var(--green-50); color: var(--green-700); }
.nav-list > li.is-current > a, .nav-list > li.is-current > button { color: var(--green-700); }
.nav-list > li.is-current > a::after, .nav-list > li.is-current > button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--green-600);
}
.nav-caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-list > li.is-open .nav-caret { transform: rotate(180deg); }

.submenu {
  list-style: none; margin: 0; padding: 10px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-list > li:hover > .submenu, .nav-list > li.is-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; color: var(--body); text-decoration: none;
}
.submenu a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-200); flex: none; transition: background .15s; }
.submenu a:hover, .submenu a.is-current { background: var(--green-50); color: var(--green-700); }
.submenu a:hover::before, .submenu a.is-current::before { background: var(--green-600); }
.nav-list > li:last-child .submenu, .nav-list > li:nth-last-child(2) .submenu { left: auto; right: 0; }

.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); z-index: 80;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); padding: 84px 16px 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .nav-scrim { position: fixed; inset: 0; background: color-mix(in srgb, var(--green-950) 45%, transparent); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .25s; }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav-toggle { position: relative; z-index: 90; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; }
  .nav-list > li.is-current > a::after, .nav-list > li.is-current > button::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; display: none; }
  .nav-list > li:hover > .submenu { display: none; }
  .nav-list > li.is-open > .submenu { display: block; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
}
@media (min-width: 1081px) { .nav-scrim { display: none; } }
@media (max-width: 560px) {
  .brand img { width: 60px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .header-row { min-height: 70px; }
  .topbar-info .hide-sm { display: none; }
}

/* ===================================================================
   INNER PAGE LAYOUT
   =================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  color: var(--on-dark);
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 46px solid rgba(255,255,255,.05); box-shadow: 0 0 0 70px rgba(255,255,255,.03);
  pointer-events: none;
}
.page-hero .wrap { position: relative; padding-top: 44px; padding-bottom: 92px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 14px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs .sep { opacity: .55; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0; }
.page-hero .lead { max-width: 680px; font-size: 17px; margin: 12px 0 0; color: var(--on-dark); }

.page-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start;
  margin-top: -56px; padding-bottom: 72px; position: relative;
}
.page-main {
  min-width: 0; padding: 32px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.page-main > .card, .page-main > article.card { border: 0; box-shadow: none; border-radius: 0; padding: 0; background: transparent; }
@media (max-width: 640px) { .page-main { padding: 20px 16px; border-radius: var(--radius); } }
.page-aside { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 1080px) {
  .page-shell { grid-template-columns: minmax(0, 1fr); }
  .page-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Generic surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 32px; }
@media (max-width: 640px) { .card-pad { padding: 22px; } }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-title h2, .card-title h3 { font-size: 17px; margin: 0; display: flex; align-items: center; gap: 10px; }
.card-title .icon { color: var(--green-600); }
.card-body { padding: 20px 22px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.toolbar .field { min-width: 220px; }
.section-title { font-size: 22px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green-600); border-radius: 2px; }
.eyebrow-light { color: var(--amber-400); }
.eyebrow-light::before { background: var(--amber-400); }

/* Long-form text */
.prose { color: var(--body); font-size: 16.5px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: 23px; margin: 1.6em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.prose strong, .pagebold { color: var(--ink); font-weight: 700; }
.prose p.lead-p { font-size: 18.5px; color: var(--ink); }
.pagenormal { margin: 0 0 1em; }
.boldtext { font-weight: 700; color: var(--ink); }

.note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--green-100);
  color: var(--body); font-size: 15.5px;
}
.note .icon { color: var(--green-700); margin-top: 2px; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 26px 0; }
.fact { padding: 18px 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.fact-num { font: 800 28px/1.1 var(--font-head); color: var(--green-700); }
.fact-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Numbered / lettered lists rendered as steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps > li { position: relative; padding: 18px 20px 18px 74px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font: 800 16px/1 var(--font-head); color: var(--white); background: var(--green-700);
}
.steps.alpha > li::before { content: counter(step, lower-alpha); }
.steps .sub { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.steps .sub li { padding-left: 18px; position: relative; }
.steps .sub li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }

.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--green-600); margin-top: 3px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tile-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.tile h3 { font-size: 18px; margin: 4px 0 0; }
.tile p { margin: 0; font-size: 15px; color: var(--muted); }
.tile .tag { align-self: flex-start; font: 700 12px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--amber-700); background: var(--amber-50); padding: 7px 10px; border-radius: 999px; }

/* Downloads */
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.file-list a {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.file-list a:hover { border-color: var(--green-600); box-shadow: var(--shadow); transform: translateY(-1px); }
.file-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #FDECEA; color: #B42318; flex: none; font: 800 11px/1 var(--font-head); letter-spacing: .04em; }
.file-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.file-meta strong { font: 700 16px/1.3 var(--font-head); }
.file-meta span { font-size: 13.5px; color: var(--muted); }
.file-list .icon { color: var(--green-700); }

/* ===================================================================
   GRIDVIEW / REPEATER SKINS
   =================================================================== */

/* Data table */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.gv-table { width: 100% !important; border-collapse: separate !important; border-spacing: 0; font-size: 15px; min-width: 560px; }
table.gv-table th {
  text-align: left !important; padding: 14px 16px !important; background: var(--green-50);
  font: 700 13px/1.2 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--green-800);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.gv-table td { padding: 14px 16px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; vertical-align: top; color: var(--body); width: auto; }
table.gv-table tr:last-child td { border-bottom: 0 !important; }
table.gv-table tr:hover td { background: var(--bg); }
table.gv-table td.col-num { width: 56px; color: var(--muted); font-weight: 600; text-align: center !important; }
table.gv-table th.col-num { text-align: center !important; }
table.gv-table td.col-date { white-space: nowrap; font-weight: 600; color: var(--ink); width: 160px; }
table.gv-table td.col-date span + br + span { font-weight: 400; color: var(--muted); }
table.gv-table td.col-action { width: 140px; text-align: right !important; }
table.gv-table th.col-action { text-align: right !important; }
table.gv-table td.col-action input[type=image] { width: 124px; height: 38px; vertical-align: middle; }
.gv-table .row-link, .gv-table td.col-action a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px;
  font: 600 14px/1 var(--font-head); color: var(--green-700); background: var(--green-50); text-decoration: none; white-space: nowrap;
}
.gv-table .row-link:hover, .gv-table td.col-action a:hover { background: var(--green-100); }
.empty-state { padding: 36px 20px; text-align: center; color: var(--muted); }

/* People cards (office bearers, committees, former chairmen) */
table.gv-people, table.gv-people > tbody { display: block; width: 100% !important; border: 0 !important; }
table.gv-people > tbody { display: grid; gap: 16px; }
table.gv-people > tbody > tr {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 24px;
  padding: 22px; background: var(--surface) !important; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s;
}
table.gv-people > tbody > tr:hover { border-color: var(--green-200); box-shadow: var(--shadow); }
table.gv-people > tbody > tr > th { display: none; }
table.gv-people > tbody > tr:has(th) { display: none; }
table.gv-people > tbody > tr > td { display: block; padding: 0 !important; border: 0 !important; width: auto !important; text-align: left !important; }
table.gv-people td.col-rank {
  order: -1; flex: none; align-self: flex-start;
  min-width: 34px; height: 34px; padding: 0 8px !important; border-radius: 999px;
  display: grid; place-items: center; background: var(--green-50); color: var(--green-700); font: 800 14px/1 var(--font-head);
}
table.gv-people td.col-photo { flex: none; }
table.gv-people td.col-photo img { width: 116px; height: 136px; object-fit: cover; border-radius: 12px; background: var(--green-50); display: block; }
table.gv-people td.col-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
table.gv-people td.col-meta { flex: 1 1 220px; min-width: 0; padding: 14px 16px !important; border-radius: var(--radius); background: var(--bg); font-size: 14.5px; }
table.gv-people br { display: none; }
.meta-box { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg); font-size: 14.5px; }
.meta-line { display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; color: var(--body); overflow-wrap: anywhere; }
.meta-line .icon { width: 16px; height: 16px; color: var(--green-700); margin-top: 4px; }
.meta-line:has(> span:empty) { display: none; }
table.gv-people td.col-tenure { flex: none; align-self: flex-start; }
table.gv-people td.col-tenure span { display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--amber-50); color: var(--amber-700); font: 700 13.5px/1 var(--font-head); white-space: nowrap; }
table.gv-people td.col-tenure span:empty { display: none; }
.memboldtext { font: 700 19px/1.3 var(--font-head); color: var(--ink); }
.desig { font-weight: 600; color: var(--green-700); }
.org { font-size: 14px; color: var(--muted); }
.memtext { color: var(--body); }
.col-main .memtext:empty { display: none; }
.col-main .profile-link, .col-main a[id$="LinkButton1"] {
  align-self: flex-start; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 9px; background: var(--green-700); color: var(--white); text-decoration: none; font: 600 14px/1 var(--font-head);
}
.col-main a[id$="LinkButton1"]:hover { background: var(--green-800); color: var(--white); }
@media (max-width: 560px) {
  table.gv-people td.col-photo img { width: 92px; height: 108px; }
}

/* Dated notice list (SROs, notifications, elections) */
table.gv-datelist, table.gv-datelist > tbody, table.gv-datelist > tbody > tr, table.gv-datelist > tbody > tr > td { display: block; width: 100% !important; border: 0 !important; padding: 0 !important; }
table.gv-datelist > tbody { display: grid; gap: 12px; }
.date-item {
  display: flex; align-items: stretch; gap: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.date-item:hover { border-color: var(--green-600); box-shadow: var(--shadow); transform: translateY(-1px); }
.date-badge {
  flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 8px; background: var(--green-800); color: var(--white); text-align: center;
}
.date-badge .d { font: 800 28px/1 var(--font-head); }
.date-badge .my { font: 600 11.5px/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--amber-400); }
.date-body { flex: 1; min-width: 0; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.date-body .title, .date-body .title a { font: 600 16px/1.45 var(--font-head); color: var(--ink); text-decoration: none; }
.date-body .open { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--font-head); color: var(--green-700); text-decoration: none; padding: 9px 12px; border-radius: 8px; background: var(--green-50); }
.date-body .open:hover { background: var(--green-100); }
@media (max-width: 560px) {
  .date-badge { width: 74px; }
  .date-body { flex-direction: column; align-items: flex-start; }
}

/* Members directory results */
.dir-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.dir-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.dir-card .rep { font: 600 13px/1.2 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--green-700); }
.dir-card .co { font: 700 17px/1.35 var(--font-head); color: var(--ink); }
.dir-card .line { display: flex; gap: 8px; font-size: 14.5px; color: var(--body); }
.dir-card .line .icon { width: 16px; height: 16px; color: var(--muted); margin-top: 3px; }
.search-panel { padding: 24px; border-radius: var(--radius-lg); background: var(--green-50); border: 1px solid var(--green-100); margin-bottom: 26px; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-row .input { flex: 1 1 280px; width: auto !important; height: auto !important; }

/* Gallery / magazine grids rendered by ListView (GroupItemCount) */
.media-grid > div { display: contents; }
.media-grid > div > div { display: contents; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.media-grid .groupSeparator, .media-grid .astitemSeparator, .media-grid .cogroupSeparator, .media-grid .colitemSeparator { display: none; }
.media-card {
  display: flex; flex-direction: column; gap: 12px; padding: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, transform .2s; text-align: left;
}
.media-card:hover { border-color: var(--green-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.media-card img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--green-50); display: block; }
.media-card.landscape img { aspect-ratio: 4 / 3; }
.media-card .printlabel { font: 600 14.5px/1.4 var(--font-head); color: var(--ink); padding: 0 4px 4px; }

/* Contact people grid */
.people-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.people-mini > div, .people-mini > div > div { display: contents; }
.person-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.person-card .nm { font: 700 16.5px/1.3 var(--font-head); color: var(--ink); }
.person-card .ds { font-size: 14px; font-weight: 600; color: var(--green-700); margin-bottom: 8px; }
.person-card .ln { font-size: 14.5px; color: var(--body); display: block; }
.person-card .ln:empty { display: none; }
.person-card br { display: none; }

/* Pager */
.GridPager td { padding: 16px 0 0 !important; border: 0 !important; }
.GridPager table { margin: 0 auto; }
.GridPager a, .GridPager span { display: grid; place-items: center; min-width: 38px; height: 38px; margin: 0 3px; border-radius: 9px; font: 600 14px/1 var(--font-head); text-decoration: none; }
.GridPager a { background: var(--surface); color: var(--green-700); border: 1px solid var(--line); }
.GridPager span { background: var(--green-700); color: var(--white); }

/* Ajax Control Toolkit helpers */
.modalBackground { background: color-mix(in srgb, var(--green-950) 60%, transparent) !important; backdrop-filter: blur(2px); }
.modal-panel {
  width: min(880px, 94vw) !important; max-height: 88vh; overflow: auto;
  background: var(--surface) !important; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  margin: 0 !important;
}
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close, .modal-head input[type=submit], .modal-head input[type=image] {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line) !important; background: var(--surface);
  font: 600 18px/1 var(--font-head) !important; color: var(--ink); cursor: pointer;
}
.modal-close:hover, .modal-head input:hover { background: var(--green-50); }
.modal-body { padding: 26px; }
.profilemain { font-size: 16px; line-height: 1.7; }
.profilemain .boldtext { font: 700 20px/1.3 var(--font-head); color: var(--ink); }
.modal-slider-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 14px; background: var(--green-50); }
.modal-slider-bar input[type=image] { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.customCalloutStyle div, .customCalloutStyle td {
  border: 0 !important; background: var(--danger) !important; color: var(--white) !important;
  font: 600 12.5px/1.3 var(--font-body) !important; direction: ltr; text-align: left;
}
.zoomClass { display: none; }

/* ===================================================================
   SIDEBAR WIDGETS
   =================================================================== */
.section-nav { padding: 10px; }
.section-nav h3 { font: 700 12.5px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 10px; margin: 0; }
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--body); text-decoration: none; font-weight: 500; font-size: 15px; }
.section-nav a:hover { background: var(--green-50); color: var(--green-700); }
.section-nav a.is-current { background: var(--green-700); color: var(--white); font-weight: 600; }
.section-nav a .icon { width: 16px; height: 16px; opacity: .6; }

.bearer-card { overflow: hidden; }
.bearer-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--green-800); color: var(--white); }
.bearer-top h3 { color: var(--white); font-size: 15px; margin: 0; letter-spacing: .02em; }
.bearer-top .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-dark); }
.bearer-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-400); }
.bearer-body { padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.bearer-photo { width: 132px; height: 152px; border-radius: 16px; object-fit: cover; background: var(--green-50); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.officebearername { font: 700 18px/1.3 var(--font-head); color: var(--ink); display: block; }
.officebearertext { font-size: 14px; color: var(--muted); display: block; line-height: 1.5; }
.officebearertext .boldtext { display: block; font-weight: 600; color: var(--green-700); }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { padding: 14px 22px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.news-item:last-child { border-bottom: 0; }
.news-item .t { font-size: 14.5px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .m { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.news-item .m a { font-weight: 600; color: var(--green-700); text-decoration: none; }
.news-item .m a:hover { text-decoration: underline; }
.news-item.pinned { background: var(--amber-50); }
.news-item.pinned a { word-break: break-all; }
.news-scroll { max-height: 430px; overflow-y: auto; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); text-align: right; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px/1 var(--font-head); color: var(--green-700); text-decoration: none; }
.link-arrow:hover { color: var(--green-900); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.quick-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 92px; padding: 12px 6px; border-radius: 12px; background: var(--bg); border: 1px solid transparent;
  font: 600 12.5px/1.25 var(--font-head); color: var(--ink); text-decoration: none; transition: all .2s;
}
.quick-grid a .icon { width: 26px; height: 26px; color: var(--green-700); }
.quick-grid a:hover { background: var(--surface); border-color: var(--green-600); color: var(--green-700); box-shadow: var(--shadow-sm); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--green-950); color: var(--on-dark); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; text-decoration: none; }
.footer-brand .mark { background: var(--surface); border-radius: 14px; padding: 8px 10px; display: grid; place-items: center; }
.footer-brand .mark img { width: 64px; display: block; }
.footer-brand span { font: 800 20px/1.2 var(--font-head); color: var(--white); }
.footer-about { line-height: 1.7; margin: 0; }
.site-footer h4 { font: 700 13px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin: 6px 0 20px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--amber-400); margin-top: 3px; }
.footer-contact a { color: var(--on-dark); text-decoration: none; }
.footer-contact a:hover { color: var(--white); }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--white); }
.footer-social a:hover { background: var(--green-700); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; color: var(--on-dark-muted); }
.footer-bottom a { color: var(--on-dark); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--green-700); color: var(--white); border: 0; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-800); }

/* ===================================================================
   HOME PAGE
   =================================================================== */
.home-hero { position: relative; overflow: hidden; background: var(--green-900); color: var(--on-dark); }
.home-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--green-600) 35%, transparent), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--amber-400) 12%, transparent), transparent 60%);
  pointer-events: none;
}
.hero-pipes { position: absolute; right: -60px; bottom: -80px; width: 560px; opacity: .08; pointer-events: none; }
.home-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
@media (max-width: 1000px) { .home-hero .wrap { grid-template-columns: 1fr; padding-top: 44px; gap: 36px; } }
.hero-copy h1 { color: var(--white); font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; margin: 0 0 20px; }
.hero-copy h1 em { font-style: normal; color: var(--amber-400); }
.hero-copy p { font-size: 18px; color: var(--on-dark); max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: var(--on-dark); }
.hero-badges .icon { width: 16px; height: 16px; color: var(--amber-400); }

/* Photo slider: #slider is filled server-side with <img> tags */
.hero-media { position: relative; }
.slider-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--green-800);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
}
#slider { position: absolute; inset: 0; }
#slider > * { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
#slider img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease, transform 6s ease; transform: scale(1.04); }
#slider .is-active, #slider .is-active img, #slider img.is-active { opacity: 1; transform: scale(1); }
#slider > a.is-active { opacity: 1; }
.slider-shade { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, color-mix(in srgb, var(--green-950) 75%, transparent)); pointer-events: none; }
.slider-ui { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 3; }
.slider-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: all .25s; }
.slider-dots button[aria-current="true"] { width: 26px; background: var(--amber-400); }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: color-mix(in srgb, var(--green-950) 45%, transparent); color: var(--white); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); }
.slider-arrows button:hover { background: color-mix(in srgb, var(--green-950) 70%, transparent); }
.slider-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark-muted); font-size: 14px; }
.hero-chip {
  position: absolute; left: -22px; top: 28px; z-index: 4;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.hero-chip .num { font: 800 26px/1 var(--font-head); color: var(--green-700); }
.hero-chip .lbl { font-size: 13px; color: var(--muted); line-height: 1.3; }
@media (max-width: 1000px) { .hero-chip { left: 12px; top: 12px; padding: 10px 14px; } .hero-chip .num { font-size: 22px; } }

/* Verify strip */
.verify-strip { position: relative; z-index: 5; margin-top: -64px; }
.verify-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center;
  padding: 26px 28px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.verify-ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--green-700); color: var(--white); }
.verify-ico .icon { width: 30px; height: 30px; }
.verify-copy h2 { font-size: 21px; margin: 0 0 4px; }
.verify-copy p { margin: 0; font-size: 14.5px; color: var(--muted); }
.verify-form { display: flex; gap: 10px; }
.verify-form .input { flex: 1; width: auto !important; height: auto !important; }
input.verify-btn { flex: none; width: 132px; height: 50px; padding: 0; border: 0; border-radius: 10px; cursor: pointer; }
input.verify-btn:hover { filter: brightness(.92); }
.verify-msg { grid-column: 2 / -1; font-weight: 600; color: var(--danger); font-size: 14.5px; }
.verify-msg:empty { display: none; }
@media (max-width: 900px) {
  .verify-card { grid-template-columns: auto minmax(0, 1fr); }
  .verify-form { grid-column: 1 / -1; }
  .verify-msg { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .verify-form { flex-direction: column; } input.verify-btn { align-self: flex-start; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 64px 0 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font: 800 clamp(30px, 3.4vw, 42px)/1 var(--font-head); color: var(--ink); letter-spacing: -.02em; }
.stat-num small { font-size: .6em; color: var(--green-600); }
.stat-label { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 420px) { .stat { padding: 22px 18px; } }

.section { padding: 88px 0; }
.section-sm { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; margin: 0; max-width: 720px; letter-spacing: -.02em; }
.section-head p { margin: 12px 0 0; max-width: 620px; color: var(--muted); font-size: 17px; }
.bg-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* About with language tabs */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 1000px) { .about-grid { grid-template-columns: 1fr; } }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.tabs button {
  min-height: 40px; padding: 8px 18px; border-radius: 9px; border: 0; background: transparent; cursor: pointer;
  font: 600 14.5px/1 var(--font-head); color: var(--muted);
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--green-700); box-shadow: var(--shadow-sm); }
.tabs button:hover { color: var(--ink); }
.tab-panel[hidden] { display: none !important; }
.urdu-label { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; font-size: 16px; line-height: 1; }
.urdu-scan { max-height: 620px; overflow-y: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 10px; }
.urdu-scan img { display: block; margin: 0 auto; }
.about-copy .prose { margin-top: 24px; }
.reg-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 26px; }
.reg-badge { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reg-badge .icon { color: var(--green-700); width: 26px; height: 26px; }
.reg-badge strong { display: block; font: 700 14.5px/1.3 var(--font-head); color: var(--ink); }
.reg-badge span { font-size: 13.5px; color: var(--muted); }
.sector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sector {
  position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.sector:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sector .tile-icon { width: 52px; height: 52px; }
.sector h3 { font-size: 17.5px; margin: 6px 0 0; }
.sector p { margin: 0; font-size: 14.5px; color: var(--muted); }
.sector.feature { background: var(--green-800); border-color: var(--green-800); grid-column: 1 / -1; }
.sector.feature h3 { color: var(--white); font-size: 20px; }
.sector.feature p { color: var(--on-dark); }
.sector.feature .tile-icon { background: rgba(255,255,255,.1); color: var(--amber-400); }
@media (max-width: 480px) { .sector-grid { grid-template-columns: 1fr; } }

/* Objectives */
.obj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .obj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .obj-grid { grid-template-columns: 1fr; } }
.obj { padding: 28px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: background .2s, border-color .2s; }
.obj:hover { background: var(--surface); border-color: var(--green-200); }
.obj-n { font: 800 14px/1 var(--font-head); color: var(--amber-700); letter-spacing: .06em; }
.obj h3 { font-size: 19px; margin: 6px 0 0; }
.obj p { margin: 0; font-size: 15px; color: var(--muted); }

/* Home: events + news + leadership */
.home-board { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1160px) { .home-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .home-board > :last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .home-board { grid-template-columns: 1fr; } }
.events-card .card-title { flex-wrap: wrap; }
.event-list { padding: 8px 12px; max-height: 470px; overflow-y: auto; }
.event-list hr { display: none; }
.event-row { display: flex; gap: 16px; align-items: center; padding: 12px 10px; border-radius: 12px; transition: background .15s; }
.event-row + .event-row { border-top: 1px solid var(--line); }
.event-row:hover { background: var(--bg); }
.event-date { flex: none; width: 64px; height: 68px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.event-date .d { font: 800 24px/1 var(--font-head); color: var(--green-700); }
.event-date .my { font: 600 10.5px/1.2 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.event-text { font: 600 15px/1.45 var(--font-head); color: var(--ink); }
.hidden-src { display: none !important; }
.ad-slot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ad-slot img { display: block; width: 100%; height: auto; }
.ad-label { font: 600 11px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; }

/* Leadership & quick access strip */
.access-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .access-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.access {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 150px;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: all .2s;
}
.access .tile-icon { transition: all .2s; }
.access strong { font: 700 16px/1.3 var(--font-head); }
.access span { font-size: 13.5px; color: var(--muted); margin-top: -8px; }
.access:hover { border-color: var(--green-600); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.access:hover .tile-icon { background: var(--green-700); color: var(--white); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center;
  padding: 48px; border-radius: 28px; background: var(--green-800); color: var(--on-dark);
}
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 40px solid rgba(255,255,255,.05); }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 0 0 10px; }
.cta-band p { margin: 0; font-size: 16.5px; max-width: 620px; }
.cta-band .hero-actions { position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Embedded PDFs / long HTML from the database */
.doc-embed embed, .doc-embed iframe { width: 100% !important; height: 80vh !important; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); }
.doc-embed table { border: 0 !important; }
.db-html { overflow-wrap: anywhere; }
.db-html img { border-radius: 12px; }
.db-html table { max-width: 100%; }

/* Event photo zoom overlay */
.photo-zoom { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: color-mix(in srgb, var(--green-950) 85%, transparent); padding: 20px; }
.photo-zoom.show { display: grid; }
.photo-zoom img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.photo-zoom button { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; }

/* Detail definition list (verification result etc.) */
.dl-grid { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.dl-grid dt, .dl-grid dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dl-grid dt { background: var(--bg); font: 600 14px/1.4 var(--font-head); color: var(--muted); }
.dl-grid dd { color: var(--ink); font-weight: 600; }
.dl-grid dt:nth-last-of-type(1), .dl-grid dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid dt { border-bottom: 0; padding-bottom: 4px; } }

@media print {
  .topbar, .site-header, .page-aside, .site-footer, .to-top, .page-hero::after { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
  .page-shell { display: block; margin: 0; }
  .card { box-shadow: none; border: 0; }
}

/* Small helpers used by content pages */
.muted, .muted-time, .muted-time span { color: var(--muted); font-weight: 400; font-size: 14px; }
.tag-date { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font: 600 14px/1 var(--font-head); }
.tag-date:has(span:empty) { display: none; }
.event-title { font-size: clamp(22px, 2.6vw, 30px); margin: 6px 0 18px; }
.event-title:has(span:empty) { display: none; }
table.gv-table.plain { min-width: 0; }
table.gv-table.plain td { padding: 10px 0 !important; }
table.gv-table.plain tr:hover td { background: none; }
.section-title span { font: inherit; color: inherit; }


/* ===================================================================
   HOME — LEADERSHIP (Chairman centre, Sr. Vice Chairman & Vice Chairman either side)
   =================================================================== */
.leaders { background: var(--green-50); padding: 80px 0 72px; }
.leaders-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--green-200);
  font: 700 13px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--green-800);
}
.pill-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-800); }
.leaders-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; color: var(--green-900); margin: 22px 0 14px; letter-spacing: -.02em; }
.leaders-head p { margin: 0; font-size: 17.5px; font-weight: 600; color: var(--muted); line-height: 1.6; }

.leaders-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 6vw, 110px); align-items: center; max-width: 1180px; margin: 0 auto; }
.leader {
  position: relative; background: var(--surface); border-radius: 22px; padding: 36px 26px 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--green-950) 28%, transparent); border-top: 3px solid var(--green-800);
  transition: transform .3s ease, box-shadow .3s ease;
}
.leader:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -24px color-mix(in srgb, var(--green-950) 35%, transparent); }
.leader-main { border-top: 0; padding: 44px 30px 40px; box-shadow: 0 30px 70px -28px color-mix(in srgb, var(--green-950) 40%, transparent); }
.leader-main::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 112px; height: 4px; border-radius: 0 0 4px 4px; background: var(--green-700); }

.leader-photo {
  position: relative; width: 158px; height: 158px; border-radius: 50%; padding: 5px;
  border: 3px solid var(--green-600); background: var(--surface); flex: none;
}
.leader-main .leader-photo { width: 250px; height: 250px; border: 6px solid var(--green-900); }
.leader-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center top; display: block; background: var(--bg); }
.leader-photo.no-photo img { opacity: 0; }
.leader-photo.no-photo::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FA892' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center 60% / 50% no-repeat;
}
.leader h3 { font: 500 19px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .01em; color: var(--green-900); margin: 10px 0 0; }
.leader-main h3 { font-size: 24px; margin-top: 18px; }
.leader-role { display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--green-100); color: var(--green-900); font: 600 14px/1.35 var(--font-head); }
.leader-main .leader-role { background: var(--green-900); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 12px 26px; }
.leaders-more { text-align: center; margin-top: 40px; }
.leaders .stats { margin-top: 64px; }

@media (max-width: 900px) {
  .leaders-row { grid-template-columns: 1fr 1fr; gap: 22px; }
  .leader-main { grid-column: 1 / -1; order: -1; max-width: 460px; width: 100%; justify-self: center; }
  .leader-main .leader-photo { width: 210px; height: 210px; }
}
@media (max-width: 520px) {
  .leaders { padding: 60px 0 56px; }
  .leaders-row { grid-template-columns: 1fr; }
  .leader-photo { width: 140px; height: 140px; }
}

/* Verification moved lower on the page — plain card, no overlap */
.verify-low .verify-card { box-shadow: var(--shadow-sm); }

/* Leadership cards sit exactly where the verification card was: overlapping the hero's bottom edge */
.home-hero .wrap { padding-bottom: 150px; }
.leaders-overlap { background: transparent; padding: 0; position: relative; z-index: 5; margin-top: -120px; }
.leaders-overlap .leaders-row { align-items: end; }
.leaders-overlap .stats { margin-top: 64px; }
@media (max-width: 1000px) { .home-hero .wrap { padding-bottom: 130px; } .leaders-overlap { margin-top: -90px; } }

/* Leader cards while office bearer data loads */
.leader-name .skel { display: inline-block; width: 160px; max-width: 70%; height: 18px; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, var(--green-100) 25%, var(--green-50) 50%, var(--green-100) 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.leader-main .leader-name .skel { width: 220px; height: 22px; }
@keyframes skel { to { background-position: -200% 0; } }
.leader-name:empty { display: none; }
.leader-photo img[hidden] { display: none; }

/* About section right column: Events above Latest News */
.about-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.about-side .event-list { max-height: 360px; }
.about-side .news-scroll { max-height: 420px; }

/* ===================================================================
   THEMES
   Set on <html data-theme="...">: forest (default) | royal | teal | charcoal
   Dark mode is separate and works with any theme: <html data-mode="dark">
   =================================================================== */

/* Royal Blue — deep navy (close to the old menu bar) with the logo's green as accent */
html[data-theme="royal"] {
  --green-950: #0A1238; --green-900: #101B52; --green-800: #18286E; --green-700: #1F3592; --green-600: #2C49BF;
  --green-200: #C5CEF2; --green-100: #E2E7FA; --green-50: #F1F4FD;
  --amber-400: #45C27A; --amber-700: #0B6A36; --amber-50: #E7F6ED;
  --ink: #121833; --body: #2C3350; --muted: #59607A; --line: #DDE1EE; --line-strong: #C3C9DD; --bg: #F5F6FA;
  --on-dark: #D3DAF2; --on-dark-muted: #8D97BE;
}

/* Water Teal */
html[data-theme="teal"] {
  --green-950: #032529; --green-900: #05343A; --green-800: #084B53; --green-700: #0A6670; --green-600: #0E8A96;
  --green-200: #B3E0E4; --green-100: #DCF1F3; --green-50: #EEF8F9;
  --amber-400: #F4B04A; --amber-700: #8F5208; --amber-50: #FDF4E6;
  --ink: #0F2226; --body: #2A3E42; --muted: #53686C; --line: #D8E6E8; --line-strong: #BFD3D6; --bg: #F3F8F8;
  --on-dark: #CDE6E9; --on-dark-muted: #86ABB0;
}

/* Charcoal & Amber */
html[data-theme="charcoal"] {
  --green-950: #111317; --green-900: #1A1D22; --green-800: #24282F; --green-700: #343A44; --green-600: #4D5562;
  --green-200: #D3D6DB; --green-100: #EBECEE; --green-50: #F5F5F6;
  --amber-400: #F2B13C; --amber-700: #8A5600; --amber-50: #FDF3E0;
  --ink: #16181C; --body: #33373E; --muted: #5E636C; --line: #E1E2E5; --line-strong: #C9CCD1; --bg: #F6F6F4;
  --on-dark: #DADCE0; --on-dark-muted: #979CA5;
}

/* Brown & White — warm brick brown on white (default for Design 3) */
html[data-theme="brown"] {
  --green-950: #2B110A; --green-900: #3E180E; --green-800: #5C2414; --green-700: #8A3A1F; --green-600: #B5512B;
  --green-200: #EBCDBE; --green-100: #F6E6DD; --green-50: #FBF4EF;
  --amber-400: #E9B872; --amber-700: #8A5A12; --amber-50: #FBF2E3;
  --ink: #22140F; --body: #3E2C25; --muted: #6B5850; --line: #EADFD8; --line-strong: #D8C8BE; --bg: #FAF6F3;
  --on-dark: #F1DDD3; --on-dark-muted: #C29E8E;
}
html[data-theme="brown"] .h2-scribble::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 50 2, 120 2, 198 8' fill='none' stroke='%23C9683F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Dark mode — neutrals go dark, theme hues stay; tints are mixed from the theme's own colour */
html[data-mode="dark"] {
  --surface: #151B19;
  --bg: #0D1210;
  --ink: #EEF2EF; --body: #C9D2CD; --muted: #95A29B;
  --line: #26302C; --line-strong: #34403B;
  --green-50:  color-mix(in srgb, var(--green-600) 14%, #151B19);
  --green-100: color-mix(in srgb, var(--green-600) 24%, #151B19);
  --green-200: color-mix(in srgb, var(--green-600) 40%, #151B19);
  --amber-50:  color-mix(in srgb, var(--amber-400) 16%, #151B19);
  --amber-700: var(--amber-400);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}
html[data-mode="dark"] .prose a, html[data-mode="dark"] .link-arrow, html[data-mode="dark"] .eyebrow,
html[data-mode="dark"] .desig, html[data-mode="dark"] .stat-num small, html[data-mode="dark"] .fact-num,
html[data-mode="dark"] .news-item .m a, html[data-mode="dark"] .card-title .icon, html[data-mode="dark"] .tile-icon,
html[data-mode="dark"] .event-date .d, html[data-mode="dark"] .tabs button[aria-selected="true"] {
  color: color-mix(in srgb, var(--green-600) 55%, #FFFFFF);
}
html[data-mode="dark"] .eyebrow::before { background: color-mix(in srgb, var(--green-600) 55%, #FFFFFF); }
html[data-mode="dark"] .btn-primary, html[data-mode="dark"] .btn-accent, html[data-mode="dark"] .footer-links a,
html[data-mode="dark"] .footer-contact a, html[data-mode="dark"] .topbar a, html[data-mode="dark"] .nav-list a,
html[data-mode="dark"] .submenu a { color: inherit; }
html[data-mode="dark"] .btn-primary { color: #FFFFFF !important; }
html[data-mode="dark"] .site-header { background: var(--surface); }
html[data-mode="dark"] .nav-list > li > a, html[data-mode="dark"] .nav-list > li > button { color: var(--ink); }
html[data-mode="dark"] .brand-name { color: color-mix(in srgb, var(--green-600) 55%, #FFFFFF); }
html[data-mode="dark"] .home-hero, html[data-mode="dark"] .page-hero { background: color-mix(in srgb, var(--green-900) 70%, #000); }
html[data-mode="dark"] .site-footer, html[data-mode="dark"] .topbar { background: #090D0B; }
html[data-mode="dark"] .footer-brand .mark { background: #FFFFFF; }
html[data-mode="dark"] .leader-main .leader-role { background: var(--green-700); }
html[data-mode="dark"] .leader-photo { background: var(--surface); }
html[data-mode="dark"] .news-item.pinned { background: var(--amber-50); }
html[data-mode="dark"] .urdu-scan img { filter: invert(.88) hue-rotate(180deg); }
html[data-mode="dark"] .input { background: var(--bg); color: var(--ink); }
html[data-mode="dark"] .card, html[data-mode="dark"] .leader, html[data-mode="dark"] .stats { background: var(--surface); }

/* Brown theme in dark mode: warm dark neutrals */
html[data-theme="brown"][data-mode="dark"] {
  --surface: #1A1311; --bg: #120D0B; --ink: #F3ECE8; --body: #D6CAC4; --muted: #A8968E; --line: #33261F; --line-strong: #43332B;
  --green-50: color-mix(in srgb, var(--green-600) 14%, #1A1311); --green-100: color-mix(in srgb, var(--green-600) 24%, #1A1311);
  --green-200: color-mix(in srgb, var(--green-600) 40%, #1A1311);
}

/* Smooth hand-off when switching */
body, .site-header, .card, .leader, .stats, .home-hero, .site-footer { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }

/* ---------- Theme switcher (top bar) ---------- */
.theme-switch { display: inline-flex; align-items: center; gap: 6px; padding-left: 14px; margin-left: 4px; border-left: 1px solid rgba(255,255,255,.14); }
.theme-switch .sw-label { font-size: 12.5px; color: var(--on-dark-muted); margin-right: 2px; }
.theme-dot {
  width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); transition: transform .15s, border-color .15s;
}
.theme-dot:hover { transform: scale(1.12); }
.theme-dot[aria-pressed="true"] { border-color: #FFFFFF; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.theme-dot[data-set-theme="forest"]   { --c1: #0B6A36; --c2: #F4B04A; }
.theme-dot[data-set-theme="royal"]    { --c1: #1F3592; --c2: #45C27A; }
.theme-dot[data-set-theme="teal"]     { --c1: #0A6670; --c2: #F4B04A; }
.theme-dot[data-set-theme="charcoal"] { --c1: #343A44; --c2: #F2B13C; }
.theme-dot[data-set-theme="brown"]    { --c1: #8A3A1F; --c2: #F6E6DD; }
.mode-toggle {
  width: 30px; height: 30px; margin-left: 4px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: var(--on-dark); display: grid; place-items: center; cursor: pointer;
}
.mode-toggle:hover { background: rgba(255,255,255,.08); }
.mode-toggle .icon { width: 16px; height: 16px; color: var(--amber-400); }
.mode-toggle .i-sun { display: none; }
html[data-mode="dark"] .mode-toggle .i-moon { display: none; }
html[data-mode="dark"] .mode-toggle .i-sun { display: block; }
@media (max-width: 560px) { .theme-switch .sw-label { display: none; } .theme-switch { padding-left: 10px; } }
html[data-mode="dark"] .leader h3, html[data-mode="dark"] .hero-chip .lbl, html[data-mode="dark"] .stat-num { color: var(--ink); }
html[data-mode="dark"] .leader-role { color: var(--ink); }
html[data-mode="dark"] .leader-main .leader-role { color: #FFFFFF; }
html[data-mode="dark"] .leader { border-top-color: var(--green-600); }
html[data-mode="dark"] .hero-chip { background: var(--surface); color: var(--ink); }
html[data-mode="dark"] table.gv-table th { color: var(--muted); }
html[data-mode="dark"] .officebearertext .boldtext, html[data-mode="dark"] .dir-card .rep,
html[data-mode="dark"] .person-card .ds, html[data-mode="dark"] .meta-line .icon,
html[data-mode="dark"] .section-nav a:hover, html[data-mode="dark"] .gv-table td.col-action a,
html[data-mode="dark"] .date-body .open, html[data-mode="dark"] table.gv-people td.col-rank,
html[data-mode="dark"] .crumbs a { color: color-mix(in srgb, var(--green-600) 55%, #FFFFFF); }
html[data-mode="dark"] .crumbs a { color: var(--on-dark); }
html[data-mode="dark"] .date-badge { background: var(--green-700); }

/* Mobile drawer: no shadow peeking at the screen edge while closed */
@media (max-width: 1080px) {
  .main-nav { box-shadow: none; visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  body.nav-open .main-nav { box-shadow: var(--shadow-lg); visibility: visible; transition: transform .28s ease; }
}

/* ---------- Homepage design switch (Design 1 / Design 2) ---------- */
.design-switch { display: inline-flex; align-items: center; gap: 4px; padding-right: 14px; margin-right: 2px; border-right: 1px solid rgba(255,255,255,.14); }
.design-switch .sw-label { font-size: 12.5px; color: var(--on-dark-muted); margin-right: 4px; }
.design-switch button {
  min-width: 28px; height: 26px; padding: 0 8px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--on-dark);
  font: 700 12.5px/1 var(--font-head); transition: background .15s, color .15s, border-color .15s;
}
.design-switch button:hover { background: rgba(255,255,255,.08); }
.design-switch button[aria-pressed="true"] { background: var(--amber-400); border-color: var(--amber-400); color: var(--green-950); }
@media (max-width: 560px) { .design-switch .sw-label { display: none; } .design-switch { padding-right: 10px; } }
.home2 .footer-bottom .design-switch { border-right: 1px solid rgba(255,255,255,.14); }

/* ---------- APPPMA logo with readable ring text (assets/apppma-logo-clear.svg) ----------
   Large at the top of the page so the ring text can be read; shrinks once the visitor scrolls. */
.site-header .brand img.logo-round { width: 220px; height: auto; transition: width .3s ease; }
.site-header.is-scrolled .brand img.logo-round { width: 118px; }
.footer-brand .footer-logo { width: 220px; height: auto; display: block; flex: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
@media (max-width: 1600px) and (min-width: 1081px) { .site-header .brand img.logo-round { width: 200px; } }
@media (max-width: 1440px) and (min-width: 1081px) { .site-header .brand img.logo-round { width: 180px; } }
@media (max-width: 1260px) and (min-width: 1081px) { .site-header .brand img.logo-round { width: 160px; } }
@media (min-width: 1081px) { .site-header.is-scrolled .brand img.logo-round { width: 110px; } }
@media (max-width: 1080px) { .site-header .brand img.logo-round { width: 150px; } .site-header.is-scrolled .brand img.logo-round { width: 104px; } }
@media (max-width: 560px) { .site-header .brand img.logo-round { width: 112px; } .site-header.is-scrolled .brand img.logo-round { width: 88px; } .footer-brand .footer-logo { width: 190px; } }
/* Designs 2-4: the ring already spells out the full name, so the stacked name text gives way on narrower screens */
@media (max-width: 1500px) and (min-width: 1081px) { .h2-header .h2-brand-text { display: none; } }
@media (max-width: 1440px) and (min-width: 1081px) { .site-header.is-scrolled .brand img.logo-round { width: 92px; } }
@media (max-width: 1200px) and (min-width: 1081px) { .site-header .brand img.logo-round { width: 96px; } .site-header.is-scrolled .brand img.logo-round { width: 80px; } }
@media (max-width: 1120px) and (min-width: 1081px) { .site-header .brand img.logo-round { width: 84px; } .site-header.is-scrolled .brand img.logo-round { width: 76px; } }
