/* People's Supremacy — Global Knowledge & Governance Institute
   Design system from the institute's blueprint (content/blueprint):
   Institutional Navy #142B43, Sovereign Gold #D1B16C, Institutional White #FFFFFF, Academic Silver #E9EDF1.
   Playfair Display (main headings), Libre Baskerville (section headings), Inter (body, navigation),
   Source Serif 4 (research text); Noto Serif / Sans Devanagari for Nepali.
   Layout: 1200px content, 40–60px side margins (16–20px on phones), 84px header (64px on phones),
   16px body (15px on phones), 80px section spacing (44px on phones), 8–12px card radius. */
:root {
  --navy: #142B43;
  --navy-deep: #0D1E31;
  --navy-2: #1F3C5C;
  --gold: #D1B16C;
  --gold-text: #8A6A26;
  --white: #FFFFFF;
  --silver: #E9EDF1;
  --silver-2: #F4F6F8;
  --line: #D3DAE2;
  --ink: #142B43;
  --text: #1F2933;
  --muted: #55606E;
  --on-dark-soft: rgba(255, 255, 255, .82);
  --ok: #2E6B4A;
  --danger: #A33A2C;

  --f-display: 'Playfair Display', 'Noto Serif Devanagari', Georgia, serif;
  --f-heading: 'Libre Baskerville', 'Noto Sans Devanagari', Georgia, serif;
  --f-body: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-research: 'Source Serif 4', 'Noto Serif Devanagari', Georgia, serif;

  --wrap: 1200px;
  --margin: clamp(16px, 4vw, 56px);
  --section: 80px;
  --radius: 10px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 767px) { :root { --section: 44px; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.65 var(--f-body); text-rendering: optimizeLegibility; overflow-x: hidden; }
@media (max-width: 767px) { body { font-size: 15px; } }
.lang-ne { line-height: 1.8; }
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; }
h2, h3, h4 { font-family: var(--f-heading); font-weight: 700; line-height: 1.3; }
.lang-ne h1 { font-family: 'Noto Serif Devanagari', var(--f-display); line-height: 1.35; }
.lang-ne h2, .lang-ne h3, .lang-ne h4 { font-family: 'Noto Sans Devanagari', var(--f-heading); line-height: 1.45; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.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; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--margin)); margin: 0 auto; padding-inline: var(--margin); }
.wrap-narrow { max-width: calc(820px + 2 * var(--margin)); }
.muted { color: var(--muted); }

/* ---------- Buttons (blueprint 6.2): Primary Navy, Gold Accent, Outline, Text Link ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border: 1.5px solid transparent; border-radius: 6px; font: 600 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-navy, .btn-dark, .btn-primary { background: var(--navy); color: var(--white); }
.btn-navy:hover, .btn-dark:hover, .btn-primary:hover { background: var(--navy-2); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #DCC083; color: var(--navy-deep); }
.btn-outline, .btn-plain { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover, .btn-plain:hover { background: var(--silver-2); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-text { color: var(--danger); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 13px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--gold-text); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Header: utility bar + institutional navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.utility { background: var(--navy-deep); color: var(--on-dark-soft); font-size: 13px; }
.utility-row { display: flex; align-items: center; justify-content: flex-end; gap: 22px; min-height: 40px; }
.utility-links { display: flex; gap: 20px; margin-right: auto; }
.utility-links a { color: var(--on-dark-soft); text-decoration: none; font-weight: 500; }
.utility-links a:hover { color: var(--gold); }
.utility-search { display: flex; align-items: center; background: rgba(255,255,255,.08); border-radius: 6px; }
.utility-row .utility-search input[type="search"] { width: 200px; min-height: 30px; padding: 4px 10px; border: 0; background: transparent; color: var(--white); font: 13px var(--f-body); }
.utility-row .utility-search input::placeholder { color: rgba(255,255,255,.55); }
.utility-row .utility-search input:focus { outline: none; box-shadow: none; }
.utility-search:focus-within { box-shadow: 0 0 0 2px var(--gold); }
.search-btn { display: grid; place-items: center; width: 32px; height: 30px; border: 0; background: none; color: var(--gold); cursor: pointer; }
.lang-toggle { display: inline-flex; flex: none; border: 1px solid rgba(209,177,108,.55); border-radius: 6px; overflow: hidden; }
.lang-opt { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; font: 600 12.5px/1 var(--f-body); color: var(--on-dark-soft); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
a.lang-opt:hover, button.lang-opt:hover { color: var(--white); background: rgba(255,255,255,.1); }
.lang-opt[aria-current="true"] { background: var(--gold); color: var(--navy-deep); }

.mainbar { background: var(--navy); color: var(--white); border-bottom: 3px solid var(--gold); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand-logo { width: 52px; height: 52px; flex: none; background: var(--white); border-radius: 50%; padding: 2px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 17px/1.1 var(--f-display); letter-spacing: .06em; color: var(--white); white-space: nowrap; }
.brand-name-dark { color: var(--navy); margin-top: 12px; }
.brand-sub { font-size: 11.5px; letter-spacing: .04em; color: var(--gold); margin-top: 4px; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-list { display: flex; list-style: none; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 10px; color: rgba(255,255,255,.9); text-decoration: none; font: 500 14.5px/1.2 var(--f-body); border-radius: 4px; }
.nav-item > a:hover, .nav-item:focus-within > a { color: var(--white); background: rgba(255,255,255,.08); }
.nav-item > a[aria-current="page"] { color: var(--gold); }
.has-sub > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.sub { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; padding: 10px; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); border-top: 3px solid var(--gold); box-shadow: 0 18px 40px -18px rgba(13,30,49,.45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--navy); text-decoration: none; font-size: 14px; }
.sub a:hover { background: var(--silver); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: 6px; padding: 9px 12px; font: 600 14px var(--f-body); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: fixed; inset: calc(var(--header-h) + 43px) 0 0 0; background: var(--navy-deep); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--margin) 40px; overflow-y: auto; margin: 0; }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item > a { padding: 14px 0; font-size: 18px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; border: 0; padding: 4px 0 10px 14px; min-width: 0; }
  .sub a { color: var(--on-dark-soft); padding: 7px 0; font-size: 15px; }
  .sub a:hover { background: none; color: var(--gold); }
  .nav-cta { margin: 20px 0 0; min-height: 48px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 767px) {
  .utility-links, .utility-search { display: none; }
  .utility-row { min-height: 38px; }
  .main-nav { inset: calc(var(--header-h) + 41px) 0 0 0; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 14px; letter-spacing: .04em; }
  .brand-sub { font-size: 10px; white-space: normal; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.flash { background: var(--gold); color: var(--navy-deep); font-weight: 600; padding: 12px 0; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-top: 40px; }
.section-tight-b { padding-block: 48px; }
.section-silver { background: var(--silver); }
.section-dark { background: var(--navy); color: var(--on-dark-soft); }
.section-dark .section-title, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-lead, .section-dark .statement { color: var(--on-dark-soft); }
.section-head { margin-bottom: 32px; max-width: 760px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head-row .section-head { margin-bottom: 0; }
.kicker { font: 600 12.5px/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.lang-ne .kicker { letter-spacing: .02em; font-size: 14px; }
.kicker-light { color: var(--gold); }
.section-title { font-size: clamp(25px, 2.6vw, 34px); margin-bottom: 14px; }
.section-lead { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 64ch; }
.section-more { margin-top: 28px; }
.statement { font: 400 clamp(18px, 1.6vw, 21px)/1.65 var(--f-research); color: var(--text); }
.lang-ne .statement { font-family: 'Noto Serif Devanagari', var(--f-research); line-height: 1.85; }
.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 24px 64px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.three-col p + p { margin-top: 14px; }
.mini-title { font-size: 20px; margin-bottom: 10px; }
.prose-block { display: grid; gap: 14px; font-size: 17px; }
.fine-print { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 70ch; }
@media (max-width: 860px) { .two-col, .three-col { grid-template-columns: 1fr; } }

/* ---------- Hero (blueprint: full-width, two-column, navy) ---------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 62%, #45607E 82%, var(--white) 100%); color: var(--white); padding-block: 72px 150px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-title { color: var(--white); font-size: clamp(34px, 4.6vw, 60px); margin-bottom: 20px; max-width: 16ch; }
.lang-ne .hero-title { max-width: 18ch; }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--on-dark-soft); max-width: 46ch; }
.hero-slogan { margin-top: 18px; font: 700 clamp(16px, 1.4vw, 19px)/1.45 var(--f-heading); color: var(--gold); }
.lang-ne .hero-slogan { font-family: 'Noto Serif Devanagari', var(--f-heading); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-mark { display: flex; justify-content: center; }
.hero-logo { width: clamp(200px, 24vw, 340px); height: auto; aspect-ratio: 1; background: var(--white); border-radius: 50%; padding: clamp(10px, 1.2vw, 18px); box-shadow: 0 0 0 6px rgba(209,177,108,.55); }
@media (max-width: 860px) {
  .hero { padding-block: 44px 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { justify-content: center; }
  .hero-logo { width: 170px; }
}

/* ---------- Identity, divisions, publications ---------- */
.identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.identity-grid-spaced { margin-top: 40px; }
.identity { background: var(--silver-2); border-radius: var(--radius); padding: 26px; border-top: 3px solid var(--gold); }
.identity-kind { font: 600 12px/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.lang-ne .identity-kind { letter-spacing: .02em; font-size: 13px; }
.identity h3 { font-size: 19px; margin-bottom: 8px; }
.identity p:last-child { color: var(--muted); }
@media (max-width: 860px) { .identity-grid { grid-template-columns: 1fr; } }

.division-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.division-card { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.section-silver .division-card { border-color: transparent; }
.division-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(20,43,67,.45); color: var(--text); }
.division-num { font: 600 12px/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.division-name { font: 700 18px/1.35 var(--f-heading); color: var(--navy); }
.lang-ne .division-name { font-family: 'Noto Sans Devanagari', var(--f-heading); }
.division-topics { font-size: 14px; color: var(--muted); line-height: 1.6; }
.division-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14px; color: var(--navy); }
@media (max-width: 1023px) { .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .division-grid { grid-template-columns: 1fr; } }

.pub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pub-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--navy); transition: box-shadow .15s, transform .15s var(--ease); }
.pub-card:hover { box-shadow: 0 16px 32px -22px rgba(20,43,67,.5); transform: translateY(-2px); }
.pub-type { font: 600 12px/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.pub-title { font-size: 19px; margin-bottom: 10px; }
.pub-title.is-long { font-size: 17.5px; }
.pub-title a { color: var(--navy); text-decoration: none; }
.pub-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.pub-summary { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.pub-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1023px) { .pub-grid { grid-template-columns: 1fr; } }

.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--silver); color: var(--navy); font: 600 12px/1.4 var(--f-body); white-space: nowrap; }

/* ---------- Global (dark) ---------- */
.global-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.global-grid .section-lead { margin-bottom: 26px; }
.global-points { list-style: none; display: grid; gap: 14px; }
.global-points li { display: grid; gap: 4px; padding: 18px 20px; background: rgba(255,255,255,.06); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.global-points strong { color: var(--white); font-family: var(--f-heading); font-size: 16px; }
.global-points span { color: var(--on-dark-soft); font-size: 15px; }
@media (max-width: 860px) { .global-grid { grid-template-columns: 1fr; } }

/* ---------- Explorer: People → World ---------- */
.explorer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 56px; align-items: start; }
.explorer-head { grid-column: 1 / -1; max-width: 760px; }
.levels { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.level { background: none; border: 0; padding: 4px 0; font-family: var(--f-display); font-weight: 700; line-height: 1.15; color: #7A8796; cursor: pointer; text-align: left; transition: color .2s, transform .25s var(--ease); }
.lang-ne .level { font-family: 'Noto Serif Devanagari', var(--f-display); }
.level:hover { color: var(--navy); transform: translateX(6px); }
.level[aria-pressed="true"] { color: var(--navy); }
.level[aria-pressed="true"]::after { content: ''; display: inline-block; width: 26px; height: 3px; margin-left: 12px; background: var(--gold); vertical-align: middle; }
.level-1 { font-size: 22px; } .level-2 { font-size: 27px; } .level-3 { font-size: 33px; } .level-4 { font-size: 40px; } .level-5 { font-size: 48px; }
.level-panels { display: grid; }
.level-panel { background: var(--white); border-radius: var(--radius); padding: 30px; border-top: 4px solid var(--gold); }
.section:not(.section-silver) .level-panel { background: var(--silver-2); }
.js .level-panel[data-inactive] { display: none; }
.level-name { font-size: 24px; margin-bottom: 12px; }
.level-statement { font: 400 18px/1.65 var(--f-research); color: var(--text); }
.lang-ne .level-statement { font-family: 'Noto Serif Devanagari', var(--f-research); line-height: 1.85; }
.level-points { list-style: none; margin: 18px 0 22px; display: grid; gap: 10px; }
.level-points li, .tick-list li { position: relative; padding-left: 24px; }
.level-points li::before, .tick-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.level-panel.is-switching { animation: panel-in .4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .explorer-grid { grid-template-columns: 1fr; }
  .levels { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
  .level[aria-pressed="true"]::after { display: none; }
  .level[aria-pressed="true"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .level-1 { font-size: 18px; } .level-2 { font-size: 21px; } .level-3 { font-size: 24px; } .level-4 { font-size: 28px; } .level-5 { font-size: 32px; }
}

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.35fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.founder-photo { display: block; width: 100%; height: auto; aspect-ratio: 720 / 865; object-fit: cover; border-radius: var(--radius); border-bottom: 4px solid var(--gold); }
.founder-name { font: 700 clamp(30px, 3.4vw, 42px)/1.15 var(--f-display); }
.lang-ne .founder-name { font-family: 'Noto Serif Devanagari', var(--f-display); }
.founder-role { margin-top: 8px; font-weight: 600; color: var(--gold-text); }
.founder-bio { margin-top: 18px; display: grid; gap: 12px; }
.founder-text { font-size: 16px; line-height: 1.75; color: var(--text); }
.founder-bio .founder-text:first-child { font: 400 18px/1.7 var(--f-research); }
.lang-ne .founder-bio .founder-text:first-child { font-family: 'Noto Serif Devanagari', var(--f-research); }
.founder-quote { margin: 24px 0 0; padding: 20px 24px; background: var(--navy); color: var(--white); border-radius: var(--radius); border-left: 4px solid var(--gold); }
.founder-quote p { font: 400 18px/1.6 var(--f-research); }
.lang-ne .founder-quote p { font-family: 'Noto Serif Devanagari', var(--f-research); }
.founder-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--gold); }
.founder-more { margin-top: 18px; }

/* Constitutional struggle (About page) */
.struggle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .struggle-grid { grid-template-columns: 1fr; gap: 32px; } }
.case-facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-facts > div { display: grid; grid-template-columns: minmax(120px, .45fr) 1fr; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.case-facts > div:last-child { border-bottom: 0; }
.case-facts dt { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lang-ne .case-facts dt { text-transform: none; letter-spacing: 0; font-size: 14px; }
.case-facts dd { margin: 0; color: var(--navy); font-weight: 500; }
@media (max-width: 520px) { .case-facts > div { grid-template-columns: 1fr; gap: 2px; } }
.case-question { margin-top: 20px; padding: 20px 24px; background: var(--navy); color: var(--white); border-radius: var(--radius); border-left: 4px solid var(--gold); }
.case-question .kicker { margin-bottom: 6px; }
.case-question p:last-child { font: 400 18px/1.6 var(--f-research); }
.lang-ne .case-question p:last-child { font-family: 'Noto Serif Devanagari', var(--f-research); }
.case-issues { margin-top: 20px; }
.timeline-title { font: 700 20px/1.3 var(--f-heading); color: var(--navy); margin-bottom: 14px; }
.timeline { list-style: none; position: relative; display: grid; gap: 18px; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--silver); }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold); box-sizing: border-box; }
.timeline-when { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: #8a6d2f; }
.timeline-what { color: var(--text); }
.case-verdict { margin-top: 22px; padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--silver); border-radius: 0 var(--radius) var(--radius) 0; font: 400 17px/1.6 var(--f-research); color: var(--navy); }
.lang-ne .case-verdict { font-family: 'Noto Serif Devanagari', var(--f-research); }
.creed { list-style: none; display: grid; gap: 14px; padding: 26px; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--gold); }
.section:not(.section-silver) .creed { background: var(--silver-2); }
.creed li { font: 700 18px/1.4 var(--f-heading); color: var(--navy); }
.lang-ne .creed li { font-family: 'Noto Sans Devanagari', var(--f-heading); }
.creed li:first-child { color: var(--gold-text); }
@media (max-width: 1080px) { .founder-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } .founder-grid .creed { grid-column: 1 / -1; } }
@media (max-width: 640px) { .founder-grid { grid-template-columns: 1fr; } .founder-photo { max-width: 300px; } }

/* ---------- Network, CTA panel, newsletter ---------- */
.network-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.network-list { list-style: none; display: grid; gap: 16px; }
.network-list li { padding: 20px 22px; background: var(--silver-2); border-radius: var(--radius); }
.network-list h3 { font-size: 17px; margin-bottom: 4px; }
.network-list p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .network-grid { grid-template-columns: 1fr; } }
.cta-section { padding-top: 0; }
.cta-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--navy); color: var(--on-dark-soft); border-radius: 14px; padding: clamp(28px, 4vw, 52px); border-bottom: 4px solid var(--gold); }
.cta-panel .section-title { color: var(--white); }
.cta-panel .section-lead { color: var(--on-dark-soft); }
.cta-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-links .btn { white-space: normal; text-align: center; }
@media (max-width: 860px) { .cta-panel { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cta-links { grid-template-columns: 1fr; } }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 40px; align-items: center; }
.newsletter-title { font-size: 22px; margin-bottom: 6px; }
.newsletter-text { color: var(--muted); }
.newsletter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-row input[type="email"] { flex: 1 1 220px; }
.newsletter .note { margin-bottom: 10px; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.note { padding: 10px 14px; border-radius: 6px; font-size: 14.5px; font-weight: 500; }
.note-ok { background: #E3F1E8; color: var(--ok); }
.note-bad { background: #F8E5E2; color: var(--danger); }

/* ---------- Inner page hero, breadcrumb ---------- */
.page-hero { background: var(--navy); color: var(--white); padding-block: 44px 52px; border-bottom: 3px solid var(--gold); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--on-dark-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-dark { color: var(--muted); margin-bottom: 4px; }
.breadcrumb-dark a { color: var(--navy); }
.page-title { color: var(--white); font-size: clamp(30px, 4vw, 48px); margin-bottom: 12px; }
.page-lead { font-size: 17.5px; line-height: 1.65; color: var(--on-dark-soft); max-width: 68ch; }
.page-title-dark { color: var(--navy); font-size: clamp(26px, 3vw, 38px); }
.lead-dark { font-size: 17px; color: var(--muted); margin: 14px auto 28px; max-width: 46ch; }
.center-box { text-align: center; }
.logo-big { display: block; width: 120px; height: auto; margin: 0 auto 24px; }

/* ---------- Lists and grids used on inner pages ---------- */
.tick-list { list-style: none; display: grid; gap: 12px; font-size: 16.5px; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li { padding: 8px 16px; border-radius: 999px; background: var(--silver); color: var(--navy); font-weight: 600; font-size: 14.5px; }
.topic-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.topic-grid li { padding: 14px 16px; background: var(--white); border-radius: 8px; border-left: 3px solid var(--gold); font-weight: 500; color: var(--navy); }
.section:not(.section-silver):not(.section-dark) .topic-grid li { background: var(--silver-2); }
.topic-grid-dark li { background: rgba(255,255,255,.07) !important; color: var(--white); }
.dimension-grid { list-style: none; counter-reset: dim; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.dimension { counter-increment: dim; background: var(--white); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--navy); }
.dimension h3 { font-size: 18px; margin-bottom: 8px; }
.dimension h3::before { content: counter(dim) '. '; color: var(--gold-text); }
.dimension p { color: var(--muted); }
.slogan-block { margin-top: 10px; padding: 18px 20px; background: var(--navy); color: var(--gold); border-radius: var(--radius); font: 700 18px/1.45 var(--f-heading); }
.lang-ne .slogan-block { font-family: 'Noto Serif Devanagari', var(--f-heading); }
.pair-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.pair-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.pair-grid li { background: var(--white); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.section-silver .pair-grid li { border-color: transparent; }
.pair-grid h3 { font-size: 17px; margin-bottom: 6px; }
.pair-grid p { color: var(--muted); }
.pair-grid-dark li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.pair-grid-dark p { color: var(--on-dark-soft); }
.step-grid { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.step-grid-7 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.step-grid li { counter-increment: step; position: relative; background: var(--white); border-radius: var(--radius); padding: 50px 20px 20px; border: 1px solid var(--line); }
.section-silver .step-grid li { border-color: transparent; }
.step-grid li::before { content: counter(step); position: absolute; top: 16px; left: 20px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 700 13px var(--f-body); }
.step-grid h3 { font-size: 16px; margin-bottom: 6px; }
.step-grid p { color: var(--muted); font-size: 15px; }
.org-chart { list-style: none; display: grid; gap: 12px; max-width: 560px; }
.org-chart li { display: grid; gap: 2px; padding: 16px 20px; border-radius: var(--radius); background: var(--silver-2); border-left: 4px solid var(--gold); }
.org-chart li:first-child { background: var(--navy); color: var(--white); }
.org-chart li + li { margin-left: 28px; }
.org-chart li:nth-child(3) { margin-left: 56px; }
.org-role { font: 600 12.5px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.org-chart li:first-child .org-role { color: var(--gold); }
.org-who { font: 700 17px/1.4 var(--f-heading); }
.policy-list { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.policy-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--white); border-radius: 8px; border: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.policy-list li span { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.status-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.status-list .status-badge { background: var(--white); font-size: 13.5px; padding: 6px 14px; }
.policy-blocks { list-style: none; display: grid; gap: 20px; }
.policy-blocks li { padding: 22px 24px; background: var(--silver-2); border-radius: var(--radius); }
.policy-blocks h3 { font-size: 18px; margin-bottom: 6px; }
.option-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.option { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--silver-2); border-top: 3px solid var(--gold); }
.option h3 { font-size: 18px; }
.option p { color: var(--muted); flex: 1; }
.category-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.category { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--silver-2); color: var(--muted); text-decoration: none; height: 100%; }
.category-name { font: 700 16px/1.3 var(--f-heading); color: var(--navy); }
.category-count { font-size: 13px; }
.category.is-live { background: var(--navy); color: var(--gold); }
.category.is-live .category-name { color: var(--white); }
.category.is-live:hover { background: var(--navy-2); color: var(--gold); }
.library-search { margin-bottom: 44px; padding: 24px; border-radius: var(--radius); background: var(--silver); }
.library-search label { display: block; font: 700 18px/1.3 var(--f-heading); color: var(--navy); margin-bottom: 12px; }
.library-search-row { display: flex; gap: 10px; }
.library-search-row input { flex: 1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.contact-side { padding: 28px; border-radius: var(--radius); background: var(--silver); text-align: center; }
.contact-logo { width: 140px; height: auto; margin: 0 auto; }
.contact-side p { color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--silver-2); border-radius: var(--radius); }

/* ---------- Article rows (Articles page, Research) ---------- */
.cards { display: grid; gap: 14px; }
.card { display: grid; grid-template-columns: minmax(150px, .6fr) minmax(0, 2.4fr) minmax(170px, .8fr); gap: 10px 32px; align-items: start; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.section-silver .card { border-color: transparent; }
.card:hover { border-color: var(--gold); box-shadow: 0 12px 26px -20px rgba(20,43,67,.45); }
.card-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card-area { font-weight: 600; font-size: 13.5px; color: var(--gold-text); text-decoration: none; }
.card-area:hover { text-decoration: underline; }
.card-title { font-size: 19px; line-height: 1.35; margin-bottom: 6px; }
.card-title.is-long { font-size: 17.5px; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.card-summary { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; gap: 8px; }
  .card-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .card-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
}

/* ---------- Forms (fields keep their outlines) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; background: var(--silver); border-radius: var(--radius); padding: 20px; }
.filters .field { margin: 0; flex: 1 1 190px; }
.filters .field-grow { flex: 3 1 260px; }
.filters-actions { display: flex; gap: 16px; align-items: center; }
.results-count { color: var(--muted); font-size: 14px; font-weight: 600; margin: 22px 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--navy); }
.req { color: var(--danger); }
input:not([type="checkbox"]):not(.hp), select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #B9C3CE; border-radius: 6px; background: var(--white); color: var(--text); font: 15.5px/1.5 var(--f-body); }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(209,177,108,.5); }
.hint { font-size: 13.5px; color: var(--muted); }
.form-wrap { max-width: 860px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form legend { font: 700 20px/1.3 var(--f-heading); color: var(--navy); padding: 0; margin-bottom: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
@media (max-width: 720px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px; line-height: 1.6; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.errors { background: #FBEDEA; color: #6E2318; padding: 16px 20px; border-radius: 8px; border-left: 4px solid var(--danger); margin-bottom: 24px; }
.errors p { font-weight: 600; margin-bottom: 6px; }
.errors ul { padding-left: 20px; }
.submit-grid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 48px; align-items: start; }
.steps-box { position: sticky; top: calc(var(--header-h) + 64px); background: var(--silver); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--gold); }
.steps-title { font-size: 18px; margin-bottom: 12px; }
.steps { padding-left: 1.3em; display: grid; gap: 8px; }
.steps li::marker { color: var(--gold-text); font-weight: 700; }
.form { max-width: 860px; }
@media (max-width: 900px) { .submit-grid { grid-template-columns: 1fr; } .steps-box { position: static; } }

/* ---------- Article ---------- */
.article-head { background: var(--silver); padding-block: 40px 44px; border-bottom: 3px solid var(--gold); }
.article-head-grid { display: grid; gap: 20px; }
.article-title { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; max-width: 30ch; color: var(--navy); }
.article-title.is-long { font-size: clamp(22px, 2.8vw, 36px); max-width: 38ch; }
.article-head-side { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 48px; align-items: start; }
.article-sub { font: 400 18px/1.6 var(--f-research); color: var(--text); max-width: 46ch; }
.lang-ne .article-sub { font-family: 'Noto Serif Devanagari', var(--f-research); }
.article-facts { display: grid; gap: 14px; }
.other-langs { display: flex; flex-wrap: wrap; gap: 10px; }
.other-langs a, .other-langs button { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--navy); color: var(--white); font: 600 14.5px/1.2 var(--f-body); text-decoration: none; cursor: pointer; }
.other-langs a:hover, .other-langs button:hover { background: var(--navy-2); color: var(--gold); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.meta a { font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .article-head-side { grid-template-columns: 1fr; } }
.article-grid { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 760px); gap: 56px; padding-block: 48px var(--section); }
.toc { position: sticky; top: calc(var(--header-h) + 64px); align-self: start; max-height: calc(100vh - var(--header-h) - 96px); overflow-y: auto; padding-right: 6px; }
.toc summary { cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc-h { font: 700 15px/1.3 var(--f-heading); color: var(--navy); margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 2px solid var(--silver); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.45; color: var(--muted); text-decoration: none; }
.toc li a:hover, .toc li a.active { color: var(--navy); border-left-color: var(--gold); }
.article-summary { font: 400 19px/1.7 var(--f-research); color: var(--navy); padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.lang-ne .article-summary { font-family: 'Noto Serif Devanagari', var(--f-research); }
.prose { font: 400 18px/1.8 var(--f-research); color: var(--text); overflow-wrap: anywhere; }
.lang-ne .prose, .prose:lang(ne) { font-family: 'Noto Serif Devanagari', var(--f-research); line-height: 1.95; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(22px, 2.2vw, 27px); margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--line); line-height: 1.4; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 19px; margin-top: 1.8em; line-height: 1.45; color: var(--navy-2); }
.prose h4, .prose h5, .prose h6 { font-size: 17px; margin-top: 1.5em; color: var(--navy-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--gold-text); }
.prose strong { color: var(--navy); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--silver-2); border-radius: 0 8px 8px 0; color: var(--navy); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose code { background: var(--silver); padding: 1px 6px; border-radius: 4px; font-size: .88em; }
.prose pre { background: var(--navy-deep); color: #E6EDF5; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; margin: 1.4em 0; }
.prose table, .admin-table, .data-table { width: 100%; border-collapse: collapse; font: 15px/1.6 var(--f-body); }
.prose th, .prose td, .admin-table th, .admin-table td, .data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .admin-table th { background: var(--navy); color: var(--white); font-weight: 600; white-space: nowrap; }
.prose tr:nth-child(even) td { background: var(--silver-2); }
.data-table { background: var(--white); }
.data-table th { width: 32%; color: var(--navy); font-family: var(--f-heading); font-weight: 700; }
.lang-ne .data-table th { font-family: 'Noto Sans Devanagari', var(--f-heading); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.disclaimer { margin-top: 48px; padding: 16px 18px; font-size: 14px; line-height: 1.7; color: var(--muted); background: var(--silver-2); border-radius: 8px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; font-size: 14px; }
.share span { font-weight: 600; color: var(--navy); margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); background: var(--white); font: 500 14px var(--f-body); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--navy); }
.back-row { margin-top: 32px; }
@media (max-width: 980px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; max-height: none; background: var(--silver-2); border-radius: 8px; padding: 14px 16px; }
  .toc summary { display: flex; justify-content: space-between; align-items: center; }
  .toc summary.toc-h { margin: 0; }
  .toc summary::after { content: '+'; font: 700 20px var(--f-body); }
  .toc details[open] summary::after { content: '–'; }
  .toc ol { margin-top: 10px; }
}

/* ---------- Footer (blueprint: 4 columns) ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-soft); padding-top: 64px; font-size: 14.5px; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 16px; max-width: 34em; }
.footer-slogan { color: var(--gold); font-family: var(--f-heading); font-weight: 700; }
.footer-h { font: 600 12.5px/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lang-ne .footer-h { letter-spacing: .02em; font-size: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-block: 20px 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.6); }
.footer-base-links { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Motion: section parts rise in once; nothing moves for reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--rv-delay, 0ms); }
  .js [data-reveal].is-in .rv { opacity: 1; transform: none; }
  .js .hero-copy > *, .js .hero-mark { animation: rise .8s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .js .hero-mark { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Static site: both languages on one page ---------- */
.lang-pane[data-pane="en"] { display: none; }
html[data-lang="en"] .lang-pane[data-pane="en"] { display: block; }
html[data-lang="en"] .lang-pane[data-pane="ne"] { display: none; }

/* ---------- Editors' area (server version) ---------- */
.admin { background: var(--silver-2); }
.admin-bar { background: var(--navy); color: var(--white); }
.admin-bar .brand-sub { color: var(--gold); }
.admin-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 64px; padding-block: 8px; }
.admin-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14.5px; }
.admin-nav a, .admin-nav .linklike { color: rgba(255,255,255,.85); text-decoration: none; }
.admin-nav a:hover, .admin-nav .linklike:hover { color: var(--gold); }
.admin-nav form { margin: 0; }
.admin-main { padding-block: 32px 64px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: 30px; color: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.stat-n { font: 700 30px/1.1 var(--f-display); color: var(--navy); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.pill { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--silver); color: var(--navy); font-size: 12px; font-weight: 600; text-align: center; }
.pill-gold { background: #F1E6CB; }
.admin .table-wrap { background: var(--white); }
.row-title { font-weight: 600; text-decoration: none; }
.status { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-pending { background: #FFF2D6; color: #7A5A12; }
.status-published { background: #E3F1E8; color: var(--ok); }
.status-rejected { background: #F8E5E2; color: var(--danger); }
.submitter { display: grid; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; font-size: 14.5px; }
.form-admin { max-width: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 3vw, 28px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.delete-form { margin-top: 28px; text-align: right; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 16px; }
.login-card { width: 100%; max-width: 400px; background: var(--white); border-radius: 12px; padding: 36px 32px; text-align: center; }
.login-card h1 { font-size: 26px; margin-bottom: 20px; color: var(--navy); }
.login-card form { text-align: left; }
.login-back { margin: 18px 0 0; font-size: 14px; }

@media print {
  .site-header, .site-footer, .toc, .share, .back-row, .cta-section { display: none !important; }
  .article-head { background: none; }
}
