/* Association Yellow — clear grid, five activity colours, one shape each. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-v2.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Provisional brand yellow: replace with Yellow’s exact value once supplied. */
  --yellow: #ffd60a;
  --lilac: #cdb9ff;
  --blue: #2a56d6;
  --lime: #d7ee6e;
  --orange: #f58a5c;

  --ink: #17181a;
  --ink-2: #4a4945;
  --bg: #ffffff;
  --bg-soft: #f5f4f0;
  --line: #dedbd3;
  --line-strong: #bdb9ae;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 1px 2px rgb(23 24 26 / 0.06), 0 14px 30px -18px rgb(23 24 26 / 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --pad: clamp(16px, 4.5vw, 40px);
  --header-h: 64px;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--line-strong) var(--bg-soft);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  caret-color: var(--ink);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2.5px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.i {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, box-shadow 0.25s var(--ease-out);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary .i:first-child {
  color: var(--yellow);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -12px rgb(23 24 26 / 0.55);
  }

  .btn--ghost:hover {
    background: var(--bg-soft);
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 650;
}

@media (max-width: 420px) {
  .btn:not(.btn--small) {
    gap: 8px;
    padding: 0 18px;
    font-size: 1rem;
  }
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: auto;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.wordmark svg {
  width: 28px;
  height: 28px;
  fill: var(--yellow);
}

.nav {
  display: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink-2);
  font-size: 0.9875rem;
  font-weight: 560;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
}

.menu-toggle .i {
  width: 20px;
  height: 20px;
}

.menu-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle[aria-expanded="false"] .when-open,
.menu-toggle[aria-expanded="true"] .when-closed {
  display: none;
}

.menu-panel {
  position: absolute;
  inset: 100% 0 auto;
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}

html.menu-open {
  overflow: hidden;
}

.menu-panel ul {
  list-style: none;
  padding-block: 8px 20px;
}

.menu-panel li + li {
  border-top: 1px solid var(--line);
}

.menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-size: 1.1875rem;
  font-weight: 650;
  text-decoration: none;
}

.menu-panel a .i {
  color: var(--ink-2);
}

.menu-contact {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-2);
}

.menu-panel .menu-contact a {
  display: inline-block;
  min-height: 0;
  padding-block: 10px;
  margin-block: -10px;
  color: var(--ink);
  font-size: inherit;
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(28px, 6vw, 84px) clamp(36px, 6vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

/* Inline links inside running text get a 44 px hit area without changing the line. */
.tap {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}

.hero h1 {
  font-size: clamp(2.25rem, 8.4vw, 4.25rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.032em;
}

.hl {
  white-space: nowrap;
  padding: 0 0.1em;
  border-radius: 0.16em;
  background: var(--yellow);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero .lede {
  max-width: 36rem;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 2.3vw, 1.3125rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 26px;
}

.hero-actions .btn--primary {
  flex: 1 1 100%;
}

.assure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.9875rem;
  line-height: 1.45;
}

.assure .i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* Activity index: a compact labelled row on phones, the five-shape cluster on desktop. */

.act-index ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}

.idx {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 680;
  text-decoration: none;
}

.idx-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}

.idx-mark svg.shape {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  transition: transform 0.4s var(--ease-out);
}

.idx-mark .i {
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
}

/* The shapes animate (and so paint as positioned layers); keep icon and label above them. */
.idx-mark .i,
.idx-label {
  position: relative;
  z-index: 1;
}

.idx--dark .idx-mark .i {
  color: #fff;
}

.idx:hover .idx-label {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

@media (hover: hover) {
  .idx:hover svg.shape {
    transform: scale(1.06) rotate(-4deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .idx-mark svg.shape {
    animation: settle 1.1s var(--ease-out) both;
  }

  .act-index li:nth-child(2) svg.shape { animation-delay: 70ms; }
  .act-index li:nth-child(3) svg.shape { animation-delay: 140ms; }
  .act-index li:nth-child(4) svg.shape { animation-delay: 210ms; }
  .act-index li:nth-child(5) svg.shape { animation-delay: 280ms; }

  @keyframes settle {
    from {
      transform: scale(0.82) rotate(-14deg);
    }
  }
}

.f-yellow { fill: var(--yellow); }
.f-lilac { fill: var(--lilac); }
.f-blue { fill: var(--blue); }
.f-lime { fill: var(--lime); }
.f-orange { fill: var(--orange); }

/* ---------- Key facts ---------- */

.facts {
  list-style: none;
  display: grid;
  margin-top: clamp(36px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.fact > div {
  display: grid;
  gap: 4px;
}

.fact-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.fact-mark svg.shape {
  grid-area: 1 / 1;
  width: 44px;
  height: 44px;
}

.fact-mark .i {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
}

.fact strong {
  font-size: 1.0625rem;
  font-weight: 720;
}

.fact p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.45;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.langs span {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.9375rem;
}

/* Arabic and Ge’ez scripts fall back to system faces that run small. */
:lang(ar),
:lang(am) {
  font-size: 1.12em;
}

.langs span:lang(ar),
.langs span:lang(am) {
  font-size: 1.0625rem;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 44rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section h2 {
  font-size: clamp(1.8rem, 5.4vw, 2.75rem);
}

.section-head p {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
}

/* ---------- Activities ---------- */

.cards {
  list-style: none;
  display: grid;
  gap: 16px;
}

.card {
  scroll-margin-top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  color: var(--ink);
}

.card--yellow { background: var(--yellow); }
.card--lilac { background: var(--lilac); }
.card--blue { background: var(--blue); color: #fff; }
.card--lime { background: var(--lime); }
.card--orange { background: var(--orange); }

.sticker {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
}

.sticker svg.shape {
  grid-area: 1 / 1;
  width: 64px;
  height: 64px;
  fill: #fff;
}

.sticker .i {
  grid-area: 1 / 1;
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.card h3 {
  font-size: 1.4375rem;
}

.card p {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgb(23 24 26 / 0.18);
  font-size: 0.9875rem;
}

.card--blue dl {
  border-top-color: rgb(255 255 255 / 0.35);
}

.card dt {
  font-weight: 720;
}

/* ---------- Joining ---------- */

.split {
  display: grid;
  gap: 32px;
}

.split > div > p {
  margin-top: 14px;
  color: var(--ink-2);
}

.ticks {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.ticks li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ticks .i {
  width: 26px;
  height: 26px;
}

.subgroups {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.subgroups h3 {
  font-size: 1.0625rem;
  font-weight: 720;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 12px;
}

.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.9375rem;
  font-weight: 600;
}

.subgroups p {
  color: var(--ink-2);
  font-size: 0.9875rem;
}

.join-card {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}

.join-card h3 {
  font-size: 1.5rem;
}

.steps {
  list-style: none;
  display: grid;
  gap: 18px;
}

.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 800;
}

.steps p {
  padding-top: 6px;
}

.join-card .btn {
  width: 100%;
}

.join-note {
  color: var(--ink-2);
  font-size: 0.9875rem;
  text-align: center;
}

.qr-desk {
  display: none;
}

/* ---------- Who we are ---------- */

.about {
  display: grid;
  gap: 32px;
}

.about-intro {
  display: grid;
  gap: 22px;
  align-content: start;
}

.person {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
}

.avatar svg.shape {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.avatar span {
  grid-area: 1 / 1;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.avatar img {
  grid-area: 1 / 1;
  width: 80%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.person p {
  color: var(--ink-2);
  font-size: 1rem;
}

.person strong {
  display: block;
  color: var(--ink);
  font-size: 1.1875rem;
}

.about-lead {
  max-width: 38rem;
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.5;
}

.about-text {
  display: grid;
  gap: 24px;
  align-content: start;
}

.track h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.track ul {
  list-style: none;
  display: grid;
  border-top: 1px solid var(--line);
}

.track li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.committee {
  display: grid;
  gap: 22px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.committee-head {
  display: grid;
  gap: 8px;
}

.committee-head h3 {
  font-size: clamp(1.4rem, 3.6vw, 1.75rem);
}

.committee-head p {
  max-width: 40rem;
  color: var(--ink-2);
}

.team {
  list-style: none;
  display: grid;
  gap: 12px;
}

.member {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.initials {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}

.initials svg.shape {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  fill: #ece9e1;
}

.initials span {
  grid-area: 1 / 1;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.member h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 740;
  line-height: 1.25;
}

.member .role {
  margin-top: 2px;
  font-size: 0.9875rem;
  font-weight: 650;
}

.member p:last-child {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.9875rem;
  line-height: 1.5;
}

.independent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-weight: 650;
}

/* ---------- Questions ---------- */

.faq {
  display: grid;
  gap: 8px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.qa {
  border-bottom: 1px solid var(--line-strong);
}

.qa summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 680;
  line-height: 1.35;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary:hover span {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.qa summary .i:first-child {
  width: 26px;
  height: 26px;
}

.qa .chev {
  transition: rotate 0.3s var(--ease-out);
}

.qa[open] .chev {
  rotate: 180deg;
}

.qa__answer {
  display: grid;
  gap: 10px;
  padding: 0 0 22px 42px;
  color: var(--ink-2);
}

.qa__answer a {
  color: var(--ink);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .qa {
      interpolate-size: allow-keywords;
    }

    .qa::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
    }

    .qa[open]::details-content {
      block-size: auto;
    }
  }
}

/* ---------- Institutions ---------- */

.inst {
  display: grid;
  gap: 28px;
}

.inst .ticks {
  margin-top: 0;
}

.inst-body {
  display: grid;
  gap: 22px;
  align-content: start;
}

.inst-note {
  color: var(--ink-2);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Contact without WhatsApp ---------- */

.tiles {
  list-style: none;
  display: grid;
  gap: 12px;
}

.tiles li {
  display: flex;
}

.tile {
  flex: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.tile:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

.tile-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.tile-mark svg.shape {
  grid-area: 1 / 1;
  width: 48px;
  height: 48px;
}

.tile-mark .i {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
}

.tile strong {
  display: block;
  font-size: 1.0625rem;
}

.tile small {
  display: block;
  color: var(--ink-2);
  font-size: 0.9375rem;
  overflow-wrap: break-word;
}

.volunteer {
  margin-top: 28px;
  color: var(--ink-2);
}

.volunteer a {
  color: var(--ink);
  font-weight: 650;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-grid p {
  max-width: 34rem;
  color: var(--ink-2);
  font-size: 0.9875rem;
}

.footer-grid p strong {
  color: var(--ink);
}

.footer-links {
  list-style: none;
  display: grid;
  align-content: start;
  gap: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
}

.footer-grid p + p {
  margin-top: 10px;
}

.giant {
  display: block;
  margin: clamp(28px, 5vw, 56px) 0 0;
  font-size: clamp(5.5rem, 25vw, 22rem);
  font-weight: 800;
  line-height: 0.74;
  letter-spacing: -0.065em;
  white-space: nowrap;
  translate: -0.04em 0;
}

/* ---------- Desktop join dialog ---------- */

.join-dialog {
  max-width: min(92vw, 30rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 30px 60px -20px rgb(23 24 26 / 0.5);
}

.join-dialog::backdrop {
  background: rgb(23 24 26 / 0.5);
}

.join-dialog__inner {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 32px;
}

.join-dialog h2 {
  padding-right: 52px;
  font-size: 1.75rem;
}

.join-dialog p {
  color: var(--ink-2);
}

.join-dialog .qr {
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.short-url {
  color: var(--ink) !important;
  font-size: 1.125rem;
  font-weight: 720;
  overflow-wrap: break-word;
}

.join-dialog__web {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.join-dialog__web a,
.join-dialog__alt a {
  color: var(--ink);
  font-weight: 700;
}

.join-dialog__alt {
  margin-top: -6px;
  font-size: 0.9875rem;
}

.actions-404 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.close:hover {
  border-color: var(--ink);
}

/* ---------- Reading pages (privacy, 404) ---------- */

.read {
  max-width: 46rem;
  padding-block: clamp(40px, 7vw, 88px);
}

.read h1 {
  font-size: clamp(2rem, 6.5vw, 3rem);
}

.read h2 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 3.6vw, 1.6rem);
}

.read p + p {
  margin-top: 12px;
}

.read ul {
  display: grid;
  gap: 10px;
  padding-left: 1.2em;
}

.read .meta {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.9875rem;
}

.read .intro {
  margin-top: 22px;
  font-size: 1.1875rem;
}

.read .back {
  margin-top: 40px;
}

.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--yellow);
  font-weight: 700;
}

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  .hero-actions .btn--primary {
    flex: 0 0 auto;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }

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

  .card:last-child {
    grid-column: 1 / -1;
  }

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

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

/* ---------- Desktop ---------- */

@media (min-width: 1000px) {
  .nav {
    display: flex;
    gap: 22px;
    margin-right: 12px;
  }

  .menu-toggle,
  .menu-panel {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
  }

  .act-index {
    width: 100%;
    max-width: 500px;
    justify-self: end;
  }

  .act-index ul {
    position: relative;
    display: block;
    aspect-ratio: 500 / 440;
  }

  .act-index li {
    position: absolute;
    aspect-ratio: 1;
  }

  .idx-ecole { left: 4%; top: 15.9%; width: 48%; }
  .idx-bien-etre { left: 50%; top: 0; width: 40%; }
  .idx-emploi { left: 57.2%; top: 44.5%; width: 39.2%; }
  .idx-info { left: 1.6%; top: 64.1%; width: 31.6%; }
  .idx-sorties { left: 30%; top: 61.8%; width: 33.6%; }

  .idx {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 1rem;
    font-weight: 720;
  }

  .idx-mark {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
  }

  .idx-mark .i {
    width: 30%;
    height: 30%;
    margin-bottom: 16%;
  }

  .idx-label {
    grid-area: 1 / 1;
    margin-top: 32%;
  }

  .idx--dark {
    color: #fff;
  }

  /* The link boxes overlap; only the painted shape and the label take clicks. */
  .act-index .idx,
  .act-index .idx svg {
    pointer-events: none;
  }

  .act-index .idx svg.shape use,
  .act-index .idx-label {
    pointer-events: auto;
  }


  .cards {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .card {
    grid-column: span 2;
    padding: 26px 26px 22px;
  }

  .card:nth-child(n + 4),
  .card:last-child {
    grid-column: span 3;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: start;
  }

  .join-card {
    padding: 32px;
  }


  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }

  .avatar {
    width: 168px;
    height: 168px;
  }

  .committee {
    grid-column: 1 / -1;
    margin-top: 16px;
  }

  .team {
    grid-template-columns: repeat(4, 1fr);
  }

  .member {
    flex-direction: column;
  }

  .avatar span {
    font-size: 3rem;
  }

  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
  }

  .faq .section-head {
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }

  .inst {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }

  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .tile {
    grid-template-columns: minmax(0, 1fr) 24px;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 14px 8px;
    min-height: 168px;
    padding: 20px;
  }

  .tile-mark {
    grid-column: 1 / -1;
  }

  .tile > .i {
    align-self: end;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .tile,
  .qa .chev,
  .idx-mark svg.shape {
    transition: none;
  }

  .idx:hover svg.shape {
    transform: none;
  }
}

/* Phones narrower than 360 px (and 400% zoom): icon-only menu toggle, smaller index. */
@media (max-width: 359px) {
  .header-inner {
    gap: 8px;
  }

  .wordmark {
    font-size: 1.25rem;
  }

  .menu-toggle {
    padding: 0 11px;
  }

  .menu-toggle .lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .act-index ul {
    gap: 2px;
  }

  .idx {
    font-size: 0.75rem;
  }

  .idx-mark {
    width: 44px;
    height: 44px;
  }

  .idx-mark .i {
    width: 19px;
    height: 19px;
  }
}

/* Desktop shapes between 1000 and 1150 px: the lime flower is small for its label. */
@media (min-width: 1000px) and (max-width: 1149px) {
  .idx-info .idx-label {
    font-size: 0.875rem;
  }
}

@media (min-width: 1150px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 0;
  }

  .fact {
    padding: 22px 24px;
    border-left: 1px solid var(--line);
  }

  .fact:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

/* The QR code is useful wherever a mouse is the main pointer, whatever the window width. */
@media (hover: hover) and (pointer: fine) {
  .qr-desk {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .qr-desk .qr {
    width: 120px;
  }

  .qr-desk p {
    color: var(--ink-2);
    font-size: 0.9875rem;
    line-height: 1.45;
  }

  .qr-desk .short-url {
    margin-top: 6px;
    font-size: 1rem;
  }
}
