/* Egyptian Social Democratic Party — public site
   Palette drawn from the logo: amber tile, charcoal, Egyptian red accent, white. */
:root {
  --gold: #F7AE1D;
  --gold-600: #E09A0B;
  --gold-50: #FFF6E2;
  --ink: #151515;
  --ink-2: #222222;
  --ink-3: #2E2E2E;
  --text: #1E1E1E;
  --muted: #5F6368;
  --line: #E7E3DA;
  --bg: #FFFFFF;
  --bg-alt: #F7F5F0;
  --red: #C1272D;
  --ok: #1E7B47;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.14);
  --wrap: 1200px;
  --font: 'Alexandria', 'Segoe UI', Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.85; font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.skip { position: absolute; right: -999px; top: 8px; background: var(--gold); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { right: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: .18s ease; white-space: nowrap; line-height: 1.5; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-600); color: var(--ink); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: var(--gold); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* Announcement + top bar */
.announce { background: var(--gold); font-size: 14px; font-weight: 600; }
.announce a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 0; color: var(--ink); text-align: center; }
.topbar { background: var(--ink); color: #bdbdbd; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.social { display: flex; gap: 6px; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; transition: .15s; }
.social a:hover { background: var(--gold); color: var(--ink); }
.social .ic { width: 15px; height: 15px; }
.social-big a { width: 42px; height: 42px; background: var(--bg-alt); color: var(--ink); }
.social-big .ic { width: 19px; height: 19px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 78px; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: auto; }
.brand strong { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.top-links { display: flex; align-items: center; gap: 14px; }
.top-links > a { color: #d8d8d8; font-weight: 500; }
.top-links > a:hover { color: var(--gold); }
.top-links .lang { border: 1px solid #3a3a3a; padding: 1px 12px; border-radius: 999px; }
.nav-mobile-only { display: none; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; justify-content: center; flex-wrap: wrap; }
.main-nav a { display: block; padding: 8px 11px; font-size: 14.5px; font-weight: 500; border-radius: 8px; color: var(--ink-3); }
.main-nav a.active { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.main-nav a:hover { color: var(--gold-600); }
.has-sub { position: relative; }
.has-sub > a::after { content: ''; display: inline-block; margin-inline-start: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.has-sub ul { position: absolute; top: 100%; right: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); list-style: none; padding: 6px; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-sub:hover ul, .has-sub:focus-within ul { opacity: 1; visibility: visible; transform: none; }
.head-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--ink); border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; transition: .2s; }

/* Hero */
.hero { position: relative; background: radial-gradient(1100px 500px at 15% 10%, rgba(247,174,29,.18), transparent 60%), linear-gradient(160deg, #1b1b1b 0%, #111 70%); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(to left, #000 0%, transparent 55%); -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 55%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 600; font-size: 15px; border: 1px solid rgba(247,174,29,.45); padding: 4px 16px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.35; margin-bottom: 18px; }
.hero p { font-size: 17px; color: #d4d4d4; max-width: 620px; font-weight: 300; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-art img { position: relative; width: min(300px, 70%); filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); border-radius: 28px; }
.hero-art .ring { position: absolute; width: 400px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(247,174,29,.35); box-shadow: 0 0 0 40px rgba(247,174,29,.05), 0 0 0 90px rgba(247,174,29,.03); }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid rgba(255,255,255,.12); }
.stats div { padding: 26px 16px; text-align: center; border-inline-start: 1px solid rgba(255,255,255,.08); }
.stats div:first-child { border-inline-start: 0; }
.stats strong { display: block; font-size: 36px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.stats span { color: #bdbdbd; font-size: 14px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-600); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.kicker::before { content: ''; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; }
.section-dark .kicker { color: var(--gold); }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; color: var(--ink); }
.more .ic { width: 16px; }
.section-dark .more { color: #fff; }

/* Page head */
.page-head { background: linear-gradient(160deg, #1b1b1b, #111); color: #fff; padding: 46px 0 50px; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 4px; background: linear-gradient(to left, var(--gold) 0 40%, #fff 40% 70%, var(--red) 70%); opacity: .9; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin: 6px 0 6px; }
.page-head p { color: #cfcfcf; margin: 0; max-width: 760px; font-weight: 300; }
.crumbs { font-size: 13px; color: #a9a9a9; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 4px; }

/* Cards */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s ease; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card-link { position: absolute; inset: 0; z-index: 2; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.thumb { aspect-ratio: 16/9; background: var(--bg-alt); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink-2), #0f0f0f); }
.thumb-ph img { width: 64px; height: auto; opacity: .95; border-radius: 10px; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.tag { display: inline-block; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 600; padding: 2px 12px; border-radius: 999px; line-height: 1.8; }
.tag-outline { background: transparent; border: 1px solid var(--line); color: var(--ink-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.news-card.big .thumb { aspect-ratio: 16/8; }
.news-card.big h3 { font-size: 23px; }
.news-list { display: flex; flex-direction: column; gap: 4px; }
.news-row { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; border: 1px solid transparent; border-bottom-color: var(--line); transition: .15s; justify-items: start; }
.news-row:hover { background: var(--bg-alt); border-color: var(--line); color: inherit; }
.news-row strong { font-size: 16px; font-weight: 600; line-height: 1.6; }
.news-row time { font-size: 13px; color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--bg-alt); border-radius: var(--radius); border: 1px dashed var(--line); }

/* People (mirrors the gold-framed cards of the party's leadership graphic) */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.people-3 { grid-template-columns: repeat(3, 1fr); }
.people-head { grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; margin-bottom: 24px; }
.person { background: #fff; border: 3px solid var(--gold); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.person-photo { background: linear-gradient(180deg, #fff 0%, #e9e9e9 100%); aspect-ratio: 1 / 1; overflow: hidden; }
.person-photo .avatar { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
.person-photo .avatar-ph { font-size: 48px; }
.person-plate { margin: -26px 12px 12px; position: relative; background: #fff; border-radius: 16px; padding: 14px 12px 12px; text-align: center; box-shadow: 0 -6px 20px rgba(0,0,0,.08); flex: 1; }
.person-plate h3 { font-size: 19px; font-weight: 800; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--gold-50); position: relative; }
.person-plate h3::after { content: ''; position: absolute; bottom: -2px; right: 25%; left: 25%; height: 2px; background: var(--gold); }
.person-plate p { font-size: 14px; color: var(--ink-3); font-weight: 600; margin: 0; line-height: 1.6; }
.person-plate .bio { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.7; }
.group-title { display: flex; align-items: center; gap: 16px; font-size: 22px; font-weight: 800; margin: 12px 0 28px; }
.group-title::before, .group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.group-title span { background: var(--ink); color: var(--gold); padding: 6px 24px; border-radius: 999px; font-size: 17px; }
.leader-group + .leader-group { margin-top: 56px; }

.avatar { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.avatar-ph { display: grid; place-items: end center; background: linear-gradient(180deg, #f4f2ec 0%, #e3dfd4 100%); overflow: hidden; }
.avatar-ph svg { width: 78%; height: 78%; fill: #b9b2a2; }
.person-photo .avatar-ph svg { width: 70%; height: 70%; }
.avatar.sm { width: 40px; height: 40px; font-size: 14px; }
.avatar.md { width: 64px; height: 64px; font-size: 20px; }
.avatar.lg { width: 96px; height: 96px; font-size: 28px; }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.values-6 { grid-template-columns: repeat(3, 1fr); }
.value { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; border-top: 4px solid var(--gold); transition: .2s; }
.value:hover { box-shadow: var(--shadow-lg); }
.v-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.v-num { position: absolute; top: 18px; left: 20px; font-size: 28px; font-weight: 800; color: var(--gold-50); -webkit-text-stroke: 1px var(--gold); }
.value h3 { font-size: 18px; }
.value p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Parliament band */
.parl-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.parl-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.parl-band p { color: #cfcfcf; font-weight: 300; }
.mp-faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; justify-items: center; }
.mp-faces .avatar { width: 92px; height: 92px; border: 3px solid var(--gold); background: #fff; }
.mp-faces .avatar-ph { font-size: 24px; }

/* Timeline */
.mini-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.mini-timeline::before { content: ''; position: absolute; top: 22px; right: 0; left: 0; height: 2px; background: linear-gradient(to left, var(--gold), var(--line)); }
.mini-timeline li { position: relative; padding: 0 12px; }
.mini-timeline .yr { position: relative; display: inline-grid; place-items: center; min-width: 64px; height: 44px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--gold); font-weight: 800; margin-bottom: 14px; }
.mini-timeline strong { display: block; font-size: 16px; margin-bottom: 4px; }
.mini-timeline p { font-size: 13.5px; color: var(--muted); margin: 0; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; right: 50%; width: 3px; background: linear-gradient(var(--gold), var(--gold-50)); transform: translateX(50%); border-radius: 3px; }
.timeline li { position: relative; width: 50%; padding: 0 0 36px 40px; }
.timeline li:nth-child(even) { margin-right: 50%; padding: 0 40px 36px 0; }
.t-dot { position: absolute; top: 18px; left: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.timeline li:nth-child(even) .t-dot { left: auto; right: -10px; }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.t-year { display: inline-block; background: var(--ink); color: var(--gold); font-weight: 800; padding: 2px 14px; border-radius: 999px; margin-inline-end: 8px; }
.t-date { color: var(--muted); font-size: 13px; }
.t-card h3 { margin: 10px 0 6px; font-size: 19px; }
.t-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { background: var(--gold); padding: 48px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.cta-band p { margin: 0; color: #3b2a00; max-width: 640px; }

/* Article/statement reading */
.reading { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.reading-narrow { max-width: 820px; margin: 0 auto; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.doc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 3px double var(--gold); }
.doc-head img { border-radius: 8px; }
.doc-head strong { display: block; font-size: 17px; }
.doc-head span { color: var(--muted); font-size: 14px; }
.doc-img { width: 100%; border-radius: 12px; margin-bottom: 22px; }
.lead { font-size: 18px; font-weight: 500; color: var(--ink-3); border-inline-start: 4px solid var(--gold); padding-inline-start: 16px; }
.prose { font-size: 16.5px; line-height: 2; }
.prose h2 { font-size: 22px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 19px; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold-600); }
.prose blockquote { margin: 1em 0; padding: 14px 20px; background: var(--gold-50); border-radius: 10px; border-inline-start: 4px solid var(--gold); }
.prose a { color: var(--gold-600); text-decoration: underline; }
.program li { margin-bottom: .9em; }
.source, .disclaimer { font-size: 13.5px; color: var(--muted); margin-top: 24px; }
.source a { color: var(--gold-600); }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 10px; justify-content: center; border-radius: 999px; background: var(--bg-alt); border: 0; cursor: pointer; color: var(--ink); font-size: 13px; }
.share a:hover, .share button:hover { background: var(--gold); color: var(--ink); }
.related { position: sticky; top: 100px; }
.related h2 { font-size: 18px; padding-bottom: 10px; border-bottom: 3px solid var(--gold); }
.author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; }
.author strong { display: block; font-size: 14px; line-height: 1.4; }
.author small { display: block; font-size: 12px; color: var(--muted); }
.author.big { margin-bottom: 20px; padding: 0 0 18px; border-bottom: 3px double var(--gold); }
.author.big strong { font-size: 17px; }
.author.big small { font-size: 13px; }
.article-card .tag { align-self: flex-start; margin-bottom: 10px; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.about-side { position: sticky; top: 100px; background: var(--bg-alt); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
.about-side img { width: 180px; margin: 0 auto 10px; }
.facts { margin: 0 0 8px; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: left; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { border-radius: var(--radius); padding: 36px; background: var(--gold-50); border: 1px solid #f3dfb0; }
.vm-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.vm-card.dark .kicker { color: var(--gold); }
.vm-card p { font-size: 19px; font-weight: 500; line-height: 1.9; margin: 8px 0 0; }

/* Parliament page */
.tabs { display: inline-flex; background: var(--bg-alt); padding: 6px; border-radius: 999px; margin-bottom: 30px; gap: 4px; }
.tabs a { padding: 8px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.tabs a b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: #fff; font-size: 13px; margin-inline-start: 6px; }
.tabs a[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs a[aria-selected="true"] b { background: var(--gold); color: var(--ink); }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.mp { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-inline-start: 4px solid var(--gold); }
.mp .avatar { flex: none; border: 3px solid var(--gold-50); }
.mp h3 { font-size: 18px; margin: 0; }
.mp-role { color: var(--gold-600); font-weight: 600; font-size: 14px; margin: 2px 0 8px; }
.mp-meta { list-style: none; padding: 0; margin: 0 0 6px; font-size: 13.5px; color: var(--ink-3); }
.mp-meta b { font-weight: 600; color: var(--muted); }
.mp-bio { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

/* Branches */
.filter { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.filter select { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); min-width: 220px; background: #fff; }
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.branch.hq { background: var(--ink); color: #fff; border-color: var(--ink); }
.branch.hq .ic { color: var(--gold); }
.branch.hq .btn-outline { border-color: var(--gold); color: var(--gold); }
.branch h3 { font-size: 19px; margin: 8px 0 4px; }
.branch p { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14.5px; }
.branch p .ic { margin-top: 5px; color: var(--gold-600); }
.branch .btn { margin-top: 12px; }

/* Chips / pager / notes */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chips a { padding: 7px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; background: #fff; }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pager a, .pager span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; }
.pager span { background: var(--gold); border-color: var(--gold); }
.note-box { margin-top: 36px; padding: 18px 22px; border-radius: 12px; background: var(--gold-50); border: 1px dashed var(--gold); font-size: 15px; }
.note-box a { font-weight: 700; text-decoration: underline; }

/* Forms */
.join-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.join-why h2 { font-size: 26px; }
.join-why p { display: flex; gap: 8px; align-items: flex-start; }
.join-why p .ic { margin-top: 6px; color: var(--gold-600); }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 34px; }
.checks li::before { content: '✓'; position: absolute; right: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; font-size: 15px; transition: .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(247,174,29,.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 16px 16px; margin: 0; }
legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.form label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-600); margin-top: 5px; flex: none; }
.consent { font-size: 13.5px !important; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 18px; }
.alert ul { margin: 6px 0 0; padding-inline-start: 20px; }
.alert-err { background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; }
.alert-ok { background: #e9f7ef; color: #14532d; border: 1px solid #b7e4c7; text-align: center; padding: 36px; }
.alert-ok h3 { font-size: 22px; }

/* Search */
.search-form { display: flex; gap: 10px; margin-bottom: 18px; }
.search-form input { flex: 1; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 16px; }
.search-form input:focus { outline: none; border-color: var(--gold); }
.results { display: grid; gap: 12px; }
.result { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.result:hover { border-color: var(--gold); color: inherit; }
.result strong { display: block; font-size: 17px; margin: 6px 0 4px; }
.result p { margin: 0; color: var(--muted); font-size: 14px; }
.result time { font-size: 12px; color: var(--muted); }
.big-404 { font-size: 120px; font-weight: 800; color: var(--gold); line-height: 1; }

/* Footer */
.site-footer { background: var(--ink); color: #c9c9c9; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.f-brand { display: grid; gap: 14px; align-content: start; }
.f-brand img { border-radius: 12px; }
.f-brand strong { color: #fff; font-size: 17px; }
.f-brand p { color: var(--gold); margin: 0; font-weight: 500; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; position: relative; padding-bottom: 10px; }
.site-footer h3::after { content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 3px; background: var(--gold); border-radius: 2px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.site-footer a:hover { color: var(--gold); }
.f-contact { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; }
.social-foot a { background: var(--ink-3); width: 38px; height: 38px; }
.footer-bottom { border-top: 1px solid #2c2c2c; padding: 18px 0; font-size: 13px; color: #8f8f8f; text-align: center; }

/* Parliament band mini KPIs */
.mini-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.mini-kpis a { background: rgba(255,255,255,.06); border: 1px solid rgba(247,174,29,.3); border-radius: 12px; padding: 10px 16px; min-width: 110px; }
.mini-kpis a:hover { border-color: var(--gold); color: #fff; }
.mini-kpis strong { display: block; font-size: 26px; color: var(--gold); line-height: 1.2; }
.mini-kpis span { font-size: 13px; color: #cfcfcf; }
.tabs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.tabs-row .tabs { margin-bottom: 0; }
.mp-const { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--ink-3); margin: 0; }
.mp-const .ic { margin-top: 4px; color: var(--gold-600); width: 15px; height: 15px; }
.mp { align-items: center; }

/* Parliament tracker */
.tk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 32px; }
.tk-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; border-top: 4px solid var(--gold); transition: .15s; }
.tk-kpi:hover { box-shadow: var(--shadow); color: inherit; }
.tk-kpi strong { display: block; font-size: 34px; font-weight: 800; line-height: 1.15; }
.tk-kpi span { color: var(--muted); font-size: 14px; }
.tk-kpi.total { background: var(--ink); color: #fff; border-color: var(--ink); border-top-color: var(--gold); }
.tk-kpi.total strong { color: var(--gold); }
.tk-kpi.total span { color: #cfcfcf; }
.tk-kpi.on { outline: 3px solid var(--gold); outline-offset: -1px; }
.tk-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tk-side { background: var(--bg-alt); border-radius: var(--radius); padding: 18px; position: sticky; top: 100px; display: grid; gap: 4px; }
.tk-side h2 { font-size: 17px; margin-bottom: 8px; }
.tk-mp { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.tk-mp:hover { background: #fff; color: inherit; }
.tk-mp.on { background: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.tk-mp .avatar { width: 34px; height: 34px; flex: none; }
.tk-name { flex: 1; min-width: 0; display: grid; gap: 4px; font-weight: 600; line-height: 1.4; }
.tk-mp b { font-size: 15px; min-width: 28px; text-align: center; background: var(--ink); color: var(--gold); border-radius: 999px; padding: 0 8px; }
.tk-bar { display: block; height: 5px; background: #e6e2d8; border-radius: 4px; overflow: hidden; }
.tk-bar i { display: block; height: 100%; background: var(--gold); }
.tk-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tk-filter select { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; min-width: 180px; flex: 1; }
.tk-list { display: grid; gap: 16px; }
.tk-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; border-inline-start: 4px solid var(--gold); }
.tk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tk-item h3 { font-size: 18px; margin-bottom: 6px; }
.tk-item p { color: var(--ink-3); font-size: 14.5px; margin: 0 0 8px; }
.tk-to b { color: var(--muted); font-weight: 600; }
.tk-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line); }
.tk-by { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.tk-by .avatar { width: 30px; height: 30px; }
.tk-src { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.tk-src .ic { width: 15px; height: 15px; }

/* Press kit */
.press-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.press-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-top: 5px solid var(--gold); }
.press-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); border-top-color: var(--gold); }
.press-card h2 { font-size: 20px; }
.press-card p { display: flex; gap: 8px; align-items: center; }
.press-card.dark .ic { color: var(--gold); }
.boiler { display: block !important; font-size: 16px; line-height: 2; color: var(--ink-3); }
.pc-name { font-size: 20px; font-weight: 700; margin: 0 !important; }
.pc-title { color: var(--gold); margin-top: 0 !important; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.asset { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.asset-img { aspect-ratio: 4/3; display: grid; place-items: center; padding: 18px; background: repeating-conic-gradient(#f3f1ec 0% 25%, #fff 0% 50%) 50% / 20px 20px; }
.asset.dark .asset-img { background: var(--ink); }
.asset-img img { max-height: 100%; object-fit: contain; }
.asset figcaption { padding: 14px 16px; display: grid; gap: 4px; }
.asset figcaption small { color: var(--muted); }
.asset figcaption .btn { justify-self: start; margin-top: 6px; }
.usage { margin-top: 18px; font-size: 14px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; }
.swatch span { height: 90px; border-bottom: 1px solid var(--line); }
.swatch strong { padding: 10px 14px 0; }
.swatch code { padding: 0 14px 12px; color: var(--muted); direction: ltr; text-align: start; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.ph { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.ph figcaption { position: relative; padding: 10px 12px 12px; display: grid; gap: 2px; padding-inline-end: 44px; }
.ph figcaption strong { font-size: 14px; }
.ph figcaption small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.ph figcaption a { position: absolute; top: 12px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--ink); }

/* English / left-to-right overrides */
[dir="ltr"] .has-sub ul { right: auto; left: 0; }
[dir="ltr"] .v-num { left: auto; right: 20px; }
[dir="ltr"] .checks li::before { right: auto; left: 0; }
[dir="ltr"] .facts dd { text-align: right; }
[dir="ltr"] .site-footer h3::after { right: auto; left: 0; }
[dir="ltr"] .more .ic-arrow, [dir="ltr"] .announce .ic-arrow { transform: scaleX(-1); }
[dir="ltr"] .timeline li { padding: 0 40px 36px 0; }
[dir="ltr"] .timeline li .t-dot { left: auto; right: -10px; }
[dir="ltr"] .timeline li:nth-child(even) { margin-right: 0; margin-left: 50%; padding: 0 0 36px 40px; }
[dir="ltr"] .timeline li:nth-child(even) .t-dot { right: auto; left: -10px; }
[dir="ltr"] .timeline::before { right: auto; left: 50%; transform: translateX(-50%); }
[dir="ltr"] .skip { right: auto; left: -999px; }
[dir="ltr"] .skip:focus { left: 8px; }
body { overflow-x: clip; }
[dir="ltr"] .brand strong { font-size: 17px; }
[dir="ltr"] .main-nav a { padding: 8px 9px; font-size: 14px; }
[dir="ltr"] .hero h1 { line-height: 1.25; }

/* Responsive */
@media (max-width: 1300px) {
  .burger { display: flex; }
  .main-nav { position: fixed; inset: 0 0 0 auto; top: 0; width: min(320px, 86vw); background: #fff; box-shadow: var(--shadow-lg); transform: translateX(110%); transition: transform .25s ease; z-index: 60; padding: 80px 16px 24px; overflow-y: auto; }
  [dir="ltr"] .main-nav { inset: 0 auto 0 0; transform: translateX(-110%); }
  body.nav-open .main-nav { transform: none; }
  body.nav-open .site-header { z-index: 70; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .main-nav a.active { box-shadow: inset -4px 0 0 var(--gold); background: var(--bg-alt); border-radius: 8px; }
  [dir="ltr"] .main-nav a.active { box-shadow: inset 4px 0 0 var(--gold); }
  .nav-mobile-only { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .nav-mobile-only + .nav-mobile-only { border-top: 0; margin-top: 0; padding-top: 0; }
  .has-sub ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px 0 0; }
  [dir="ltr"] .has-sub ul { padding: 0 0 0 16px; }
  .has-sub > a::after { display: none; }
  body.nav-open .burger { position: relative; z-index: 70; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .wrap { justify-content: space-between; }
}
@media (max-width: 980px) {
  .hero-grid, .parl-band, .news-grid, .reading, .about-grid, .join-grid, .vm { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; order: -1; }
  .hero-art img { width: 180px; }
  .hero-art .ring { width: 260px; }
  .values, .values-6 { grid-template-columns: repeat(2, 1fr); }
  .tk-layout, .press-top { grid-template-columns: 1fr; }
  .tk-side { position: static; }
  .grid-3, .people-3 { grid-template-columns: repeat(2, 1fr); }
  .mini-timeline { grid-template-columns: 1fr; gap: 18px; }
  .mini-timeline::before { display: none; }
  .mini-timeline li { padding: 0; display: grid; grid-template-columns: 80px 1fr; column-gap: 14px; }
  .mini-timeline .yr { grid-row: span 2; margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related, .about-side { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero { padding-top: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .stats div:nth-child(3) { border-inline-start: 0; }
  .stats div { border-top: 1px solid rgba(255,255,255,.08); }
  .stats strong { font-size: 28px; }
  .values, .values-6, .grid-3, .people-3, .row2, .check-grid { grid-template-columns: 1fr; }
  .top-links .social { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand strong { font-size: 15px; }
  .head-actions .btn-gold { display: none; }
  [dir="ltr"] .timeline::before { left: 10px; transform: none; }
  [dir="ltr"] .timeline li, [dir="ltr"] .timeline li:nth-child(even) { margin: 0; padding: 0 0 26px 36px; }
  [dir="ltr"] .timeline li .t-dot, [dir="ltr"] .timeline li:nth-child(even) .t-dot { left: 0; right: auto; }
  .tk-kpis { grid-template-columns: repeat(2, 1fr); }
  .tk-kpi strong { font-size: 26px; }
  .tk-item { padding: 16px; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .person-plate { margin: -20px 6px 6px; padding: 10px 6px; }
  .person-plate h3 { font-size: 15px; }
  .person-plate p { font-size: 12.5px; }
  .mp-faces { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .mp-faces .avatar { width: 64px; height: 64px; }
  .mp-grid, .branch-grid { grid-template-columns: 1fr; }
  .mp { flex-direction: column; align-items: center; text-align: center; }
  .mp-meta { text-align: center; }
  .timeline::before { right: 10px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin: 0; padding: 0 36px 26px 0; }
  .t-dot, .timeline li:nth-child(even) .t-dot { right: 0; left: auto; }
  .doc { padding: 22px 18px; }
  .form-card { padding: 22px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .head-actions .btn-gold { padding: 8px 14px; font-size: 14px; }
  .brand strong { font-size: 16px; }
  .brand img { width: 38px; }
  .topbar .today { display: none; }
  .topbar .wrap { justify-content: center; }
  .icon-btn { display: none; }
  .tabs a { padding: 8px 14px; font-size: 14px; }
}
@media print {
  .topbar, .site-header, .announce, .site-footer, .share, .related, .page-head .crumbs, .cta-band { display: none !important; }
  .page-head { background: none; color: #000; padding: 0; }
  .page-head::after { display: none; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  .reading { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
