/* Reviewed finishing touches loaded after the main stylesheet. */
.aboutpage .visionmission .lead { font-size: 17px; line-height: 1.9; font-weight: 400; }
.socials .svgicon { width: 21px !important; height: 21px !important; stroke-width: 1.65; }
.socials a { width: 38px !important; height: 38px !important; }
.herobottom > a > .scrollarrow { display: block; transform: rotate(-90deg); }
.pageloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #f7faf9; pointer-events: none; animation: loaderFailsafe .3s 2.7s forwards; transition: opacity .25s, visibility .25s; }
.pageloader img { width: 72px; height: 72px; object-fit: contain; border-radius: 7px; animation: logoReveal .58s ease-out both; }
.pageloader.is-loaded { opacity: 0; visibility: hidden; }
@keyframes logoReveal { from { opacity: .42; filter: grayscale(1) saturate(0) brightness(1.35); transform: scale(.96); } to { opacity: 1; filter: grayscale(0) saturate(1) brightness(1); transform: scale(1); } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .pageloader img { animation: none; } }
.comingtoast { position: fixed; inset: auto 50% 28px auto; transform: translateX(50%); z-index: 120; min-width: 230px; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 16px 22px; border: 1px solid #548892; border-top: 3px solid var(--gold); border-radius: 8px; background: #103f47; color: white; box-shadow: 0 10px 40px #103f4733; }
.comingtoast[hidden] { display: none; }
.comingtoast button { background: transparent; border: 0; color: white; cursor: pointer; padding: 4px; }
.footgrid > div:first-child .socials {
  justify-content: center;
}

.footerqrs {
  justify-content: center;
  margin-top: 22px;
}

.footerqr,
.footerqr:first-child,
.footerqr:last-child {
  border-color: #9fc5cb !important;
}

.openanswer textarea::placeholder {
  color: #82969b;
  font-weight: 400;
}

.surveybutton {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 600;
}

.surveybutton .svgicon {
  width: 17px;
  height: 17px;
}

.contactlayout form .btn {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 600;
}

.contactlayout form .btn .svgicon {
  width: 17px;
  height: 17px;
}

/* A compact typographic scale across editorial and card surfaces. */
h2 {
  font-size: clamp(1.7rem, 2.1vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 3.8vw, 3.7rem);
}

.pagehead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 42px 0 52px;
  background: linear-gradient(120deg, #123f47, #0f606d);
  border-bottom-color: var(--gold);
  color: #fff;
}

.pagehead::before,
.pagehead::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-18deg);
}

.pagehead::before {
  left: -70px;
  top: -95px;
  width: 310px;
  height: 210px;
  border: 18px solid rgba(255, 255, 255, .08);
  border-right-color: rgba(208, 179, 47, .38);
  animation: headFloat 9s ease-in-out infinite alternate;
}

.pagehead::after {
  left: 105px;
  bottom: -115px;
  width: 250px;
  height: 190px;
  border: 13px solid rgba(255, 255, 255, .06);
  border-top-color: rgba(0, 141, 163, .5);
  animation: headFloat 11s ease-in-out infinite alternate-reverse;
}

@keyframes headFloat {
  from { transform: translate3d(0, 0, 0) rotate(-18deg); }
  to { transform: translate3d(14px, -8px, 0) rotate(-14deg); }
}

.pagehead h1 {
  max-width: 980px;
  font-size: clamp(2rem, 3vw, 2.85rem);
  color: #fff;
}

.pagehead p {
  font-size: 18px;
  color: #d9e9eb;
}

.pagehead .eyebrow,
.pagehead .crumb,
.pagehead .crumb a {
  color: #f0d86f;
}

.pagehead .crumb {
  margin-bottom: 22px;
}

/* Dropdown labels remain real page links; the adjacent chevron controls the menu. */
.navdrop {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav .dropmain {
  padding-left: 0;
  padding-right: 0;
}

.nav .droptrigger {
  width: auto;
  padding: 38px 3px;
}

.nav .droptrigger .svgicon {
  width: 13px;
  height: 13px;
}

.navdrop .dropmenu {
  top: 82%;
}

.visionmission .eyebrow {
  font-size: 19px;
}

.copyrightbrand {
  font-weight: 700;
}

.newshero {
  margin: 0 0 36px;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--pale);
}

.newshero img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* Governance library */
.governancepage {
  padding-top: 36px;
}

.govtabs {
  position: sticky;
  top: 106px;
  z-index: 8;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(18, 98, 113, .08);
}

.govtabs button {
  padding: 8px 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--petrol);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.govtabs button:hover,
.govtabs button:focus-visible,
.govtabs button.active {
  color: #fff;
  background: var(--petrol);
}

.govtoolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 34px 0 18px;
}

.govtoolbar label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.govtoolbar select {
  width: 170px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--petrol);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.govresults {
  padding-top: 2px;
}

.govsection[hidden] {
  display: none;
}

.govsection {
  scroll-margin-top: 190px;
  padding: 34px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.govsection:nth-of-type(even) {
  background: var(--pale);
}

.govsectionhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.govsectionhead h2 {
  margin-bottom: 5px;
}

.yearbadge {
  flex: 0 0 auto;
  padding: 5px 14px;
  border: 1px solid #dfd194;
  border-radius: 999px;
  background: #fbf7e8;
  color: #76601a;
  font-size: 13px;
  font-weight: 700;
}

.govdocs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.govdoc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #d8e5e7;
  border-radius: 7px;
  background: #fff;
}

.govdoc > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.govdoc .svgicon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.govdoc h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.govdoc span {
  color: var(--muted);
  font-size: 12px;
}

.docaction {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #cbdadd;
  border-radius: 4px;
  background: #f5f8f8;
  color: #74868a;
  font-size: 12px;
  cursor: not-allowed;
}

.programnav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.programnav a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--pale);
}

.programnav a:last-child {
  text-align: left;
}

.programnav span,
.programnav strong {
  display: block;
}

.programnav span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.programnav strong {
  margin-top: 3px;
  font-size: 15px;
}

/* Homepage editorial changes: preserve the grid, deepen the visual field. */
.introcopy p {
  text-align: justify;
  text-align-last: right;
}

.homeaxes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(125deg, #103e47, #0b5966);
  color: #fff;
}

.homeaxes::before,
.homeaxes::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.homeaxes::before {
  inset: -45% auto auto -7%;
  width: 410px;
  height: 410px;
  border: 22px solid rgba(0, 151, 170, .18);
  border-right-color: rgba(211, 181, 47, .3);
  transform: rotate(-18deg);
}

.homeaxes::after {
  inset: auto 5% -190px auto;
  width: 360px;
  height: 300px;
  border: 16px solid rgba(255, 255, 255, .055);
  border-top-color: rgba(211, 181, 47, .2);
  transform: rotate(15deg);
}

.homeaxes h2,
.homeaxes h3 {
  color: #fff;
}

.homeaxes .eyebrow,
.homeaxes .goal > span {
  color: #f0d76b;
}

.homeaxes .goal {
  border-top-color: rgba(255, 255, 255, .25);
}

.homeaxes .goal p {
  color: #d6e6e8;
}

.herobottom > a .svgicon {
  width: 19px;
  height: 19px;
}

/* Two distinct, low-contrast logo-inspired fields on the About page. */
.aboutpage #who,
.aboutpage .systematic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #103f47;
  color: #fff;
}

.aboutpage #who::before,
.aboutpage .systematic::before,
.aboutpage #who::after,
.aboutpage .systematic::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.aboutpage #who::before {
  inset: -95px auto auto -70px;
  width: 390px;
  height: 290px;
  opacity: 1;
  background: none;
  border: 18px solid rgba(0, 151, 170, .16);
  border-right-color: rgba(211, 181, 47, .28);
  transform: rotate(-17deg);
}

.aboutpage #who::after {
  right: 8%;
  bottom: -170px;
  width: 330px;
  height: 270px;
  border: 14px solid rgba(255, 255, 255, .055);
  transform: rotate(13deg);
}

.aboutpage .systematic {
  background: linear-gradient(135deg, #0d5662, #103b43);
}

.aboutpage .systematic::before {
  inset: 0;
  opacity: 1;
  background: repeating-linear-gradient(52deg, transparent 0 72px, rgba(255,255,255,.045) 73px 76px, transparent 77px 145px);
  transform: none;
}

.aboutpage .systematic::after {
  left: -80px;
  bottom: -130px;
  width: 360px;
  height: 260px;
  border: 17px solid rgba(211, 181, 47, .18);
  border-left-color: rgba(0, 151, 170, .25);
  transform: rotate(21deg);
}

.aboutpage #who h2,
.aboutpage .systematic h2 {
  color: #fff;
}

.aboutpage #who p,
.aboutpage .systematic p,
.aboutpage .systematic li {
  color: #dcebed;
}

.aboutpage .systematic .eyebrow {
  color: #f0d76b;
}

.socials a {
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}

.socials a:hover {
  transform: translateY(-2px);
}

.socials .svgicon {
  stroke-width: 1.65;
}

@media (max-width: 1080px) {
  .navdrop {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .nav .dropmain {
    padding: 12px;
  }

  .nav .droptrigger {
    padding: 12px 14px;
  }

  .navdrop .dropmenu {
    grid-column: 1 / -1;
  }

  .govtabs {
    top: 85px;
  }
}

@media (max-width: 700px) {
  .pagehead {
    padding: 30px 0 38px;
  }

  .pagehead h1 {
    font-size: 1.85rem;
  }

  .pagehead p {
    font-size: 16px;
  }

  .govtabs {
    position: static;
  }

  .govtoolbar {
    justify-content: stretch;
    margin-top: 24px;
  }

  .govtoolbar select {
    flex: 1;
    width: auto;
  }

  .govsection {
    padding: 24px 18px;
  }

  .govsectionhead {
    flex-direction: column;
  }

  .govdocs {
    grid-template-columns: 1fr;
  }

  .govdoc {
    align-items: flex-start;
    flex-direction: column;
  }

  .programnav {
    grid-template-columns: 1fr;
  }

  .programnav a:last-child {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pagehead::before,
  .pagehead::after {
    animation: none;
  }
}

/* Bank accounts */
.bankspage .sectiontitle { margin-bottom: 34px; }
.bankspage .sectiontitle p { max-width: 620px; margin: 12px 0 0; color: var(--muted); }
.bankgrid { display: grid; gap: 22px; }
.bankgrid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bankgrid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(66.666% - 7px); margin: 22px 0 0 auto; }
.bankcard { display: flex; min-width: 0; min-height: 465px; flex-direction: column; overflow: hidden; border: 1px solid #d8e4e6; border-radius: 12px; background: #fff; box-shadow: 0 14px 38px rgba(16, 63, 71, .07); }
.banklogo { display: grid; height: 150px; flex: 0 0 150px; place-items: center; padding: 24px; border-bottom: 1px solid #e7eeee; background: #f8fbfa; }
.banklogo img { display: block; width: auto; max-width: 210px; height: auto; max-height: 88px; object-fit: contain; }
.bankcardbody { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.bankcard h3 { margin: 0 0 10px; color: var(--dark); font-size: 1.2rem; }
.accountbadge { align-self: flex-start; padding: 5px 12px; border: 1px solid #c9dcdf; border-radius: 999px; background: #edf4f5; color: #315f67; font-size: .82rem; font-weight: 700; }
.accountbadge.charity { border-color: #b8d9d5; background: #eaf5f2; color: #156c65; }
.accountbadge.zakat { border-color: #ead899; background: #fff8df; color: #8a6b00; }
.bankdivider { height: 1px; margin: 22px 0 4px; background: #e3ebec; }
.banknumber { padding-top: 17px; }
.banknumber > span { display: block; margin-bottom: 7px; color: #668087; font-size: .86rem; font-weight: 500; }
.banknumber > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; direction: rtl; }
.banknumber code { min-width: 0; direction: ltr; color: var(--dark); font-family: Arial, sans-serif; font-size: .97rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.copybank { display: grid; width: 28px; height: 28px; flex: 0 0 28px; padding: 0; place-items: center; border: 1px solid #c5d9dc; border-radius: 6px; background: #f8fbfa; color: var(--teal); cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .18s; }
.copybank:hover { border-color: var(--teal); background: #eaf4f5; transform: translateY(-1px); }
.copybank:focus-visible { outline: 3px solid rgba(211, 181, 47, .42); outline-offset: 2px; }
.copybank.is-copied { border-color: #2d8379; background: #2d8379; color: #fff; }
.copyglyph { font-family: Arial, sans-serif; font-size: .98rem; line-height: 1; }
.bankcopytoast { position: fixed; right: 50%; bottom: 28px; z-index: 10000; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid #4f858d; border-top: 3px solid var(--gold); border-radius: 9px; background: #103f47; color: #fff; box-shadow: 0 14px 40px rgba(5, 42, 49, .25); transform: translateX(50%); }
.bankcopytoast[hidden] { display: none; }
.bankcopytoast::before { content: '✓'; display: flex; width: 21px; height: 21px; align-items: center; justify-content: center; padding-bottom: 1px; border-radius: 50%; background: #e3c74b; color: #103f47; font-family: Arial, sans-serif; font-weight: 700; line-height: 1; box-sizing: border-box; }

@media (max-width: 1080px) {
  .bankgrid-three,
  .bankgrid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .bankgrid-three .bankcard:last-child { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; }
}

@media (max-width: 700px) {
  .bankgrid-three,
  .bankgrid-two { grid-template-columns: 1fr; }
  .bankgrid-three .bankcard:last-child { grid-column: auto; width: 100%; }
  .bankcard { min-height: 0; }
  .banklogo { height: 132px; flex-basis: 132px; }
  .bankcardbody { padding: 22px 18px; }
  .banknumber code { font-size: .9rem; }
  .bankcopytoast { right: 16px; bottom: 16px; left: 16px; justify-content: center; transform: none; }
}

/* Alexandria is the approved identity typeface. */
body,
button,
input,
select,
textarea {
  font-family: Alexandria, Arial, sans-serif;
}

/* Identity-led internal page header, without a framing box around the mark. */
.pagehead {
  background: linear-gradient(125deg, #0a4450 0%, #116371 67%, #0f7180 100%);
}

.pagehead::before {
  left: -36px;
  top: 50%;
  width: 430px;
  height: 330px;
  border: 0;
  background: url('/assets/supergraphic-tight.svg') center / contain no-repeat;
  opacity: .58;
  transform: translateY(-50%);
  animation: none;
}

.pagehead::after {
  display: none;
}

.copyright > span:first-child,
.copyrightbrand {
  font-size: 12px;
}

.legalpage > p:first-child {
  color: var(--ink);
  font-size: 19px;
}

.legalpage h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legalmeta {
  display: grid;
  gap: 6px;
  margin-top: 42px;
  padding: 22px 24px;
  border-right: 3px solid var(--gold);
  border-radius: 6px;
  background: var(--pale);
  color: var(--ink);
  font-size: 15px;
}

@media (max-width: 760px) {
  .pagehead::before {
    left: -70px;
    width: 260px;
    height: 210px;
    opacity: .34;
  }

  .copyright > span:first-child,
  .copyrightbrand {
    font-size: 11px;
  }

  .legalpage > p:first-child {
    font-size: 17px;
  }
}

/* Compact contact and survey content while preserving the internal-page hero. */
.pagehead .crumb,
.pagehead .crumb a {
  font-size: 12px;
  font-weight: 400;
}

.contactlayout > div > .eyebrow,
.contactlayout form > .eyebrow {
  font-size: 14px;
}

.contactlayout > div > h2 {
  font-size: 30px;
}

.contactintro {
  font-size: 17px;
  line-height: 1.9;
}

.contactdetails > p {
  font-size: 16px;
}

.mapdirections {
  font-size: 14px;
}

.contactrow strong {
  font-size: 15px;
}

.contactrow p {
  font-size: 15px;
}

.phone {
  font-size: 18px;
}

.contactlayout form h2 {
  font-size: 22px;
}

.contactlayout form > p {
  font-size: 14px;
  line-height: 1.9;
}

.contactlayout form label {
  font-size: 14px;
  font-weight: 500;
}

.contactlayout input,
.contactlayout textarea {
  font-size: 15px;
}

/* Branded select avoids inconsistent and unreadable native option popups. */
.contactselect {
  position: relative;
  margin-top: 16px;
}

.contactselectlabel {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.contactselectbutton {
  width: 100%;
  min-height: 49px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cbdade;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  text-align: right;
}

.contactselectbutton:hover {
  background: #fff;
  color: var(--ink);
  transform: none;
}

.contactselectbutton:focus-visible,
.contactselect.is-open .contactselectbutton {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.contactselectbutton .svgicon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  transition: transform .18s ease;
}

.contactselect.is-open .contactselectbutton .svgicon {
  transform: rotate(180deg);
}

.contactselectmenu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  padding: 6px;
  border: 1px solid #cbdade;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 59, 67, .14);
}

.contactselectmenu button {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  text-align: right;
}

.contactselectmenu button:hover,
.contactselectmenu button:focus-visible {
  background: #eef6f7;
  color: var(--petrol);
  outline: none;
  transform: none;
}

.contactselectmenu button[aria-selected="true"] {
  background: #e5f1f3;
  color: var(--petrol);
  font-weight: 600;
}

.contactlayout form .btn {
  font-size: 14px;
}

.surveyintro .eyebrow {
  font-size: 14px;
}

.surveyintro h2 {
  font-size: 30px;
}

.surveyintro .lead {
  font-size: 17px;
  line-height: 1.9;
}

.surveymeta strong {
  font-size: 17px;
}

.surveymeta span,
.surveynum {
  font-size: 13px;
}

.surveysection h2 {
  font-size: 24px;
}

.surveysection legend {
  font-size: 16px;
  font-weight: 600;
}

.choice {
  font-size: 14px !important;
  font-weight: 400 !important;
}

.openanswer {
  font-size: 15px !important;
  font-weight: 500 !important;
}

.surveyform textarea,
.surveyform textarea::placeholder {
  font-size: 15px;
}

.surveybutton,
#surveystatus {
  font-size: 14px;
}

@media (max-width: 760px) {
  .pagehead .crumb,
  .pagehead .crumb a {
    font-size: 12px;
  }

  .contactlayout > div > h2,
  .surveyintro h2 {
    font-size: 26px;
  }

  .contactintro,
  .surveyintro .lead {
    font-size: 16px;
  }

  .surveysection h2 {
    font-size: 22px;
  }

  .surveysection legend {
    font-size: 15px;
  }
}

/* Final header and inner-page typography refinements. */
.pagehead .crumb,
.pagehead .crumb a {
  font-size: 11px;
}

.pagehead .crumb {
  opacity: .84;
}

@media (min-width: 701px) {
  .pagehead p {
    font-size: 17px;
  }
}

.contactlayout .contactintro {
  color: var(--muted);
  text-align: justify;
  text-align-last: right;
}

.surveyidentity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.surveyidentity label {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.surveyidentity label > span {
  margin-right: 5px;
  color: #82969b;
  font-size: 13px;
  font-weight: 400;
}

.surveyidentity input {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
}

.surveyidentity input[dir="ltr"] {
  text-align: left;
}

.footgrid .externalactions .btn {
  font-size: 12px;
}

@media (min-width: 1081px) {
  .nav > nav > a,
  .nav .droptrigger {
    font-size: 14px;
  }

  .deskexternals .externalactions .btn {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .surveyidentity {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }
}

/* Final alignment and spacing review. */
.topbar .wrap > span,
.topbar .license {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.hero p,
.newscard .newscontent h3,
.newscard .newscontent p,
.program p {
  text-align: justify;
  text-align-last: right;
}

.herovalues {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
}

.herovalues b {
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #d9b13b;
  box-shadow: 0 0 0 3px rgba(217, 177, 59, .12);
}

.footgrid a {
  font-size: 14px;
  font-weight: 300;
}

.footgrid > div:first-child .socials {
  margin-top: 28px;
}

.legalmeta strong:last-child {
  font-size: 14px;
  font-weight: 300;
}

/* Available governance documents and their reading pages. */
.docaction:not([disabled]) {
  border-color: var(--petrol);
  background: var(--petrol);
  color: #fff;
  cursor: pointer;
  font-weight: 500;
}

.docaction:not([disabled]):hover {
  border-color: #084d5b;
  background: #084d5b;
}

.documentpage {
  width: min(1180px, 90%);
}

.documentintro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-right: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--pale);
}

.documentintro h2 {
  margin-bottom: 7px;
  font-size: 25px;
}

.documentintro p {
  font-size: 16px;
  line-height: 1.9;
}

.pdfshell {
  overflow: hidden;
  padding: 10px;
  border: 1px solid #d5e2e4;
  border-radius: 10px;
  background: #eaf1f2;
  box-shadow: 0 16px 45px rgba(16, 63, 71, .08);
}

.pdfshell iframe {
  display: block;
  width: 100%;
  height: min(820px, 78vh);
  min-height: 620px;
  border: 0;
  border-radius: 6px;
  background: #fff;
}

.documentactions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.documentactions .btn {
  width: 230px;
  min-width: 230px;
  min-height: 54px;
  gap: 9px;
}

.documentactions .outline:hover {
  background: var(--petrol);
  color: #fff;
}

.documentactions .svgicon {
  width: 18px;
  height: 18px;
}

/* Membership launch page. */
.membershippage {
  width: min(1080px, 90%);
}

.membershipvisual {
  width: min(900px, 100%);
  margin: 0 auto 42px;
  overflow: hidden;
  border: 1px solid #dce7e8;
  border-radius: 12px;
  background: #f8fbfa;
  box-shadow: none;
}

.membershipvisual img {
  width: 100%;
  height: auto;
}

.membershipcopy {
  max-width: 900px;
  margin-inline: auto;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-right: 4px solid var(--gold);
  border-radius: 9px;
  background: #fff;
}

.membershipcopy p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  text-align: justify;
  text-align-last: right;
}

.membershipcopy strong {
  color: var(--ink);
  font-weight: 600;
}

.membershipcta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 25px;
  padding: 7px 0;
  color: var(--petrol);
  font-weight: 700;
  line-height: 1.6;
  background: transparent;
}

.membershipcta:hover {
  color: var(--ochre);
  transform: translateX(-2px);
}

@media (max-width: 760px) {
  .topbar .wrap > span,
  .topbar .license {
    font-size: 13px;
  }

  .herovalues {
    gap: 7px;
    font-size: 11px;
  }

  .herovalues b {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
  }

  .documentintro {
    padding: 20px;
  }

  .pdfshell {
    padding: 5px;
  }

  .pdfshell iframe {
    height: 68vh;
    min-height: 500px;
  }

  .membershipvisual {
    margin-bottom: 28px;
  }

  .membershipcopy {
    padding: 24px 20px;
  }

  .documentactions .btn {
    width: min(230px, 100%);
    min-width: 0;
  }
}

/* Refined text scale for Alexandria: lighter, calmer long-form reading. */
body {
  font-size: 16px;
}

p {
  font-weight: 300;
}

.article p,
.article details p,
.aboutpage #story p,
.newsarticle > p,
.legalitem p {
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
}

.newscontent p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
}

.programdetail .lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 2;
}

.newsarticle > p,
.programdetail .lead {
  text-align: justify;
  text-align-last: right;
}

/* Copyright and legal links use one unified footer type style. */
.copyright > span:first-child,
.copyrightbrand,
.legalinks a {
  font-family: Alexandria, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}

/* Legal pages: structured sections instead of one uninterrupted text column. */
.legalpage {
  width: min(1080px, 90%);
}

.legalintro {
  padding: 26px 30px;
  border-right: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--pale);
}

.legalintro p {
  color: var(--ink);
  font-size: 17px;
  font-weight: 300;
  line-height: 2;
}

.legalgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.legalitem {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legalitem::before {
  content: '';
  position: absolute;
  top: 30px;
  right: 0;
  width: 4px;
  height: 24px;
  border-radius: 4px 0 0 4px;
  background: var(--teal);
}

.legalitem h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.legalmeta {
  grid-template-columns: 1fr auto;
  align-items: center;
}

@media (max-width: 760px) {
  .legalgrid {
    grid-template-columns: 1fr;
  }

  .legalintro {
    padding: 22px 20px;
  }

  .legalintro p,
  .programdetail .lead {
    font-size: 16px;
  }

  .legalmeta {
    grid-template-columns: 1fr;
  }

  .copyright > span:first-child,
  .copyrightbrand,
  .legalinks a {
    font-size: 11px;
  }
}
