@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/vendor/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/vendor/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB,
    U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/vendor/fonts/public-sans-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/vendor/fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB,
    U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/vendor/fonts/public-sans-latin-italic.woff2') format('woff2');
}

/*
 * Design tokens from the group page mockup. Mobile first: the two-column
 * layouts only open up on wide screens.
 */
:root {
  --ink: #16181d;
  --ink-2: #2a2d35;
  --muted: #4a4d55;
  --bg: #f3f4f1;
  --card: #ffffff;
  --line: #d9dbd4;
  --line-soft: #e4e6e0;
  --line-strong: #b9bcb3;
  --field: #8e9188;
  --blue: #2b3dd9;
  --blue-dark: #1a2699;
  --blue-soft: #e7e9f9;
  --orange: #c2410c;
  --orange-dark: #8a2e07;
  --orange-soft: #fff4ec;
  --orange-line: #f2c9ae;
  --peach: #f5a06b;
  --on-dark-muted: #c9cbc4;
  --ok: #1d7a3a;
  --radius: 18px;
  --radius-sm: 10px;
  --heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 8vw, 3.75rem);
  line-height: 1;
}

h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 4.5vw, 1.625rem);
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* ---- Layout ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 640px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.page {
  flex: 1;
  padding-top: 28px;
  padding-bottom: max(64px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page.narrow {
  max-width: 640px;
}

@media (min-width: 900px) {
  .page {
    padding-top: 40px;
    padding-bottom: 96px;
  }
}

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.col-main {
  flex: 1 1 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.col-side {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .columns,
  .col-main {
    gap: 32px;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.spacer {
  flex: 1;
}

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

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 28px;
  width: auto;
}

.site-nav {
  order: 3;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-weight: 600;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
}

.site-nav a[aria-current='page'] {
  color: var(--blue);
}

@media (min-width: 720px) {
  .logo img {
    height: 32px;
  }

  .site-nav {
    order: 0;
    width: auto;
    flex: 1;
    gap: 26px;
  }
}

.me-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  max-width: 60vw;
}

.me-menu {
  position: relative;
}

.me-menu summary {
  list-style: none;
  cursor: pointer;
}

.me-menu summary::-webkit-details-marker {
  display: none;
}

.me-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(22 24 29 / 12%);
}

.me-menu-list a,
.me-menu-list button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.me-menu-list a:hover,
.me-menu-list button:hover,
.me-menu-list a:focus-visible,
.me-menu-list button:focus-visible {
  background: var(--bg);
}

.me-pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--peach);
  overflow: hidden;
  display: inline-flex;
}

/* ---- Hero band ------------------------------------------------------------------ */

.hero {
  background: var(--ink);
  color: #f3f4f1;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 36px;
  padding-bottom: 36px;
}

@media (min-width: 900px) {
  .hero-inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

.hero-text {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero h1 {
  overflow-wrap: anywhere;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--on-dark-muted);
  max-width: 46rem;
}

.hero a {
  color: #c9cffd;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #2a2d35;
  color: #f3f4f1;
}

.pill.orange {
  background: var(--orange);
  color: #fff;
}

.pill.blue {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.pill.dark {
  background: var(--ink);
  color: #f3f4f1;
}

/* ---- Section tabs under the hero --------------------------------------------- */

.section-tabs {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.section-tabs-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.section-tabs a[aria-current='page'] {
  border-bottom-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

/* Filter tabs inside a page (member and listing queues) */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tab {
  flex: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.tab[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---- Cards ---------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card.soft-blue {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
}

.card.feature {
  background: var(--ink);
  border-color: var(--ink);
  color: #f3f4f1;
  text-decoration: none;
}

.card.feature p {
  color: var(--on-dark-muted);
}

.card.feature .arrow {
  color: #fff;
  font-weight: 700;
}

.card.feature:hover {
  color: #f3f4f1;
  background: #22252c;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.announcement {
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.announcement .eyebrow {
  color: var(--orange-dark);
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- Forms ----------------------------------------------------------------------- */

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input[type='email'],
input[type='text'],
input[type='url'],
input[type='tel'],
input[type='search'],
input[type='date'],
input[type='number'],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
  min-height: 7rem;
}

input[readonly] {
  background: var(--bg);
  border-style: dashed;
  font-size: 0.95rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.prefixed {
  display: flex;
  align-items: center;
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
  background: #fff;
}

.prefixed:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.prefixed span {
  padding-left: 14px;
  color: var(--muted);
  font-weight: 700;
}

.prefixed input {
  border: 0;
  padding-left: 4px;
  outline: none;
}

.inline-field {
  display: flex;
  gap: 8px;
}

.inline-field input {
  flex: 1 1 auto;
  min-width: 0;
}

.inline-field .button {
  width: auto;
  flex: none;
  border-radius: var(--radius-sm);
  min-height: 48px;
}

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

.status {
  min-height: 1.4em;
}

.status.ok {
  color: var(--ok);
}

.status.bad {
  color: var(--orange);
}

/* ---- Buttons and links ------------------------------------------------------- */

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
}

.button:hover {
  background: var(--blue-dark);
  color: #fff;
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.button.dark {
  background: var(--ink);
}

.button.dark:hover {
  background: #2a2d35;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button.secondary:hover {
  background: rgba(22, 24, 29, 0.06);
  color: var(--ink);
}

.hero .button {
  width: auto;
  background: #f3f4f1;
  color: var(--ink);
}

.hero .button.secondary {
  background: transparent;
  color: #f3f4f1;
  border-color: #f3f4f1;
}

/* The brand's orange, for the main actions on public pages. */
.button.brand,
.hero .button.brand {
  background: var(--orange);
  color: #fff;
}

.button.brand:hover,
.hero .button.brand:hover {
  background: var(--orange-dark);
  color: #fff;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-note {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--on-dark-muted);
}

.button.fit {
  width: auto;
}

.link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- Notices -------------------------------------------------------------------- */

.notice {
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.notice.ok {
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

/* ---- Lists ------------------------------------------------------------------------ */

.chip-grid,
.result-list,
.review-list,
.member-list,
.invite-list,
.toggle-list,
.contact,
.handle-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 10px;
}

.chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--ink);
}

.chip[aria-current='page'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--card);
}

.chip-count {
  flex: none;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px;
  text-align: center;
}

.result-list,
.review-list,
.member-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.result:hover {
  border-color: var(--blue);
  color: var(--ink);
}

.result-name {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}

.result-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-2);
}

.status-line {
  color: var(--orange);
  font-weight: 700;
}

.pre {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.65;
  color: var(--ink-2);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact li {
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}

.search {
  display: flex;
  gap: 8px;
}

.search input {
  min-height: 52px;
  border-radius: 999px;
  padding-left: 20px;
}

.search .button {
  width: auto;
  flex: none;
  min-height: 52px;
}

.crumbs:empty {
  display: none;
}

.member-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  font: inherit;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.member-row:hover {
  border-color: var(--blue);
}

.member-name {
  font-weight: 700;
}

.invite-list {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.invite-list:empty {
  display: none;
}

.invite-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.toggle-list {
  display: flex;
  flex-direction: column;
}

.toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-weight: 700;
  cursor: pointer;
}

.toggle input {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--blue);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions .button {
  width: auto;
  flex: 1 1 8rem;
}

.handle {
  font-family: var(--heading);
  font-weight: 800;
}

/* Holds the line while the handle loads so the page below does not jump. */
.handle:empty::before {
  content: '\00a0';
}

/* Holds the row while a pill that may appear is still loading. */
.pills.reserve {
  min-height: 32px;
}

.handle.empty {
  color: var(--peach);
}

a.handle {
  color: inherit;
  text-decoration: none;
}

.card .button.fit,
.stack .button.fit {
  align-self: flex-start;
}

/* ---- Consent checkbox ------------------------------------------------------------ */

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.check input {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15rem;
  accent-color: var(--blue);
}

.check a,
.consent-list a {
  color: var(--blue);
  font-weight: 600;
}

.consent-list {
  margin: 0;
  padding-left: 1.2rem;
}

/* ---- Legal pages ----------------------------------------------------------------- */

.legal-doc {
  overflow-wrap: anywhere;
}

.legal-doc h1 {
  font-family: var(--heading);
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 8px;
}

.legal-doc h2 {
  font-family: var(--heading);
  font-size: 1.3rem;
  margin: 28px 0 8px;
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin: 20px 0 6px;
}

.legal-doc p,
.legal-doc ul,
.legal-doc ol {
  margin: 0 0 12px;
}

.legal-doc a {
  color: var(--blue);
}

.legal-doc blockquote {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 4px solid var(--line-strong);
  background: var(--bg);
  border-radius: 8px;
}

.legal-doc blockquote p {
  margin: 0;
}

.legal-doc .table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

.legal-doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.legal-doc th,
.legal-doc td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: normal;
  min-width: 8rem;
}

.legal-doc th {
  border-bottom-color: var(--line);
}

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

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---- Profiles -------------------------------------------------------------------- */

.card h2 {
  font-family: var(--heading);
  font-size: 1.25rem;
  margin: 0;
}

.profile-photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--peach);
}

.profile-photo.initial {
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
}

.profile-photo[hidden] {
  display: none;
}

.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.photo-row .stack {
  flex: 1 1 220px;
}

.member-hero {
  display: flex;
  gap: 18px;
  align-items: center;
}

.hero-sub.tagline {
  overflow-wrap: anywhere;
}

.hero-photo {
  flex: none;
  border-radius: 50%;
}

@media (max-width: 639px) {
  .hero-photo .profile-photo {
    width: 72px;
    height: 72px;
  }

  .hero-photo .profile-photo.initial {
    font-size: 1.8rem;
  }
}

.link-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 640px) {
  .link-row {
    grid-template-columns: 7rem 1fr 9rem;
    align-items: center;
  }
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.link-list a {
  color: var(--blue);
  font-weight: 600;
}

details.report summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

details.report[open] summary {
  margin-bottom: 12px;
}

/* ---- Public pages ---------------------------------------------------------------- */

.door {
  font-family: var(--heading);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.feature-list h3 {
  font-family: var(--heading);
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.feature-list p {
  margin: 0;
}

.definition h1 {
  font-family: var(--heading);
  font-size: 2.6rem;
  margin: 0;
}

.definition-text {
  font-size: 1.3rem;
  line-height: 1.4;
}

/* ---- Vouches --------------------------------------------------------------------- */

.badge {
  align-self: flex-start;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---- Messages -------------------------------------------------------------------- */

.conversation-list,
.thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conversation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}

.conversation.unread .result-name::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
}

.bubble {
  max-width: 85%;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bubble.mine {
  align-self: flex-end;
  background: var(--blue-soft);
  border-color: transparent;
}

.bubble p {
  margin: 0;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
}

.site-nav .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: top;
}

.site-nav .dot[hidden] {
  display: none;
}

.pre.quote {
  border-left: 3px solid var(--line-strong);
  padding-left: 10px;
}

/* ---- Board ----------------------------------------------------------------------- */

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .filters {
    grid-template-columns: 1fr 1fr 2fr;
    align-items: end;
  }
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.post {
  align-items: flex-start;
}

.post-title {
  font-family: var(--heading);
  font-size: 1.15rem;
  margin: 0;
}

fieldset.stack {
  border: 0;
  margin: 0;
  padding: 0;
}

fieldset.stack legend {
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---- Groups ---------------------------------------------------------------------- */

.care-list,
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.care-item,
.people li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}

/* ---- Group discussion -------------------------------------------------------------- */

.group-post.is-new {
  border-color: var(--blue);
}

.post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.post-head .small {
  font-size: 0.85rem;
}

.post-body {
  margin: 0;
  overflow-wrap: anywhere;
}

.reply-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}

.reply-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
}

.composer textarea.short {
  min-height: 4rem;
}

.composer-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.counter.over {
  color: var(--orange-dark);
  font-weight: 700;
}

.post-menu {
  position: relative;
}

.post-menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--blue);
  text-decoration: underline;
  font-size: 0.9rem;
}

.post-menu summary::-webkit-details-marker {
  display: none;
}

.post-menu[open] .post-menu-items {
  display: flex;
}

.post-menu-items {
  display: none;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 6px;
}

/* ---- Audit log ------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
}

table.audit {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--card);
}

table.audit th,
table.audit td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

/* ---- Stepping Off ---------------------------------------------------------------- */

.crisis {
  border-left: 4px solid var(--blue);
}

.crisis ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crisis a {
  color: var(--blue);
}

.quick-exit {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.code-of-conduct ul {
  margin: 0 0 8px;
  padding-left: 1.1rem;
}

/* ---- Dating ---------------------------------------------------------------------- */

.dating-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--line-soft);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Leave room so the fixed quick exit button never covers the last content. */
body:has(.quick-exit:not([hidden])) .page {
  padding-bottom: 96px;
}

.site-nav a[hidden] {
  display: none;
}

.home-links {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .home-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* A floating alert. Fixed, so showing it never moves the page. */
.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  background: var(--ink);
  color: #f3f4f1;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgb(22 24 29 / 25%);
}

.toast[hidden] {
  display: none;
}

.toast p {
  margin: 0 0 12px;
  font-weight: 600;
}

.toast-actions {
  display: flex;
  gap: 8px;
}

.toast .button.secondary {
  background: transparent;
  color: #f3f4f1;
  border-color: #f3f4f1;
}

.section-title {
  font-family: var(--heading);
  font-size: 1.5rem;
  margin: 0;
}

/* Four short privacy points instead of a wall of text. */
.privacy-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .privacy-points {
    grid-template-columns: 1fr 1fr;
  }
}

.privacy-points li {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
}

.privacy-points h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.privacy-points p {
  margin: 0;
}

.public-nav a[aria-current='page'] {
  color: var(--orange);
}

.col-main > .stack + .stack {
  margin-top: 20px;
}

/* A form field only bots fill in. Off screen, never focusable by people. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.card.soft {
  background: var(--bg);
  box-shadow: none;
}

.card.soft ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* ---- Interests ------------------------------------------------------------------- */

.interest-category {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.interest-category legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 700;
}

.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.interest-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

/* The real checkbox stays in the page for keyboards and screen readers. */
.interest-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.interest-chip:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.interest-chip .mark {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
}

.interest-chip.is-selected {
  border: 2px solid var(--blue-dark);
  padding: 7px 13px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.interest-chip.is-selected .mark {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: var(--card);
}

.interest-chip.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.interest-chip .retired {
  font-weight: 500;
  font-size: 0.85rem;
}

.selection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.selection-row {
  display: grid;
  gap: 6px;
}

@media (min-width: 720px) {
  .selection-row {
    grid-template-columns: 1fr 18rem;
    align-items: center;
  }
}

.save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: var(--bg);
}

.save-bar .button {
  width: auto;
}

.tag-picker summary {
  cursor: pointer;
  font-weight: 600;
}

.tag-picker[open] summary {
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Member home: compact header, quick actions and the "For you" feed ---------- */

.hero.compact .hero-inner {
  padding-top: 20px;
  padding-bottom: 20px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero.compact .hero-inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

.hero.compact h1 {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
}

.hero.compact .member-hero {
  flex-direction: row;
}

.hero.compact .hero-who {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero.compact .hero-sub {
  font-size: 1rem;
}

.hero.compact .profile-photo {
  width: 72px;
  height: 72px;
}

.hero.compact .profile-photo.initial {
  font-size: 1.8rem;
}

@media (max-width: 639px) {
  .hero.compact .hero-photo .profile-photo {
    width: 56px;
    height: 56px;
  }

  .hero.compact .hero-photo .profile-photo.initial {
    font-size: 1.4rem;
  }
}

.quick-actions {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

/* Scrolls sideways on its own on narrow screens. The page never does. */
.quick-actions-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.quick-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.quick-action:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.home-page {
  padding-top: 24px;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.feed-head .section-title {
  font-size: clamp(1.6rem, 5vw, 2rem);
}

.feed-links {
  display: flex;
  gap: 4px 16px;
  flex-wrap: wrap;
  font-weight: 700;
}

.feed-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.filter-chip:hover {
  border-color: var(--ink);
}

/* Selected: dark fill plus a check mark, so it never relies on color alone. */
.filter-chip[aria-pressed='true'],
.filter-chip[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-chip[aria-pressed='true']::before,
.filter-chip[aria-selected='true']::before,
.feed-actions .button[aria-pressed='true']::before,
.step-done::before {
  content: '✓ ';
}

.upcoming {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upcoming h3 {
  font-size: 1rem;
}

.upcoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upcoming-list a {
  font-weight: 700;
}

.feed-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-section-title {
  font-size: 1.05rem;
  color: var(--muted);
}

.feed-list,
.event-list,
.saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-card {
  gap: 8px;
  padding: 18px 20px;
}

.feed-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feed-card-top .pill {
  padding: 3px 10px;
  font-size: 12px;
}

.feed-type {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.feed-formation,
.feed-announcement {
  border-color: var(--orange-line);
  background: var(--orange-soft);
}

.feed-formation .feed-type,
.feed-announcement .feed-type {
  color: var(--orange-dark);
}

.feed-title {
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.feed-title a {
  color: var(--ink);
  text-decoration: none;
}

.feed-title a:hover {
  text-decoration: underline;
}

.feed-title:focus,
.feed-head h2:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.feed-title:focus:not(:focus-visible),
.feed-head h2:focus:not(:focus-visible) {
  outline: none;
}

.feed-summary {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.feed-why {
  border-left: 3px solid var(--line-strong);
  padding-left: 10px;
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.feed-actions .button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.feed-actions .link-button,
.feed-summary .link-button {
  min-height: 44px;
}

.feed-note:not([hidden]) {
  color: var(--ink-2);
}

.feed-more {
  align-self: center;
  width: auto;
}

.feed-end {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-end-title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.2rem;
}

.feed-end-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.feed-empty h3 {
  font-size: 1.2rem;
}

.summary-list,
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.summary-list li,
.check-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-top: 1px solid var(--line-soft);
}

.summary-list li:first-child,
.check-list li:first-child {
  border-top: 0;
}

.summary-list a,
.check-list a {
  font-weight: 700;
}

.step-done,
.step-todo {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.step-done {
  background: #e3f3e8;
  color: var(--ok);
}

.step-todo {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.onboarding h2 {
  font-size: 1.4rem;
}

/* Staff insights tables. */
table.insights {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.insights th,
table.insights td {
  text-align: left;
  padding: 8px 10px;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}

table.insights th {
  border-top: 0;
}

/* Community picks lead to other sites. */
.feed-pick .feed-out {
  color: var(--muted);
}
