/* NAMDA design system. See DESIGN.md for the reasoning behind every token.
   Cascade layers keep specificity predictable: tokens < base < layout < components < sections < utilities */
@layer tokens, base, layout, components, sections, utilities;

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* ================= Tokens ================= */
@layer tokens {
  :root {
    /* Brand, sampled from the logo */
    --brand-green: #018651;
    --brand-blue: #293e99;

    /* Light theme */
    --bg: #ffffff;
    --surface: #f1f6f4;
    --surface-2: #e6eeeb;
    --ink: #13203a;
    --ink-2: #4b5770;
    --line: #d9e3df;
    --green: #018651;
    --green-ink: #016e42;
    --green-tint: #e1f2ea;
    --blue: #293e99;
    --blue-ink: #293e99;
    --blue-tint: #e5e9f8;
    --on-green: #ffffff;
    --panel: #018651;
    --band: #1d2d78;
    --plate-ng: #d9eee3;
    --plate-au: #dce2f5;
    --focus: #293e99;

    /* Clay: a lit top edge, a shaded lower edge and a soft coloured drop */
    --clay:
      0 1px 0 rgb(255 255 255 / 0.9) inset,
      0 -3px 0 rgb(19 32 58 / 0.06) inset,
      0 14px 30px -12px rgb(41 62 153 / 0.22),
      0 3px 8px -2px rgb(19 32 58 / 0.08);
    --clay-hover:
      0 1px 0 rgb(255 255 255 / 0.9) inset,
      0 -3px 0 rgb(19 32 58 / 0.06) inset,
      0 20px 36px -14px rgb(41 62 153 / 0.3),
      0 3px 8px -2px rgb(19 32 58 / 0.08);
    --clay-pressed: 0 2px 6px rgb(19 32 58 / 0.14) inset;
    --clay-btn:
      0 1px 0 rgb(255 255 255 / 0.35) inset,
      0 -3px 0 rgb(0 0 0 / 0.16) inset,
      0 10px 20px -8px rgb(1 134 81 / 0.55);
    --shadow-photo: 0 30px 60px -30px rgb(19 32 58 / 0.45);

    /* Type */
    --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --t-small: clamp(0.85rem, 0.83rem + 0.1vw, 0.92rem);
    --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --t-lede: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
    --t-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
    --t-h2: clamp(1.85rem, 1.45rem + 1.8vw, 2.9rem);
    --t-display: clamp(2.5rem, 1.6rem + 3.9vw, 4.75rem);

    /* Space and shape */
    --pad: clamp(16px, 4vw, 48px);
    --section: clamp(64px, 2.5rem + 6vw, 120px);
    --max: 1240px;
    --header-h: 76px;
    --r-sm: 12px;
    --r: 20px;
    --r-lg: 28px;
    --r-seam: clamp(72px, 9vw, 140px);
    --r-pill: 999px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0b1322;
      --surface: #111c31;
      --surface-2: #17243e;
      --ink: #eef2fb;
      --ink-2: #a6b1c8;
      --line: #22304d;
      --green: #2fbf7f;
      --green-ink: #5ad59b;
      --green-tint: #11352a;
      --blue: #7d93f0;
      --blue-ink: #9eb0ff;
      --blue-tint: #1a2650;
      --on-green: #04170e;
      --panel: #0c6b45;
      --band: #121d4d;
      --plate-ng: #12392b;
      --plate-au: #1b2756;
      --focus: #9eb0ff;
      --clay:
        0 1px 0 rgb(255 255 255 / 0.07) inset,
        0 -3px 0 rgb(0 0 0 / 0.3) inset,
        0 16px 32px -14px rgb(0 0 0 / 0.7),
        0 3px 8px -2px rgb(0 0 0 / 0.4);
      --clay-hover:
        0 1px 0 rgb(255 255 255 / 0.09) inset,
        0 -3px 0 rgb(0 0 0 / 0.3) inset,
        0 22px 40px -14px rgb(0 0 0 / 0.8),
        0 3px 8px -2px rgb(0 0 0 / 0.4);
      --clay-pressed: 0 2px 8px rgb(0 0 0 / 0.5) inset;
      --clay-btn:
        0 1px 0 rgb(255 255 255 / 0.3) inset,
        0 -3px 0 rgb(0 0 0 / 0.2) inset,
        0 10px 22px -8px rgb(47 191 127 / 0.45);
      --shadow-photo: 0 30px 60px -30px rgb(0 0 0 / 0.8);
    }
  }
  :root[data-theme="dark"] {
    --bg: #0b1322;
    --surface: #111c31;
    --surface-2: #17243e;
    --ink: #eef2fb;
    --ink-2: #a6b1c8;
    --line: #22304d;
    --green: #2fbf7f;
    --green-ink: #5ad59b;
    --green-tint: #11352a;
    --blue: #7d93f0;
    --blue-ink: #9eb0ff;
    --blue-tint: #1a2650;
    --on-green: #04170e;
    --panel: #0c6b45;
    --band: #121d4d;
    --plate-ng: #12392b;
    --plate-au: #1b2756;
    --focus: #9eb0ff;
    --clay:
      0 1px 0 rgb(255 255 255 / 0.07) inset,
      0 -3px 0 rgb(0 0 0 / 0.3) inset,
      0 16px 32px -14px rgb(0 0 0 / 0.7),
      0 3px 8px -2px rgb(0 0 0 / 0.4);
    --clay-hover:
      0 1px 0 rgb(255 255 255 / 0.09) inset,
      0 -3px 0 rgb(0 0 0 / 0.3) inset,
      0 22px 40px -14px rgb(0 0 0 / 0.8),
      0 3px 8px -2px rgb(0 0 0 / 0.4);
    --clay-pressed: 0 2px 8px rgb(0 0 0 / 0.5) inset;
    --clay-btn:
      0 1px 0 rgb(255 255 255 / 0.3) inset,
      0 -3px 0 rgb(0 0 0 / 0.2) inset,
      0 10px 22px -8px rgb(47 191 127 / 0.45);
    --shadow-photo: 0 30px 60px -30px rgb(0 0 0 / 0.8);
  }
}

/* ================= Base ================= */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--t-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  img, svg { display: block; max-width: 100%; }
  h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
  p { margin: 0 0 1em; text-wrap: pretty; }
  p:last-child { margin-bottom: 0; }
  ul, ol { margin: 0; padding: 0; list-style: none; }
  figure, blockquote { margin: 0; }
  a { color: var(--green-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
  ::selection { background: var(--brand-green); color: #fff; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  }
}

/* ================= Layout ================= */
@layer layout {
  .wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
  .narrow { max-width: 46rem; }
  .section { padding-block: var(--section); }
  .section--mist { background: var(--surface); }
  .section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
  .section-head .h2 { margin-bottom: 0; max-width: 22ch; }
  .section-head--center { flex-direction: column; align-items: center; text-align: center; }
  .eyebrow { font-size: var(--t-small); font-weight: 700; color: var(--green-ink); margin-bottom: 12px; letter-spacing: 0; }
  .eyebrow--light { color: rgb(255 255 255 / 0.8); }
  .h1 { font-size: var(--t-display); }
  .h2 { font-size: var(--t-h2); margin-bottom: 0.5em; }
  .lede { font-size: var(--t-lede); line-height: 1.5; }
  .muted { color: var(--ink-2); }
}

/* ================= Components ================= */
@layer components {
  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    min-height: 46px; padding: 0.7em 1.3em;
    border: 0; border-radius: var(--r-pill);
    font: 700 var(--t-body)/1.2 var(--font);
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform 0.12s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s, color 0.15s;
  }
  .btn:active { transform: translateY(1px) scale(0.99); }
  .btn--lg { min-height: 56px; padding-inline: 1.6em; font-size: clamp(1.02rem, 1rem + 0.2vw, 1.12rem); }
  .btn--primary { background: var(--green); color: var(--on-green); box-shadow: var(--clay-btn); }
  .btn--primary:hover { background: color-mix(in srgb, var(--green) 88%, black); }
  .btn--clay { background: var(--bg); color: var(--ink); box-shadow: var(--clay); }
  .btn--clay:hover { box-shadow: var(--clay-hover); }
  .btn--ghost { background: transparent; color: var(--ink); }
  .btn--ghost:hover { background: var(--surface); }
  .section-head .btn--ghost { box-shadow: inset 0 0 0 1.5px var(--line); }
  .btn--white { background: #fff; color: #1d2c73; box-shadow: 0 -3px 0 rgb(0 0 0 / 0.12) inset, 0 10px 20px -10px rgb(0 0 0 / 0.5); }
  .btn--white:hover { background: #eef1fc; }
  .btn--outline-white { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.55); }
  .btn--outline-white:hover { box-shadow: inset 0 0 0 2px #fff; }

  .icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
  .icon-btn:hover { background: var(--surface-2); }

  .skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); }
  .skip-link:focus { top: 16px; }

  /* Header: solid, so nothing ever shows behind the menu button */
  .site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
  .site-header.is-scrolled { border-bottom-color: var(--line); }
  .site-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
  .brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; }
  .brand__disc { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: #fff; box-shadow: var(--clay); }
  .brand__disc img { width: 40px; height: 40px; }
  .brand__disc--lg { width: 64px; height: 64px; margin-bottom: 16px; }
  .brand__disc--lg img { width: 54px; height: 54px; }
  .brand__text { display: grid; line-height: 1.1; }
  .brand__name { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
  .brand__sub { font-size: 0.78rem; color: var(--ink-2); }

  .site-header__tools { display: flex; align-items: center; gap: 6px; }
  .icon--moon { display: none; }
  :root[data-theme="dark"] .icon--sun { display: none; }
  :root[data-theme="dark"] .icon--moon { display: block; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon--sun { display: none; }
    :root:not([data-theme="light"]) .icon--moon { display: block; }
  }

  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.25s var(--ease), background-color 0.2s;
  }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* Small screens: a full height sheet under the header */
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    display: flex; flex-direction: column;
    padding: 8px var(--pad) calc(24px + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.25s var(--ease); }
  .nav__list a { display: flex; align-items: center; min-height: 58px; font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .nav__actions { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
  .nav__actions .btn { min-height: 56px; }
  .nav__actions .btn--ghost { background: var(--surface); }

  @media (min-width: 1080px) {
    .menu-toggle { display: none; }
    .nav { position: static; flex-direction: row; align-items: center; gap: 20px; padding: 0; background: none; overflow: visible; opacity: 1; visibility: visible; transform: none; transition: none; }
    .nav__list { display: flex; gap: 2px; }
    .nav__list a { min-height: 44px; padding-inline: 12px; border: 0; border-radius: var(--r-pill); font-size: 0.95rem; font-weight: 600; }
    .nav__list a:hover { background: var(--surface); }
    .nav__actions { display: flex; gap: 6px; margin: 0; padding: 0; }
    .nav__actions .btn { min-height: 44px; font-size: 0.95rem; }
    .nav__actions .btn--ghost { background: transparent; }
    .site-header__tools { order: 3; }
  }

  /* Photos */
  .photo { position: relative; overflow: hidden; background: var(--plate, var(--surface-2)); isolation: isolate; }
  .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
  .photo--person { background: radial-gradient(90% 70% at 50% 100%, rgb(255 255 255 / 0.35), transparent 70%), var(--plate); }
  .photo--person img { object-position: 50% 100%; }
  .photo__silhouette { display: none; position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--ink); opacity: 0.12; }
  .photo.is-missing .photo__silhouette { display: block; }
  .plate--ng { --plate: var(--brand-green); }
  .plate--au { --plate: var(--brand-blue); }

  /* Service tiles */
  .tile {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon title" "icon text";
    column-gap: 16px; row-gap: 2px; align-content: start;
    height: 100%; padding: 20px;
    border-radius: var(--r-lg);
    background: var(--bg); color: var(--ink); text-decoration: none;
    box-shadow: var(--clay);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .tile:hover { transform: translateY(-3px); box-shadow: var(--clay-hover); }
  .tile:active { transform: none; box-shadow: var(--clay-pressed); }
  .tile__icon { grid-area: icon; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--green-tint); color: var(--green-ink); }
  .tile--au .tile__icon { background: var(--blue-tint); color: var(--blue-ink); }
  .tile__title { grid-area: title; font-weight: 600; font-size: var(--t-h3); line-height: 1.25; }
  .tile__text { grid-area: text; color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { padding: 0.45em 1em; border-radius: var(--r-pill); background: var(--bg); box-shadow: var(--clay); font-weight: 600; font-size: var(--t-small); }

  /* Footer */
  .site-footer { background: var(--surface); padding-top: var(--section); font-size: var(--t-small); }
  .site-footer__top { display: grid; gap: 40px; }
  .site-footer__name { font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; max-width: 26ch; }
  .site-footer__blurb { color: var(--ink-2); max-width: 34ch; }
  .site-footer__heading { font-size: var(--t-body); font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
  .site-footer__col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; }
  .site-footer__col a:hover { color: var(--green-ink); text-decoration: underline; }
  .site-footer__country { max-width: 72ch; margin: 48px 0 0; padding-block: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }
  .site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-2); }
  .site-footer__base p { margin: 0; }
  .site-footer__base a { color: inherit; }
  @media (min-width: 760px) { .site-footer__top { grid-template-columns: 2fr 1fr 1fr; } }
}

/* ================= Sections ================= */
@layer sections {

  /* ---------- 1. Noticeboard ---------- */
  .board-wrap { padding-block: clamp(16px, 3vw, 40px) clamp(56px, 7vw, 96px); }
  .board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .board-head__title { margin: 0; font-weight: 600; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); letter-spacing: -0.01em; }
  .board-head__date { margin: 0; font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }

  /* One column on phones, in order of importance */
  .board {
    display: grid; gap: 14px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "id" "photo" "walk" "dues" "post" "pres" "ask" "exco";
  }
  .note {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
    margin: 0; padding: clamp(20px, 2.2vw, 28px);
    border-radius: var(--r-lg); background: var(--bg); color: var(--ink);
    box-shadow: var(--clay);
  }
  .note__label { margin: 0; font-size: var(--t-small); font-weight: 700; color: var(--green-ink); }
  .note__title { display: block; margin: 0; font-size: var(--t-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
  .note__text { display: block; margin: 0; color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }
  .note__link { margin-top: auto; font-weight: 700; color: var(--green-ink); }
  .note .btn { align-self: flex-start; margin-top: auto; }
  .btn--sm { min-height: 42px; padding: 0.55em 1.1em; font-size: var(--t-small); }

  .note--id { grid-area: id; background: var(--panel); color: #fff; gap: 16px; }
  .note__top { display: flex; align-items: center; gap: 10px; }
  .note__disc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
  .note--id .note__label { color: rgb(255 255 255 / 0.85); }
  .note--id__name { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; max-width: 15ch; margin-top: auto; }
  .note--id__text { margin: 0; color: rgb(255 255 255 / 0.86); font-size: var(--t-lede); line-height: 1.45; max-width: 44ch; }
  .note__actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .note--id .btn { align-self: auto; margin-top: 0; }

  .note--photo { grid-area: photo; padding: 0; min-height: 320px; }
  .note__photo { position: absolute; inset: 0; }
  .note__photo img { object-position: 50% 18%; }
  .note--photo figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 48px 20px 18px; color: #fff; font-size: var(--t-small); font-weight: 600; line-height: 1.4;
    background: linear-gradient(to top, rgb(11 19 34 / 0.82), transparent);
  }

  .note--walk { grid-area: walk; background: var(--blue-tint); box-shadow: none; }
  .note--walk .note__label { color: var(--blue-ink); }
  .note__date { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-weight: 700; }

  .note--dues { grid-area: dues; }

  .note--post { grid-area: post; padding: 0; gap: 0; }
  .note--post__feature { display: grid; color: inherit; text-decoration: none; }
  .note--post__media { aspect-ratio: 16 / 10; }
  .note--post__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 8px; }
  .note--post__feature:hover .note__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
  .note--post__more { padding: 8px 24px 20px; }
  .note--post__more a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
  .note--post__more a:hover span { text-decoration: underline; }
  .note--post__more time { flex: none; color: var(--ink-2); font-weight: 400; font-size: var(--t-small); }
  .post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--ink-2); }
  .post__tag { padding: 0.15em 0.7em; border-radius: var(--r-pill); background: var(--green-tint); color: var(--green-ink); font-weight: 700; }

  .note--president { grid-area: pres; padding-bottom: 0; background: var(--surface); box-shadow: none; }
  /* The portrait runs edge to edge and sits on the bottom of the card */
  .note--president__photo { --plate: transparent; aspect-ratio: 4 / 5; max-height: 420px; margin: auto calc(-1 * clamp(20px, 2.2vw, 28px)) 0; background: none; }
  .note--president__photo img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%); }

  .note--ask { grid-area: ask; background: var(--band); color: #fff; }
  .note--ask .note__label { color: rgb(255 255 255 / 0.8); }
  .note--ask .btn--white { color: #1d2c73; }
  .note__text--light { color: rgb(255 255 255 / 0.8); }

  .note--exco { grid-area: exco; }
  .avatars { display: flex; padding-left: 10px; }
  .avatars img { width: 40px; height: 40px; margin-left: -10px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--plate-ng); border: 2px solid var(--bg); }
  .avatars img:nth-child(even) { background: var(--plate-au); }
  .avatars--lg { margin: 6px 0 8px; }
  .avatars--lg img { width: 52px; height: 52px; }

  .quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
  .quicklinks a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0.5em 1.1em 0.5em 0.9em; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--t-small); text-decoration: none; }
  .quicklinks a:hover { background: var(--surface-2); }
  .quicklinks .icon { width: 18px; height: 18px; color: var(--green-ink); }

  @media (max-width: 719px) { .note--president__photo { aspect-ratio: 6 / 5; max-width: 420px; } }
  @media (min-width: 720px) {
    .board {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-areas: "id id" "photo walk" "photo dues" "post post" "pres ask" "pres exco";
    }
    .note--post__feature { grid-template-columns: 1fr 1fr; }
    .note--post__media { aspect-ratio: auto; min-height: 260px; }
  }
  @media (min-width: 1080px) {
    .board {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      grid-auto-rows: minmax(200px, auto);
      grid-template-areas:
        "id id photo walk"
        "id id photo dues"
        "pres post post ask"
        "pres post post exco";
    }
    .note--photo { min-height: 0; }
    .note--post__feature { grid-template-columns: 1fr; }
    .note--post__media { min-height: 0; aspect-ratio: 16 / 9; }
  }

  /* One moment on load: the notes settle onto the board in reading order */
  @media (prefers-reduced-motion: no-preference) {
    .note { animation: pin 0.55s var(--ease) both; }
    .note--photo { animation-delay: 0.06s; }
    .note--walk { animation-delay: 0.12s; }
    .note--dues { animation-delay: 0.18s; }
    .note--president { animation-delay: 0.24s; }
    .note--post { animation-delay: 0.3s; }
    .note--ask { animation-delay: 0.36s; }
    .note--exco { animation-delay: 0.42s; }
  }
  @keyframes pin { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

  /* ---------- 2. Capital to capital ---------- */
  .journey__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
  .journey__intro .lede { color: var(--ink-2); max-width: 46ch; }
  .journey__values { display: grid; gap: 14px; }
  .journey__values li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 18px 20px; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--clay); }
  .journey__values strong { display: block; font-size: var(--t-h3); margin-bottom: 2px; }
  .journey__values span span, .journey__values li > span:last-child { color: var(--ink-2); }
  .journey__values strong { color: var(--ink); }
  .journey__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); }
  .journey__icon--au { background: var(--blue-tint); color: var(--blue-ink); }
  @media (min-width: 960px) { .journey__grid { grid-template-columns: 5fr 6fr; } }

  /* ---------- 7. Community ---------- */
  .community { background: var(--band); color: #fff; padding-block: var(--section); overflow: hidden; }
  .community__grid { display: grid; gap: clamp(40px, 5vw, 80px); align-items: center; }
  .community .h2 { color: #fff; }
  .community__lede { font-size: var(--t-lede); line-height: 1.5; color: rgb(255 255 255 / 0.84); max-width: 42ch; }
  .community__date { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 0.55em 1.1em; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.1); font-weight: 700; }
  .community__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  .projects { display: grid; gap: 14px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.18); }
  .projects li { display: grid; gap: 2px; align-content: start; }
  .projects span { color: rgb(255 255 255 / 0.74); }
  .community__media { position: relative; padding-bottom: 12%; }
  .community__photo { aspect-ratio: 4 / 3; border-radius: var(--r-seam) var(--r-lg) var(--r-lg) var(--r-lg); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7); }
  .community__inset {
    position: absolute; left: -4%; bottom: 0; width: 46%; aspect-ratio: 4 / 3;
    border-radius: var(--r); border: 6px solid var(--band);
    box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.7);
  }
  @media (max-width: 479px) { .community__ctas .btn { flex: 1 1 100%; } .community__inset { left: 0; } }
  @media (min-width: 960px) { .community__grid { grid-template-columns: 1fr 1fr; } .projects { grid-template-columns: 1fr 1fr; gap: 24px; } }

  /* ---------- 8. Executive committee ---------- */
  .exco__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .person__photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); margin-bottom: 14px; }
  .person__photo--ng { --plate: var(--plate-ng); }
  .person__photo--au { --plate: var(--plate-au); }
  .person__name { font-weight: 600; font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.25; margin: 0 0 2px; }
  .person__office { font-size: var(--t-small); color: var(--ink-2); }
  @media (min-width: 700px) { .exco__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
  @media (min-width: 1100px) { .exco__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

  /* ---------- 9. Membership ---------- */
  .membership__grid { display: grid; gap: 48px; }
  .membership__intro .chips { margin: 24px 0 32px; }
  .steps { counter-reset: step; display: grid; gap: 14px; }
  .step { position: relative; counter-increment: step; padding: 22px 24px 22px 84px; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--clay); }
  .step::before {
    content: counter(step); position: absolute; left: 22px; top: 22px;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--green-tint); color: var(--green-ink); font-weight: 700; font-size: 1.1rem;
  }
  .step:last-child::before { background: var(--green); color: var(--on-green); }
  .step__title { font-size: var(--t-h3); margin-bottom: 4px; }
  .step p { color: var(--ink-2); }
  @media (max-width: 479px) { .membership__intro .btn { width: 100%; } }
  @media (min-width: 960px) { .membership__grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; } }
}

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

@layer sections {
  /* The identity card leads with the wordmark, set large with a glassy light falloff */
  .note--id__mark {
    margin: auto 0 0; font-size: clamp(4rem, 1.6rem + 8vw, 8.75rem); font-weight: 700; line-height: 0.88; letter-spacing: -0.055em;
    background: linear-gradient(180deg, #fff 30%, rgb(255 255 255 / 0.62)); -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  /* Who can join: the professions membership is open to */
  .eligible__title { font-size: var(--t-body); font-weight: 600; margin: 28px 0 12px; letter-spacing: 0; }
  .eligible { display: grid; gap: 10px; margin: 0 0 32px; }
  .eligible__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r); background: var(--bg); box-shadow: var(--clay); }
  .eligible__item strong { display: block; font-weight: 600; line-height: 1.3; }
  .eligible__item span span { display: block; color: var(--ink-2); font-size: var(--t-small); line-height: 1.45; margin-top: 2px; }
  .eligible__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--green-tint); color: var(--green-ink); }
  .eligible__icon--au { background: var(--blue-tint); color: var(--blue-ink); }
  @media (min-width: 560px) { .eligible { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 960px) and (max-width: 1179px) { .eligible { grid-template-columns: 1fr; } }
}

@layer sections {
  /* President: a short letter signed with a small round portrait */
  .note--president { padding-bottom: clamp(20px, 2.2vw, 28px); gap: 12px; }
  .president-note { position: relative; margin: 4px 0 0; padding-top: 34px; }
  .president-note::before {
    content: "\201C"; position: absolute; top: -6px; left: -2px;
    font-size: 4.2rem; font-weight: 700; line-height: 1; color: var(--green); opacity: 0.35;
  }
  .president-note p { margin: 0 0 0.75em; font-size: var(--t-small); line-height: 1.6; color: var(--ink-2); }
  .president-note p:first-child { font-size: var(--t-body); font-weight: 700; line-height: 1.45; color: var(--ink); }
  .president-sign { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--glass-edge); }
  .president-sign__avatar { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--plate-ng); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line); }
  /* The cutout is framed for a tall portrait, so zoom in until the face fills the circle */
  .president-sign__avatar img { position: absolute; width: 125%; max-width: none; height: auto; left: -12.5%; top: -34%; }
  .president-sign__text { display: grid; line-height: 1.3; }
  .president-sign__text strong { font-weight: 600; }
  .president-sign__text span { font-size: var(--t-small); color: var(--ink-2); }
}

@layer sections {
  .note__link--light { color: #fff; }
  /* Without buttons the identity card ends on its sentence, so give it room to breathe */
  .note--id { justify-content: flex-end; }
}

@layer sections {
  .note--ask .note__link { margin-top: auto; }
  .note__fine { margin: 0; font-size: 0.78rem; line-height: 1.4; color: rgb(255 255 255 / 0.66); }
}


/* Association refinement: editorial hierarchy with restrained glass surfaces. */
@layer tokens {
  :root {
    --r-sm: 10px; --r: 18px; --r-lg: 24px; --r-pill: 999px;
    --r-seam: 36px; --max: 1200px;
    --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --clay: none; --clay-hover: none; --clay-btn: none;
    --shadow-photo: none;
    --t-h2: clamp(1.9rem, 1.45rem + 1.8vw, 2.7rem);
  }
  :root[data-theme="light"] {
    --bg: #fbfcfa; --surface: #f0f3ef; --surface-2: #e7ece7;
    --ink: #192f2b; --ink-2: #56655f; --line: #d7dfd8;
    --panel: #114b3c; --band: #233b57;
    --plate-ng: #e4ece5; --plate-au: #e4e9ee;
  }
  :root[data-theme="dark"] {
    --clay: none; --clay-hover: none; --clay-btn: none;
    --shadow-photo: none; --panel: #153e34; --band: #1b3047;
  }
}
@layer base {
  h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
}
@layer components {
  .site-header { border-bottom: 1px solid var(--line); }
  .brand__disc { box-shadow: none; }
  .brand__name { font-weight: 700; font-size: 1.3rem; letter-spacing: .035em; }
  .btn { font-weight: 600; border: 1px solid transparent; }
  .btn--primary { box-shadow: none; }
  .btn--ghost { border-color: var(--line); }
  .btn--white, .btn--outline-white { box-shadow: none; }
  .btn--outline-white { border-color: #a0b2c3; }
  .icon-btn { border-radius: 6px; background: transparent; }
  .nav__list a { padding-inline: 9px; }
  .site-footer { border-top: 1px solid var(--line); }
  .site-footer__name, .site-footer__heading { font-weight: 600; }
  .photo--person { background: var(--plate); }
}
@layer sections {
  .board-wrap { padding-block: 30px 64px; }
  .board-head { margin-bottom: 24px; padding-bottom: 16px; }
  .board-head__title { font-size: .95rem; font-weight: 600; letter-spacing: .015em; }
  .board-head__date { font-size: .82rem; }
  .board { gap: 20px; }
  .note { border: 1px solid var(--line); box-shadow: none; gap: 14px; padding: 28px; animation: none; }
  .note__title { font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); letter-spacing: -.025em; line-height: 1.2; }
  .note__label { font-weight: 600; font-size: .8rem; letter-spacing: .025em; }
  .note__text { font-size: .95rem; line-height: 1.6; }
  .note__link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; }
  .note--id { padding: clamp(28px, 4vw, 48px); border-color: transparent; gap: 24px; justify-content: center; }
  .note__disc { display: none; }
  .note--id__name { font-size: clamp(2.1rem, 1.1rem + 2.9vw, 3.55rem); max-width: 18ch; font-weight: 600; line-height: 1.07; letter-spacing: -.045em; margin: 0; }
  .note--id__text { font-size: 1rem; line-height: 1.65; max-width: 45ch; }
  .note--photo { padding: 0; min-height: 350px; }
  .note__photo { position: absolute; }
  .note__photo img { object-position: 50% 28%; }
  .note--photo figcaption { padding: 20px 24px; background: #18372fee; font-weight: 500; }
  .photo-credit { display: block; font-size: .72rem; font-weight: 400; color: #d2dfd7; margin-top: 3px; }
  .note--walk { background: var(--surface); }
  .note--walk .note__label { color: var(--green-ink); }
  .note__date { font-size: .88rem; font-weight: 500; }
  .note--dues { background: var(--bg); }
  .note--exco { background: var(--bg); }
  .note--post { padding: 28px; background: var(--surface); }
  .resource-list { margin-top: 8px; }
  .resource-list li { display: grid; gap: 3px; padding: 13px 0; border-top: 1px solid var(--line); }
  .resource-list li > span:first-child { display: flex; gap: 12px; align-items: center; }
  .resource-list strong { font-size: .95rem; font-weight: 600; }
  .resource-list .icon { width: 18px; height: 18px; color: var(--green-ink); }
  .resource-list li > span:last-child { padding-left: 30px; font-size: .83rem; color: var(--ink-2); }
  .note__status { margin: 0; font-size: .8rem; color: var(--ink-2); }
  .note--president { background: var(--bg); padding-bottom: 28px; }
  .association-note { color: var(--ink-2); font-size: 1rem; line-height: 1.7; max-width: 53ch; }
  .president-sign { border-top-color: var(--line); padding-top: 20px; }
  .president-sign__text strong { font-weight: 600; }
  .note--ask { background: var(--band); border-color: transparent; }
  .note__fine { color: #e0e7f0; }
  .avatars--lg img { width: 44px; height: 44px; }
  .quicklinks { gap: 0; margin-top: 24px; border-block: 1px solid var(--line); }
  .quicklinks a { background: transparent; border-radius: 0; padding: 14px 20px 14px 0; margin-right: 20px; font-weight: 500; }
  .journey__grid { gap: clamp(32px, 7vw, 96px); }
  .journey__values li { box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 20px 0; }
  .journey__values strong { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
  .journey__icon { border-radius: 8px; }
  .community__date { border-radius: 4px; font-size: .9rem; font-weight: 500; }
  .community__photo { border-radius: 12px; box-shadow: none; }
  .community__inset { border-radius: 8px; box-shadow: none; }
  .community__photo-note { font-size: .72rem; color: #d9e1eb; margin-bottom: 12px; }
  .exco__grid { gap: 28px 20px; }
  .person__photo { border-radius: 8px; margin-bottom: 16px; }
  .person__photo img { transform: scale(var(--lift, 1)); transform-origin: 50% 100%; }
  .person__badge { padding-top: 0; }
  .person__name { font-size: 1rem; font-weight: 600; }
  .person__office { font-size: .85rem; }
  .eligible__item { box-shadow: none; border: 1px solid var(--line); border-radius: 6px; }
  .eligible__item strong { font-weight: 600; }
  .eligible__title { font-weight: 600; }
  .eligible__icon { width: 32px; height: 32px; border-radius: 4px; }
  .step { border-radius: 0; box-shadow: none; background: transparent; border-bottom: 1px solid var(--line); padding: 24px 0 24px 68px; }
  .step::before { left: 0; top: 24px; border-radius: 6px; font-weight: 500; }
  .step__title { font-size: 1.2rem; font-weight: 600; }
  .step p { font-size: .95rem; }
  @media (min-width: 720px) {
    .board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "id photo" "walk dues" "pres post" "ask exco"; }
    .note--id__name { font-size: clamp(2rem, 3.8vw, 3.55rem); }
  }
  @media (min-width: 1080px) {
    .board { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: auto;
      grid-template-areas: "id id id photo photo photo" "walk walk dues dues exco exco" "pres pres pres post post post" "ask ask ask ask ask ask"; }
    .note--id, .note--photo { min-height: 440px; }
    .note--ask { display: grid; grid-template-columns: 1fr auto; column-gap: 48px; align-items: center; }
    .note--ask .note__label, .note--ask .note__title, .note--ask .note__text { grid-column: 1; }
    .note--ask .note__link { grid-column: 2; grid-row: 1 / 4; margin: 0; }
    .note--ask .note__fine { grid-column: 1 / -1; }
  }
  @media (max-width: 719px) {
    .board-head { align-items: start; flex-direction: column; gap: 4px; }
    .board { grid-template-areas: "id" "walk" "dues" "photo" "pres" "post" "exco" "ask"; gap: 16px; }
    .note { padding: 24px; }
    .note--photo { padding: 0; min-height: 340px; }
    .note--id { padding: 32px 24px; }
    .note--id__name { font-size: clamp(2rem, 7.8vw, 3rem); }
    .quicklinks { display: grid; grid-template-columns: 1fr 1fr; }
    .quicklinks a { margin: 0; padding: 12px 8px 12px 0; font-size: .8rem; }
  }
  @media (max-width: 359px) { .quicklinks { grid-template-columns: 1fr; } }
}

/* Glass is concentrated in the noticeboard and navigation; longer reading
   sections keep a quiet background. Opaque fills are the default fallback. */
@layer tokens {
  :root {
    --pane: #f7faf7;
    --pane-edge: #d9e3dd;
    --board-green: rgb(1 134 81 / .12);
    --board-blue: rgb(41 62 153 / .10);
    --pane-shadow: 0 8px 28px -18px rgb(24 55 47 / .24), inset 0 1px 0 rgb(255 255 255 / .65);
  }
  :root[data-theme="dark"] {
    --pane: #132132; --pane-edge: #2a3c48;
    --board-green: rgb(30 145 101 / .18);
    --board-blue: rgb(74 98 194 / .15);
    --pane-shadow: 0 12px 30px -20px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .08);
  }
}
@layer components {
  .site-header { background: transparent; isolation: isolate; }
  .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); }
  .site-header:has(.nav.is-open)::before { background: var(--bg); }
  .icon-btn { border-radius: 50%; }
  .btn--primary { box-shadow: 0 4px 12px -7px rgb(1 134 81 / .65), inset 0 1px 0 rgb(255 255 255 / .18); }
}
@layer sections {
  .board-wrap {
    background: radial-gradient(ellipse at 5% 10%, var(--board-green), transparent 52%),
                radial-gradient(ellipse at 100% 60%, var(--board-blue), transparent 55%);
  }
  .note { background: var(--pane); border-color: var(--pane-edge); box-shadow: var(--pane-shadow); }
  .note--id { background: var(--panel); border-color: rgb(255 255 255 / .18); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14); }
  .note--photo { border: 0; box-shadow: none; }
  .note--photo figcaption { left: 14px; right: 14px; bottom: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .22); background: #16342fe8; }
  .note--ask { background: var(--band); border-color: rgb(255 255 255 / .12); }
  .quicklinks { border: 0; gap: 8px; }
  .quicklinks a { margin: 0; padding: 10px 16px; border: 1px solid var(--pane-edge); border-radius: 999px; background: var(--pane); }
  .community__photo { border-radius: 24px 24px 60px 24px; }
  .person__photo { border-radius: 20px; }
  .eligible__item { border-radius: 14px; }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header::before { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
    .note, .quicklinks a { background: color-mix(in srgb, var(--pane) 72%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
    .note--id { background: linear-gradient(135deg, rgb(255 255 255 / .055), transparent 65%), color-mix(in srgb, var(--panel) 96%, transparent); }
    .note--ask { background: color-mix(in srgb, var(--band) 96%, transparent); }
    .note--photo { -webkit-backdrop-filter: none; backdrop-filter: none; }
    .note--photo figcaption { background: rgb(16 43 36 / .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  }
  @media (max-width: 719px) {
    .quicklinks { gap: 8px; }
    .quicklinks a { padding: 10px 12px; border-radius: 14px; }
  }
}

@layer sections {
  .application-section { background: radial-gradient(ellipse at 0 0, var(--board-green), transparent 60%), radial-gradient(ellipse at 100% 80%, var(--board-blue), transparent 60%); }
  .application-layout { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
  .application-intro { max-width: 40ch; }
  .application-journey { counter-reset: application; margin: 32px 0; display: grid; gap: 24px; }
  .application-journey li { counter-increment: application; position: relative; padding-left: 48px; }
  .application-journey li::before { content: counter(application); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green-ink); }
  .application-journey strong, .application-journey span { display: block; }
  .application-journey span { color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
  .application-panel { min-width: 0; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--pane-edge); border-radius: 24px; background: var(--bg); box-shadow: var(--pane-shadow); }
  .application-heading { font-size: 1.8rem; margin-bottom: 12px; }
  .application-panel fieldset { border: 0; min-width: 0; padding: 0; margin: 32px 0; }
  .application-panel legend { font-weight: 600; padding: 0 0 16px; width: 100%; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
  .form-grid { display: grid; gap: 20px; }
  .form-field { min-width: 0; }
  .form-field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
  .field-optional { color: var(--ink-2); font-weight: 400; font-size: .78rem; margin-left: 4px; }
  .form-field input, .form-field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
  .form-field textarea { resize: vertical; }
  .field-help { font-size: .8rem; color: var(--ink-2); margin: 8px 0 0; line-height: 1.5; }
  .form-field [aria-invalid="true"] { border-color: #bd4b40; }
  .field-error { font-size: .85rem; color: #a82b24; }
  :root[data-theme="dark"] .field-error { color: #ffaaa3; }
  .form-errors { padding: 20px; border: 1px solid #bd4b40; border-radius: 12px; margin-top: 24px; }
  .form-errors ul { padding-left: 20px; list-style: disc; font-size: .9rem; }
  .form-errors a { color: var(--ink); }
  .collection-notice, .application-notice { padding: 20px; background: var(--surface); border-radius: 14px; margin-block: 24px; font-size: .9rem; }
  .collection-notice h3 { font-size: 1rem; margin-bottom: 10px; }
  .application-notice p { margin-top: 8px; color: var(--ink-2); }
  .form-checks { display: grid; gap: 18px; margin-bottom: 28px; }
  .form-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; cursor: pointer; padding-block: 4px; }
  .form-check input { width: 20px; height: 20px; flex: none; accent-color: var(--green); margin: 2px 0 0; }
  .form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .application-success { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); font-size: 1.8rem; margin: 24px 0; }
  @media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-field--wide { grid-column: 1 / -1; } }
  @media (min-width: 960px) { .application-layout { grid-template-columns: 4fr 7fr; } }
}
@layer sections {
  @media (min-width: 800px) { .application-layout { grid-template-columns: 4fr 7fr; } }
  @media (max-width: 799px) {
    .application-intro { max-width: none; }
    .application-intro .application-journey { display: none; }
    .application-intro .lede { font-size: 1rem; }
    .application-intro .application-notice { margin-bottom: 0; }
    .application-section { padding-block: 36px; }
  }
}

@layer sections {
  .auth-wrap { max-width: 620px; }
  .auth-panel { padding: clamp(24px, 4vw, 48px); }
  .account-form { display: grid; gap: 20px; margin-top: 24px; }
  .account-form .btn { justify-self: start; }
  .account-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
  .account-message { padding: 16px 20px; background: var(--green-tint); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; }
  .code-input { text-align: center; letter-spacing: .3em; font-variant-numeric: tabular-nums; font-size: 1.8rem !important; }
  .password-rules { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; font-size: .83rem; color: var(--ink-2); }
  .password-rules li::before { content: '○'; margin-right: 7px; }
  .password-rules li.is-met { color: var(--green-ink); }
  .password-rules li.is-met::before { content: '✓'; }
  .member-layout { display: grid; gap: 32px; align-items: start; }
  .member-sidebar { min-width: 0; }
  .member-name { font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
  .member-sidebar nav { display: grid; gap: 6px; margin: 24px 0; }
  .member-sidebar nav a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: var(--ink); }
  .member-sidebar nav a[aria-current="page"] { background: var(--green-tint); color: var(--green-ink); font-weight: 600; }
  .member-sidebar nav a:hover { background: var(--surface); }
  .member-main { min-width: 0; display: grid; gap: 24px; }
  .member-main .application-panel h2 { font-size: 1.4rem; margin-bottom: 12px; }
  .member-summary { display: grid; gap: 24px; margin: 32px 0; border-block: 1px solid var(--line); padding-block: 24px; }
  .member-summary > div { display: grid; gap: 6px; }
  .member-summary strong { font-weight: 600; }
  .member-summary .muted { font-size: .83rem; }
  .membership-status { color: var(--green-ink); }
  .member-feature-grid { display: grid; gap: 20px; }
  .profile-photo-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 12px; }
  .profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--green-tint); }
  .profile-initials { display: grid; place-items: center; font-size: 2rem; color: var(--green-ink); }
  .account-email { overflow-wrap: anywhere; }
  .account-subtitle { font-size: 1.2rem; margin-top: 24px; }
  .account-divider { border: 0; border-top: 1px solid var(--line); margin-block: 40px; }
  .review-card { border-top: 1px solid var(--line); padding-block: 20px; }
  .review-card dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: .9rem; padding-block: 6px; }
  .review-card dt { color: var(--ink-2); }
  .review-card dd { margin: 0; overflow-wrap: anywhere; }
  @media (min-width: 800px) {
    .member-layout { grid-template-columns: 230px minmax(0, 1fr); }
    .member-feature-grid { grid-template-columns: 1fr 1fr; }
    .member-summary { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 799px) {
    .member-sidebar nav { display: flex; flex-wrap: wrap; margin-block: 12px; }
    .member-sidebar nav a { padding-inline: 12px; }
    .member-sidebar > form { margin-top: 12px; }
  }
}

@layer sections {
  .profile-photo-row .form-field { flex: 1; min-width: 220px; }
  .form-field input[type="file"] { font-size: .85rem; padding: 8px; }
  input[type="file"]::file-selector-button { border: 0; border-radius: 999px; padding: 8px 12px; margin-right: 10px; background: var(--green-tint); color: var(--green-ink); font: inherit; cursor: pointer; }
}
@layer sections {
  .sign-in-divider { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: .8rem; margin: 30px 0 20px; }
  .sign-in-divider::before, .sign-in-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
  .provider-buttons { display: grid; gap: 12px; }
  .btn--provider { background: var(--bg); border: 1px solid var(--line); color: var(--ink); width: 100%; justify-content: flex-start; white-space: normal; text-align: left; }
  .btn--provider:disabled { cursor: default; color: var(--ink-2); }
  .provider-symbol { display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: 1.3rem; font-weight: 600; flex: none; }
  .provider-unavailable { font-size: .72rem; margin-left: auto; font-weight: 400; }
  .provider-connections { display: grid; gap: 16px; margin-top: 24px; }
  .provider-connection { padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
  .provider-heading { display: flex; gap: 12px; align-items: center; }
  .provider-heading h3 { font-size: 1.1rem; }
}
@layer sections {
  .btn--provider { position: relative; min-height: 48px; border-radius: 6px; background: #fff; color: #1f1f1f; border-color: #747775; font-family: Arial, sans-serif; font-size: 14px; font-weight: 500; gap: 12px; padding-inline: 16px; }
  .btn--provider:disabled { color: #1f1f1f; }
  .provider-symbol { position: relative; width: 20px; height: 20px; overflow: hidden; flex: none; }
  .provider-symbol > img { display: block; width: 20px; height: 20px; }
  .provider-symbol > .google-mark { position: absolute; width: 40px; height: 40px; max-width: none; left: -10px; top: -10px; }
  .provider-symbol > .google-mark--dark { display: none; }
  .provider-unavailable { color: #555; }
  :root[data-theme="dark"] .btn--provider { background: #131314; color: #e3e3e3; border-color: #8e918f; }
  :root[data-theme="dark"] .provider-unavailable { color: #bfc2c0; }
  :root[data-theme="dark"] .provider-symbol > .google-mark--light { display: none; }
  :root[data-theme="dark"] .provider-symbol > .google-mark--dark { display: block; }
}
@layer sections {
  .billing-test { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-tint); color: var(--blue-ink); font-size: .85rem; margin: 24px 0; }
  .billing-amount { font-size: clamp(2.5rem, 4vw, 3.6rem); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; margin: 28px 0 12px; }
  .billing-details { display: grid; gap: 16px; margin: 28px 0; }
  .billing-details > div { display: grid; gap: 4px; }
  .billing-details dt { color: var(--ink-2); font-size: .85rem; }
  .billing-details dd { margin: 0; font-weight: 500; }
  .billing-history-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 20px 0; }
  .billing-history-row p { margin-top: 6px; font-size: .85rem; }
  .payment-status { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--surface); font-size: .8rem; }
  .billing-table-wrap { overflow-x: auto; margin-top: 24px; }
  .billing-table { width: 100%; border-collapse: collapse; font-size: .88rem; text-align: left; }
  .billing-table th, .billing-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .billing-table th { font-weight: 600; }
  .billing-table small { display: block; color: var(--ink-2); overflow-wrap: anywhere; margin-top: 4px; }
  .form-field select { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
}
@layer sections {
  .directory-search { display: grid; gap: 18px; margin: 28px 0 20px; }
  .directory-results-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .directory-results-head h2 { margin-top: 0; }
  .directory-results-head a { font-size: .85rem; }
  .directory-grid { display: grid; gap: 20px; }
  .directory-grid > li { min-width: 0; }
  .directory-card { display: flex; flex-direction: column; align-items: flex-start; height: 100%; gap: 10px; padding: 26px; border: 1px solid var(--pane-edge); border-radius: 22px; background: var(--pane); color: var(--ink); text-decoration: none; box-shadow: var(--pane-shadow); overflow-wrap: anywhere; }
  .directory-card:hover { border-color: var(--green); }
  .directory-card h3 { font-size: 1.2rem; margin-top: 8px; }
  .directory-card p { margin-bottom: 0; font-size: .9rem; }
  .directory-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--green-tint); }
  .directory-specialty { font-size: 1rem; color: var(--green-ink); font-weight: 500; }
  .directory-view { margin-top: auto; padding-top: 16px; display: flex; gap: 12px; font-size: .82rem; color: var(--green-ink); }
  .directory-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; align-items: center; margin-top: 28px; font-size: .9rem; }
  .settings-category { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
  .settings-category strong, .settings-category span span { display: block; }
  .settings-category span span { margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
  @media (min-width: 600px) { .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .directory-search { grid-template-columns: 1fr 1fr; } .directory-query, .directory-search .account-inline { grid-column: 1 / -1; } }
  @media (min-width: 1200px) { .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
}

@layer sections {
  .register-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
  .register-heading h1 { font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.035em; line-height: 1.15; margin-bottom: 12px; }
  .register-heading p { font-size: .9rem; max-width: 38ch; margin-bottom: 0; }
  .register-export { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: .8rem; font-weight: 600; }
  .register-export:hover { background: var(--surface); border-color: var(--green); }
  .register-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; font-size: .78rem; color: var(--ink-2); }
  .register-toolbar > span { font-weight: 600; }
  .register-toolbar a { color: var(--green-ink); text-underline-offset: 4px; }
  .dues-register .billing-table-wrap { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; }
  .membership-register thead { background: var(--surface); }
  .membership-register thead th { padding: 13px 18px; font-size: .69rem; letter-spacing: .065em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
  .membership-register tbody th, .membership-register tbody td { padding: 21px 18px; vertical-align: middle; }
  .membership-register tbody th { font-weight: 400; }
  .membership-register tbody tr:last-child > * { border-bottom: 0; }
  .membership-register tbody tr:hover { background: color-mix(in srgb, var(--surface) 50%, transparent); }
  .register-person { display: flex; gap: 12px; align-items: center; }
  .register-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--blue-tint); color: var(--blue-ink); font-size: .73rem; font-weight: 600; }
  .register-name { font-size: .86rem; font-weight: 600; line-height: 1.4; }
  .membership-register small { font-size: .72rem; font-weight: 400; line-height: 1.5; margin-top: 3px; }
  .register-status { display: inline-flex; align-items: center; gap: 7px; border-radius: 7px; padding: 6px 9px; font-size: .69rem; font-weight: 600; white-space: nowrap; background: var(--surface); color: var(--ink-2); }
  .register-status > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .register-status--active { background: var(--green-tint); color: var(--green-ink); }
  .register-status--overdue { background: #fff0eb; color: #9a341c; }
  :root[data-theme="dark"] .register-status--overdue { background: #442a24; color: #ffb69e; }
  .register-date { font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .register-empty { color: var(--ink-2); }
  .register-no-members { text-align: center; color: var(--ink-2); }
  @media (max-width: 700px) {
    .register-heading { flex-direction: column; gap: 18px; }
    .membership-register thead { display: none; }
    .membership-register, .membership-register tbody { display: block; }
    .membership-register tbody tr { display: grid; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
    .membership-register tbody tr:last-child { border-bottom: 0; }
    .membership-register tbody th, .membership-register tbody td { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0; border: 0; }
    .membership-register tbody th { margin-bottom: 5px; }
    .membership-register td[data-label]::before { content: attr(data-label); color: var(--ink-2); font-size: .75rem; }
  }
}
