/* CEFA static site
   Colours taken from the CEFA logo and the previous site:
   logo blue, a deep "royal" navy, and the orange donate button. */

:root {
  --cefa: #0069aa;        /* logo blue */
  --cefa-deep: #00507f;
  --navy: #0d2160;        /* the "Educating for Democracy" band */
  --orange: #b85600;      /* donate (darkened from #d06600 for contrast) */
  --orange-deep: #974600;
  --ink: #1d2433;
  --muted: #4a5568;
  --paper: #f3f6f9;
  --white: #ffffff;
  --rule: #d5dde6;
  --focus: #f2a900;

  --slab: "Roboto Slab", Rockwell, Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--cefa); text-underline-offset: 0.18em; }
a:hover { color: var(--cefa-deep); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--slab);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: var(--measure); }

/* ---------- Header ---------- */

.site-header { background: var(--white); position: relative; z-index: 5; }

.masthead .wrap {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
}

/* Logo tile spans the white bar and the blue menu bar, as on the old site */
.logo-tile {
  flex: none;
  background: var(--cefa);
  width: 112px;
  margin-bottom: -46px;     /* hang into the menu bar */
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.logo-tile img { width: 100%; }

.masthead-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-height: 64px;
}
.site-name {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--cefa);
  text-decoration: none;
  line-height: 1.2;
}
.site-name:hover { color: var(--cefa-deep); }

.menu-bar { background: var(--cefa); }
.menu-bar .wrap { padding-left: calc(var(--gutter) + 112px + 0.6rem); }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 0.7rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { background: var(--cefa-deep); color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--white); }

/* Mobile menu: a details/summary toggle, no script needed */
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .logo-tile { width: 76px; margin-bottom: 0; padding: 10px 8px; }
  .masthead-title { min-height: 64px; }
  .masthead .donate-top { display: none; }
  .menu-bar .wrap { padding-left: var(--gutter); }
}

/* Below this width the full menu no longer fits on one line */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .menu-toggle summary {
    list-style: none;
    cursor: pointer;
    color: var(--white);
    font-weight: 700;
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle summary::before {
    content: "";
    width: 20px;
    height: 14px;
    background:
      linear-gradient(var(--white), var(--white)) top / 100% 2px no-repeat,
      linear-gradient(var(--white), var(--white)) center / 100% 2px no-repeat,
      linear-gradient(var(--white), var(--white)) bottom / 100% 2px no-repeat;
  }
  .menu-toggle[open] summary::before {
    background:
      linear-gradient(45deg, transparent 45%, var(--white) 45% 55%, transparent 55%),
      linear-gradient(-45deg, transparent 45%, var(--white) 45% 55%, transparent 55%);
  }
  .menu-toggle .nav ul { flex-direction: column; padding-bottom: 0.75rem; }
  .menu-toggle .nav a { padding: 0.7rem 0; border-top: 1px solid rgba(255,255,255,0.2); }
  .menu-toggle .nav a:hover { background: none; text-decoration: underline; }
  .menu-toggle .nav a[aria-current="page"] { box-shadow: none; font-weight: 700; }
  .nav-desktop { display: none; }
}

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}
.btn-donate { background: var(--orange); color: var(--white); }
.btn-donate:hover { background: var(--orange-deep); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-plain { border-color: var(--cefa); color: var(--cefa); background: transparent; }
.btn-plain:hover { background: var(--cefa); color: var(--white); }
.btn-large { font-size: 1.1rem; padding: 0.9rem 2rem; }

/* ---------- Feature mosaic (home) ---------- */

.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 4px;
  background: var(--white);
  min-height: clamp(440px, 46vw, 560px);
}
.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  background-color: var(--cefa-deep);
  isolation: isolate;
}
.tile-main { grid-row: span 2; background-color: var(--navy); }
.tile:nth-child(3) { background-color: var(--cefa); }

/* Each tile's photo layer shows a faint emblem until a photo is added */
.tile-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: transform 0.6s ease;
}
.tile:hover .tile-photo { transform: scale(1.03); }

.tile-caption {
  background: rgba(0, 80, 127, 0.92);
  padding: 1.1rem 1.5rem 1.2rem;
  margin: 0 0 clamp(1rem, 3vw, 2rem);
  max-width: 92%;
}
.tile-main .tile-caption { background: rgba(13, 33, 96, 0.9); }
.tile-caption h2, .tile-caption h3 { margin: 0; color: var(--white); }
.tile-caption h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.tile-caption h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.tile-caption p { margin: 0.4rem 0 0; color: #dbe7f2; font-size: 1rem; max-width: 52ch; }
.tile:hover h2, .tile:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; }

@media (max-width: 860px) {
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }
  .tile { min-height: 230px; }
  .tile-main { grid-row: auto; min-height: 320px; }
  .tile-caption { max-width: 100%; margin-bottom: 0; width: 100%; }
}

/* ---------- Bands ---------- */

.band { color: var(--white); padding: 1.6rem 0; }
.band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.band p { margin: 0; color: #dbe7f2; }
.band a:not(.btn) { color: var(--white); }
.band .push { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.band-navy { background: var(--navy); }
.band-blue { background: var(--cefa); }
.band-blue .push p { font-family: var(--slab); font-size: 1.15rem; color: var(--white); }

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

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-white { background: var(--white); }

.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.lead { font-size: 1.2rem; }

/* Initiative cards — photo on top, as on the old site */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.card {
  background: var(--white);
  border-bottom: 4px solid var(--cefa);
  display: flex;
  flex-direction: column;
}
.card-photo {
  aspect-ratio: 16 / 10;
  background-color: var(--cefa-deep);
  background-image: url("cefa-emblem-faint.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 55%;
}

/* ---------- Photos ----------
   Drop images into assets/img/ with these names. Until a file exists,
   its slot shows the CEFA emblem on blue instead. */
.photo-centre    { background-image: url("img/constitution-centre.jpg"), url("cefa-emblem-faint.png"); }
.photo-prize     { background-image: url("img/gg-prize.jpg"), url("cefa-emblem-faint.png"); }
.photo-civics    { background-image: url("img/civics-australia.jpg"), url("cefa-emblem-faint.png"); }
.tile-photo[class*="photo-"], .card-photo[class*="photo-"] {
  background-size: cover, auto 55%;
  background-position: center, 88% 28%;
  background-repeat: no-repeat, no-repeat;
}
.card-photo[class*="photo-"] { background-position: center, center; }

.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-body h3 { color: var(--cefa-deep); margin-bottom: 0.35em; }
.card-body p { margin: 0; color: var(--muted); }

/* Timeline — genuinely chronological */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .when {
  font-family: var(--slab);
  font-size: 1.3rem;
  color: var(--cefa);
  line-height: 1.35;
}
.timeline p { margin: 0; }

.principles {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.principles li {
  border: 1px solid var(--cefa);
  color: var(--cefa-deep);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.95rem;
}

/* ---------- Inner page head ---------- */

.page-head {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-head h1 { color: var(--white); }
.page-head p { font-size: 1.15rem; color: #dbe7f2; }

/* ---------- Donate page ---------- */

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.donate-panel {
  background: var(--white);
  border-top: 6px solid var(--orange);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 1px 0 var(--rule);
}
.donate-panel-monthly { border-top-color: var(--cefa); }
.donate-panel h2 { font-size: 1.6rem; margin-bottom: 0.3em; }
.donate-panel > p { color: var(--muted); }
.donate-panel .btn { margin: 0.5rem 0 0.5rem; width: 100%; }
.fine { font-size: 0.92rem; color: var(--muted); }

.amounts { border: 0; margin: 0 0 1rem; padding: 0; }
.amounts legend { font-weight: 700; margin-bottom: 0.6rem; padding: 0; }
.amount-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.amount-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.amount-options label {
  display: block;
  text-align: center;
  padding: 0.7rem 0.4rem;
  border: 2px solid var(--rule);
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
}
.amount-options label:hover { border-color: var(--cefa); }
.amount-options input:checked + label {
  border-color: var(--cefa);
  background: var(--cefa);
  color: var(--white);
}
.amount-options input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.other-amount { margin-top: 0.8rem; }
.other-amount label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.other-amount .field {
  display: flex;
  align-items: center;
  border: 2px solid var(--rule);
  border-radius: 6px;
  background: var(--white);
  max-width: 12rem;
}
.other-amount .field:focus-within { border-color: var(--cefa); }
.other-amount span { padding-left: 0.75rem; font-weight: 700; }
.other-amount input {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0.6rem 0.75rem 0.6rem 0.25rem;
  width: 100%;
  min-width: 0;
}
.other-amount input:focus { outline: none; }
.form-error {
  color: #a3261d;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
  min-height: 1.4em;
}

.uses { margin: 0; padding-left: 1.2rem; }
.uses li { margin-bottom: 0.6rem; max-width: var(--measure); }

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

.site-footer {
  background: var(--navy);
  color: #cfdbe8;
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--white); }
.site-footer .cols {
  display: grid;
  grid-template-columns: 180px repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer-logo { width: 150px; }
.site-footer h2 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer .legal {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  color: #a8b9cc;
  max-width: none;
}
@media (max-width: 860px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  .footer-logo { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.card-body { display: flex; flex-direction: column; flex: 1; }
.card-body .card-link { margin-top: auto; padding-top: 1rem; }
.card-link a { font-weight: 700; }
.section-link { margin-top: 1.5rem; }
.council-band { padding: clamp(2rem, 5vw, 3rem) 0; }
.council-band .wrap > div:first-child { max-width: 46rem; }
.council-band p { margin-top: 0.5rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Governance ---------- */

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}
.person { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.person h3 { margin: 0; color: var(--cefa-deep); font-size: 1.3rem; }
.person-role {
  margin: 0.2rem 0 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}
.person p:last-child { margin-bottom: 0; color: var(--muted); }
.person-chair { grid-column: 1 / -1; border-top: 4px solid var(--cefa); }
.person-chair h3 { font-size: 1.6rem; }
.person-chair .person-role { color: var(--cefa); }

.councillors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}
.councillors li { padding: 1rem 0; border-top: 1px solid var(--rule); }
.councillors strong { display: block; font-family: var(--slab); font-weight: 500; font-size: 1.1rem; }
.councillors span { color: var(--muted); font-size: 0.95rem; }

.patron {
  background: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}
.patron .wrap > * { max-width: 46rem; }
.patron .wrap > h2 { max-width: none; }
.patron .wrap { padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.patron-label {
  font-weight: 700;
  color: var(--cefa);
  margin: 0 0 0.4rem;
}
.patron h2 { margin-bottom: 0.2em; }
.patron-office {
  font-family: var(--slab);
  font-size: 1.2rem;
  color: var(--cefa-deep);
  margin-bottom: 1rem;
}
.patron p:last-child { color: var(--muted); margin-bottom: 0; }

.patron-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.patron .patron-grid > * { max-width: none; }
.patron-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 70% 30%; }
@media (max-width: 860px) {
  .patron-grid { grid-template-columns: 1fr; }
}

/* ---------- Constitution ---------- */

.key-sections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}
.key-sections li { border-top: 1px solid var(--rule); }
.key-sections a {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--ink);
}
.key-sections a:hover { color: var(--cefa-deep); text-decoration: underline; }
.key-num {
  flex: none;
  min-width: 3.6rem;
  font-family: var(--slab);
  font-size: 1.15rem;
  color: var(--cefa);
}

.chapter-list { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.chapter {
  background: var(--white);
  border-left: 5px solid var(--cefa);
  padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.1rem, 3vw, 2rem);
}
.chapter h3 { margin-bottom: 0.8rem; color: var(--ink); }
.chapter-num {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cefa);
  margin-bottom: 0.15rem;
}
.part + .part { margin-top: 1rem; }
.part h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.range { color: var(--muted); font-weight: 400; font-size: 0.95rem; margin: 0 0 0.5rem; }
.part h4 .range { margin-left: 0.4rem; }

.section-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.section-links a {
  display: block;
  min-width: 2.9rem;
  text-align: center;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--cefa-deep);
  background: var(--white);
}
.section-links a:hover { background: var(--cefa); border-color: var(--cefa); color: var(--white); }
.section-links a.repealed { color: var(--muted); text-decoration: line-through; border-style: dashed; }

/* Amendments table */
.table-wrap { overflow-x: auto; }
.amend-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.97rem; }
.amend-table th, .amend-table td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); }
.amend-table th { background: var(--cefa); color: var(--white); font-weight: 700; }
.amend-table td:first-child { font-family: var(--slab); color: var(--cefa-deep); white-space: nowrap; }
@media (max-width: 640px) {
  .amend-table thead { display: none; }
  .amend-table tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .amend-table td { display: block; border: 0; padding: 0.1rem 1rem; }
}

/* Full text of the Constitution */
.con-body { max-width: 46rem; }
.con-body p { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; line-height: 1.7; }
.con-front, .con-chapter { padding-top: 2rem; }
.con-act-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.con-longtitle { font-style: italic; }
.con-chapter-title {
  border-top: 4px solid var(--cefa);
  padding-top: 1rem;
  margin-top: 1rem;
}
.con-chapter-title .chapter-num { display: block; font-family: var(--sans); font-size: 0.9rem; font-weight: 700; color: var(--cefa); }
.con-part { margin: 2rem 0 0.5rem; color: var(--cefa-deep); font-size: 1.3rem; }
.con-section { padding-top: 1.25rem; scroll-margin-top: 1rem; }
.con-section h4 {
  font-family: var(--slab);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.snum {
  display: inline-block;
  min-width: 2.6rem;
  color: var(--cefa);
}
.con-section:target h4 { background: #fff3cc; box-shadow: -0.5rem 0 0 #fff3cc, 0.5rem 0 0 #fff3cc; }
.con-subhead { font-family: var(--sans) !important; font-weight: 700; font-size: 0.95rem !important; color: var(--muted); margin-bottom: 0.3rem; }
.con-para { padding-left: 2.6rem; text-indent: -2.6rem; margin-bottom: 0.5rem; }
.con-para .lbl { display: inline-block; min-width: 2.6rem; text-indent: 0; color: var(--muted); }
.con-para-sub { padding-left: 5.2rem; }
.con-item, .con-def { padding-left: 1.5rem; margin-bottom: 0.4rem; }
.toc-chapter, .toc-part { margin: 0 0 0.2rem; font-size: 0.98rem !important; }
.toc-part { padding-left: 1.5rem; }
.con-table { border-collapse: collapse; margin: 0 0 1rem 1.5rem; font-family: Georgia, serif; }
.con-table td { padding: 0.15rem 1.5rem 0.15rem 0; }
.con-note { font-family: var(--sans) !important; font-size: 0.95rem !important; color: var(--muted); }
.con-note-src { font-style: italic; }
.to-contents { font-family: var(--sans) !important; font-size: 0.95rem !important; margin-top: 1.25rem; }
.to-contents a { font-weight: 700; }
@media (max-width: 640px) {
  .con-para { padding-left: 2.2rem; text-indent: -2.2rem; }
  .con-para .lbl { min-width: 2.2rem; }
  .con-para-sub { padding-left: 3.6rem; }
}

/* ---------- G-G Prize ---------- */
.gg-split { align-items: start; }
.gg-figure { margin: 0; }
.gg-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gg-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.gg-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
}
.gg-facts li { border-top: 4px solid var(--cefa); padding-top: 0.9rem; }
.gg-facts strong { display: block; font-family: var(--slab); font-weight: 500; font-size: 1.25rem; color: var(--cefa-deep); margin-bottom: 0.25rem; }
.gg-facts span { color: var(--muted); }

/* Fund choice on the donation forms */
.funds { border: 0; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.5rem; }
.funds legend { font-weight: 700; margin-bottom: 0.6rem; padding: 0; }
.fund-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  background: var(--white);
  line-height: 1.4;
}
.fund-option:hover { border-color: var(--cefa); }
.fund-option:has(input:checked) { border-color: var(--cefa); background: #eef5fb; }
.fund-option input { margin-top: 0.25rem; accent-color: var(--cefa); width: 1.1rem; height: 1.1rem; flex: none; }
.fund-option strong { display: block; }
.fund-option span { font-size: 0.95rem; color: var(--muted); }
.fund-option strong { color: var(--ink); }

.ceo { padding-top: 0; }
.ceo .wrap { border-top: 1px solid var(--rule); padding-top: clamp(2rem, 4vw, 3rem); }
.ceo-name { font-family: var(--slab); font-size: 1.3rem; color: var(--cefa-deep); margin: 0; }
.page-kicker { font-weight: 700; letter-spacing: 0.02em; margin-top: -0.4rem; }

.about h3 { margin-top: 2rem; color: var(--cefa-deep); }
.about .uses { margin-bottom: 1rem; }
.about cite { font-style: italic; }

/* Council committees (same look as the G-G Prize facts) */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
}
.facts li { border-top: 4px solid var(--cefa); padding-top: 0.9rem; }
.facts strong { display: block; font-family: var(--slab); font-weight: 500; font-size: 1.2rem; color: var(--cefa-deep); margin-bottom: 0.4rem; }
.facts span { color: var(--muted); }
.facts-note { margin-top: 2rem; max-width: 46rem; }
.uses ul { margin: 0.5rem 0 0; padding-left: 1.2rem; list-style: circle; }
.uses ul li { margin-bottom: 0.3rem; }

/* Board with photos */
.chair {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: 1.75rem 0 2.25rem;
  border-top: 4px solid var(--cefa);
}
.chair-photo { width: 180px; height: 180px; object-fit: cover; }
.chair h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.2rem; }
.chair-office { font-family: var(--slab); font-size: 1.2rem; color: var(--cefa-deep); margin-bottom: 0.9rem; }
.chair p:last-child { max-width: 62ch; color: var(--ink); }
.directors-sub { font-size: 1.4rem; margin: 0.5rem 0 0.25rem; }
.person { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; align-items: start; }
.person-photo { width: 88px; height: 88px; object-fit: cover; border-radius: 4px; }
.ceo-grid { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; align-items: center; }
.ceo-grid h2 { margin-bottom: 0.2rem; }
@media (max-width: 640px) {
  .chair { grid-template-columns: 1fr; }
  .chair-photo { width: 140px; height: 140px; }
  .person { grid-template-columns: 72px minmax(0, 1fr); }
  .person-photo { width: 72px; height: 72px; }
}

/* Statement of Purpose (verbatim Board wording) */
.purpose-quote {
  margin: 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 4px solid var(--cefa);
}
.purpose-quote p { font-family: var(--slab); font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.purpose-quote p:last-child { margin-bottom: 0; }

.facts-committees { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.facts-note h3 { color: var(--cefa-deep); margin-bottom: 0.4rem; }

/* Constitution Centre: six principles grid */
.centre-split { align-items: center; }
.principles-label { font-weight: 700; color: var(--cefa); margin-bottom: 0.75rem; }
.principle-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.principle-grid li {
  background: var(--cefa);
  color: var(--white);
  font-family: var(--slab);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
  padding: 1.6rem 1.25rem;
  min-height: 6.5rem;
  display: flex;
  align-items: flex-end;
  background-image: url("cefa-emblem-faint.png");
  background-repeat: no-repeat;
  background-position: right -1.5rem top -1rem;
  background-size: 6rem auto;
}
.principle-grid li:nth-child(4n+2), .principle-grid li:nth-child(4n+3) { background-color: var(--navy); }
@media (min-width: 1000px) {
  .principle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principle-grid li:nth-child(n) { background-color: var(--cefa); }
  .principle-grid li:nth-child(even) { background-color: var(--navy); }
}

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.pub:first-child { padding-top: 0; border-top: 0; }
.pub h3 { margin: 0 0 0.35rem; font-size: 1.3rem; }
.pub h3 a { color: var(--cefa-deep); text-decoration: none; }
.pub h3 a:hover { text-decoration: underline; }
.pub-meta { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.6rem; }
.pub-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: baseline; margin: 0; }
.pub-links a { font-weight: 700; }
.pub-size { font-size: 0.9rem; color: var(--muted); }

/* Policy pages */
.policy { max-width: 46rem; }
.policy h2 { font-size: 1.45rem; margin-top: 2.25rem; color: var(--cefa-deep); }
.policy .uses { margin-bottom: 1rem; }
.site-footer .legal a { margin-left: 0.5rem; }
