:root {
  --ink: #173f36;
  --ink-soft: #567169;
  --forest: #285e50;
  --forest-deep: #173f36;
  --sage: #7fae91;
  --sage-soft: #c6dfce;
  --mint: #eff7f2;
  --mint-deep: #e0eee5;
  --cream: #fbfaf6;
  --paper: #fff;
  --coral: #df9387;
  --coral-soft: #f6d4cb;
  --gold: #d9b86c;
  --line: rgba(31, 77, 66, .14);
  --shadow: 0 24px 70px rgba(31, 77, 66, .12);
  --shadow-soft: 0 12px 36px rgba(31, 77, 66, .08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --urdu: "Noto Nastaliq Urdu", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--cream); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
::selection { color: white; background: var(--forest); }

html:not([data-language="ur"]) [data-lang="ur"],
html[data-language="ur"] [data-lang="en"] { display: none !important; }
html[data-language="ur"] body { font-family: var(--urdu); }
html[data-language="ur"] .portal-main,
html[data-language="ur"] .widget-rail,
html[data-language="ur"] .portal-sidebar { text-align: right; }
html[data-language="ur"] .eyebrow { letter-spacing: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 14px; color: white; background: var(--forest-deep); border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(251,250,246,.94); backdrop-filter: blur(16px); }
.header-inner { width: min(calc(100% - 36px), 1540px); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
html[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; border-radius: 14px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; letter-spacing: .02em; }
.brand-copy small { margin-top: 5px; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.language-switcher { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.language-switcher button { min-width: 48px; padding: 7px 11px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 700; }
.language-switcher button[aria-pressed="true"] { color: white; background: var(--forest); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: white; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle > span:not(.sr-only) { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }

.portal-layout { width: min(calc(100% - 24px), 1680px); margin: 0 auto; display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 32px; align-items: start; }
.portal-main { width: 100%; min-width: 0; }
.portal-sidebar { position: relative; align-self: stretch; overflow-anchor: none; }
.sidebar-inner { height: 100%; padding: 24px 14px 32px; }
.sidebar-heading { margin: 0 12px 16px; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.sidebar-sticky { position: sticky; top: 94px; z-index: 6; }
.sidebar-nav { width: 100%; margin-inline: auto; display: grid; grid-template-columns: 1fr; gap: 7px; padding: 4px 0; background: rgba(251,250,246,.96); transition: width .3s cubic-bezier(.22,.8,.22,1), padding .3s cubic-bezier(.22,.8,.22,1), gap .3s cubic-bezier(.22,.8,.22,1), border-color .2s ease, border-radius .3s ease, box-shadow .3s ease; }
.sidebar-nav a { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 13px; overflow: hidden; border-radius: 14px; font-weight: 600; transition: width .28s cubic-bezier(.22,.8,.22,1), height .28s cubic-bezier(.22,.8,.22,1), gap .24s ease, padding .28s cubic-bezier(.22,.8,.22,1), background-color .2s ease; }
.sidebar-nav a > [data-lang] { max-width: 150px; overflow: hidden; white-space: nowrap; opacity: 1; transform: translateX(0); transition: max-width .22s ease, opacity .16s ease, transform .22s ease; }
html[data-language="ur"] .portal-sidebar:not(.is-compact) .sidebar-nav a { overflow: visible; padding-block: 7px; }
html[data-language="ur"] .portal-sidebar:not(.is-compact) .sidebar-nav a > [data-lang="ur"] { overflow: visible; line-height: 2.1; }
.sidebar-nav a:hover, .sidebar-nav a:focus-visible { background: var(--mint-deep); }
.nav-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); background: white; font-family: var(--sans); font-size: 12px; font-weight: 800; transition: transform .24s ease, border-radius .24s ease, background-color .2s ease; }
.sidebar-card { position: relative; margin-top: 28px; padding: 22px 18px; overflow: hidden; border-radius: var(--radius-md); color: white; background: var(--forest); }
.sidebar-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -55px; bottom: -60px; border: 22px solid rgba(255,255,255,.1); border-radius: 50%; }
.sidebar-card strong { display: block; position: relative; z-index: 1; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.sidebar-card p { position: relative; z-index: 1; margin: 10px 0 0; color: rgba(255,255,255,.78); font-size: 12px; }
.status-dot { display: block; width: 9px; height: 9px; margin-bottom: 18px; border-radius: 50%; background: #bde4c9; box-shadow: 0 0 0 7px rgba(189,228,201,.15); }

.widget-rail { padding: 32px 0 40px; }
.widget-rail-heading { margin-bottom: 16px; }
.widget-rail-heading h2 { margin: 4px 0 0; font: 600 1.7rem/1 var(--serif); }
.eyebrow { display: block; color: var(--forest); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.portal-widget, .widget-empty { margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-soft); }
.widget-header { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.widget-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--coral); font: 700 10px var(--sans); }
.widget-header h3 { margin: 0; font-size: 14px; }
.aqi-widget label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.aqi-widget select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--mint); }
.aqi-reading { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; padding: 14px; border-radius: 16px; background: var(--mint); }
.aqi-reading[data-level="good"] { background: #e6f5e9; }
.aqi-reading[data-level="moderate"] { background: #fff3d2; }
.aqi-reading[data-level="sensitive"] { background: #ffe5c5; }
.aqi-reading[data-level="unhealthy"] { background: #f9d1ce; }
.aqi-reading[data-level="very-unhealthy"] { background: #ead8ef; }
.aqi-reading[data-level="hazardous"] { color: white; background: #7f354d; }
.aqi-value { min-width: 54px; font: 600 2.25rem/1 var(--serif); }
.aqi-reading strong, .aqi-reading small { display: block; }
.aqi-reading strong { font-size: 12px; }
.aqi-reading small { opacity: .7; font: 700 10px var(--sans); }
.pollutant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pollutant-grid div { padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.pollutant-grid span, .pollutant-grid strong { display: block; }
.pollutant-grid span { color: var(--ink-soft); font: 700 10px var(--sans); }
.pollutant-grid strong { margin-top: 2px; font-size: 13px; }
.widget-source { margin: 12px 0 0; color: var(--ink-soft); font-size: 9px; }
.widget-source a { text-decoration: underline; }
.custom-widget-frame { width: 100%; min-height: 240px; border: 0; border-radius: 12px; background: var(--mint); }

@media (min-width: 1041px) {
  .portal-sidebar.is-compact .sidebar-nav { width: 170px; grid-template-columns: repeat(4,36px); gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 17px; background: var(--cream); box-shadow: 0 0 0 9px rgba(251,250,246,.96), var(--shadow-soft); }
  .portal-sidebar.is-compact .sidebar-nav a { width: 36px; height: 36px; justify-content: center; gap: 0; padding: 3px; }
  .portal-sidebar.is-compact .sidebar-nav a > [data-lang] { max-width: 0; opacity: 0; transform: translateX(-8px); }
  .portal-sidebar.is-compact .nav-icon { transform: scale(1.06); border-radius: 11px; }
  .portal-sidebar.is-compact .article-toc--desktop { display: block; }
}

.hero { min-height: 670px; display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(30px, 5vw, 72px); align-items: center; padding: 70px clamp(14px, 3vw, 44px) 84px; }
.hero-copy { max-width: 720px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: var(--forest); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.hero-kicker > span { width: 28px; height: 1px; background: var(--forest); }
.hero h1, .page-hero h1, .not-found h1 { margin: 22px 0; font: 600 clamp(3.6rem, 6.4vw, 6.8rem)/.87 var(--serif); letter-spacing: -.055em; }
html[data-language="ur"] .hero h1 { font-family: var(--urdu); font-size: clamp(2.8rem, 4.8vw, 5rem); line-height: 2; letter-spacing: 0; text-wrap: balance; }
html[data-language="ur"] .page-hero h1 { font-family: var(--urdu); font-size: clamp(3rem, 5.5vw, 5.6rem); line-height: 1.55; letter-spacing: 0; }
.hero h1 em { color: var(--coral); font-weight: inherit; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; }
.button-primary { color: white; background: var(--forest); box-shadow: 0 12px 26px rgba(40,94,80,.2); }
.button-primary:hover { background: var(--forest-deep); transform: translateY(-1px); }
.button-secondary { border-color: var(--line); background: white; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.hero-trust img { width: 54px; height: 54px; border: 3px solid white; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-soft); }
.hero-trust strong, .hero-trust span { display: block; }
.hero-trust strong { font-size: 13px; }
.hero-trust span { color: var(--ink-soft); font-size: 11px; }
.hero-visual { min-width: 0; }
.hero-image-card { position: relative; min-height: 500px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(40,94,80,.09); border-radius: 46% 46% 38% 38%; background: linear-gradient(145deg, var(--mint), #dceee3); box-shadow: var(--shadow); }
.hero-image-card::before, .hero-image-card::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); }
.hero-image-card::before { width: 220px; height: 220px; top: -80px; right: -60px; }
.hero-image-card::after { width: 150px; height: 150px; bottom: -50px; left: -45px; }
.hero-image-card > img { position: relative; z-index: 2; width: min(76%, 420px); max-height: 410px; object-fit: contain; filter: drop-shadow(0 24px 26px rgba(31,77,66,.14)); }
.hero-halo { position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid rgba(40,94,80,.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.18), 0 0 0 90px rgba(255,255,255,.1); }
.hero-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(255,255,255,.86); box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); font-size: 11px; font-weight: 700; }
.hero-note strong { color: var(--coral); }
.note-one { top: 15%; left: 5%; }.note-two { right: 4%; top: 44%; }.note-three { bottom: 12%; left: 13%; }

.content-section { padding: 82px clamp(14px, 3vw, 44px); border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.section-heading h2, .appointment-copy h2, .about-grid h2 { max-width: 740px; margin: 7px 0 0; font: 600 clamp(2.5rem, 4vw, 4.3rem)/.98 var(--serif); letter-spacing: -.035em; }
html[data-language="ur"] .section-heading h2, html[data-language="ur"] .about-grid h2 { font-family: var(--urdu); line-height: 1.55; letter-spacing: 0; }
html[data-language="ur"] .appointment-copy h2 { font-family: var(--urdu); font-size: clamp(2.25rem, 3.2vw, 3.4rem); line-height: 2; letter-spacing: 0; text-wrap: balance; }
.section-heading > p { max-width: 340px; margin: 0; color: var(--ink-soft); }
.section-heading.compact { align-items: center; }
.article-tools, .resource-tools { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.search-box { min-width: 240px; flex: 0 1 350px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.search-symbol { color: var(--ink-soft); font-size: 20px; }
.search-box input { width: 100%; padding: 11px 0; border: 0; outline: 0; background: transparent; }
.filter-row { min-width: 0; flex: 1 1 420px; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 8px; overflow: visible; padding: 3px 0; }
.filter-chip { min-height: 38px; max-width: 100%; flex: 0 1 auto; display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 11px; font-weight: 700; line-height: 1.25; }
.filter-chip.is-active { color: white; border-color: var(--forest); background: var(--forest); }
.carousel { position: relative; }
.carousel-controls { display: flex; justify-content: flex-end; gap: 7px; margin-bottom: 12px; }
.carousel-controls button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: white; font-family: var(--sans); }
.carousel-controls button:hover { color: white; background: var(--forest); }
.card-rail, .resource-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 32%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 5px 2px 22px; scrollbar-width: thin; scrollbar-color: var(--sage-soft) transparent; }
.card-rail { scroll-padding-inline: 14px; margin: -5px -12px -24px; padding: 10px 14px 46px; }
.compact-rail { grid-auto-columns: minmax(240px, 30%); }
.post-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: 0 18px 38px rgba(31,77,66,.07), 0 4px 12px rgba(31,77,66,.035); }
.post-card[hidden] { display: none; }
.post-card-art { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; color: var(--forest); background: linear-gradient(145deg, var(--mint), var(--sage-soft)); }
.post-card-art > span { position: relative; z-index: 2; font: 600 4.8rem var(--serif); }
.post-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-art img { transform: scale(1.035); }
.category-lifestyle { color: #935d51; background: linear-gradient(145deg,#fff0ea,#f4c6bb); }
.category-air-quality { color: #3e6281; background: linear-gradient(145deg,#edf6fb,#bfd9e8); }
.category-prevention { color: #7d662f; background: linear-gradient(145deg,#fff7df,#edd79e); }
.card-orbit { position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .2; }.orbit-one { width: 145px; height: 145px; }.orbit-two { width: 205px; height: 205px; }
.post-card-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.post-card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { margin: 13px 0 8px; font: 600 1.75rem/1.04 var(--serif); letter-spacing: -.02em; }
html[data-language="ur"] .post-card h3 { font-family: var(--urdu); line-height: 1.65; }
.post-card-body > p { min-height: 72px; margin: 0 0 18px; color: var(--ink-soft); font-size: 12px; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; }
.post-card-footer a { display: inline-flex; align-items: center; gap: 5px; color: var(--forest); font-weight: 800; }
.empty-state, .resource-empty { padding: 44px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-md); background: var(--mint); }
.empty-state strong, .resource-empty h3 { display: block; margin: 0; font: 600 1.8rem var(--serif); }
.empty-state p, .resource-empty p { margin: 8px 0 0; color: var(--ink-soft); }
.category-section:nth-child(even) { background: rgba(237,247,241,.42); }

.resource-tools { justify-content: space-between; }
.show-all-button { flex: 0 0 auto; }
.resource-rail { grid-auto-columns: minmax(250px, 32%); }
.resource-card { min-height: 270px; display: flex; flex-direction: column; scroll-snap-align: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-soft); }
.resource-card[hidden] { display: none; }
.resource-type { align-self: flex-start; padding: 5px 9px; color: var(--forest); border-radius: 999px; background: var(--mint); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.resource-card h3 { margin: 18px 0 8px; font: 600 1.8rem/1.05 var(--serif); }
.resource-card p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.resource-card a { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; color: var(--forest); font-size: 12px; font-weight: 800; }
.resources-section.is-expanded .resource-rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0,1fr)); overflow: visible; }

.resource-page { min-height: calc(100vh - 78px); padding: 54px clamp(14px,3vw,44px) 90px; }
.resource-page-header { max-width: 850px; margin: 32px 0 36px; }
.resource-page-header h1 { margin: 10px 0 14px; font: 600 clamp(3rem,5.5vw,5.8rem)/.92 var(--serif); letter-spacing: -.045em; }
.resource-page-header p { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 17px; }
html[data-language="ur"] .resource-page-header h1 { font-family: var(--urdu); font-size: clamp(2.6rem,4.6vw,4.8rem); line-height: 1.8; letter-spacing: 0; }
html[data-language="ur"] .resource-page-header p { line-height: 2.1; }
.interactive-resource-frame { width: 100%; min-height: 900px; display: block; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-soft); }
.resource-page-download { margin-top: 4px; }

.appointment-section { margin: 40px clamp(14px, 3vw, 44px) 90px; display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); overflow: hidden; border-radius: var(--radius-lg); color: white; background: var(--forest-deep); box-shadow: var(--shadow); }
.appointment-profile { position: relative; min-height: 590px; background: var(--mint-deep); }
.appointment-profile img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-badge { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 12px 16px; text-align: center; border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); font-size: 11px; font-weight: 800; }
.appointment-copy { padding: clamp(36px, 5vw, 68px); }
.appointment-copy .eyebrow { color: var(--sage-soft); }
.appointment-copy h2 { color: white; }
.appointment-copy > p { max-width: 650px; color: rgba(255,255,255,.72); }
html[data-language="ur"] .appointment-copy > p { margin-top: 6px; line-height: 2.15; }
.appointment-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.appointment-links a { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(255,255,255,.07); }
.appointment-links a:hover { background: rgba(255,255,255,.13); }
.appointment-links strong { flex: 1; font-size: 12px; }
html[data-language="ur"] .appointment-links strong[data-lang="ur"] { line-height: 2; }
.contact-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--forest-deep); background: var(--sage-soft); font-size: 20px; }
.contact-arrow { flex: 0 0 auto; opacity: .7; }

.reading-progress { position: fixed; top: 78px; left: 0; right: 0; z-index: 105; height: 3px; background: rgba(40,94,80,.08); }
.reading-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--coral); }
.article-hero { padding: 48px clamp(14px,3vw,44px) 66px; background: linear-gradient(180deg,var(--mint),var(--cream)); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--forest); font-size: 12px; font-weight: 800; }
.article-hero-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(240px,.8fr); gap: 42px; align-items: center; margin-top: 35px; }
.article-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.category-pill { padding: 6px 10px; border-radius: 999px; color: var(--forest); background: var(--sage-soft); }
.article-heading h1 { margin: 18px 0; font: 600 clamp(3.5rem,6vw,6rem)/.92 var(--serif); letter-spacing: -.05em; }
html[data-language="ur"] .article-heading h1 { font-family: var(--urdu); font-size: clamp(2.7rem,4.8vw,4.8rem); line-height: 2; letter-spacing: 0; text-wrap: balance; }
.article-deck { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 17px; }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.article-byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.article-byline strong, .article-byline span { display: block; }.article-byline strong { font-size: 12px; }.article-byline span { color: var(--ink-soft); font-size: 10px; }
.article-visual { min-height: 390px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(145deg,var(--mint-deep),var(--sage-soft)); }
.article-visual img { width: 72%; max-height: 330px; object-fit: contain; }
.article-visual.has-image img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.article-toc[hidden] { display: none !important; }
.article-toc { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.96); box-shadow: var(--shadow-soft); }
.article-toc-title { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 12px 14px; color: var(--forest); font-size: 12px; }
.article-toc-title .material-symbols-outlined { flex: 0 0 auto; font-size: 19px; }
.article-toc-title strong { font-weight: 800; }
.article-toc ol { max-height: min(52vh,480px); margin: 0; padding: 0 10px 12px; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: var(--sage-soft) transparent; }
.article-toc li { margin: 2px 0; }
.article-toc a { display: block; padding: 7px 9px 7px 12px; overflow: hidden; color: var(--ink-soft); border-inline-start: 2px solid var(--line); border-radius: 0 9px 9px 0; font-size: 11px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
html[dir="rtl"] .article-toc a { border-radius: 9px 0 0 9px; }
.article-toc li[data-toc-level="2"] a { padding-inline-start: 21px; font-size: 10px; }
.article-toc li[data-toc-level="3"] a { padding-inline-start: 31px; font-size: 10px; font-weight: 500; }
.article-toc li:is([data-toc-level="4"],[data-toc-level="5"],[data-toc-level="6"]) a { padding-inline-start: 39px; font-size: 9px; font-weight: 500; }
.article-toc a:hover, .article-toc a:focus-visible { color: var(--forest); background: var(--mint); }
.article-toc a[aria-current="location"] { color: var(--forest-deep); border-inline-start-color: var(--coral); background: var(--mint-deep); font-weight: 800; }
.article-toc--desktop { display: none; width: min(100%,280px); margin: 17px auto 0; }
.article-toc--desktop .article-toc-title { border-bottom: 1px solid var(--line); }
.article-toc-mobile-wrap { display: none; }
.article-toc--mobile > summary { cursor: pointer; list-style: none; }
.article-toc--mobile > summary::-webkit-details-marker { display: none; }
.article-toc-summary-copy { min-width: 0; display: grid; flex: 1; }
.article-toc-summary-copy small { color: var(--ink-soft); font-size: 8px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .08em; }
.article-toc-summary-copy strong { overflow: hidden; color: var(--forest-deep); line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
html[data-language="ur"] .article-toc-summary-copy small { line-height: 1.8; letter-spacing: 0; }
.article-toc--mobile .article-toc-chevron { margin-inline-start: auto; transition: transform .2s ease; }
.article-toc--mobile[open] .article-toc-chevron { transform: rotate(180deg); }
.article-toc--mobile nav { border-top: 1px solid var(--line); }
.prose :is(h1,h2,h3,h4,h5,h6) { scroll-margin-top: 104px; }
.article-content-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 42px; padding: 70px clamp(14px,3vw,44px) 90px; }
.article-aside { position: sticky; top: 110px; width: max-content; max-width: 260px; align-self: start; }
.aside-card { width: max-content; max-width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.tag-list > a { min-height: 28px; display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 9999px; background: var(--mint); font-size: 9px; line-height: 1; }.tag-list > a:hover, .tag-list > a:focus-visible { color: white; border-color: var(--forest); background: var(--forest); }.tag-list b { font-weight: 700; }
.article-aside .tag-list { display: grid; grid-template-columns: 1fr; justify-items: start; }
.article-aside .tag-list > a { max-width: 230px; white-space: nowrap; }
.copy-link { width: 100%; display: flex; align-items: center; gap: 7px; padding: 9px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; font-size: 10px; font-weight: 800; }
.article-aside .copy-link [data-copy-label] { display: block; max-width: 12ch; line-height: 1.45; text-align: start; white-space: normal; }
.prose { min-width: 0; font: 19px/1.86 var(--sans); }
.prose > div > :first-child { margin-top: 0; }
.prose h1 { margin: 2.2em 0 .7em; font: 600 clamp(2.8rem, 4vw, 3.5rem)/1 var(--serif); letter-spacing: -.035em; }
.prose h2 { margin: 2.1em 0 .65em; font: 600 clamp(2rem, 3vw, 2.45rem)/1.08 var(--serif); letter-spacing: -.025em; }
.prose h3 { margin: 1.8em 0 .6em; font: 600 1.55rem/1.2 var(--serif); }
.urdu-prose { font-family: var(--urdu); font-size: 20px; line-height: 2.25; }
.urdu-prose h1 { font-family: var(--urdu); font-size: clamp(2.6rem,4vw,3.3rem); line-height: 1.85; letter-spacing: 0; }
.urdu-prose h2 { font-family: var(--urdu); font-size: clamp(2.05rem,3vw,2.55rem); line-height: 1.9; letter-spacing: 0; }
.urdu-prose h3 { font-family: var(--urdu); font-size: 1.65rem; line-height: 2; letter-spacing: 0; }
.prose p { margin: 0 0 1.25em; }.prose li { margin-bottom: .5em; }.prose a { color: var(--forest); text-decoration: underline; }.prose blockquote { margin: 1.7em 0; padding: 22px 26px; border-left: 4px solid var(--coral); border-radius: 0 16px 16px 0; background: var(--mint); font-family: var(--serif); font-size: 1.2em; }
.rich-link-grid { display: flex; flex-direction: column; gap: 14px; margin: 1.7em 0; }
.rich-link-row { width: 100%; display: grid; gap: 14px; margin-inline: auto; }
.rich-link-row.cards-1 { width: 60%; grid-template-columns: minmax(0, 1fr); }
.rich-link-row.cards-2 { width: 85%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rich-link-row.cards-3 { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .rich-link-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 30px rgba(31,77,66,.07); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.prose .rich-link-card:hover, .prose .rich-link-card:focus-visible { color: var(--ink); border-color: rgba(40,94,80,.34); box-shadow: 0 18px 40px rgba(31,77,66,.12); text-decoration: none; transform: translateY(-3px); }
.rich-link-card-media { position: relative; height: 148px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 80% 20%,rgba(255,255,255,.75),transparent 32%), linear-gradient(145deg,var(--mint),var(--sage-soft)); }
.rich-link-card-fallback { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.78); border-radius: 18px; color: var(--forest); background: rgba(255,255,255,.78); box-shadow: var(--shadow-soft); font: 700 1.4rem/1 var(--sans); text-transform: uppercase; }
.rich-link-card-media.has-image .rich-link-card-fallback { opacity: 0; }
.rich-link-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rich-link-card-logo { position: absolute; width: 62px; height: 62px; padding: 10px; object-fit: contain; border-radius: 18px; background: white; box-shadow: var(--shadow-soft); }
.rich-link-card-content { min-height: 178px; display: flex; flex: 1; flex-direction: column; padding: 17px; }
.rich-link-card:not(.has-description) .rich-link-card-media { height: auto; min-height: 148px; flex: 1 1 auto; }
.rich-link-card:not(.has-description) .rich-link-card-content { min-height: 0; flex: 0 0 auto; }
.rich-link-card-site { overflow: hidden; color: var(--ink-soft); font: 700 9px/1.3 var(--sans); letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.rich-link-card-title { display: -webkit-box; overflow: hidden; margin-top: 9px; font: 600 1.28rem/1.1 var(--serif); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rich-link-card-description { display: -webkit-box; overflow: hidden; margin-top: 8px; color: var(--ink-soft); font: 12px/1.55 var(--sans); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.rich-link-card-description[hidden] { display: none; }
.rich-link-card-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; color: var(--forest); font: 800 10px/1.3 var(--sans); }
html[data-language="ur"] .rich-link-card-title { font-family: var(--urdu); line-height: 1.9; }
html[data-language="ur"] .rich-link-card-description { font-family: var(--urdu); font-size: 13px; line-height: 2; }
.article-signoff { display: flex; gap: 16px; margin-top: 50px; padding: 24px; border-radius: var(--radius-md); background: var(--mint); }
.article-signoff > span { color: var(--coral); }.article-signoff strong { display: block; }.article-signoff p { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; }
.article-appointment-cta { display: flex; justify-content: center; margin-top: -46px; padding: 0 clamp(14px,3vw,44px) 46px; }
.article-appointment-cta .button { min-height: 42px; padding: 9px 16px; font-size: 12px; }
.article-appointment-cta .material-symbols-outlined { font-size: 18px; }
html[data-language="ur"] .article-appointment-cta .button { padding-block: 5px; line-height: 1.9; }

.page-hero { min-height: 570px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 50px; padding: 70px clamp(14px,3vw,44px); background: var(--mint); }
.page-hero p { max-width: 720px; color: var(--ink-soft); font-size: 18px; }.page-hero > img { width: min(100%,390px); margin: auto; filter: drop-shadow(0 22px 30px rgba(31,77,66,.12)); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }.prose-like { color: var(--ink-soft); font-size: 17px; }.prose-like blockquote { margin: 28px 0 0; padding: 22px; border-radius: var(--radius-md); color: var(--ink); background: var(--mint); font: 600 1.5rem/1.45 var(--serif); }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }.values-grid article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }.values-grid article > span { color: var(--coral); font-size: 11px; font-weight: 800; }.values-grid h3 { margin: 25px 0 8px; font: 600 1.5rem var(--serif); }.values-grid p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.not-found { min-height: 70vh; display: grid; place-items: center; align-content: center; padding: 80px 20px; text-align: center; }.not-found-mark { color: var(--coral-soft); font: 600 clamp(6rem,18vw,14rem)/.7 var(--serif); }.not-found p { color: var(--ink-soft); }.not-found .button { margin-top: 15px; }

.site-footer { border-top: 1px solid var(--line); background: var(--forest-deep); color: white; }
.footer-inner { width: min(calc(100% - 40px),1540px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 42px 0; }
.footer-brand-block { display: flex; align-items: center; gap: 14px; }.footer-brand-block img { width: 52px; height: 52px; border-radius: 14px; background: white; }.footer-brand-block strong, .footer-brand-block p { display: block; }.footer-brand-block p { margin: 4px 0 0; color: rgba(255,255,255,.62); font-size: 11px; }
.social-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }.social-links a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.04); }.social-links a:hover, .social-links a:focus-visible { background: rgba(255,255,255,.13); transform: translateY(-2px); }.social-links img { width: 22px; height: 22px; object-fit: contain; }.social-links img.social-icon-monochrome { filter: brightness(0) invert(1); }
.footer-bottom { width: min(calc(100% - 40px),1540px); margin: auto; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.55); font-size: 10px; }
.nav-backdrop { position: fixed; inset: 78px 0 0; z-index: 89; background: rgba(16,43,37,.42); backdrop-filter: blur(3px); }

@media (max-width: 1280px) {
  .portal-layout { grid-template-columns: 308px minmax(0,1fr); gap: 26px; }
  .hero { grid-template-columns: 1fr; }.hero-copy { padding-top: 20px; }.hero-visual { max-width: 650px; width: 100%; margin: auto; }
  .card-rail, .resource-rail { grid-auto-columns: minmax(250px,48%); }
  .appointment-section { grid-template-columns: .8fr 1.2fr; }
}

@media (max-width: 1040px) {
  .menu-toggle { display: flex; }
  .portal-layout { width: 100%; display: block; }
  .portal-sidebar { position: fixed; z-index: 95; top: 78px; bottom: 0; left: 0; width: min(82vw,310px); max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px; background: var(--cream); box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .23s ease; }
  .portal-sidebar.is-open { transform: translateX(0); }
  .sidebar-inner { height: auto; padding: 24px 0 32px; }
  .sidebar-sticky { position: static; }
  .sidebar-nav { position: static; padding: 0; background: transparent; }
  .article-toc-mobile-wrap { min-height: 76px; display: block; padding: 12px clamp(14px,3vw,44px); pointer-events: none; }
  .article-toc--mobile { width: min(100%,760px); margin: auto; border-radius: 999px; pointer-events: auto; transition: border-radius .2s ease, box-shadow .2s ease; }
  .article-toc-mobile-wrap.is-fixed .article-toc--mobile { position: fixed; top: var(--article-toc-top,86px); left: 50%; z-index: 90; width: min(calc(100% - 28px),760px); transform: translateX(-50%); }
  .article-toc--mobile[open] { border-radius: 22px; box-shadow: var(--shadow); }
  .article-toc--mobile .article-toc-title { min-height: 52px; padding-block: 8px; }
  .article-toc--mobile ol { max-height: min(48vh,380px); padding-top: 8px; }
  .prose :is(h1,h2,h3,h4,h5,h6) { scroll-margin-top: 158px; }
  .article-content-grid { grid-template-columns: 1fr; }.article-aside { position: static; justify-self: start; }.aside-card { display: block; }.article-aside .tag-list { margin: 12px 0 18px; }.article-aside .copy-link { width: 100%; border-top: 1px solid var(--line); padding-top: 9px; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 780px) {
  .article-aside { width: 100%; max-width: none; justify-self: stretch; }
  .article-aside .aside-card { width: 100%; }
  .article-aside .tag-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; }
  .article-aside .tag-list > a { max-width: 100%; white-space: normal; }
  .header-inner { width: min(calc(100% - 24px),1540px); }
  .brand-copy small { display: none; }.brand-copy strong { font-size: 12px; }
  .language-switcher button { min-width: 42px; padding-inline: 8px; }
  .hero { min-height: auto; padding: 60px 14px 70px; }.hero-image-card { min-height: 430px; }
  .hero h1 { font-size: clamp(3.4rem,13vw,5.5rem); }
  .content-section { padding: 68px 14px; }.section-heading { align-items: start; flex-direction: column; }.section-heading > p { max-width: 100%; }
  .article-tools { align-items: stretch; flex-direction: column; }.search-box { width: 100%; flex-basis: auto; }.filter-row { width: 100%; flex: 0 0 auto; margin-right: 0; }
  .card-rail, .compact-rail, .resource-rail { grid-auto-columns: minmax(260px,82%); }
  .resources-section.is-expanded .resource-rail { grid-template-columns: 1fr 1fr; }
  .appointment-section { grid-template-columns: 1fr; margin: 30px 14px 70px; }.appointment-profile { min-height: 440px; }.appointment-links { grid-template-columns: 1fr; }
  .article-hero-grid, .page-hero, .about-grid { grid-template-columns: 1fr; }.article-visual { min-height: 320px; }.page-hero { padding: 65px 14px; }.page-hero > img { width: 260px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }.social-links { justify-content: flex-start; }.footer-bottom { flex-direction: column; }
}

@media (max-width: 540px) {
  .brand-mark { width: 42px; height: 42px; }.brand-copy strong { max-width: 130px; }.language-switcher { margin-left: auto; }
  html[dir="rtl"] .language-switcher { margin-left: 0; margin-right: auto; }
  .hero h1 { font-size: 3.35rem; }.hero-copy > p { font-size: 16px; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .button { width: 100%; }.hero-image-card { min-height: 350px; border-radius: 36px; }.hero-note { padding: 8px 10px; font-size: 9px; }
  .section-heading h2, .appointment-copy h2, .about-grid h2 { font-size: 2.65rem; }.content-section { padding-block: 58px; }
  .card-rail, .compact-rail, .resource-rail { grid-auto-columns: 88%; }.post-card-art { height: 175px; }
  .resource-tools { align-items: stretch; flex-direction: column; }.show-all-button { width: 100%; }.resources-section.is-expanded .resource-rail { grid-template-columns: 1fr; }
  .appointment-profile { min-height: 360px; }.appointment-copy { padding: 34px 22px; }
  .article-heading h1 { font-size: 3.25rem; }.article-content-grid { padding-top: 50px; }.prose { font-size: 17px; }.prose h2 { font-size: 2rem; }
  .rich-link-row.cards-1, .rich-link-row.cards-2, .rich-link-row.cards-3 { width: 100%; grid-template-columns: 1fr;}.rich-link-card-media { height: 136px; }
  .aside-card { display: block; }.tag-list { margin: 12px 0 18px; }.copy-link { width: 100%; border-top: 1px solid var(--line); padding-top: 9px; }
  .values-grid { grid-template-columns: 1fr; }
}

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