/* VOICES site. The Centre 33 colours and font of the agreed mockup, in a lighter look
 * (9 November 2026): white cards with soft shadows on pale bands, and a picture in the top band.
 *
 * Contrast rule (spec 7): no white text on brand orange. Buttons and the orange band use
 * orange with navy text. Small orange text on white uses --orange-text. Teal is decoration.
 * Netlify sends a Content-Security-Policy with style-src 'self' and img-src 'self': all styles
 * are in this file, and this file holds no picture as a data address.
 * Every moving effect is in a block for readers who allow motion (the end of this file).
 */

@font-face {
  font-family: "Lexend Deca";
  src: url("../fonts/LexendDeca-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Deca";
  src: url("../fonts/LexendDeca-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Deca";
  src: url("../fonts/LexendDeca-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #001935;
  --orange: #EE7219;
  --orange-text: #B5530F;      /* small orange text on white: 4.99 to 1 */
  --teal: #4DBDC6;
  --charcoal: #4A4A49;
  --grey: #EDEDED;
  --grey-pale: #F4F6F9;        /* the pale band: a cool tint of the navy (dark orange text on it: 4.6 to 1) */
  --line: #E1E5EC;
  --teal-pale: #E3F4F6;
  --orange-pale: #FDEEE3;
  --wrap: 1120px;
  --side: 24px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 25, 53, .05), 0 6px 20px rgba(0, 25, 53, .07);
  --shadow-lift: 0 2px 4px rgba(0, 25, 53, .06), 0 14px 34px rgba(0, 25, 53, .14);
  --font: "Lexend Deca", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (max-width: 639px) {
  :root { --side: 18px; }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  display: flex;                /* a short page (the 404 page, an empty list) keeps the footer at the bottom */
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }

p { margin: 0 0 1em; }

a { color: var(--orange-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--orange-text); outline-offset: 3px; }
.preview-banner :focus-visible,
.site-header :focus-visible,
.top-band :focus-visible,
.page-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--orange); }

main:focus { outline: none; }

figure { margin: 1.5em 0; }
figure img { display: block; }
figcaption { margin-top: .5em; font-size: .875rem; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--side));
  margin: 0 auto;
  padding: 0 var(--side);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 50;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; outline: 3px solid var(--navy); outline-offset: -6px; }

.preview-banner {
  padding: 6px 16px;
  background: var(--orange);
  color: var(--navy);
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
}

/* Header and menu. On a wide screen the header stays at the top of the window. On a narrow
   screen it does not: the open menu has no script that closes it after a tap. */

.site-header { position: relative; z-index: 40; background: var(--navy); color: #fff; }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.wordmark {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}
.wordmark:hover { color: #fff; }
.wordmark b { color: var(--orange); }

.menu-row, .menu-fold ul { list-style: none; margin: 0; padding: 0; }

.menu-row { display: none; align-items: center; gap: 30px; }
.menu-row a {
  position: relative;
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.menu-row a:hover { color: #fff; }
.menu-row a::after {            /* an orange line that grows under the link */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
.menu-row a:hover::after, .menu-row a:focus-visible::after { transform: scaleX(1); }

/* The link to the "Get involved" band is a button in the menu row */
.menu-row a[href$="#get-involved"] {
  padding: 7px 18px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  color: #fff;
}
.menu-row a[href$="#get-involved"]::after { content: none; }
.menu-row a[href$="#get-involved"]:hover { background: var(--orange); color: var(--navy); }

.menu-fold summary {
  display: block;
  min-height: 44px;
  padding: 9px 20px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.menu-fold summary::-webkit-details-marker { display: none; }
.menu-fold[open] summary { background: #fff; border-color: #fff; color: var(--navy); }
.menu-fold ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 4px var(--side) 16px;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 18px 30px rgba(0, 25, 53, .35);
}
.menu-fold li a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
}
.menu-fold li a:hover { color: #fff; text-decoration: underline; }

/* Six menu items need about 940 pixels in one row. A narrower screen gets the folding menu. */
@media (min-width: 940px) {
  .site-header { position: sticky; top: 0; box-shadow: 0 10px 30px rgba(0, 25, 53, .16); }
  .menu-row { display: flex; }
  .menu-fold { display: none; }
  [id] { scroll-margin-top: 96px; }     /* a link to a section stops below the header */
}

/* Top band: navy with a soft light behind the picture. The text is on the left. The picture
   (points that connect) is on the right, and only on a wide screen. */

.top-band {
  position: relative;
  overflow: hidden;
  padding: 48px 0 44px;
  background: var(--navy);
  background-image: radial-gradient(38rem 24rem at 82% 46%, rgba(77, 189, 198, .18), transparent 70%);
  color: #fff;
}

.top-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 40px; }
.top-art { display: none; }
.top-art svg { display: block; width: 100%; height: auto; }
.top-art .art-field { opacity: .2; }
.top-art .art-lens { opacity: .85; }
.top-art .art-halo { opacity: .28; }

@media (min-width: 960px) {
  .top-band { padding: 60px 0 52px; }
  .top-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; }
  .top-art { display: block; }
}

.kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
}
.kicker::before {               /* a short line before the words */
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--orange);
}

.top-band h1 {
  max-width: 15em;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(1.95rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.top-lead {
  max-width: 33em;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 300;
  line-height: 1.55;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

.button {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(238, 114, 25, .3);
}
.button.primary:hover { background: #fff; border-color: #fff; color: var(--navy); }
.button.secondary { border-color: rgba(255, 255, 255, .6); color: #fff; }
.button.secondary:hover { background: #fff; border-color: #fff; color: var(--navy); }

@media (max-width: 639px) {
  .button { padding: 11px 18px; }
}

.funders {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  list-style: none;
  color: rgba(255, 255, 255, .88);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.funders li { display: flex; align-items: center; gap: 12px; }
.funders img { display: block; width: auto; height: 30px; }

/* Sections. Every other section has a pale background. :where() keeps the rule weak,
   so that a class such as band-orange can set its own background. */

.section { padding: 84px 0; }
:where(main > .section:nth-child(odd)) { background: var(--grey-pale); }

.section h2 {
  margin: 0 0 26px;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}
.section h2::before {           /* the orange bar of the briefing, above the title */
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: var(--orange);
}

.text { max-width: 44rem; }
.text p { margin-bottom: 1em; }
.cards + .text { max-width: none; }   /* a closing line under a row of cards spans the row */
.section > .wrap > :last-child, .text > :last-child { margin-bottom: 0; }

/* The first words under a title are larger */
.section h2 + .text > p:first-child, .team-lead {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.55;
}

/* A wide screen shows the title on the left and the first text on the right. Everything
   else in the section has the full width. */
@media (min-width: 900px) {
  .section > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 56px;
    align-items: start;
  }
  .section > .wrap > * { grid-column: 1 / -1; }
  .section > .wrap > h2 { grid-column: 1; }
  .section > .wrap > h2 + .text, .section > .wrap > h2 + .team-lead { grid-column: 2; padding-top: 21px; }
}

@media (max-width: 639px) {
  .section { padding: 52px 0; }
  .section h2 + .text > p:first-child, .team-lead { font-size: 1.1rem; }
}

/* Cards: white, with a soft shadow */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 22px 0 32px;
}
.cards:last-child { margin-bottom: 0; }
.cards-n1 { grid-template-columns: minmax(0, 1fr); }
.cards-n2, .cards-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 759px) {
  .cards, .cards-n2, .cards-n4 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .97rem;
}
.card::before {                 /* a short teal bar at the top of a card */
  content: "";
  flex: none;
  width: 36px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--teal);
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.3; }
.card p { margin: 0 0 .75em; }
.card > :last-child { margin-bottom: 0; }

/* A step: a card with a colour and a number. The number is in a circle of that colour,
   and the closing line is a band at the bottom of the card. */
.card.plain::before, .card.orange::before, .card.teal::before { content: none; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 0 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}
.card.orange .step-num { background: var(--orange); color: var(--navy); }
.card.teal .step-num { background: var(--teal); color: var(--navy); }

.closing { margin-top: 12px; color: var(--navy); font-weight: 700; }
.card .closing {
  margin: auto -26px -26px;
  padding: 14px 26px;
  background: var(--grey-pale);
  border-top: 1px solid var(--line);
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  font-size: .92rem;
  line-height: 1.45;
}
.card.orange .closing { background: var(--orange-pale); border-top-color: #F7D3B8; }
.card.teal .closing { background: var(--teal-pale); border-top-color: #BFE6EA; }

/* Three steps in a row: each card shares the rows of the grid (title, text, band), so the
   bands at the bottom of the three cards have the same height. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 760px) {
    .cards-n3 > .card:has(> .closing:nth-child(3):last-child) {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    .cards-n3 > .card:has(> .closing:nth-child(3):last-child) > .closing { margin-top: 0; }
  }
}

@media (min-width: 760px) and (max-width: 959px) {       /* three narrow cards in a row: less padding */
  .card { padding: 22px 18px 20px; }
  .card .closing { margin: auto -18px -20px; padding: 12px 18px; }
}

/* Dark orange links fall below 4.5 to 1 on the pale band of a card. Use navy there. */
.card a, .prompt a { color: var(--navy); }

/* Diagram: one shared method, two outputs */

.diagram {
  display: grid;
  grid-template-columns: 1fr 15rem;
  align-items: center;
  gap: 20px 28px;
  margin: 24px 0;
}

.diagram-env {
  padding: 16px;
  background: #F3FAFB;
  border: 2px dashed var(--teal);
  border-radius: var(--radius);
}
.diagram-label {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.diagram-flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  align-items: stretch;
  gap: 6px;
}
.diagram-arrow { width: 28px; height: 28px; align-self: center; }

.node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #D9DDE3;
  border-radius: 10px;
  color: var(--charcoal);
  font-size: .85rem;
  text-align: center;
}
.node strong { display: block; color: var(--navy); font-size: .95rem; }
.node-detail { display: block; margin-top: 2px; }
.node.teal { border-color: var(--teal); }
.node.orange { background: var(--orange-pale); border-color: var(--orange); }
.node-num {
  display: inline-block;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 6px;
  background: var(--navy);
  border-radius: 50%;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.7rem;
}

.diagram-out { display: flex; flex-direction: column; gap: 6px; }
.diagram-link {
  margin: 0;
  color: var(--orange-text);
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}
.diagram-link .diagram-arrow { display: inline-block; vertical-align: middle; width: 22px; height: 22px; }

@media (max-width: 859px) {
  .diagram { grid-template-columns: 1fr; }
  .diagram-flow { grid-template-columns: 1fr; }
  .diagram-flow .diagram-arrow, .diagram-link .diagram-arrow { transform: rotate(90deg); justify-self: center; }
  .diagram-link .diagram-arrow { display: block; margin: 4px auto 0; }
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.stat {
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-value { display: block; color: var(--orange-text); font-size: 2.4rem; line-height: 1.1; }
.stat-label { font-size: .95rem; }
.stat-note { display: block; margin-top: 6px; font-size: .85rem; }

@media (max-width: 639px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Timeline */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.step { padding-top: 12px; border-top: 5px solid #C9CED6; font-size: .95rem; }
.step.now { border-top-color: var(--orange); }
.step-when { display: block; color: var(--navy); }
.step-text { display: block; }
.step-status {
  display: inline-block;
  margin-top: 8px;
  padding: 0 10px;
  background: var(--orange);
  border-radius: 999px;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 639px) {
  .timeline { grid-template-columns: 1fr; gap: 16px; }
}

/* Note */

.note {
  max-width: 44rem;
  margin: 22px 0;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy);
  border-radius: 4px 12px 12px 4px;
}
.note p { margin: 0; }

/* Vision: a navy panel in the look of the top band. On a wide screen the title is on the
   left and the text on the right, as in a section. */

.vision {
  margin: 8px 0 0;
  padding: 44px 48px;
  background: var(--navy);
  background-image: radial-gradient(30rem 20rem at 92% 10%, rgba(77, 189, 198, .2), transparent 70%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  color: rgba(255, 255, 255, .92);
  font-size: 1.15rem;
  font-weight: 300;
}
.vision h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.vision h3::before {            /* the orange bar of a section title */
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: var(--orange);
}
.vision p { margin: 18px 0 0; }
.vision a { color: inherit; }

@media (min-width: 900px) {
  .vision {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 56px;
    align-items: center;
  }
  .vision h3 { grid-column: 1; }
  .vision p { grid-column: 2; margin-top: 0; }
}

@media (max-width: 639px) {
  .vision { padding: 30px 24px; font-size: 1.05rem; }
}

/* Prompts */

.prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.prompt {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.prompt h3 { margin: 0 0 8px; font-size: 1.08rem; }
.prompt p { margin: 0; font-size: .97rem; }

@media (max-width: 639px) {
  .prompts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* Team: the leads, the wider team with the group card, and the partner strip. */

.team-lead { max-width: 44rem; margin: 0 0 1em; }

.photo { display: block; border-radius: 50%; object-fit: cover; background: var(--grey); }

.leads {
  --gap: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin: 22px 0 36px;
  padding: 0;
  list-style: none;
}
.leads-n1 { --n: 1; }
.leads-n2 { --n: 2; }
.leads-n3 { --n: 3; }
.leads-n4 { --n: 4; }

/* The role in small capitals is dark orange: the card is white (4.99 to 1). */
.lead-card {
  padding: 30px 18px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.lead-card .photo {
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--orange);     /* a white ring, then an orange ring */
}
.lead-card .role {
  margin: 0 0 4px;
  color: var(--orange-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}
.lead-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.lead-card .line { margin: 0; font-size: .9rem; line-height: 1.5; }

/* A phone shows a lead as a row: the photo on the left, the words on the right. */
@media (max-width: 639px) {
  .lead-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 18px;
    align-content: center;
    padding: 20px 18px;
    text-align: left;
  }
  .lead-card .photo { grid-row: 1 / span 5; align-self: center; width: 80px; height: 80px; margin: 2px; }
  .lead-card > :not(.photo) { grid-column: 2; }
  .lead-card .awaiting { justify-self: start; }
}

/* A row of two, three or four leads: the cards keep the width of a row of four. */
@media (min-width: 640px) {
  .leads-n2, .leads-n3, .leads-n4 { grid-template-columns: repeat(2, 1fr); }
  .leads-n1 { max-width: 320px; }
}
@media (min-width: 960px) {
  .leads {
    grid-template-columns: repeat(var(--n), 1fr);
    max-width: calc((100% + var(--gap)) * var(--n) / 4 - var(--gap));
  }
}

.wider {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .wider { grid-template-columns: repeat(2, 1fr); }
}

.wider-card, .group-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.4;
}
.wider-card .photo, .group-icon { flex: none; width: 52px; height: 52px; }
.wider .name { margin: 0; color: var(--navy); font-weight: 700; }
.wider .role { margin: 0; }

.group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: 50%;
  color: #fff;
}
.group-icon svg { width: 26px; height: 26px; }

/* A wide screen shows the wider team as a row of four, under the four leads: the photo is
   above the name, with no box. */
@media (min-width: 960px) {
  .wider { grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
  .wider-card, .group-card {
    flex-direction: column;
    gap: 12px;
    padding: 4px 8px;
    background: none;
    border: 0;
    border-radius: 0;
    text-align: center;
  }
  .wider-card .photo, .group-icon { width: 76px; height: 76px; }
  /* The group card is the last card. When it is alone on a row, it is in the middle of the row. */
  .wider .group-card:nth-child(4n + 1) { grid-column: 1 / -1; }
  .group-icon svg { width: 36px; height: 36px; }
  .wider .name { margin-bottom: 2px; font-size: .95rem; }
}

/* Profiles. A person with a profile has a button on the name. The ::after of the button covers
   the whole card, so a click anywhere on the card opens the pop-up. The pop-up is the `popover`
   attribute of HTML: the browser opens and closes it, and the Escape key or a click outside it
   closes it. The site has no JavaScript.
   Do not put a `display` line on `.profile`: the browser hides a closed pop-up with `display: none`. */
.has-profile { position: relative; }
.profile-open {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
}
.profile-open::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.lead-card .profile-open::after { border-radius: var(--radius); }
.profile-open:focus-visible { outline: none; }
.profile-open:focus-visible::after { outline: 3px solid var(--orange-text); outline-offset: 3px; }
.wider .profile-open {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.profile-hint { margin: 12px 0 0; color: var(--orange-text); font-size: .8rem; font-weight: 700; }
/* On a row of cards, each hint is at the bottom of its card. */
@media (min-width: 640px) {
  .lead-card.has-profile { display: flex; flex-direction: column; align-items: center; }
  .lead-card .profile-hint { margin-top: auto; padding-top: 12px; }
}
.profile-hint::after { content: " \2192"; }

.profile {
  width: min(38rem, calc(100% - 32px));
  max-height: min(44rem, calc(100% - 48px));
  margin: auto;
  padding: 32px 32px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 25, 53, .45);
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}
/* The rest of the page behind an open profile: a navy veil, slightly out of focus. */
.profile::backdrop {
  background: rgba(0, 25, 53, .68);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.profile .profile-head .photo {
  flex: none;
  width: 96px;
  height: 96px;
  margin: 6px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--orange);
}
.profile .role {
  margin: 0 0 4px;
  color: var(--orange-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}
.profile-name { margin: 0; color: var(--navy); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.profile-text p { margin: 0 0 .9em; }
.profile-text p:last-child { margin-bottom: 0; }
/* The Close button stays in view when a long profile scrolls on a small screen.
   The white ring keeps the text behind it away from the button. */
.profile-close {
  display: block;
  position: sticky;
  bottom: 0;
  box-shadow: 0 0 0 10px #fff;
  margin: 22px 0 0 auto;
  padding: 9px 24px;
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.profile-close:hover { background: #fff; color: var(--navy); }
@media (max-width: 479px) {
  .profile { padding: 24px 20px 22px; }
  .profile-head { gap: 16px; }
  .profile .profile-head .photo { width: 72px; height: 72px; }
  .profile-name { font-size: 1.25rem; }
}

/* A card with a profile changes under the pointer. */
@supports selector(:popover-open) {
  @media (hover: hover) {
    .lead-card.has-profile:hover { border-color: var(--orange); box-shadow: var(--shadow-lift); }
    .lead-card.has-profile:hover .profile-hint { text-decoration: underline; }
    .wider-card.has-profile:hover .name { color: var(--orange-text); }
    .wider-card.has-profile:hover .photo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange); }
  }
}

/* An old browser does not know the `popover` attribute. It would show each profile in the page,
   always, and the buttons would do nothing. Such a browser gets the cards without the profiles. */
@supports not selector(:popover-open) {
  .profile, .profile-hint { display: none; }
  .profile-open { cursor: auto; }
  .profile-open::after { content: none; }
  .wider .profile-open { text-decoration: none; }
}

/* A person or a post that a preview shows before it is public */
.lead-card.pending, .wider-card.pending { outline: 2px dashed var(--orange-text); outline-offset: -2px; }
.awaiting, .draft {
  display: inline-block;
  margin: 8px 0 0;
  padding: 0 10px;
  background: var(--orange);
  border-radius: 999px;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.6;
  text-transform: uppercase;
}
.draft { margin: 0; }

/* The logos sit on white tiles: blue-smile.png has an opaque near-white background */
.partners { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.partners h3 {
  margin: 0 0 16px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.partners ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.partners li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}
.partners img { display: block; width: auto; max-width: 100%; height: 40px; object-fit: contain; }

/* Latest updates */

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 4px 0 26px;
  padding: 0;
  list-style: none;
}
.post-card {
  position: relative;           /* for the link that covers the card */
  height: 100%;
  padding: 26px 28px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .97rem;
}
.post-card:hover { box-shadow: var(--shadow-lift); }
.post-meta {
  margin: 0 0 10px;
  color: var(--orange-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.post-card h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.25; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }   /* the whole card is the link */
.post-card:hover h3 a { color: var(--orange-text); text-decoration: underline; }
.post-card p:last-child { margin-bottom: 0; }

.more { margin: 0; font-weight: 700; }
.more a {
  display: inline-block;
  padding: 9px 20px;
  border: 2px solid var(--navy);
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
}
.more a:hover { background: var(--navy); color: #fff; }
.more a::after { content: " \2192"; content: " \2192" / ""; }

@media (max-width: 899px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .posts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
  .posts li:only-child { grid-column: span 2; }                 /* one post only: a wider card */
  .updates > .wrap > .more { grid-area: 1 / 2; justify-self: end; align-self: end; margin-bottom: 26px; }
}

/* Get involved: an orange band with navy text (5.93 to 1). White text on orange fails the
   contrast rule. The navy focus outline replaces the orange one, which would not show.
   The questions are on white cards. */

.band-orange {
  background: var(--orange);
  background-image: radial-gradient(48rem 26rem at 100% 0, rgba(255, 255, 255, .13), transparent 65%);
  color: var(--navy);
}
.band-orange h2::before { background: var(--navy); }
.band-orange a { color: var(--navy); }
.band-orange a:hover { text-decoration-thickness: 2px; }
.band-orange :focus-visible { outline-color: var(--navy); }

.band-orange .prompt { border-color: transparent; box-shadow: 0 10px 28px rgba(110, 45, 0, .2); color: var(--charcoal); }

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 32px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 2px solid rgba(0, 25, 53, .22);
  list-style: none;
}
.contact-role {
  display: block;
  margin-bottom: 2px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-name { display: block; font-weight: 700; }
.contacts a { display: block; }

/* The updates list, the 404 page and other bands: a short navy band under the menu (spec 6.3) */

.page-band {
  padding: 52px 0 46px;
  background: var(--navy);
  background-image: radial-gradient(38rem 18rem at 84% 55%, rgba(77, 189, 198, .18), transparent 70%);
  color: #fff;
}
.page-band h1 { margin: 0 0 10px; color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.7rem); letter-spacing: -.02em; }
.page-band p { max-width: 34em; margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.15rem; font-weight: 300; }
.page-band .actions { margin: 28px 0 0; }

.update-list { padding: 24px 0 72px; }
.rows { margin: 0 0 28px; padding: 0; list-style: none; }
.row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 4px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.row-meta { margin: 0; font-size: .9rem; }
.row-meta time, .row-meta .post-type { display: block; }
.row-meta .post-type {
  color: var(--orange-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.row-meta .draft { margin-top: 6px; }
.row-text h2 { margin: 0 0 4px; font-size: 1.4rem; letter-spacing: -.01em; }
.row-text h2 a { color: var(--navy); text-decoration: none; }
.row-text h2 a:hover { color: var(--orange-text); text-decoration: underline; }
.row-by { margin: 0 0 8px; font-size: .9rem; }
.row-text p:last-child { margin-bottom: 0; }
.no-posts { margin: 24px 0; font-size: 1.1rem; }
.feed { margin: 0; font-size: .9rem; }

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

/* A post or another page: one column of text in the middle of the page */

.article { max-width: 46rem; margin: 0 auto; padding: 48px 0 76px; overflow-wrap: break-word; }
/* The small line above the title of a page. It is dark orange: the page is white (4.99 to 1). */
.page-kicker {
  margin: 0 0 12px;
  color: var(--orange-text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; }
.crumb, .back { margin: 0 0 22px; font-size: .95rem; font-weight: 700; }
.crumb a, .back a { text-decoration: none; }
.crumb a:hover, .back a:hover { text-decoration: underline; }
.crumb a::before { content: "\2190  "; content: "\2190  " / ""; }
.back { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.post-line { margin: 0 0 22px; font-size: .9rem; }
.post-summary {
  margin: 0 0 34px;
  padding: 2px 0 2px 20px;
  border-left: 5px solid var(--orange);
  border-radius: 3px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
}

.prose h2 { margin: 1.8em 0 .5em; font-size: 1.5rem; letter-spacing: -.01em; }
.prose h3 { margin: 1.5em 0 .4em; font-size: 1.18rem; }
.prose h4 { margin: 1.3em 0 .4em; color: var(--navy); font-size: 1rem; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--orange-text); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  background: var(--teal-pale);
  border-left: 5px solid var(--teal);
  border-radius: 4px 12px 12px 4px;
  color: var(--navy);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: 12px; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.prose table {
  display: block;               /* a wide table scrolls on its own and does not widen the page */
  max-width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .95rem;
}
.prose th, .prose td { padding: 9px 13px; border: 1px solid var(--line); text-align: left; }
/* Python-Markdown writes the column alignment as an align attribute (a style attribute is blocked) */
.prose th[align="right"], .prose td[align="right"] { text-align: right; }
.prose th[align="center"], .prose td[align="center"] { text-align: center; }
.prose th { background: var(--grey-pale); color: var(--navy); }
.prose code { padding: 0 .25em; background: var(--grey); border-radius: 4px; font-size: .9em; }
.prose pre { margin: 1.5em 0; padding: 14px 18px; overflow-x: auto; background: var(--grey-pale); border: 1px solid var(--line); border-radius: 12px; }
.prose pre code { padding: 0; background: none; }

/* The holding page: the word mark and one line, on navy */

.holding {
  background: var(--navy);
  background-image: radial-gradient(40rem 26rem at 80% 30%, rgba(77, 189, 198, .18), transparent 70%);
  color: #fff;
}
.holding main { display: flex; align-items: center; }
.holding .wrap { width: 100%; padding-top: 48px; padding-bottom: 48px; }
.holding .wordmark { margin: 0 0 12px; font-size: clamp(2.6rem, 9vw, 4.5rem); line-height: 1.1; }
.holding p { margin: 0; color: rgba(255, 255, 255, .92); font-size: 1.25rem; font-weight: 300; }

/* Footer */

.site-footer {
  padding: 44px 0 36px;
  background: var(--navy);
  color: rgba(255, 255, 255, .84);
  font-size: .875rem;
}
.site-footer p { max-width: 60rem; margin: 0 0 8px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }

/* The programme logos at the bottom (white files on the navy footer) */
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 44px;
  margin: 0 0 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  list-style: none;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-logos li { display: flex; align-items: center; gap: 12px; }
.footer-logos img { display: block; width: auto; height: 32px; }
.footer-logos .logo-wellcome { height: 56px; }     /* a square mark: larger, so that it matches the wide Social Finance logo */

/* Motion. A reader who asks the device for less motion gets none of these effects:
   the page then changes at once, and the dots of the picture do not grow. */

@keyframes point-in {
  from { transform: scale(.2); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; }
}
@keyframes profile-in {
  from { transform: translateY(14px) scale(.97); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  a, .button, .menu-fold summary { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
  .menu-row a::after { transition: transform .2s ease; }
  .post-card { transition: transform .2s ease, box-shadow .2s ease; }
  .post-card:hover { transform: translateY(-3px); }

  /* The lens shows first. Then the dots inside it grow once, from left to right. */
  .top-art .art-lens, .top-art .art-halo { animation: fade-in .8s ease both; }
  .top-art .art-seen circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: point-in .7s cubic-bezier(.2, .8, .2, 1) .2s both;
  }
  .top-art .art-seen circle:nth-child(n + 4) { animation-delay: .3s; }
  .top-art .art-seen circle:nth-child(n + 9) { animation-delay: .4s; }
  .top-art .art-seen circle:nth-child(n + 16) { animation-delay: .5s; }
  .top-art .art-seen circle:nth-child(n + 23) { animation-delay: .6s; }
  .top-art .art-seen circle:nth-child(n + 28) { animation-delay: .7s; }

  /* A card with a profile rises under the pointer, and its photo grows. The pop-up rises into place. */
  .has-profile, .has-profile .photo { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .wider .profile-open { transition: color .15s ease; }
  @supports selector(:popover-open) {
    @media (hover: hover) {
      .lead-card.has-profile:hover { transform: translateY(-4px); }
      .has-profile:hover .photo { transform: scale(1.06); }
    }
  }
  .profile:popover-open { animation: profile-in .28s cubic-bezier(.2, .8, .2, 1) both; }
  .profile:popover-open::backdrop { animation: fade-in .28s ease both; }
}
