/* ==========================================================================
   ARA Ireland: main stylesheet
   Structure: 1 Tokens, 2 Base, 3 Layout, 4 Header and nav, 5 Page furniture,
   6 Components, 7 Content (prose), 8 Template-specific, 9 Footer,
   10 Utilities, 11 Motion and print.

   Colour rule: lime (--lime) is only ever a background, with dark text on it.
   Text-coloured greens and teals use the darker shades, all 7:1 or better
   on white unless noted. In WordPress, these tokens map to theme.json.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Brand */
  --lime: #79be0b;          /* signature green: backgrounds only, dark text on top (6.9:1) */
  --lime-50: #eef6e0;       /* tint for panels and highlights */
  --lime-300: #a6d65a;      /* accents on dark backgrounds (8.8:1 on footer) */
  --green-600: #4a7507;     /* buttons: white text 5.5:1 */
  --green-700: #3d6006;     /* links on white: 7.3:1 */
  --green-800: #2c4504;     /* link hover: 10.7:1 */
  --teal: #0094aa;          /* logo teal: decorative use only */
  --teal-50: #e6f3f5;
  --teal-700: #006270;      /* secondary accent text and buttons: 7:1 */

  /* Neutrals */
  --ink: #1f2328;           /* body text: 15.8:1 */
  --ink-muted: #545a60;     /* secondary text: 7:1 */
  --line: #d7dbd2;          /* decorative borders */
  --line-strong: #8a9198;   /* borders on form inputs: 3.2:1 */
  --surface: #f4f6f1;       /* subtle panels */
  --white: #fff;
  --footer-bg: #24282c;
  --footer-ink: #e9ecef;
  --footer-muted: #b8bfc6;

  /* Focus */
  --focus: #006270;
  --focus-ring: 0 0 0 3px var(--white), 0 0 0 6px var(--focus);

  /* Type: Open Sans throughout, 18px base, fluid headings */
  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --text-sm: 0.9375rem;     /* 15px: captions and meta, never smaller */
  --text-base: 1.125rem;    /* 18px */
  --text-lg: 1.25rem;       /* 20px: standfirst */
  --h1: clamp(2rem, 1.55rem + 1.9vw, 3rem);
  --h2: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem);
  --h3: clamp(1.375rem, 1.25rem + 0.55vw, 1.75rem);
  --h4: 1.25rem;
  --h5: 1.125rem;
  --leading: 1.65;
  --leading-tight: 1.2;

  /* Space and layout */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --container: 76rem;       /* 1216px */
  --measure: 42rem;         /* comfortable line length for prose */
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --radius: 4px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 4px 16px rgb(0 0 0 / 0.08);
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-6);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading);
  overflow-wrap: break-word;
}

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

[hidden] { display: none !important; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  color: var(--ink);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-wrap: balance;
}
h1 { font-size: var(--h1); letter-spacing: -0.015em; }
h2 { font-size: var(--h2); letter-spacing: -0.01em; }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--text-base); }

p, ul, ol, dl, blockquote, figure, table { margin: 0 0 var(--space-5); }

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--green-800); text-decoration-thickness: 2px; }

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

hr {
  height: 0;
  margin: var(--space-7) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 3. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main { padding-block: var(--space-6) var(--space-8); }
.site-main:focus { outline: none; }

/* Content with a side column (section nav or related) */
.layout-sidebar {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 62em) {
  .layout-sidebar { grid-template-columns: minmax(0, 1fr) 18rem; }
  .layout-sidebar--left { grid-template-columns: 16rem minmax(0, 1fr); }
  .layout-sidebar--left > :first-child { order: -1; }
}

.grid {
  display: grid;
  gap: var(--space-6) var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min, 18rem)), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid--3 { --grid-min: 18rem; }
.grid--4 { --grid-min: 14rem; }

.section { margin-block: var(--space-8); }
.section:first-child { margin-top: 0; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--lime);
}
.section__head h2 { margin: 0; }

/* Modules: one ACF flexible content layout each. A module owns its own
   container, so it can be full-width (bands) or constrained. Spacing
   between modules is set here, not inside them. */
.module { margin-block: var(--space-8); }
.site-main > .module:first-child { margin-top: 0; }
.module--page-header { margin-bottom: var(--space-7); }
.module--band { padding-block: var(--space-7); background: var(--surface); }
.module--band-lime { background: var(--lime-50); }
.module--band-teal { background: var(--teal-50); }
.module + .module--band,
.module--band + .module { margin-top: var(--space-8); }
.module--band .callout { margin: 0; background: var(--white); }
.module__narrow { max-width: var(--measure); }
.module__narrow--centre { margin-inline: auto; text-align: center; }
.module-guide-only { display: none; }

/* 4. Header and navigation
   ========================================================================== */
.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--white); }

.site-header { background: var(--white); }

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.site-logo { display: block; flex: 0 1 auto; }
.site-logo img { width: clamp(15rem, 10rem + 18vw, 23rem); }

.social {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
}
.social a:hover { background: var(--lime); color: var(--ink); }
.social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

/* Primary nav: white bar with dividers; current item gets the lime block */
.site-nav { border-block: 1px solid var(--line); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__item { position: relative; display: flex; }
.nav__item + .nav__item { border-left: 1px solid var(--line); }

.nav__link,
.nav__sub-toggle {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: var(--space-2) var(--space-3);
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__sub-toggle { padding-inline: 0 var(--space-3); margin-left: calc(var(--space-2) * -1); min-width: 1.5rem; }
.nav__sub-toggle svg { width: 0.75rem; height: 0.75rem; transition: transform 0.2s; }
.nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__item:hover,
.nav__item.is-current,
.nav__item:focus-within { background: var(--lime); }
.nav__item:hover > .nav__link,
.nav__item.is-current > .nav__link,
.nav__link:hover { color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 15rem;
  margin: 0;
  padding: var(--space-2) 0;
  border-top: 3px solid var(--lime);
  background: var(--white);
  box-shadow: var(--shadow);
  list-style: none;
}
.nav__sub[hidden] { display: none; }
/* Without JavaScript, submenus open on hover and keyboard focus */
@media (min-width: 62em) {
  .no-js .nav__sub { display: none; }
  .no-js .nav__item:hover > .nav__sub,
  .no-js .nav__item:focus-within > .nav__sub { display: block; }
}
.nav__sub a {
  display: block;
  padding: var(--space-3) var(--space-5);
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}
.nav__sub a:hover,
.nav__sub a[aria-current="page"] { background: var(--lime-50); color: var(--green-800); text-decoration: underline; }

/* Mobile: collapsible list, submenus inline */
@media (max-width: 61.99em) {
  .js .nav-toggle { display: flex; }
  .js .nav[hidden] { display: none; }
  .nav { flex-direction: column; padding-bottom: var(--space-4); }
  .nav__item { flex-wrap: wrap; justify-content: space-between; }
  .nav__item + .nav__item { border-left: 0; border-top: 1px solid var(--line); }
  .nav__item:hover,
  .nav__item:focus-within { background: none; }
  .nav__item.is-current > .nav__link { background: var(--lime); }
  .nav__link { flex: 1; min-height: 3rem; }
  .nav__sub-toggle { padding: 0 var(--space-4); margin: 0; min-width: 3rem; justify-content: center; }
  .nav__sub {
    position: static;
    flex-basis: 100%;
    padding: 0 0 var(--space-3) var(--space-4);
    border-top: 0;
    box-shadow: none;
  }
}

/* 5. Page furniture
   ========================================================================== */
.breadcrumbs { margin-bottom: var(--space-5); font-size: var(--text-sm); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--ink-muted); }
.breadcrumbs [aria-current] { color: var(--ink-muted); }

.page-header { margin-bottom: var(--space-7); }
.page-header h1 { margin-bottom: var(--space-4); }
.page-header__intro { max-width: var(--measure); color: var(--ink-muted); font-size: var(--text-lg); }
.page-header__intro > :last-child { margin-bottom: 0; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  margin: 0 0 var(--space-4);
  padding: 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  list-style: none;
}
.meta svg { display: inline-block; width: 1em; height: 1em; margin-right: var(--space-1); vertical-align: -0.125em; fill: currentColor; }

/* 6. Components
   ========================================================================== */

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.875rem;
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--green-600);
  border-radius: var(--radius);
  background: var(--green-600);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: var(--green-800); background: var(--green-800); color: var(--white); text-decoration: none; }
.button--secondary { border-color: var(--teal-700); background: var(--teal-700); }
.button--secondary:hover { border-color: #00434d; background: #00434d; }
.button--outline { background: transparent; color: var(--green-700); }
.button--outline:hover { background: var(--lime-50); color: var(--green-800); }
.button--lime { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.button--lime:hover { border-color: var(--green-600); background: var(--green-600); color: var(--white); }
.button svg { width: 1.1em; height: 1.1em; fill: currentColor; }

.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

.button-group { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.button-group--centre { justify-content: center; }

/* Video embed: responsive 16:9, title on the iframe for screen readers */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__placeholder { display: grid; place-content: center; gap: var(--space-2); height: 100%; padding: var(--space-5); color: var(--footer-ink); text-align: center; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-700);
  font-size: var(--text-sm);
  text-decoration: none;
}
a.tag:hover { border-color: var(--green-700); background: var(--lime-50); }
.tag[aria-current] { border-color: var(--lime); background: var(--lime); color: var(--ink); font-weight: 700; }

/* Card: the listing summary used by every post type.
   The whole card is clickable via the title link (stretched link). */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
}
.card__media { order: -1; margin: 0 0 var(--space-4); aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__label { margin: 0 0 var(--space-2); color: var(--teal-700); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card__title { margin-bottom: var(--space-3); font-size: var(--h4); }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--green-700); text-decoration: underline; }
.card__excerpt { margin-bottom: var(--space-4); }
.card .meta { margin-bottom: var(--space-3); }
.card__footer { margin-top: auto; }

/* List variant of the card (listing "list" view) */
@media (min-width: 40em) {
  .card--row { flex-direction: row; gap: var(--space-6); }
  .card--row .card__media { flex: 0 0 16rem; margin: 0; align-self: flex-start; }
  .card--row .card__body { flex: 1; }
}
.listing--list { display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.listing--list > li + li { padding-top: var(--space-6); border-top: 1px solid var(--line); }

/* Link cards: hub page children */
.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-top: 4px solid var(--lime);
  border-radius: var(--radius);
  background: var(--white);
}
.link-card:hover { box-shadow: var(--shadow); }
.link-card h3 { margin-bottom: var(--space-3); font-size: var(--h4); }
.link-card h3 a { color: var(--ink); text-decoration: none; }
.link-card h3 a::after { content: ""; position: absolute; inset: 0; }
.link-card:hover h3 a { color: var(--green-700); text-decoration: underline; }
.link-card p { margin-bottom: 0; color: var(--ink-muted); }

/* Callout / highlight panel */
.callout {
  margin-block: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-left: 6px solid var(--lime);
  background: var(--lime-50);
}
.callout--teal { border-color: var(--teal); background: var(--teal-50); }
.callout > :last-child { margin-bottom: 0; }
.callout h2,
.callout h3 { font-size: var(--h4); }

/* Section nav (sidebar for child pages) */
.section-nav { font-size: 1rem; }
.section-nav h2 { margin-bottom: var(--space-3); font-size: var(--text-base); letter-spacing: 0.04em; text-transform: uppercase; }
.section-nav ul { margin: 0; padding: 0; border-top: 3px solid var(--lime); list-style: none; }
.section-nav li { border-bottom: 1px solid var(--line); }
.section-nav a { display: block; padding: var(--space-3) var(--space-2); color: var(--ink); text-decoration: none; }
.section-nav a:hover { background: var(--lime-50); color: var(--green-800); text-decoration: underline; }
.section-nav a[aria-current="page"] { border-left: 4px solid var(--lime); padding-left: var(--space-3); font-weight: 700; }

/* Sidebar widgets */
.widget + .widget { margin-top: var(--space-7); }
.widget h2 { margin-bottom: var(--space-4); padding-bottom: var(--space-2); border-bottom: 3px solid var(--lime); font-size: var(--h4); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: var(--space-4); }
.widget li a { font-weight: 600; }
.widget li .meta { margin: var(--space-1) 0 0; }

/* Pagination */
.pagination { margin-top: var(--space-7); }
.pagination ul { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--green-700); background: var(--lime-50); }
.pagination [aria-current] { border-color: var(--lime); background: var(--lime); color: var(--ink); font-weight: 700; }

/* Filter bar (listing, gallery) */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-6); padding: var(--space-4) var(--space-5); background: var(--surface); border-radius: var(--radius); }
.filters__label { margin: 0; font-weight: 700; }
.filters .tags { margin: 0; }
.view-switch { display: flex; gap: var(--space-2); margin-left: auto; }

/* Forms */
.form { max-width: var(--measure); }
.field { margin-bottom: var(--space-5); }
.field label,
.field legend { display: block; margin-bottom: var(--space-2); font-weight: 700; }
.field__hint { display: block; margin: calc(var(--space-1) * -1) 0 var(--space-2); color: var(--ink-muted); font-size: var(--text-sm); }
.field__required { color: var(--ink-muted); font-weight: 400; }
.input {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
textarea.input { min-height: 10rem; resize: vertical; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field--error .input { border-color: #b3261e; }
.field__error { display: block; margin-bottom: var(--space-2); color: #b3261e; font-weight: 700; }

/* 7. Content (prose): everything an editor can produce in the block editor
   ========================================================================== */
.prose { max-width: var(--measure); }
.prose--wide { max-width: none; }
.prose > * + h2 { margin-top: var(--space-7); }
.prose > * + h3 { margin-top: var(--space-6); }
.prose > * + h4 { margin-top: var(--space-5); }
.prose .lead,
.lead { color: var(--ink); font-size: var(--text-lg); line-height: 1.55; }

/* Lists: three-tier bullets with hanging indent */
.prose ul,
.prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: var(--space-2); padding-left: 0.25em; }
.prose li > ul,
.prose li > ol { margin: var(--space-2) 0 0; }
.prose ul > li::marker { color: var(--green-600); font-size: 1.15em; }
.prose ul ul { list-style-type: circle; }
.prose ul ul ul { list-style-type: square; }

/* Tiered numbering: 1. / 1.1 / 1.1.1 / 1.1.1.1 (add class "is-tiered") */
.prose ol.is-tiered,
.prose ol.is-tiered ol { counter-reset: tier; list-style: none; padding-left: 0; }
.prose ol.is-tiered ol { padding-left: 2.5em; }
.prose ol.is-tiered > li,
.prose ol.is-tiered ol > li { counter-increment: tier; position: relative; padding-left: 3.25em; }
.prose ol.is-tiered li::before {
  content: counters(tier, ".") ".";
  position: absolute;
  left: 0;
  color: var(--green-700);
  font-weight: 700;
}
.prose ol.is-tiered ol > li::before { content: counters(tier, "."); }

/* Quotes: block (default), pull, inline */
blockquote,
.quote {
  margin-inline: 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-left: 4px solid var(--lime);
  font-size: var(--text-lg);
}
blockquote > :last-child { margin-bottom: 0; }
blockquote cite,
blockquote footer { display: block; margin-top: var(--space-3); color: var(--ink-muted); font-size: var(--text-sm); font-style: normal; }
blockquote cite::before { content: "\2014\00a0"; }
.quote--pull {
  position: relative;
  margin-block: var(--space-7);
  padding: var(--space-6) 0 0;
  border: 0;
  border-top: 4px solid var(--lime);
  color: var(--ink);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
}
.quote--pull::before { content: "\201C"; position: absolute; top: -0.15em; left: 0; color: var(--green-600); font-size: 4em; line-height: 1; transform: translateY(-50%); background: var(--white); padding-right: 0.15em; }
q { quotes: "\201C" "\201D" "\2018" "\2019"; font-style: italic; }

/* Figures and captions: captions always visible, under the image */
figure img { border-radius: var(--radius); }
figcaption { margin-top: var(--space-2); color: var(--ink-muted); font-size: var(--text-sm); line-height: 1.5; }
.prose figure { margin-block: var(--space-6); }
.figure--wide { max-width: none; }
.figure-pair { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: var(--space-5); }
.table-wrap:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { margin-bottom: var(--space-3); font-weight: 700; text-align: left; }
th, td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { border-bottom: 3px solid var(--lime); background: var(--surface); }

/* Inline text */
mark { padding: 0 0.15em; background: var(--lime-50); color: inherit; box-shadow: inset 0 -2px 0 var(--lime); }
abbr[title] { text-decoration: underline dotted; cursor: help; }
sup, sub { line-height: 0; }
code, kbd { padding: 0.1em 0.3em; border-radius: 3px; background: var(--surface); font-size: 0.9em; }

/* Accordion (details/summary: works without JavaScript) */
.accordion { margin-bottom: var(--space-5); border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 1.25rem; line-height: 1; }
.accordion details[open] summary::after { content: "\2212"; }
.accordion summary:hover { color: var(--green-700); }
.accordion details > :not(summary) { margin-top: 0; padding-bottom: var(--space-4); }

/* 8. Template-specific
   ========================================================================== */

/* Home: hero carousel */
.hero { position: relative; margin-bottom: var(--space-7); }
.hero__slides { position: relative; margin: 0; padding: 0; list-style: none; }
.hero__slide { margin: 0; }
.js .hero__slide:not(.is-active) { display: none; }
.hero__slide img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-radius: var(--radius); }
.hero__caption {
  margin-top: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--lime);
  color: var(--ink);
}
.hero__caption strong { display: block; font-size: var(--h4); line-height: 1.3; }
.hero__caption span { display: block; }
@media (min-width: 48em) {
  .hero__caption { position: absolute; left: 0; bottom: var(--space-7); max-width: 26rem; margin: 0; padding: var(--space-5) var(--space-6); border-radius: 0 var(--radius) var(--radius) 0; }
}
.hero__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
@media (min-width: 48em) {
  .hero__controls { position: absolute; right: var(--space-4); bottom: var(--space-4); margin: 0; padding: var(--space-1); border-radius: 999px; background: rgb(255 255 255 / 0.92); }
}
.hero__controls button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.hero__controls button:hover { background: var(--lime); }
.hero__controls svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.hero__dots { display: flex; gap: var(--space-1); margin: 0 var(--space-2); padding: 0; list-style: none; }
.hero__dots button { width: 2rem; height: 2.75rem; }
.hero__dots button::before { content: ""; display: block; width: 0.75rem; height: 0.75rem; margin: auto; border: 2px solid var(--ink); border-radius: 50%; }
.hero__dots button[aria-current="true"]::before { background: var(--ink); }
.hero__dots button:hover { background: transparent; }
.hero__dots button:hover::before { background: var(--lime); }
.no-js .hero__controls { display: none; }

.welcome { max-width: 52rem; margin: 0 auto var(--space-8); text-align: center; }
.welcome h1 { font-size: var(--h2); }
.welcome p { font-size: var(--text-lg); }

.statement { padding: var(--space-7) 0; background: var(--surface); }
.statement .callout { margin: 0; background: var(--white); }

/* Article (single) */
.article-header { max-width: var(--measure); margin-bottom: var(--space-6); }
.article-header .lead { margin-bottom: var(--space-5); }
.article-hero { margin-bottom: var(--space-7); }
.article-footer { max-width: var(--measure); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.article-footer h2 { font-size: var(--text-base); }
.byline { font-weight: 600; }

/* Event: date badge and details */
.date-badge {
  display: grid;
  place-content: center;
  width: 4.5rem;
  min-height: 4.5rem;
  padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
  line-height: 1.1;
  text-align: center;
}
.date-badge__day { display: block; font-size: 1.75rem; font-weight: 800; }
.date-badge__month { display: block; font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; }
.event-row { display: flex; gap: var(--space-5); align-items: flex-start; }
.event-month { margin: var(--space-7) 0 var(--space-4); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); font-size: var(--h4); }
.event-month:first-child,
.section__head + .event-month { margin-top: 0; }
.event-row .card__body { flex: 1; }
.event-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-3) var(--space-5);
  margin: 0 0 var(--space-6);
  padding: var(--space-5);
  border-top: 4px solid var(--lime);
  background: var(--surface);
}
.event-details dt { font-weight: 700; }
.event-details dd { margin: 0; }
.status { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: var(--text-sm); font-weight: 700; }
.status--past { background: var(--surface); color: var(--ink-muted); }

/* Gallery: album grid with captions always visible */
.gallery { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery__link { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery__link:hover img { transform: scale(1.03); }
.gallery__credit { display: block; margin-top: var(--space-1); }

/* Lightbox (native <dialog>) */
.lightbox { width: min(92vw, 70rem); max-height: 92vh; padding: 0; border: 0; background: var(--ink); color: var(--white); }
.lightbox::backdrop { background: rgb(0 0 0 / 0.85); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 75vh; width: auto; margin: 0 auto; border-radius: 0; }
.lightbox figcaption { margin: 0; padding: var(--space-4) var(--space-5); color: var(--footer-ink); font-size: 1rem; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); }
.lightbox__count { padding-left: var(--space-2); color: var(--footer-muted); font-size: var(--text-sm); }
.lightbox__nav { display: flex; gap: var(--space-2); }
.lightbox button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.12); color: var(--white); cursor: pointer; }
.lightbox button:hover { background: var(--lime); color: var(--ink); }
.lightbox button:focus-visible { outline-color: var(--lime-300); }
.lightbox svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }

/* Album cards on the gallery index */
.album .card__media { aspect-ratio: 4 / 3; }
.album__count { color: var(--ink-muted); font-size: var(--text-sm); }

/* Documents list */
.doc-list { margin: 0 0 var(--space-6); padding: 0; border-top: 1px solid var(--line); list-style: none; }
.doc-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.doc-list__icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 3.25rem; border-radius: var(--radius); background: var(--teal-50); color: var(--teal-700); font-size: 0.75rem; font-weight: 800; }
.doc-list__body { flex: 1 1 14rem; }
.doc-list__title { font-weight: 700; }
.doc-list__meta { display: block; color: var(--ink-muted); font-size: var(--text-sm); }

/* A–Z directory */
.az-nav { position: sticky; top: 0; z-index: 10; margin-bottom: var(--space-6); padding: var(--space-3) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.az-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.az-nav a,
.az-nav span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.az-nav a { background: var(--lime-50); color: var(--green-800); }
.az-nav a:hover { background: var(--lime); color: var(--ink); }
.az-nav span { color: var(--ink-muted); }
.az-group { margin-bottom: var(--space-7); scroll-margin-top: 5rem; }
.az-group h2,
.az-group__letter { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--lime); font-size: 1.5rem; }
.az-list { display: grid; gap: var(--space-4) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.az-list li { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.az-list strong { display: block; }
.az-list a { font-size: 1rem; }

/* 404 */
.not-found { max-width: var(--measure); padding-block: var(--space-7); }

/* Style guide helpers */
.swatches { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.swatch { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--text-sm); }
.swatch__chip { display: flex; align-items: flex-end; height: 5.5rem; padding: var(--space-2) var(--space-3); font-weight: 700; }
.swatch__info { padding: var(--space-2) var(--space-3); }
.swatch__info code { background: none; padding: 0; font-size: 1em; }
.type-scale > * { margin-bottom: var(--space-3); }
.sg-section { padding-block: var(--space-7); border-top: 1px solid var(--line); }
.sg-section:first-of-type { border-top: 0; padding-top: 0; }
.sg-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-5); }

/* 9. Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); font-size: 1rem; }
.site-footer a { color: var(--lime-300); }
.site-footer a:hover { color: var(--white); }
.site-footer h2 { margin-bottom: var(--space-4); color: var(--white); font-size: var(--text-base); letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer__main { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); padding-block: var(--space-7); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: var(--space-2); }
.site-footer .social li + li { margin-top: 0; }
.site-footer p { color: var(--footer-muted); }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); padding-block: var(--space-5); border-top: 1px solid rgb(255 255 255 / 0.12); color: var(--footer-muted); font-size: var(--text-sm); }
.site-footer__base p { margin: 0; }
.site-footer__base img { width: 3.5rem; border-radius: 2px; }
.site-footer .social a { background: rgb(255 255 255 / 0.08); color: var(--footer-ink); }
.site-footer .social a:hover { background: var(--lime); color: var(--ink); }

/* 10. Utilities
   ========================================================================== */
.visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--space-5); }

/* 11. Motion and print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-nav, .skip-link, .social, .hero__controls, .filters, .pagination, .site-footer__main { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
