/* ==========================================================================
   Emerging Investors Canada
   Brand: black ink on soft pastel gradients. Aileron throughout.
   Colours come from the 2026 brand assets — #EBBAA6 and #E2C696 are the two
   named brand colours; the lighter tints are sampled from the gradient artwork.
   ========================================================================== */

/* --- Aileron, served from jsDelivr ---------------------------------------
   Declared here rather than via four <link> tags so there is one stylesheet
   to fetch and font-display is under our control. To self-host instead, drop
   the .woff2 files in assets/fonts/ and swap the src URLs for local paths. */

@font-face {
  font-family: 'Aileron';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/npm/@fontsource/aileron@5.3.0/files/aileron-latin-300-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Aileron';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/npm/@fontsource/aileron@5.3.0/files/aileron-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Aileron';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/npm/@fontsource/aileron@5.3.0/files/aileron-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Aileron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/npm/@fontsource/aileron@5.3.0/files/aileron-latin-700-normal.woff2) format('woff2');
}

:root {
  /* named brand colours */
  --peach:  #EBBAA6;
  --sand:   #E2C696;

  /* tints sampled from the gradient artwork */
  --blush:  #FED5D5;
  --sky:    #F3FAFF;
  --haze:   #F0EBF2;
  --warm:   #FFE8C9;

  --ink:    #0B0B0A;
  --body:   #57514E;
  --cream:  #FFF8F1;
  --paper:  #FDFCFB;
  --white:  #FFFFFF;
  --line:   rgba(11, 11, 10, 0.13);

  --measure: 60ch;
  --radius:  16px;
  --gutter:  clamp(1.25rem, 5vw, 3.25rem);

  --font: 'Aileron', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;

  /* the signature wash — reused by the hero, join band and 404 */
  --wash:
    radial-gradient(58% 68% at 80% 84%, rgba(235, 186, 166, 0.92), transparent 64%),
    radial-gradient(52% 58% at 90% 22%, rgba(254, 213, 213, 0.85), transparent 62%),
    radial-gradient(68% 62% at 20% 86%, rgba(226, 198, 150, 0.62), transparent 62%),
    radial-gradient(60% 66% at 10% 14%, rgba(243, 250, 255, 0.96), transparent 60%),
    linear-gradient(135deg, #F7FAFF 0%, #FBF1F1 48%, #FFF2E4 100%);

  /* film grain, matching the texture in the brand artwork */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* A `display` value in a class rule outranks the user-agent's
   `[hidden] { display: none }`, so any element given both — the member pages
   toggle several flex and grid containers — would stay visible. The member
   pages rely on [hidden] to switch views, so this has to be absolute. */
[hidden] { display: none !important; }

/* --- type ---------------------------------------------------------------- */

h1, h2 {
  color: var(--ink);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

/* All-caps is the display treatment from the brand artwork, where the only
   uppercase element is the org name itself. Reserved for the hero so that
   headings containing mixed-case terms ("VCs") stay readable. */
h1 {
  font-size: clamp(2.4rem, 1.2rem + 5.6vw, 5.25rem);
  text-transform: uppercase;
  line-height: 0.98;
}
h2 { font-size: clamp(1.7rem, 1.05rem + 2.7vw, 2.85rem); }

h3 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 0.55rem;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--peach); }

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.center { text-align: center; margin-inline: auto; }
.measure { max-width: var(--measure); }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: 8px;
  text-decoration: none;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11, 11, 10, 0.28);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transform: none; transition: none; }
}

/* --- header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Opaque white: the mark PNG has a white background, so a tinted or
     translucent bar would leave a visible box around it. */
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { width: auto; height: 25px; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.1;
  text-transform: uppercase;
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem clamp(0.9rem, 2vw, 1.9rem);
}
/* :not(.btn) matters — a bare `.site-nav a` selector outranks `.btn` on
   specificity and would paint the button's label black on black. */
.site-nav a:not(.btn) { color: var(--ink); }
.site-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--peach);
  text-decoration-thickness: 2px;
}

/* --- gradient surfaces --------------------------------------------------- */

/* Any .washed element gets the brand gradient plus the grain overlay. */
.washed { position: relative; isolation: isolate; background: var(--wash); }
.washed::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}

/* --- hero ---------------------------------------------------------------- */

.hero { padding-top: clamp(3.5rem, 8vw, 6.75rem); overflow: hidden; }
.hero-inner { max-width: 60rem; }
.hero h1 { margin-bottom: 1.5rem; }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.62;
  max-width: 50ch;
  color: var(--body);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }

.hero-photo {
  margin: clamp(3rem, 7vw, 5.25rem) auto 0;
  width: 100%;
  max-width: 1180px;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 5.25rem);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius);
}
.hero-photo figcaption {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 640px) {
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
}

/* --- sections ------------------------------------------------------------ */

.section { padding-block: clamp(4rem, 9vw, 7.25rem); }
.section-alt { background: var(--cream); }
.section, .join, .hero { scroll-margin-top: 5rem; }

/* --- about split --------------------------------------------------------- */

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

.pull {
  border-left: 3px solid var(--peach);
  padding-left: 1.6rem;
  position: sticky;
  top: 6rem;
}
.pull blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.38;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pull-attr {
  margin-top: 1.1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 860px) { .pull { position: static; } }

/* --- ecosystem chips ----------------------------------------------------- */

.chips-intro { margin-top: 2.5rem; margin-bottom: 0; }

.chips {
  list-style: none;
  margin: 1.6rem auto 0;
  padding: 0;
  max-width: 52rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.chips li {
  background: rgba(235, 186, 166, 0.3);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.925rem;
  line-height: 1.35;
  color: var(--ink);
}

.chips-outro { margin-top: 2.75rem; }

/* --- team page ----------------------------------------------------------- */

.page-head { padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-head h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 4.25rem); margin-bottom: 1.4rem; }
/* No standfirst under the heading, so drop the gap it was there to create. */
.page-head h1:last-child { margin-bottom: 0; }

.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
}

/* Column layout so the LinkedIn link can be pushed to the bottom of every
   card, keeping the row of links aligned when roles wrap to different heights. */
.member { display: flex; flex-direction: column; }

/* --- the founders' row, on wide screens only -------------------------------

   Three founders over four of the team, both rows filling the same width, so
   the founders' cards come out a third of the row instead of a quarter.

   Twelve columns is what makes the two rows line up: a founder spans four of
   them (3 x 4 = 12) and everybody else spans three (4 x 3 = 12). Nothing is
   positioned by hand, so adding a seventh team member pushes a row rather
   than breaking the alignment — though the arithmetic only comes out exactly
   even at three founders and four others, which is the team as it stands.

   min-width, not max-width, unlike the rest of this file: this ADDS a layout
   above 960px and leaves everything below it alone. Narrower than that the
   auto-fit grid above keeps running, so phones and tablets are untouched —
   at those widths the cards are already one or two per row and making the
   founders wider would mean making them full-bleed, which is not the ask. */
@media (min-width: 960px) {
  .team-grid { grid-template-columns: repeat(12, 1fr); }
  .team-grid .member { grid-column: span 3; }
  .team-grid .is-founder { grid-column: span 4; }
}

.member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

/* h2 for document outline, sized as a card heading rather than a section one. */
.member-name {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-transform: none;
  margin: 0 0 0.35rem;
}

.member-role {
  font-size: 0.68rem;
  font-weight: 600;
  /* Roles run to three words, so this is looser tracking than the other
     uppercase labels get. */
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--body);
  margin: 0 0 0.9rem;
}

/* The founding-team credit under the grid. Set in normal case, unlike the
   uppercase role labels it sits below: this line is mostly somebody's name,
   and a name in small capitals reads as a category rather than a person.

   --ink, not --body, and that is deliberate. Aileron's dot on a lowercase i
   sits about half the distance from the stem that Helvetica's does — measured
   at 200px it is a 12px gap against Helvetica's 19px — which works out under
   one pixel at this size. In the mid grey this line used to be set in, the
   dot and the stem merged and "Li" read as "L" followed by a bare stroke. The
   near-black the member names already use gives that one pixel enough
   contrast to survive. Do not quietly demote this to --body. */
.team-credit {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

.member-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--peach);
  transition: border-color 0.16s ease;
}
.member-link:hover { border-bottom-color: var(--ink); }

.member-icon {
  width: 15px;
  height: 15px;
  flex: none;
  display: block;
}

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

@media (prefers-reduced-motion: reduce) {
  .member-link { transition: none; }
}

/* --- code of conduct ------------------------------------------------------ */

.coc-intro { max-width: 46rem; margin-bottom: 0; }

.rules {
  list-style: none;
  counter-reset: rule;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}
.rules > li {
  counter-increment: rule;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.rules > li::before {
  content: counter(rule, decimal-leading-zero);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

/* h2 for the document outline, sized as a rule heading rather than a section
   one — the page h1 is the only display-weight heading here. */
.rules h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

/* The firm line in an otherwise warmly worded document — set off with the peach
   rule so it does not read as just another body paragraph. */
.consequence {
  margin-top: 1rem;
  padding: 0.1rem 0 0.1rem 1.15rem;
  border-left: 2px solid var(--peach);
  font-weight: 600;
  color: var(--ink);
}

.coc-close {
  max-width: 46rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 2px solid var(--sand);
  font-weight: 600;
  color: var(--ink);
}

/* --- join band ----------------------------------------------------------- */

.join { padding-block: clamp(4.25rem, 9vw, 7rem); }
.join-inner { max-width: 46rem; }
.join h2 { color: var(--ink); }
.join .lede { color: var(--body); }
.join .btn { margin-top: 2.25rem; }
.join .fine {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--body);
}

/* --- footer -------------------------------------------------------------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-block: 3.75rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}
.footer-logo {
  width: 78px;
  height: auto;
  border-radius: 14px;
}

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.9rem; }
.footer-nav a {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--peach);
  text-decoration-thickness: 2px;
}

.footer-contact { font-size: 0.925rem; margin: -0.3rem 0 0; }
.footer-contact a { color: var(--ink); font-weight: 600; word-break: break-word; }

.copyright {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
  opacity: 0.8;
}

/* --- 404 page ------------------------------------------------------------ */

.notfound {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 3rem var(--gutter);
}
.notfound img {
  width: 96px;
  height: auto;
  border-radius: 16px;
  margin-bottom: 1.75rem;
}
.notfound h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.notfound .lede { max-width: 34ch; }
.notfound .cta-row { justify-content: center; }

/* --- small screens ------------------------------------------------------- */

@media (max-width: 640px) {
  .header-inner { justify-content: center; }

  .site-nav { width: 100%; justify-content: center; gap: 1.3rem; }
  /* The hero and the join band both carry the CTA, so the header button is
     redundant at this width. */
  .site-nav a { font-size: 0.68rem; letter-spacing: 0.1em; white-space: nowrap; }
  .site-nav .btn { display: none; }
  /* Except Member login. Join us is repeated further down every page; this
     is the only way in to the member side, so it stays — as a plain link,
     which is what there is room for. */
  .site-nav .btn.nav-login {
    display: inline;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .brand-text { display: none; }
  .brand img { height: 27px; }

  .cta-row .btn { flex: 1 1 100%; text-align: center; }

  /* balance produces very ragged lines in a narrow column */
  h1, h2 { text-wrap: pretty; }
}

/* --- resources dropdown --------------------------------------------------- */

/* The panel hangs off the bottom of the header bar rather than off the trigger.
   The trigger is a ~19px button sitting inside a ~70px bar, so anchoring the
   panel to it put the panel's top edge *above* the header's bottom edge — the
   rounded corners and shadow were swallowed by the white bar. .header-inner is
   the header's content container, so its bottom edge tracks the bar's whatever
   the padding or the tallest nav item. */
.nav-group { position: static; display: flex; align-items: center; }

/* The trigger is a <button>, so it inherits none of the .site-nav a rules and
   has to restate the nav's label treatment. */
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.nav-trigger:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--peach);
  text-decoration-thickness: 2px;
}

.nav-caret { flex: none; transition: transform 0.16s ease; }
.nav-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .nav-caret { transition: none; } }

.nav-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  /* var(--gutter), not 0 — an absolutely positioned box resolves against the
     containing block's padding box, and .header-inner is a .wrap whose padding
     is the page gutter. Offsetting by the gutter lines the panel's right edge
     up with the nav's. */
  right: var(--gutter);
  z-index: 60;
  min-width: 13.5rem;
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11, 11, 10, 0.12);
}
.nav-menu a {
  padding: 0.62rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
}
/* Outranks `.site-nav a:not(.btn):hover`, which would otherwise underline
   these as though they were top-level nav links. */
.site-nav .nav-menu a:not(.btn):hover {
  background: rgba(235, 186, 166, 0.28);
  text-decoration: none;
}
.site-nav .nav-menu a[aria-current="page"] { background: rgba(235, 186, 166, 0.38); }

/* --- account strip -------------------------------------------------------- */

.account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.3rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Pushed left, and left in sentence case — it is a person's name, not a label. */
.account-name {
  margin-right: auto;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--body);
}
.account-bar a { color: var(--ink); text-decoration: none; }
.account-bar a:hover,
.account-signout:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--peach);
  text-decoration-thickness: 2px;
}
.account-signout {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* --- loading / messages --------------------------------------------------- */

.gate-loading { display: flex; align-items: center; justify-content: center; gap: 0.85rem; color: var(--body); }
.gate-loading p { margin: 0; }

.spinner {
  display: inline-block;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(11, 11, 10, 0.18);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.auth-message {
  margin: 1.3rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-size: 0.925rem;
  line-height: 1.55;
}
/* Neither brand tint can carry text, so the two states borrow a deep red and
   green that clear 4.5:1 on their own tinted backgrounds. */
.auth-message.is-error { background: #FDECEC; color: #7A1F1F; border-left: 3px solid #C0392B; }
.auth-message.is-ok    { background: #ECF7EF; color: #1E5230; border-left: 3px solid #2E7D4F; }

/* --- cards ---------------------------------------------------------------- */

.auth-card,
.status-card {
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(11, 11, 10, 0.06);
}
.status-card { max-width: 42rem; }
.auth-card h2,
.status-card h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}
.auth-intro { margin-bottom: 1.75rem; }
.auth-fine { margin-top: 1.6rem; font-size: 0.8rem; color: var(--body); }
.status-card .cta-row { margin-top: 1.9rem; }

/* --- forms ---------------------------------------------------------------- */

.field { margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.req { margin-left: 0.15rem; color: #B5462F; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font: inherit;
  /* Explicit, because `font: inherit` hands an <input> the body's 1.68
     line-height while a <select> resolves it to `normal`. That made the search
     box 8px taller than the dropdowns beside it, and the filter row aligns on
     `end`, so its label sat 8px out of line with the other three. */
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(11, 11, 10, 0.18);
  border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 6rem; line-height: 1.6; }

/* A native <select> sizes itself from UA font metrics and ignores line-height,
   so it stayed 3px shorter than the inputs beside it however the padding was
   set. appearance:none makes it an ordinary box that honours the shared
   padding, which also lets the caret match the one in the header nav. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230B0B0A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 10px 6px;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(11, 11, 10, 0.34); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); }

.field-hint { margin: 0.45rem 0 0; font-size: 0.8rem; color: var(--body); }
.field-hint-block { margin: 0 0 1.15rem; }

.field-set { margin: 0 0 clamp(2rem, 4vw, 2.75rem); padding: 0; border: 0; }
.field-set legend {
  padding: 0;
  margin-bottom: 1.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.15rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.link-button {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--peach);
  text-decoration-thickness: 2px;
  cursor: pointer;
}
.link-button:hover { text-decoration-color: var(--ink); }

/* --- sign in -------------------------------------------------------------- */

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(11, 11, 10, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.btn-google:hover { background: var(--cream); border-color: var(--ink); }
.google-mark { flex: none; }
@media (prefers-reduced-motion: reduce) { .btn-google { transition: none; } }

.auth-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.7rem 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
}
.auth-or::before,
.auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.auth-switch {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 1.6rem;
  padding: 0.25rem;
  background: rgba(11, 11, 10, 0.05);
  border-radius: 999px;
}
.auth-switch button {
  padding: 0.55rem 1.1rem;
  background: none;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  cursor: pointer;
}
.auth-switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(11, 11, 10, 0.14);
}

.auth-form .btn { width: 100%; margin-top: 0.5rem; text-align: center; }
.auth-form .link-button { display: block; margin: 1.1rem auto 0; }
.auth-form .btn:disabled { opacity: 0.65; cursor: default; transform: none; }

/* --- profile form --------------------------------------------------------- */

.profile-intro { margin-bottom: 0; }
.profile-form { max-width: 46rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.6rem;
}
.interest {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.925rem;
  line-height: 1.35;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(11, 11, 10, 0.14);
  border-radius: 10px;
  cursor: pointer;
}
.interest:hover { border-color: var(--peach); }
.interest input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--ink); }
/* Checked state on the whole tile. Where :has is unsupported the native
   checkbox still shows the state, so nothing is lost. */
.interest:has(input:checked) { border-color: var(--ink); background: rgba(235, 186, 166, 0.18); }

/* A group of tick-box tiles with a caption, sitting among ordinary fields.
   The caption matches .field label; it cannot be one, because .field would
   then restyle the tiles' own labels as captions too. */
.choice-group { margin-bottom: 1.15rem; }
.choice-label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.choice-group .field-hint-block { margin-bottom: 0.7rem; }

/* --- edit profile tabs ----------------------------------------------------- */

.tabs {
  display: flex;
  gap: 1.75rem;
  max-width: 46rem;
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.tab {
  margin: 0 0 -1px;
  padding: 0.75rem 0.1rem;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The firm beside the signed-in member's name, a step quieter than the name. */
.account-firm { opacity: 0.8; }

.panel-edit { margin-top: 1.75rem; }

/* --- directory ------------------------------------------------------------ */

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: end;
}
.filters .field { margin-bottom: 0; }
/* The directory's own pair: search and location, no menus. */
.filters-two { grid-template-columns: 2fr 1fr; }
.filter-clear { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: 1 / -1; }
}
@media (max-width: 540px) { .filters { grid-template-columns: 1fr; } }

.result-count {
  margin: 1.75rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.directory-grid {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* .member already supplies the column flex that pins .member-link to the
   bottom of the card — this only adds the card itself. */
.member-card {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.member-card.is-me { border: 2px solid var(--peach); }
.member-you {
  align-self: flex-start;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(235, 186, 166, 0.45);
  border-radius: 999px;
}
.member-country { margin: 0 0 0.95rem; font-size: 0.875rem; color: var(--body); }
.member-facts   { margin: 0 0 1rem; font-size: 0.925rem; }

.member-interests {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0;
}
.member-interests li {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink);
  background: rgba(235, 186, 166, 0.3);
  border-radius: 999px;
}

.member-contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  word-break: break-word;
}
.member-contact a { color: var(--ink); }

.empty-state { margin-top: 2.5rem; text-align: center; }
.empty-state h2 { font-size: 1.4rem; font-weight: 600; }
.empty-state .lede { margin-inline: auto; }

/* --- admin ---------------------------------------------------------------- */

.admin-section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.admin-section:first-of-type { margin-top: 0; }

.admin-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.8rem;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.admin-tally {
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(235, 186, 166, 0.42);
  border-radius: 999px;
}

.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.admin-empty { margin: 0; font-size: 0.925rem; color: var(--body); }

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.admin-row-main { flex: 1 1 22rem; min-width: 0; }
.admin-row .member-name { font-size: 1.1rem; }
.admin-row .member-contact { flex-direction: row; flex-wrap: wrap; gap: 0.3rem 1.1rem; }

.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.admin-actions .btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.admin-date { margin: 0; font-size: 0.75rem; color: var(--body); }
.admin-self { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body); }

.admin-badge {
  margin-left: 0.4rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  vertical-align: middle;
}

/* --- member pages on small screens ---------------------------------------- */

@media (max-width: 640px) {
  /* The menu is centred on the whole nav rather than on the trigger, which at
     this width can sit close enough to an edge to push a centred panel off
     screen. */
  .nav-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(20rem, calc(100vw - 2.5rem));
    min-width: 0;
  }

  .account-bar { justify-content: center; }
  .account-name { margin-right: 0; width: 100%; text-align: center; }

  .admin-row { padding: 1.25rem; }
  .admin-actions { width: 100%; }
}

/* --- imported members ------------------------------------------------------ */

/* A single checkbox borrowing the interest tile's styling, sat under the field
   it qualifies rather than in a group of its own. It is a <label> inside a
   .field, so it inherits that uppercase label treatment and a display:block
   that would break the tile's flex row — both are restated here. */
.field .check-inline {
  display: flex;
  margin: 0.7rem 0 0;
  max-width: 30rem;
  font-size: 0.925rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* Quieter than the Organiser badge: "Unclaimed" is a state, not a status. */
.admin-badge-quiet { background: rgba(11, 11, 10, 0.08); color: var(--body); }

/* A filter with no values to offer is hidden outright; the grid closes up
   around it rather than leaving a gap. */
.filters .field[hidden] { display: none !important; }

/* --- directory list, reduced to a name and a workplace -------------------- */

/* The cards carry two lines now, so they can be narrower and the grid fits
   more of them on screen. */
.directory-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}

.member-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.45rem;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.member-card:hover { border-color: var(--peach); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .member-card, .member-card:hover { transition: none; transform: none; }
}

/* A heading wrapping a button: the heading keeps the outline, the button is
   the control. It inherits the heading's type rather than the browser's. */
.member-name { margin: 0; }
.member-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.member-card:hover .member-open,
.member-open:hover,
.member-open:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--peach);
  text-decoration-thickness: 2px;
}

.member-standfirst {
  margin: 0.4rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--body);
}

/* --- the member panel ----------------------------------------------------- */

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(11, 11, 10, 0.34);
}

/* Stops the list scrolling behind the panel on a phone, where the panel is
   the full width and the page underneath is irrelevant. */
body.panel-open { overflow: hidden; }

.member-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: 50vw;
  overflow-y: auto;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: -26px 0 60px rgba(11, 11, 10, 0.16);
  animation: panel-in 0.22s ease;
}
@keyframes panel-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .member-panel { animation: none; } }

/* Half the screen is a lot of nothing on a phone, and too narrow to read. */
@media (max-width: 860px) { .member-panel { width: 100vw; } }

/* Sticky rather than absolute so it stays reachable in a long profile. */
.panel-close {
  position: sticky;
  top: 0;
  z-index: 1;
  align-self: flex-end;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: -0.4rem -0.4rem 0 0;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.panel-close:hover { background: rgba(11, 11, 10, 0.07); }

.panel-body { max-width: 34rem; }

.panel-name {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}
.panel-standfirst {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--body);
}
.panel-country { margin: 0; font-size: 0.925rem; color: var(--body); }

/* Each block announces itself and is separated by a rule, so a profile with
   only one or two filled-in sections still reads as deliberate. */
.panel-label {
  margin: 1.75rem 0 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.panel-facts { margin: 0; line-height: 1.65; }
.panel-none  { margin: 0; font-size: 0.925rem; color: var(--body); }
.panel-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.95rem;
  word-break: break-word;
}
.panel-contact a { color: var(--ink); }
.panel-body .member-interests { margin: 0; }

/* --- dashboard ------------------------------------------------------------ */

/* The one series colour. The named brand tints are 1.6:1 against the page and
   fail as data marks, so they stay on the furniture; this is the peach taken
   down until it clears 3:1, which is what a mark needs. */
:root { --series: #B4623C; }

.stat-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
}
.stat-tile {
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-tile.is-warn { border-color: var(--series); }
.stat-value {
  margin: 0;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-label {
  margin: 0.6rem 0 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.stat-note { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--body); }

.dash-generated {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--body);
}

/* --- chart cards ---------------------------------------------------------- */

.chart-pair,
.chart-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.chart-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.chart-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

.chart-card {
  margin: 0;
  padding: 1.4rem 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chart-card figcaption { margin-bottom: 1.1rem; }
.chart-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.chart-card figcaption p { margin: 0.3rem 0 0; font-size: 0.825rem; color: var(--body); }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart svg:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.chart-empty { margin: 0; font-size: 0.9rem; color: var(--body); }

/* Grid and axes stay behind the data — the point of a gridline is to be
   available, not noticed. */
.grid { stroke: rgba(11, 11, 10, 0.1); stroke-width: 1; }
.axis { font-size: 10px; fill: var(--body); font-family: var(--font); }
.axis-y { text-anchor: end; }
.axis-x { text-anchor: middle; }
.point-label {
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
  font-family: var(--font);
}
.hover-rule { stroke: rgba(11, 11, 10, 0.26); stroke-width: 1; stroke-dasharray: 3 3; }

.chart-tip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -150%);
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 7px;
  pointer-events: none;
}
.chart-tip strong { font-weight: 600; margin-right: 0.3rem; }

/* --- horizontal bars ------------------------------------------------------ */

.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.hbar {
  display: grid;
  grid-template-columns: minmax(5.5rem, 8.5rem) 1fr 2.2rem;
  align-items: center;
  gap: 0.7rem;
}
.hbar-label {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hbar-track { height: 0.6rem; background: rgba(11, 11, 10, 0.06); border-radius: 999px; }
.hbar-fill  { display: block; height: 100%; background: var(--series); border-radius: 999px; }
/* The number is always present, so the bar length and the colour are never
   the only way to read the value. */
.hbar-value { font-size: 0.8rem; font-weight: 600; color: var(--ink); text-align: right; }

/* --- member table --------------------------------------------------------- */

.dash-filters { margin-bottom: 1.25rem; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.member-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.member-table th,
.member-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.member-table thead th {
  position: sticky;
  top: 0;
  background: var(--cream);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.member-table tbody tr:last-child td { border-bottom: 0; }
.member-table tbody tr:hover { background: rgba(235, 186, 166, 0.1); }

.cell-name  { font-weight: 600; color: var(--ink); }
.cell-sub   { display: block; font-size: 0.78rem; color: var(--body); margin-top: 0.15rem; }
.cell-muted { color: var(--body); }
.cell-contact { font-size: 0.8rem; word-break: break-word; }

.pill {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-approved { background: #ECF7EF; color: #1E5230; }
.pill-pending  { background: #FDF3E3; color: #7A531F; }
.pill-declined { background: #FDECEC; color: #7A1F1F; }

@media (max-width: 640px) {
  .member-table th, .member-table td { padding: 0.7rem 0.8rem; }
}

/* --- application intake --------------------------------------------------- */

/* The honeypot. Not display:none — some bots skip hidden fields, and some
   screen readers would announce a visually-hidden one, so it is taken out of
   the layout and out of the accessibility tree instead. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Per-row status control in the member table. */
.row-status {
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(11, 11, 10, 0.18);
  border-radius: 8px;
}
.row-status:hover { border-color: rgba(11, 11, 10, 0.34); }
.row-status:disabled { opacity: 0.55; }

/* The directory opt-in carries more weight than the other checkboxes — it is
   the one that decides whether the rest of the profile is seen at all. */
.field .check-feature {
  max-width: 34rem;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  border-color: rgba(11, 11, 10, 0.26);
}
.field .check-feature:has(input:checked) {
  border-color: var(--ink);
  background: rgba(235, 186, 166, 0.22);
}

/* --- membership eligibility ---------------------------------------------- */

/* The prompt under the "who it's for" chips on the home page. */
.elig-prompt { margin-top: 2.75rem; }
.elig-prompt p { margin-bottom: 1.4rem; font-weight: 600; color: var(--ink); }

/* The eligibility page reads as a document, so it shares the conduct page's
   46rem column rather than the full wrap. */
.elig > * { max-width: 46rem; }
.elig > h2 { margin-bottom: 1.4rem; }
.elig > .lede { margin-bottom: 1.25rem; }

.elig-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 0;
}

.criteria { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.criteria li {
  position: relative;
  padding: 1rem 0 1rem 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.criteria li:last-child { border-bottom: 1px solid var(--line); }
.criteria li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.6rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--peach);
}

.elig .consequence { margin-top: 2rem; }
.elig-cta { margin-top: 2.25rem; margin-bottom: 0; }

.faq { margin: 0; }
.faq > div {
  padding-block: clamp(1.4rem, 3vw, 1.9rem);
  border-top: 1px solid var(--line);
}
.faq > div:last-child { padding-bottom: 0; }
.faq dt {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.faq dd { margin: 0; }
