/*
 * Inner pages (about, contact, leadership, membership, donate, policies, conference 2026, errors...).
 * Same visual language as the header, footer, home and Kenya 2027 pages. Scoped under .pg.
 */
.pg {
  --pg-navy: #0d2b5c;
  --pg-navy-2: #123a78;
  --pg-ink: #14213d;
  --pg-text: #3a4762;
  --pg-muted: #66718a;
  --pg-line: #e1e7f0;
  --pg-soft: #f3f6fb;
  --pg-soft-green: #eaf7ef;
  --pg-blue: #1f5fbf;
  --pg-green: #17924a;
  --pg-green-2: #2fbf5a;
  --pg-red: #d9232b;
  --pg-radius: 16px;
  --pg-shadow: 0 1px 2px rgba(13, 43, 92, .06), 0 10px 30px rgba(13, 43, 92, .09);
  --pg-gradient: linear-gradient(90deg, #1f5fbf 0%, #1a8a8c 50%, #2fbf5a 100%);
  --pg-head: "Montserrat", "Ubuntu", system-ui, sans-serif;

  font-family: "Ubuntu", system-ui, sans-serif;
  color: var(--pg-text);
  font-size: 16px;
  line-height: 1.7;
}
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
:where(.pg) :is(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) { margin: 0; padding: 0; }
:where(.pg) li { list-style: none; }
:where(.pg) :is(h1, h2, h3, h4) { font-family: var(--pg-head); color: var(--pg-ink); line-height: 1.25; }
:where(.pg) a { color: var(--pg-blue); text-decoration: none; }
.pg :focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; border-radius: 6px; }

.pg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.pg-wrap--narrow { max-width: 900px; }
.pg-section { padding: 80px 0; }
.pg-section--soft { background: var(--pg-soft); }
.pg-section--tight { padding: 52px 0; }
.pg-section--flush-top { padding-top: 0; }

/* ---------- Page hero ---------- */
.pg-hero {
  position: relative; overflow: hidden; color: #fff; padding: 64px 0 76px;
  background:
    radial-gradient(800px 380px at 90% 0%, rgba(47, 191, 90, .2), transparent 60%),
    linear-gradient(160deg, var(--pg-navy) 0%, var(--pg-navy-2) 65%, #134c6e 100%);
}
.pg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, #1f5fbf, #2fbf5a 80%, #d9232b 80%, #d9232b 86%, #2fbf5a 86%); }
.pg-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: center; }
.pg-hero__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.pg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: 14px; color: #a9bfe6; margin-bottom: 18px; }
.pg-crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pg-crumbs i { font-size: 10px; opacity: .7; }
.pg-hero h1 { color: #fff; font-family: var(--pg-head); font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 16px; }
.pg-hero__lead { color: #dbe5f6; font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.7; max-width: 680px; }
.pg-hero .pg-btn-row { margin-top: 28px; }
.pg-hero__aside { justify-self: end; width: 100%; max-width: 360px; }
.pg-hero__card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; padding: 24px; backdrop-filter: blur(6px); }
.pg-hero__card img { display: block; width: 100%; height: auto; border-radius: 14px; }
.pg-hero__logo { width: 160px; display: block; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .3)); }
.pg-hero__stats { display: grid; gap: 10px; }
.pg-hero__stats a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background-color .18s ease, border-color .18s ease; }
.pg-hero__stats a:hover { background: rgba(255, 255, 255, .14); }
.pg-hero__stats a.is-active { border-color: #8fe3a8; background: rgba(47, 191, 90, .16); }
.pg-hero__stats b { font-family: var(--pg-head); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pg-hero__stats span { font-size: 14px; color: #d5e0f3; text-align: right; }
.pg-hero__icon { width: 120px; height: 120px; border-radius: 30px; display: grid; place-items: center; font-size: 48px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); margin-left: auto; }

/* ---------- Type & headers ---------- */
.pg-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--pg-head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pg-green); margin-bottom: 12px; }
.pg-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--pg-gradient); }
.pg-eyebrow--light { color: #8fe3a8; }
.pg-head { margin-bottom: 36px; max-width: 760px; }
.pg-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.pg-head--center .pg-eyebrow::before { display: none; }
.pg-h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.pg-head p, .pg-lead { font-size: 17px; line-height: 1.75; color: var(--pg-text); }
.pg-lead + .pg-lead { margin-top: 14px; }
.pg-muted { color: var(--pg-muted); }

/* ---------- Buttons ---------- */
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: 0 24px; border-radius: 12px;
  font-family: var(--pg-head); font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; text-align: center; line-height: 1.25;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.pg-btn:hover { transform: translateY(-2px); }
.pg-btn:disabled { opacity: .65; cursor: progress; transform: none; }
.pg-btn--primary { background: var(--pg-red); color: #fff !important; box-shadow: 0 8px 20px rgba(217, 35, 43, .25); }
.pg-btn--primary:hover { background: #b81c23; }
.pg-btn--navy { background: var(--pg-navy); color: #fff !important; }
.pg-btn--navy:hover { background: var(--pg-blue); }
.pg-btn--green { background: var(--pg-green); color: #fff !important; }
.pg-btn--green:hover { background: #127a3d; }
.pg-btn--outline { background: #fff; color: var(--pg-navy) !important; border-color: #c9d5e8; }
.pg-btn--outline:hover { border-color: var(--pg-blue); color: var(--pg-blue) !important; }
.pg-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.pg-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.pg-btn--whatsapp { background: #1fa855; color: #fff !important; }
.pg-btn--whatsapp:hover { background: #178a45; }
.pg-btn--block { width: 100%; }
.pg-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--pg-head); font-weight: 700; color: var(--pg-blue); }
.pg-link i { transition: transform .18s ease; font-size: .85em; }
.pg-link:hover i { transform: translateX(4px); }

/* ---------- Grids & cards ---------- */
.pg-grid { display: grid; gap: 20px; }
.pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pg-split--top { align-items: start; }

.pg-card {
  position: relative; background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pg-card--hover:hover { border-color: #b9d0f3; box-shadow: var(--pg-shadow); transform: translateY(-3px); }
.pg-card--accent::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--pg-radius) var(--pg-radius) 0 0; background: var(--pg-gradient); }
.pg-card--center { text-align: center; }
.pg-card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--pg-gradient); color: #fff; font-size: 21px; margin-bottom: 18px; }
.pg-card--center .pg-card__icon { margin-left: auto; margin-right: auto; }
.pg-card__icon--soft { background: #eef4ff; color: var(--pg-blue); }
.pg-card__icon--whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.pg-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.pg-card p { color: var(--pg-text); font-size: 15.5px; line-height: 1.65; }
.pg-card__num { position: absolute; top: 22px; right: 24px; font-family: var(--pg-head); font-size: 2.4rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #c9d5e8; }
.pg-card__foot { margin-top: 18px; }

/* Navy feature card (mission/vision) */
.pg-card--navy { background: linear-gradient(160deg, var(--pg-navy) 0%, var(--pg-navy-2) 100%); border-color: transparent; color: #d5e0f3; overflow: hidden; }
.pg-card--navy h3 { color: #fff; font-size: 1.5rem; }
.pg-card--navy p { color: #d5e0f3; font-size: 16.5px; }
.pg-card--navy::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 191, 90, .28), transparent 70%); }
.pg-card--navy .pg-card__icon { background: rgba(255, 255, 255, .12); }

/* Image card */
.pg-media-card { background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; display: flex; flex-direction: column; }
.pg-media-card:hover { box-shadow: var(--pg-shadow); transform: translateY(-3px); }
.pg-media-card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pg-soft); }
.pg-media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.pg-media-card:hover .pg-media-card__img img { transform: scale(1.04); }
.pg-media-card__badge { position: absolute; left: 20px; bottom: -22px; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--pg-gradient); color: #fff; font-size: 19px; box-shadow: 0 8px 18px rgba(13, 43, 92, .25); }
.pg-media-card__body { padding: 36px 24px 26px; }
.pg-media-card__body h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.pg-media-card__body p { font-size: 15.5px; color: var(--pg-text); }

/* Row variant: small photo beside the text (used for 200x300 padded photos) */
.pg-media-card--row { flex-direction: row; align-items: stretch; }
.pg-media-card--row .pg-media-card__img { flex: 0 0 210px; aspect-ratio: 4 / 3; align-self: center; margin: 18px 0 18px 18px; border-radius: 12px; }
.pg-media-card--row .pg-media-card__badge { left: auto; right: -14px; bottom: 12px; width: 42px; height: 42px; font-size: 16px; }
.pg-media-card--row .pg-media-card__body { padding: 22px 24px 22px 30px; align-self: center; }
@media (max-width: 680px) {
  .pg-media-card--row { flex-direction: column; }
  .pg-media-card--row .pg-media-card__img { flex: none; width: auto; margin: 16px 16px 0; }
  .pg-media-card--row .pg-media-card__badge { right: 14px; bottom: -18px; }
  .pg-media-card--row .pg-media-card__body { padding: 30px 20px 22px; }
}

/* Icon list (benefits) */
.pg-iconlist { display: grid; gap: 14px; }
.pg-iconlist li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--pg-line); transition: border-color .2s ease, box-shadow .2s ease; }
.pg-iconlist li:hover { border-color: #b9d0f3; box-shadow: var(--pg-shadow); }
.pg-iconlist__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: #eef4ff; color: var(--pg-blue); font-size: 19px; }
.pg-iconlist h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.pg-iconlist p { font-size: 15px; color: var(--pg-text); line-height: 1.6; }

/* Bullets & checks */
.pg-bullets li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; line-height: 1.65; }
.pg-bullets li::before { content: ""; position: absolute; left: .25rem; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--pg-green); }
.pg-checks li { position: relative; padding: .8rem 1rem .8rem 3rem; margin-bottom: .6rem; background: #fff; border: 1px solid var(--pg-line); border-radius: 12px; line-height: 1.6; }
.pg-checks li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: .9rem; top: .82rem; width: 24px; height: 24px; border-radius: 50%; background: var(--pg-soft-green); color: var(--pg-green); font-size: 11px; display: grid; place-items: center; }

/* Photo with accent */
.pg-photo { position: relative; }
.pg-photo::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 24px; background: var(--pg-gradient); }
.pg-photo img { position: relative; display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--pg-shadow); }
.pg-photo__badge { position: absolute; left: -16px; bottom: 28px; z-index: 1; background: var(--pg-red); color: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 14px 28px rgba(217, 35, 43, .3); }
.pg-photo__badge b { display: block; font-family: var(--pg-head); font-size: 2rem; line-height: 1; }
.pg-photo__badge span { font-size: 13.5px; font-weight: 500; }

/* ---------- CTA band ---------- */
.pg-cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: 48px; color: #fff; text-align: center;
  background: radial-gradient(600px 300px at 100% 0%, rgba(47, 191, 90, .25), transparent 60%), linear-gradient(150deg, var(--pg-navy) 0%, var(--pg-navy-2) 100%);
}
.pg-cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--pg-gradient); }
.pg-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; max-width: 760px; margin: 0 auto 12px; }
.pg-cta p { color: #d5e0f3; max-width: 680px; margin: 0 auto; }
.pg-cta .pg-btn-row { justify-content: center; margin-top: 26px; }
.pg-cta--left { text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.pg-cta--left h2, .pg-cta--left p { margin: 0; }
.pg-cta--left h2 { margin-bottom: 8px; }
.pg-cta--left .pg-btn-row { margin-top: 0; }

/* Card laid out as a bar: text left, actions right */
.pg-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
@media (max-width: 680px) { .pg-bar { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Key / value rows (bank details) ---------- */
.pg-kv { display: grid; }
.pg-kv > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 11px 0; border-bottom: 1px dashed var(--pg-line); }
.pg-kv > div:last-child { border-bottom: 0; }
.pg-kv dt { color: var(--pg-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.pg-kv dd { color: var(--pg-ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow-wrap: break-word; }
.pg-copy { flex-shrink: 0; border: 1px solid var(--pg-line); background: #fff; color: var(--pg-muted); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 13px; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.pg-copy:hover { color: var(--pg-blue); border-color: var(--pg-blue); }
.pg-copy.is-copied { color: var(--pg-green); border-color: var(--pg-green); background: var(--pg-soft-green); }

/* ---------- Leaders ---------- */
.pg-leader-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: #fff; border: 1px solid var(--pg-line); border-radius: 24px; overflow: hidden; box-shadow: var(--pg-shadow); margin-bottom: 28px; }
.pg-leader-hero__img { background: var(--pg-soft); }
.pg-leader-hero__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; min-height: 360px; }
.pg-leader-hero__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.pg-leader-hero__body h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: 6px; }
.pg-role { display: inline-flex; align-self: flex-start; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px; background: var(--pg-soft-green); color: #0f6b35; font-weight: 700; font-size: 13.5px; margin-bottom: 18px; }
.pg-leader-hero__body p { font-size: 16.5px; line-height: 1.8; }
.pg-person { background: #fff; border: 1px solid var(--pg-line); border-radius: 20px; overflow: hidden; text-align: center; transition: box-shadow .2s ease, transform .2s ease; }
.pg-person:hover { box-shadow: var(--pg-shadow); transform: translateY(-4px); }
.pg-person__img { aspect-ratio: 4 / 4.4; background: var(--pg-soft); overflow: hidden; }
.pg-person__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s ease; }
.pg-person:hover .pg-person__img img { transform: scale(1.04); }
.pg-person__body { padding: 20px 18px 24px; position: relative; }
.pg-person__body::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 48px; height: 4px; border-radius: 0 0 4px 4px; background: var(--pg-gradient); }
.pg-person h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.pg-person__role { display: block; color: var(--pg-green); font-weight: 700; font-size: 14px; }
.pg-person__sub { display: block; color: var(--pg-muted); font-size: 13.5px; margin-top: 4px; }
.pg-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Legal / long text pages ---------- */
.pg-doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.pg-toc { position: sticky; top: 100px; }
.pg-toc__title { font-family: var(--pg-head); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pg-muted); margin-bottom: 10px; }
.pg-toc ol { border-left: 2px solid var(--pg-line); }
.pg-toc a { display: block; padding: .45rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--pg-muted); font-size: 14.5px; line-height: 1.4; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.pg-toc a:hover { color: var(--pg-ink); background: var(--pg-soft); }
.pg-toc a.is-active { color: var(--pg-navy); border-left-color: var(--pg-red); font-weight: 700; background: #f7f9fd; }
.pg-doc__body { display: grid; gap: 18px; }
.pg-doc__section { background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); padding: 28px 30px; scroll-margin-top: 100px; }
.pg-doc__section h2 { font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: .8rem; margin-bottom: 14px; }
.pg-doc__num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--pg-gradient); color: #fff; font-size: 14px; }
.pg-doc__section p + p, .pg-doc__section p + ul, .pg-doc__section ul + p { margin-top: 12px; }
.pg-contact-lines { display: grid; gap: 8px; margin-top: 14px; }
.pg-contact-lines li { display: flex; gap: .7rem; align-items: baseline; }
.pg-contact-lines i { color: var(--pg-green); width: 18px; text-align: center; }
.pg-contact-lines strong { color: var(--pg-ink); }

/* ---------- Forms ---------- */
.pg-form-card { background: #fff; border: 1px solid var(--pg-line); border-radius: 24px; padding: 40px; box-shadow: var(--pg-shadow); }
.pg-form-card__head { text-align: center; margin-bottom: 28px; }
.pg-form-card__head h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.pg-fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.pg-fieldset legend { display: flex; align-items: center; gap: .6rem; width: 100%; font-family: var(--pg-head); font-weight: 700; font-size: 1.05rem; color: var(--pg-navy); padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--pg-line); }
.pg-fieldset legend i { color: var(--pg-green); }
.pg-fieldset legend small { font-family: "Ubuntu", sans-serif; font-weight: 400; color: var(--pg-muted); font-size: 13.5px; }
.pg-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pg-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-fields--1 { grid-template-columns: minmax(0, 1fr); }
.pg-field label { display: block; font-weight: 700; color: var(--pg-ink); font-size: 14.5px; margin-bottom: 6px; }
.pg-field .req { color: var(--pg-red); }
.pg-field :is(input, select) {
  width: 100%; min-height: 48px; border: 1px solid #c9d3e1; border-radius: 10px; padding: .65rem .9rem; font-size: 15px; font-family: inherit; color: var(--pg-ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pg-field input[type="file"] { padding: .55rem .7rem; font-size: 14px; background: var(--pg-soft); cursor: pointer; }
.pg-field input[type="file"]::file-selector-button { border: 0; border-radius: 8px; background: var(--pg-navy); color: #fff; padding: .45rem .9rem; margin-right: .8rem; font-weight: 600; cursor: pointer; }
.pg-field :is(input, select):focus { border-color: var(--pg-blue); box-shadow: 0 0 0 3px rgba(31, 95, 191, .15); outline: none; }
.pg-field .is-invalid { border-color: var(--pg-red); background: #fff7f7; }
.pg-form-actions { display: grid; gap: 14px; justify-items: stretch; margin-top: 8px; }
.pg-alert { display: flex; gap: .7rem; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 15px; margin-bottom: 12px; }
.pg-alert i { margin-top: .25rem; }
.pg-alert--success { background: var(--pg-soft-green); border: 1px solid #b5e3c5; color: #0f5a2d; }
.pg-alert--error { background: #fff1f1; border: 1px solid #f6b8bb; color: #8f1218; }
.pg-alert--warning { background: #fff8e6; border: 1px solid #f3d58a; color: #7a5600; }
.pg-summary { padding: 18px 20px; border-radius: 14px; background: var(--pg-soft); border: 1px solid var(--pg-line); }
.pg-summary h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.pg-summary__total { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--pg-line); font-family: var(--pg-head); font-weight: 800; color: var(--pg-navy); }

/* PDF viewer */
.pg-pdf { margin-top: 20px; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); overflow: hidden; background: #fff; }
.pg-pdf[hidden] { display: none; }
.pg-pdf__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--pg-navy); color: #fff; font-family: var(--pg-head); font-weight: 700; font-size: 15px; }
.pg-pdf__bar button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; }
.pg-pdf iframe { display: block; width: 100%; height: 560px; border: 0; }
.pg-pdf__foot { padding: 12px 16px; text-align: right; border-top: 1px solid var(--pg-line); }

/* Map: details card beside the embedded map */
.pg-map { display: grid; grid-template-columns: 340px minmax(0, 1fr); border-radius: 24px; overflow: hidden; border: 1px solid var(--pg-line); box-shadow: var(--pg-shadow); background: #fff; }
.pg-map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; background: var(--pg-soft); }
.pg-map__card { padding: 30px 28px; border-right: 1px solid var(--pg-line); position: relative; }
.pg-map__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pg-gradient); }
.pg-map__card h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 18px; }
.pg-map__card li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--pg-line); }
.pg-map__card li:first-child { border-top: 0; padding-top: 0; }
.pg-map__card .pg-iconlist__icon { width: 40px; height: 40px; font-size: 16px; border-radius: 11px; }
.pg-map__card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.pg-map__card p, .pg-map__card a { font-size: 14.5px; }

/* Social */
.pg-social { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.pg-social a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.pg-social a:hover { background: #fff; color: var(--pg-navy); transform: translateY(-3px); }

/* Notice / message page */
.pg-notice { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--pg-line); border-radius: 24px; padding: 44px 36px; box-shadow: var(--pg-shadow); }
.pg-notice__icon { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px; display: grid; place-items: center; background: #eef4ff; color: var(--pg-blue); font-size: 28px; }
.pg-notice h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.pg-notice p { color: var(--pg-text); }
.pg-notice .pg-btn-row { justify-content: center; margin-top: 26px; }
.pg-code { font-family: var(--pg-head); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; letter-spacing: -.03em; background: linear-gradient(90deg, #6fa8ff, #4fd1a6 55%, #55e07f); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }

/* Reveal */
.pg .pg-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.pg .pg-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pg *, .pg *::before, .pg *::after { transition: none !important; animation: none !important; }
  .pg .pg-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .pg-section { padding: 64px 0; }
  .pg-hero__grid, .pg-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pg-hero__aside { justify-self: start; max-width: 320px; }
  .pg-hero__aside--hide-md { display: none; }
  .pg-grid--4, .pg-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-leader-hero { grid-template-columns: minmax(0, 1fr); }
  .pg-leader-hero__img img { min-height: 0; max-height: 460px; }
  .pg-doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pg-toc { position: sticky; top: 66px; z-index: 5; background: #fff; margin: 0 -20px 24px; padding: 10px 20px; border-bottom: 1px solid var(--pg-line); }
  .pg-toc__title { display: none; }
  .pg-toc ol { display: flex; gap: 6px; overflow-x: auto; border-left: 0; }
  .pg-toc a { white-space: nowrap; border: 1px solid var(--pg-line); border-radius: 999px; margin: 0; padding: .4rem .85rem; font-size: 13.5px; }
  .pg-toc a.is-active { border-color: var(--pg-red); background: #fff6f6; }
  .pg-doc__section { scroll-margin-top: 130px; }
  .pg-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .pg-wrap { padding: 0 16px; }
  .pg-section { padding: 52px 0; }
  .pg-hero { padding: 44px 0 56px; }
  .pg-grid--2, .pg-grid--3, .pg-grid--4, .pg-people, .pg-fields, .pg-fields--2 { grid-template-columns: minmax(0, 1fr); }
  .pg-card { padding: 22px; }
  .pg-btn-row .pg-btn { flex: 1 1 100%; }
  .pg-leader-hero__body { padding: 26px 22px; }
  .pg-leader-hero__body h3 { font-size: 1.5rem; }
  .pg-cta { padding: 34px 22px; }
  .pg-cta--left { grid-template-columns: minmax(0, 1fr); }
  .pg-form-card { padding: 26px 18px; }
  .pg-doc__section { padding: 22px 18px; }
  .pg-toc { margin: 0 -16px 20px; padding: 10px 16px; }
  .pg-map { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .pg-map iframe { min-height: 320px; height: 320px; }
  .pg-map__card { border-right: 0; border-bottom: 1px solid var(--pg-line); padding: 24px 20px; }
  .pg-photo::before { inset: 14px -10px -10px 14px; }
  .pg-photo__badge { left: 10px; bottom: 14px; }
  .pg-notice { padding: 32px 20px; }
  .pg-pdf iframe { height: 420px; }
}
