@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800;900&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700;8..60,800&display=swap");

:root {
  --ink: #0d1d1a;
  --muted: #4b615c;
  --paper: #f6f8f2;
  --paper-2: #fffdf7;
  --paper-warm: #fff5e8;
  --panel: #fffdf7;
  --line: #aac4ba;
  --teal: #0b4f43;
  --teal-dark: #06372f;
  --green: #0b4f43;
  --amber: #bd741e;
  --blue: #173f5f;
  --red: #9f312d;
  --paper-dark: #061f1b;
  --soft: #dceee8;
  --teal-soft: #dceee8;
  --green-soft: #e0f0e8;
  --blue-soft: #e4eef6;
  --amber-soft: #f6e3c8;
  --red-soft: #f2d8d6;
  --green-wash: oklch(97% 0.018 163);
  --blue-wash: oklch(96% 0.016 246);
  --amber-wash: oklch(96% 0.026 75);
  --red-wash: oklch(96% 0.018 28);
  --blue-ink: #0b2f48;
  --amber-ink: #704313;
  --shadow: 0 28px 80px rgb(8 38 34 / 20%);
  --strong-shadow: 0 36px 100px rgb(5 18 16 / 34%);
  --shadow-strong: 0 36px 100px rgb(5 18 16 / 34%);
  --radius: 8px;
  --control-radius: 5px;
  --max: 1180px;
  --gutter: 32px;
  --font-body: "Source Sans 3", Aptos, "Segoe UI", Arial, sans-serif;
  --font-heading: "Source Serif 4", Georgia, serif;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-control:
    transform 150ms var(--ease-out-quart),
    background 180ms var(--ease-out-quart),
    border-color 180ms var(--ease-out-quart),
    color 180ms var(--ease-out-quart),
    box-shadow 180ms var(--ease-out-quart);
  --transition-surface:
    transform 190ms var(--ease-out-quart),
    box-shadow 190ms var(--ease-out-quart),
    border-color 190ms var(--ease-out-quart);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

@keyframes memberRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes memberPanelIn {
  from { opacity: 0; transform: translateY(14px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes memberModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes memberMessageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, oklch(91% 0.03 163 / 42%), transparent 26%),
    radial-gradient(circle at 82% 18%, oklch(92% 0.045 75 / 28%), transparent 24%),
    linear-gradient(90deg, rgb(11 79 67 / 7%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(189 116 30 / 6%) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 100%, 100% 100%, 58px 58px, 58px 58px, auto;
  color: var(--ink);
  font-family: var(--font-body);
  font-kerning: normal;
  font-optical-sizing: auto;
  font-size: 1rem;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: linear-gradient(180deg, var(--panel), oklch(98% 0.008 163));
  color: var(--ink);
  padding: 11px 12px;
  outline-offset: 3px;
}

input::placeholder,
textarea::placeholder {
  color: rgb(75 97 92 / 72%);
  font-weight: 500;
}
input, select {
  min-height: 46px;
}
.field-hint {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
}
.selection-chips {
  min-height: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: flex-start;
  border: 1px solid rgb(170 196 186 / 70%);
  border-radius: var(--control-radius);
  background: var(--green-wash);
  padding: 8px;
}
.selection-chips:empty::before {
  content: "No specialisations selected";
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}
.selection-chip {
  min-height: 44px;
  border: 1px solid rgb(11 79 67 / 30%);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--teal);
  padding: 7px 12px;
  font: inherit;
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
}
.selection-chip::after {
  content: " x";
}
textarea { resize: vertical; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 30;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}
.skip-link:focus { top: 16px; }
.site-header {
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgb(13 29 26 / 14%);
  background: rgb(250 252 247 / 94%);
  padding: 0 max(16px, calc((100vw - var(--max)) / 2));
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}
.brand img { width: 56px; height: 42px; object-fit: contain; }
nav { min-width: 0; display: flex; gap: 18px; color: var(--muted); font-weight: 850; }
nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.member-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgb(11 79 67 / 32%);
  border-radius: var(--control-radius);
  background: var(--panel);
  color: var(--teal);
  cursor: pointer;
}
.member-nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}
main { width: min(var(--max), calc(100% - var(--gutter))); margin: 0 auto; }
.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .46fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0;
}
.compact-hero {
  min-height: 380px;
}
.directory-hero {
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
}
.directory-status-panel {
  border: 1px solid rgb(255 255 255 / 26%);
  border-top: 5px solid var(--amber);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    rgb(255 255 255 / 9%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--strong-shadow);
  color: #f7fbf7;
}
.directory-status-panel .eyebrow {
  color: #86d3ad;
}
.hero:not(.compact-hero) {
  margin: 0 calc(50% - 50vw);
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(116deg, #051f1b 0%, #073c33 48%, #092b42 100%);
  background-size: 52px 52px, 52px 52px, auto;
  color: #f7fbf7;
}
.compact-hero {
  position: relative;
  border-bottom: 1px solid rgb(13 29 26 / 12%);
}
.compact-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 36px;
  width: min(360px, 45vw);
  height: 4px;
  background: var(--green);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1, h2 { font-family: var(--font-heading); letter-spacing: 0; }
h1 { max-width: 13ch; font-size: clamp(2.65rem, 6vw, 4.85rem); line-height: .98; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); text-wrap: balance; }
h3 { font-size: 1.16rem; line-height: 1.16; text-wrap: balance; }
.lede { max-width: 64ch; color: var(--muted); font-size: 1.125rem; line-height: 1.62; text-wrap: pretty; }
.hero:not(.compact-hero) .eyebrow { color: #86d3ad; }
.hero:not(.compact-hero) .lede,
.hero:not(.compact-hero) dd,
.hero:not(.compact-hero) dt { color: rgb(232 242 238 / 82%); }
.actions, .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.actions { justify-content: flex-start; margin-top: 28px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  padding: 11px 16px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
  transition: var(--transition-control);
}
.button.primary { background: var(--teal); color: #fffdf7; }
.button.secondary { border-color: rgb(11 79 67 / 32%); background: var(--green-wash); color: var(--teal); }
.hero:not(.compact-hero) .button.primary { background: #f7fbf7; color: var(--teal); }
.hero:not(.compact-hero) .button.secondary { border-color: rgb(255 255 255 / 42%); color: #f7fbf7; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(8 38 34 / 14%); }
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(189 116 30 / 72%);
  outline-offset: 3px;
}
.button:disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.section { padding: clamp(42px, 6vw, 78px) 0; }
.panel, .status-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 253 247 / 96%);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}
.panel {
  border-top: 5px solid var(--green);
  background:
    linear-gradient(180deg, rgb(220 238 232 / 34%), transparent 130px),
    rgb(255 253 247 / 96%);
}
.status-panel {
  border-top: 5px solid var(--amber);
  background:
    linear-gradient(180deg, var(--amber-wash), transparent 140px),
    rgb(255 253 247 / 96%);
  box-shadow: var(--strong-shadow);
}
.hero .directory-status-panel {
  border: 1px solid rgb(255 255 255 / 26%);
  border-top: 5px solid var(--amber);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    rgb(255 255 255 / 9%);
  background-size: 28px 28px, 28px 28px, auto;
  color: #f7fbf7;
}
.hero .directory-status-panel .eyebrow {
  color: #86d3ad;
}
.status-panel dl { margin: 0; display: grid; gap: 12px; }
.status-panel div {
  display: grid;
  grid-template-columns: .45fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.status-panel div:first-of-type { border-top: 0; }
dt { color: var(--muted); font-weight: 850; }
dd { margin: 0; font-weight: 800; }
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .55fr);
  gap: 22px;
  align-items: start;
}
form { display: grid; gap: 14px; margin-top: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px 18px;
}
.application-steps {
  display: grid;
  gap: var(--space-md);
}
.form-step-card {
  min-width: 0;
  border: 1px solid rgb(170 196 186 / 78%);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--green-wash), rgb(255 253 247 / 92%));
  padding: clamp(16px, 2.4vw, 22px);
}
.form-step-card legend,
.form-step-card summary {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}
.form-step-card legend {
  padding: 0 8px;
}
.form-step-card summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.form-step-card summary span:last-child {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 750;
}
.form-step-card > .form-grid,
.form-step-card > .checkline,
.form-step-card > details,
.form-step-card > .field-hint {
  margin-top: var(--space-sm);
}
.form-step-card .area-name,
.form-step-card .area-email,
.form-step-card .area-password,
.form-step-card .area-phone,
.form-step-card .area-country,
.form-step-card .area-city,
.form-step-card .area-organisation,
.form-step-card .area-specialisations,
.form-step-card .area-bio,
.form-step-card .area-other,
.form-step-card .area-website,
.form-step-card .area-linkedin,
.form-step-card .area-review {
  grid-area: auto;
}
.optional-step {
  border-top-color: var(--amber);
  background: var(--amber-wash);
}
.declaration-step {
  border-top-color: var(--blue);
  background: var(--blue-wash);
}
label { display: grid; gap: 6px; color: var(--ink); font-size: .9rem; font-weight: 850; line-height: 1.25; }
.wide { grid-column: 1 / -1; }
.profile-form-grid {
  grid-template-areas:
    "phone country"
    "city organisation"
    "specialisations other"
    "bio other"
    "bio website"
    "bio linkedin"
    "bio review";
}
.profile-form-grid:has(.area-other[hidden]) {
  grid-template-areas:
    "phone country"
    "city organisation"
    "specialisations specialisations"
    "bio website"
    "bio linkedin"
    "bio review";
}
.application-form-grid {
  grid-template-areas:
    "name email"
    "password phone"
    "country city"
    "organisation specialisations"
    "bio other"
    "bio website"
    "bio linkedin"
    "bio review";
}
.application-form-grid:has(.area-other[hidden]) {
  grid-template-areas:
    "name email"
    "password phone"
    "country city"
    "organisation specialisations"
    "bio specialisations"
    "bio website"
    "bio linkedin"
    "bio review";
}
.area-name { grid-area: name; }
.area-email { grid-area: email; }
.area-password { grid-area: password; }
.area-phone { grid-area: phone; }
.area-country { grid-area: country; }
.area-city { grid-area: city; }
.area-organisation { grid-area: organisation; }
.area-specialisations { grid-area: specialisations; }
.area-bio { grid-area: bio; }
.area-other { grid-area: other; }
.area-website { grid-area: website; }
.area-linkedin { grid-area: linkedin; }
.area-review { grid-area: review; }
.area-bio textarea {
  min-height: 316px;
}
fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  margin: 0 0 8px;
  font-size: .9rem;
  font-weight: 850;
}
.other-field { max-width: none; }
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkline input {
  width: 44px;
  min-width: 44px;
  height: 44px;
}
.note { color: var(--muted); }
.message { min-height: 1.4em; margin: 0; color: var(--green); font-weight: 900; }
.message.error { color: var(--red); }
.portal-notice,
.evidence-guide,
.review-standard,
.client-next-step {
  display: grid;
  gap: var(--space-sm);
  border: 1px solid rgb(170 196 186 / 78%);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-wash), var(--blue-wash));
  padding: clamp(16px, 2.4vw, 24px);
  margin: var(--space-lg) 0;
}
.evidence-guide {
  border-color: rgb(189 116 30 / 34%);
  border-top-color: var(--amber);
  background: var(--amber-wash);
}
.review-standard {
  border-color: rgb(23 63 95 / 28%);
  border-top-color: var(--blue);
  background: var(--blue-wash);
}
.client-next-step {
  border-color: rgb(94 175 131 / 38%);
  border-top-color: var(--green);
  background: linear-gradient(135deg, var(--green-wash), var(--blue-wash));
}
.portal-notice p,
.evidence-guide p,
.review-standard p,
.client-next-step p {
  margin: 0;
  color: var(--muted);
}
.portal-notice ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.portal-notice ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.portal-notice li {
  margin: 5px 0;
}
.founding-perks-notice {
  border-color: rgb(189 116 30 / 34%);
  border-top-color: var(--amber);
  background: var(--amber-wash);
}
.compact-notice {
  margin: 0 0 var(--space-md);
}
.step-label {
  width: fit-content;
  border: 1px solid rgb(189 116 30 / 28%);
  border-radius: 999px;
  background: var(--amber-wash);
  color: var(--amber-ink);
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.quick-actions .button {
  min-height: 42px;
}
.evidence-guide ul,
.review-standard ul,
.client-next-step ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.evidence-guide li,
.review-standard li,
.client-next-step li {
  margin: 5px 0;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.fee-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.metric-strip span {
  min-width: 0;
  border: 1px solid rgb(11 79 67 / 18%);
  border-radius: 6px;
  background: var(--green-wash);
  padding: 10px;
  color: var(--teal);
  font-size: .875rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.fee-strip span {
  min-width: 0;
  border: 1px solid rgb(189 116 30 / 22%);
  border-radius: 6px;
  background: var(--panel);
  padding: 10px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 850;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.metric-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fee-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--amber-ink);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.assessment-summary {
  margin: var(--space-md) 0 0;
}
.assessment-create-form {
  border: 1px solid rgb(11 79 67 / 20%);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  background: var(--green-wash);
  padding: clamp(16px, 2.4vw, 24px);
}
.assessment-create-form h3 {
  margin: 0;
}
.assessment-link-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(130px, 180px);
  align-items: end;
  gap: 12px;
  border-top: 1px solid rgb(11 79 67 / 18%);
  padding-top: 14px;
}
.assessment-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  align-self: stretch;
  border: 1px solid rgb(11 79 67 / 20%);
  border-radius: 8px;
  background: rgb(255 253 247 / 92%);
  padding: 10px;
}
.assessment-qr img {
  width: min(100%, 150px);
  aspect-ratio: 1;
  object-fit: contain;
}
.assessment-qr p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-align: center;
}
.assessment-feedback {
  border-top: 1px solid rgb(11 79 67 / 16%);
  padding-top: 10px;
}
.assessment-feedback summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--teal);
  font-weight: 950;
}
.assessment-feedback-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.assessment-feedback-item {
  border: 1px solid rgb(11 79 67 / 16%);
  border-radius: 8px;
  background: rgb(255 253 247 / 76%);
  padding: 12px;
}
.assessment-feedback-item h4 {
  margin: 0 0 4px;
  font-size: .98rem;
}
.assessment-feedback-item p {
  margin: 7px 0 0;
}
.assessment-feedback-item strong {
  color: var(--ink);
}
.feedback-meta {
  color: var(--green) !important;
  font-size: .82rem;
  font-weight: 900;
}
.assessment-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgb(11 79 67 / 16%);
  padding-top: 10px;
}
.metric-strip span:nth-child(2) {
  border-color: rgb(23 63 95 / 26%);
  background: var(--blue-wash);
  color: var(--blue-ink);
}
.metric-strip span:nth-child(3) {
  border-color: rgb(189 116 30 / 32%);
  background: var(--amber-wash);
  color: var(--amber-ink);
}
.metric-strip span:nth-child(4) {
  border-color: rgb(94 175 131 / 34%);
  background: var(--green-soft);
}
.dashboard-grid, .admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: 22px;
}
.dashboard-grid form, .admin-columns section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--green-wash), transparent 160px),
    rgb(246 248 242 / 70%);
  padding: 18px;
}
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: 16px;
}
.advanced-filter-group {
  grid-column: 1 / -1;
  border: 1px solid rgb(170 196 186 / 72%);
  border-radius: var(--control-radius);
  background: rgb(246 248 242 / 78%);
}
.advanced-filter-group summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--green);
  font-weight: 900;
  padding: 11px 12px;
}
.advanced-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid rgb(170 196 186 / 72%);
  padding: 14px;
}
.single-column {
  grid-template-columns: 1fr;
}
.records, .directory-grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  margin-top: 22px;
}
.records {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.directory-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.record-card, .member-card, .admin-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(220 238 232 / 38%), transparent 84px),
    var(--panel);
  padding: 16px;
  overflow-wrap: anywhere;
}
.record-card:nth-child(3n + 2),
.member-card:nth-child(3n + 2),
.admin-card:nth-child(3n + 2) {
  border-color: rgb(189 116 30 / 36%);
  background:
    linear-gradient(180deg, var(--amber-wash), transparent 84px),
    var(--panel);
}
.record-card:nth-child(3n),
.member-card:nth-child(3n),
.admin-card:nth-child(3n) {
  border-color: rgb(23 63 95 / 30%);
  background:
    linear-gradient(180deg, var(--blue-wash), transparent 84px),
    var(--panel);
}
.record-card,
.member-card,
.admin-card {
  display: grid;
  align-content: start;
  gap: 10px;
}
.record-card p, .member-card p, .admin-card p { margin: 6px 0; color: var(--muted); line-height: 1.48; overflow-wrap: anywhere; text-wrap: pretty; }
.member-card {
  cursor: pointer;
  transition: var(--transition-surface);
}
.member-card:hover,
.member-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 18px 42px rgb(8 38 34 / 14%);
  outline: 0;
  transform: translateY(-2px);
}

.member-card:active {
  transform: translateY(0) scale(0.992);
}
.card-hint {
  margin-top: 12px !important;
  color: var(--teal) !important;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tag {
  display: inline-flex;
  border: 1px solid rgb(11 79 67 / 26%);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--teal);
  padding: 3px 9px;
  font-size: .8125rem;
  font-weight: 900;
}
.admin-actions .button:nth-child(1) {
  border-color: rgb(11 79 67 / 38%);
  background: var(--green-soft);
  color: var(--green);
}
.admin-actions .button:nth-child(2) {
  border-color: rgb(159 49 45 / 34%);
  background: var(--red-wash);
  color: var(--red);
}
.admin-actions .button:nth-child(3) {
  border-color: rgb(189 116 30 / 36%);
  background: var(--amber-wash);
  color: var(--amber-ink);
}
.admin-card .button { margin: 6px 6px 0 0; }
.admin-card .button,
.record-card .button {
  width: fit-content;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.admin-actions .button { margin: 0; }
.panel-review-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgb(11 79 67 / 16%);
  margin-top: 6px;
  padding-top: 12px;
}
.panel-review-form h4 {
  margin: 0;
  font-size: .98rem;
}
.panel-review-form .button {
  width: fit-content;
}
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 34px 0 50px;
  color: var(--muted);
}
footer img { width: 72px; }
footer p { margin: 0; }
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 14px;
}
footer a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 900; color: var(--teal); }

.modal-open {
  overflow: hidden;
}
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}
.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(5 18 16 / 52%);
}
.profile-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 5px solid var(--amber);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 30px 90px rgb(5 18 16 / 34%);
  padding: clamp(18px, 3vw, 30px);
}
.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.profile-detail-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(246 248 242 / 70%);
  padding: 12px;
}
.profile-detail-grid dt {
  color: var(--green);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-detail-grid dd {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}
.profile-detail-grid div:last-child {
  grid-column: 1 / -1;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-enquiry-form {
  border: 1px solid rgb(11 79 67 / 30%);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--green-wash), rgb(246 248 242 / 76%));
  box-shadow: inset 0 4px 0 var(--green);
  padding: clamp(14px, 2.2vw, 20px);
  margin-top: 22px;
}

.profile-enquiry-form h3 {
  margin-bottom: 4px;
}

@media (max-width: 980px) {
  .site-header { position: static; flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  nav { width: 100%; flex-wrap: wrap; gap: 10px; overflow-x: visible; }
  .hero, .grid-2, .dashboard-grid, .admin-columns { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fee-strip { grid-template-columns: 1fr; }
  .filter-bar,
  .records,
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-header.has-member-menu {
    flex-direction: row;
    align-items: center;
  }

  .site-header.has-member-menu .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-header.has-member-menu .brand span {
    white-space: normal;
  }

  .member-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
  }

  .site-header.has-member-menu nav[data-member-nav] {
    display: none;
    width: 100%;
    flex: 1 0 100%;
    order: 3;
    padding-top: 10px;
  }

  .site-header.has-member-menu.member-nav-open nav[data-member-nav] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-header.has-member-menu nav[data-member-nav] a {
    min-height: 44px;
    justify-content: flex-start;
    border: 1px solid rgb(11 79 67 / 18%);
    border-radius: var(--control-radius);
    background: var(--panel);
    padding: 9px 11px;
  }
}
@media (max-width: 640px) {
  main, footer { width: min(100% - 24px, 1180px); }
  h1 { font-size: clamp(2.5rem, 13vw, 3.7rem); }
  .form-grid, .records, .directory-grid, .filter-bar, .advanced-filter-grid, .metric-strip, .assessment-link-result { grid-template-columns: 1fr; }
  .profile-form-grid {
    grid-template-areas:
      "phone"
      "country"
      "city"
      "organisation"
      "specialisations"
      "other"
      "bio"
      "website"
      "linkedin"
      "review";
  }
  .profile-form-grid:has(.area-other[hidden]) {
    grid-template-areas:
      "phone"
      "country"
      "city"
      "organisation"
      "specialisations"
      "bio"
      "website"
      "linkedin"
      "review";
  }
  .application-form-grid {
    grid-template-areas:
      "name"
      "email"
      "password"
      "phone"
      "country"
      "city"
      "organisation"
      "specialisations"
      "other"
      "bio"
      "website"
      "linkedin"
      "review";
  }
  .application-form-grid:has(.area-other[hidden]) {
    grid-template-areas:
      "name"
      "email"
      "password"
      "phone"
      "country"
      "city"
      "organisation"
      "specialisations"
      "bio"
      "website"
      "linkedin"
      "review";
  }
  .area-bio textarea {
    min-height: 220px;
  }
  .actions .button, form .button, .admin-actions .button, .record-card .button, .admin-card .button { width: 100%; }
  .panel, .status-panel { padding: 18px 14px; }
  .status-panel div { grid-template-columns: 1fr; gap: 3px; }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .profile-actions .button { width: 100%; }
  footer { flex-direction: column; align-items: flex-start; }
}

.site-header {
  animation: memberRise 420ms var(--ease-out-quint) both;
}

nav a {
  border-radius: 999px;
  transition: color 180ms var(--ease-out-quart), background 180ms var(--ease-out-quart), transform 160ms var(--ease-out-quart);
}

nav a:hover,
nav a:focus-visible {
  background: rgb(11 79 67 / 8%);
  color: var(--green);
  transform: translateY(-1px);
}

.hero > *,
.compact-hero > * {
  animation: memberRise 620ms var(--ease-out-expo) both;
}

.hero > *:nth-child(2) {
  animation-delay: 120ms;
}

.compact-hero::after {
  transform-origin: left center;
  animation: memberRise 560ms var(--ease-out-expo) 140ms both;
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

input,
textarea,
select {
  transition: border-color 180ms var(--ease-out-quart), box-shadow 180ms var(--ease-out-quart), background 180ms var(--ease-out-quart);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgb(94 175 131 / 18%);
}

.panel,
.status-panel,
.portal-notice,
.evidence-guide,
.review-standard,
.client-next-step {
  animation: memberPanelIn 480ms var(--ease-out-expo) both;
}

.selection-chip {
  transition: transform 150ms var(--ease-out-quart), background 180ms var(--ease-out-quart), border-color 180ms var(--ease-out-quart);
}

.selection-chip:hover,
.selection-chip:focus-visible {
  border-color: rgb(11 79 67 / 52%);
  background: oklch(91% 0.05 163);
  transform: translateY(-1px);
}

.selection-chip:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.selection-chip:active {
  transform: scale(0.985);
}

.message:not(:empty) {
  animation: memberMessageIn 220ms var(--ease-out-quart) both;
}

.record-card,
.member-card,
.admin-card {
  animation: memberPanelIn 360ms var(--ease-out-quart) both;
}

.profile-backdrop {
  animation: memberMessageIn 180ms var(--ease-out-quart) both;
}

.profile-panel {
  animation: memberModalIn 260ms var(--ease-out-quint) both;
}

/* Spacing tightening pass for membership, member, and admin pages. */
.hero {
  min-height: 380px;
  gap: clamp(16px, 3vw, 34px);
  padding-top: clamp(24px, 3.4vw, 40px);
  padding-bottom: clamp(26px, 3.6vw, 44px);
}

.compact-hero {
  min-height: 260px;
}

.directory-hero {
  min-height: min(500px, calc(100vh - 72px));
}

.actions {
  margin-top: 20px;
}

.section {
  padding-top: clamp(20px, 3vw, 34px);
  padding-bottom: clamp(22px, 3.2vw, 36px);
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.dashboard-grid,
.admin-columns,
.directory-grid,
.records {
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

.panel,
.status-panel,
.profile-panel {
  padding: clamp(16px, 2.4vw, 22px);
}

form {
  gap: 11px;
  margin-top: 14px;
}

.grid-2,
.dashboard-grid,
.admin-columns,
.records,
.directory-grid,
.profile-detail-grid {
  gap: clamp(12px, 1.8vw, 18px);
}

.dashboard-grid,
.admin-columns,
.records,
.directory-grid,
.profile-detail-grid,
.profile-panel,
.profile-actions,
.profile-enquiry-form {
  margin-top: 16px;
}

.dashboard-grid form,
.admin-columns section,
.record-card,
.member-card,
.admin-card,
.client-next-step,
.evidence-guide,
.review-standard {
  padding: 14px;
}

.record-card p,
.member-card p,
.admin-card p {
  margin: 4px 0;
}

.advanced-filter-grid {
  gap: 10px;
  padding: 12px;
}

footer {
  padding: 24px 0 32px;
  gap: 14px;
}

@media (max-width: 640px) {
  .hero {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .section {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .panel,
  .status-panel,
  .profile-panel {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .site-header,
  .hero > *,
  .compact-hero > *,
  .compact-hero::after,
  .panel,
  .status-panel,
  .portal-notice,
  .evidence-guide,
  .review-standard,
  .client-next-step,
  .record-card,
  .member-card,
  .admin-card,
  .profile-backdrop,
  .profile-panel {
    animation: none !important;
    transform: none !important;
  }
}
