/* Shared Home, My Fellowship, and discovery styling. */
body:has(.home-dashboard-page) main > .py-8 { padding-top: 0; }
.home-dashboard-page {
  --home-ink: var(--bb-page-text);
  --home-muted: var(--bb-placeholder-text);
  --home-line: var(--bb-box-divider);
  --home-paper: var(--bb-page-bg);
  --home-accent: var(--bb-link, var(--bb-accent));
  box-sizing: border-box;
  color: var(--home-ink);
  font-family: var(--bb-body-font);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 2rem;
  width: 100%;
}
.home-dashboard-page, .home-dashboard-page [data-home-gallery-theme] {
  --home-soft: color-mix(in srgb, var(--home-org-header-bg, var(--bb-box-header-bg)) 20%, var(--home-paper));
  /* Use the owning Org's palette; unthemed Orgs inherit the site palette. */
  --home-expanded-surface: color-mix(in srgb, var(--home-org-header-bg, var(--bb-box-header-bg)) 75%, var(--home-paper));
  --home-subspace-surface: color-mix(in srgb, var(--home-org-accent, var(--bb-accent)) 14%, var(--home-paper));
  --home-card-outline: color-mix(in srgb, var(--home-line) 35%, var(--home-paper));
  --home-boundary-color: color-mix(in srgb, var(--home-line) 55%, var(--home-paper));
}
.home-dashboard-page [data-home-gallery-theme] {
  /* Card copy uses the Org's page text, rather than its placeholder colour. */
  --home-muted: var(--home-ink);
  --bb-link: var(--home-accent);
  color: var(--home-ink);
}
#content > main > .py-8 > .home-dashboard-page { margin-left: auto; margin-right: auto; }
.home-dashboard-page *, .home-dashboard-page *::before, .home-dashboard-page *::after { box-sizing: border-box; }
.home-dashboard-page [hidden] { display: none !important; }
.home-dashboard-page h1, .home-dashboard-page h2, .home-dashboard-page h3 {
  color: var(--home-ink);
  font-family: var(--bb-heading-font);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}
.home-dashboard-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.045em; }
.home-dashboard-page h2 { font-size: 1.35rem; letter-spacing: -.025em; }
.home-dashboard-page h3 { font-size: 1.1rem; }
.home-dashboard-page p { margin: 0; text-align: left; }
.home-dashboard-page a { color: var(--home-accent); }
.home-dashboard-page a:hover { text-decoration: underline; transform: none; top: 0; }
.home-dashboard-page button, .home-dashboard-page input { font: inherit; }
.home-dashboard-page :focus-visible { outline: 2px solid var(--home-accent); outline-offset: 4px; }

.home-photo-background { --home-sticky-top: var(--bb-sticky-stack-offset, 50px); }
.home-logo-banner { --home-logo-layout-width: min(var(--home-logo-width, 44rem), calc(100vw - 4rem)); position: sticky; top: var(--home-sticky-top); z-index: 100; width: 100%; max-width: none; margin: 0; background: var(--home-page-background, #e9ebef); padding: clamp(.65rem, calc(var(--home-logo-layout-width) * .04), 1.75rem) 2rem clamp(.5rem, calc(var(--home-logo-layout-width) * .034), 1.5rem); }
.home-logo-banner .home-brand { display: block; position: relative; width: min(85%, var(--home-logo-width, 44rem)); margin: 0 auto; pointer-events: none; }
.home-brand img { display: block; height: auto; max-width: 100%; object-fit: contain; object-position: center; width: 100%; }
.home-brand .home-brand-favicon, .home-logo-preview .home-brand-favicon { position: absolute; bottom: 76%; right: -2.7%; width: 5%; height: auto; margin: 0; }
.home-logo-banner .home-logo-shadow > img:not(.home-brand-favicon) { filter: drop-shadow(1px 0 0 var(--home-logo-outline, #fff)) drop-shadow(-1px 0 0 var(--home-logo-outline, #fff)) drop-shadow(0 1px 0 var(--home-logo-outline, #fff)) drop-shadow(0 -1px 0 var(--home-logo-outline, #fff)); }
.home-text-link { align-items: center; display: inline-flex; font-size: .9rem; font-weight: 600; gap: .7rem; }

.home-about { padding: 1rem 0; text-align: center; }
.home-dashboard-page .home-about > h1, .home-dashboard-page .home-about > p { text-align: center; }
.home-dashboard-page .home-about > h1 { font-size: clamp(1rem, 2vw, 1.4rem); margin-bottom: .325rem; }
.home-about > p + p { margin-top: .3rem; }
.home-about-subtext { color: var(--home-ink); font-size: 1.15rem; }
.home-about-detail { color: var(--home-muted); font-size: .95rem; }
.home-about-field { margin-bottom: 1.2rem; }
.home-about-field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.home-about-field textarea { background: var(--home-paper); border: 1px solid var(--home-line); border-radius: 6px; color: var(--home-ink); font: inherit; padding: .7rem; resize: vertical; width: 100%; }

.home-dashboard-tabs { border-bottom: 1px solid var(--home-line); display: flex; flex-wrap: wrap; gap: .25rem; padding: 0 1rem .8rem; }
.home-dashboard-tab { appearance: none; background: transparent; border: 0; border-radius: 5px; color: var(--home-muted); cursor: pointer; font-size: .81rem !important; line-height: 1.25; min-height: 2.3rem; padding: .55rem .65rem; text-align: left; }
.home-dashboard-tab:hover { background: var(--home-soft); color: var(--home-ink); }
.home-dashboard-tab[aria-selected="true"] { background: var(--bb-box-header-bg); color: var(--bb-box-header-text); font-weight: 700; }
.home-dashboard-panel { padding: .3rem 1.5rem 1.2rem; }

.home-dashboard-row { align-items: center; border-bottom: 1px solid var(--home-line); display: grid; gap: 1rem; grid-template-columns: 6.6rem minmax(0, 1fr) auto; min-height: 5rem; padding: 1rem 0; }
.home-dashboard-row:last-child { border-bottom: 0; }
.home-dashboard-time { color: var(--home-muted); font-size: .8rem; line-height: 1.5; }
.home-dashboard-title { font-size: 1rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.home-dashboard-title > a { color: var(--home-ink); }
.home-announcement-text { color: var(--home-ink); line-height: 1.5; white-space: pre-line; }
.home-dashboard-meta { color: var(--home-muted); font-size: .78rem; font-weight: 400; line-height: 1.4; margin-top: .25rem; }
.home-dashboard-page .button.primary { background: var(--bb-btn-primary) !important; border: 1px solid var(--bb-btn-primary-border) !important; border-radius: 6px; color: var(--bb-btn-primary-text) !important; font-family: inherit !important; font-size: .82rem; font-weight: 600; line-height: 1.3; min-height: 2.3rem; padding: .5rem .8rem; text-decoration: none; white-space: nowrap; }
.home-dashboard-page [data-meeting-copy-link] { background: var(--home-paper) !important; border-color: var(--home-line) !important; color: var(--home-muted) !important; }
.home-dashboard-action-form { margin: 0; }
.home-dashboard-empty { color: var(--home-muted); font-size: .92rem; padding: 1.2rem 0; }

.home-org-directory { margin-top: 3.2rem; padding-top: 2.5rem; scroll-margin-top: 5rem; }
.home-directory-tools { align-items: end; display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.home-directory-search { display: flex; flex: 1 1 17rem; flex-direction: column; gap: .4rem; max-width: 28rem; }
.home-directory-search > label { color: var(--home-muted); font-size: .75rem; font-weight: 600; }
.home-directory-search input { background: var(--home-paper); border: 1px solid var(--bb-input-border); border-radius: 6px; color: var(--home-ink); font-size: 1rem; height: 2.75rem; padding: .6rem .8rem; width: 100%; }
.home-directory-sort { display: flex; flex-direction: column; gap: .4rem; }
.home-directory-sort > span { color: var(--home-muted); font-size: .75rem; font-weight: 600; }
.home-directory-sort select { background: var(--home-paper); border: 1px solid var(--bb-input-border); color: var(--home-ink); font: inherit; font-size: .8rem; height: 2rem; border-radius: 999px; padding: .25rem .75rem; }
.home-directory-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.home-directory-filters button { appearance: none; background: transparent; border: 1px solid var(--bb-input-border); border-radius: 999px; box-shadow: none; color: var(--home-muted); cursor: pointer; font-size: .75rem; font-weight: 500; line-height: 1.2; min-height: 2rem; padding: .3rem .75rem; white-space: nowrap; }
.home-directory-filters button:focus-visible { outline: 2px solid var(--home-line); outline-offset: 2px; }
.home-directory-filters button[aria-pressed="true"] { background: var(--bb-box-header-bg); border-color: var(--bb-accent-border); color: var(--bb-box-header-text); }
.home-directory-count { color: var(--home-muted); font-size: .8rem; margin-left: auto !important; padding-bottom: .7rem; }
.home-directory-grid { align-items: start; display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-org-card { background: var(--home-paper); border: 1px solid var(--home-line); border-radius: var(--bb-card-radius, 10px); margin: 0; min-width: 0; padding: 1.3rem; width: 100%; }
.home-org-card:has([data-home-org-toggle][aria-expanded="true"]) { border-color: var(--bb-accent-border); }
.home-org-card__header { margin-bottom: .8rem; }
.home-org-card__identity { align-items: start; display: flex; flex-direction: column; gap: 1rem; text-decoration: none; width: 100%; }
.home-org-card__logo { align-items: center; background: var(--home-soft); border-radius: 5px; color: var(--home-accent); display: flex; font-family: var(--bb-heading-font); font-size: 2.2rem; height: 4.5rem; justify-content: center; max-width: 100%; min-width: 4.5rem; position: relative; }
.home-org-card__logo:has(img:not([hidden])) { background: transparent; width: 100%; justify-content: start; }
.home-org-card__logo:has(img:not([hidden])) > span { display: none; }
.home-org-card__logo img { display: block; height: 100%; max-height: 4.5rem; max-width: 100%; object-fit: contain; object-position: left; width: auto; }
/* Org, space and subspace cards share accessible banner names and logo fallbacks. */
.home-org-directory:not(.is-searching) :is(.home-org-card__identity, .home-org-program__identity):has(img:not([hidden])) > :is(.home-org-card__name, .home-org-program__name) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.home-dashboard-page .home-org-card__name { color: var(--home-ink); font-size: .8rem; line-height: 1.35; }
.home-org-card__intro { color: var(--home-muted); font-size: .87rem; line-height: 1.6; min-height: 4.2rem; overflow-wrap: anywhere; }
.home-org-directory:not([data-home-initial-filter="not-following"]) .home-org-card > .home-org-card__intro { font-size: 1.1rem; }
.home-org-card__actions { align-items: start; border-top: 1px solid var(--home-line); display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; padding-top: 1rem; }
.home-org-card__follow { order: 2; }
.home-dashboard-page .bb-follow-control { --bb-follow-control-width: auto !important; --bb-follow-control-height: auto; --bb-follow-control-radius: 5px; background: var(--bb-follow-btn-bg) !important; border: 1px solid var(--bb-follow-btn-border) !important; color: var(--bb-follow-btn-text) !important; font-family: inherit !important; font-size: .78rem !important; font-weight: 300 !important; min-height: 2rem; padding: .35rem .65rem !important; width: auto !important; }
.home-dashboard-page .bb-follow-control.is-following { background: var(--bb-following-bg) !important; border-color: var(--bb-follow-btn-border) !important; color: var(--bb-following-text) !important; }
.home-org-card__toggle { align-items: center; background: transparent; border: 0; color: var(--home-accent); cursor: pointer; display: inline-flex; font-size: .76rem !important; gap: .5rem; min-height: 2rem; padding: .3rem 0; }
.home-org-card__toggle-icon { transition: transform .15s; }
.home-org-card__toggle[aria-expanded="true"] .home-org-card__toggle-icon { transform: rotate(180deg); }
.home-org-card__toggle { order: 3; }
.home-org-card__body { border-top: 1px solid var(--home-line); font-size: .87rem; margin-top: 1rem; margin-left: auto; padding-top: 1rem; width: 75%; min-width: 0; justify-self: end; transform-origin: top right; }
.home-org-card__body:not([hidden]) { animation: home-spaces-reveal .45s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes home-spaces-reveal {
  from { clip-path: inset(0 0 0 100%); opacity: .25; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

.home-org-program__bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.home-org-program__toggle { align-items: start; background: transparent; border: 0; color: var(--home-ink); cursor: pointer; display: flex; flex: 1 1 100%; gap: .5rem; justify-content: space-between; min-width: 0; padding: .25rem 0; text-align: left; }
.home-org-program__name { font-weight: 600; }
.home-org-program__summary { color: var(--home-muted); display: block; font-size: .75rem; }
.home-org-program__arrow { font-size: .65rem; margin-top: .25rem; }

.home-directory-empty { background: var(--home-soft); border-radius: 8px; color: var(--home-muted); padding: 1.5rem; }

.home-visitor-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.8rem 0; }
.home-primary-link { align-items: center; background: var(--bb-btn-primary); border-radius: 6px; color: var(--bb-btn-primary-text) !important; display: inline-flex; font-weight: 600; gap: 1rem; padding: .8rem 1.2rem; }
.home-footer { align-items: center; border-top: 1px solid var(--home-line); color: var(--home-muted); display: flex; flex-wrap: wrap; font-size: .8rem; gap: 1rem; justify-content: space-between; margin-top: 3rem; padding: 1.5rem 0 .5rem; }
@media (max-width: 1050px) {

  .home-dashboard-row { gap: .6rem; grid-template-columns: 5rem minmax(0, 1fr); }
  .home-dashboard-row > [data-meeting-link-action], .home-dashboard-row > .home-dashboard-action, .home-dashboard-row > form { grid-column: 2; justify-self: start; }

  .home-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-dashboard-page { padding: 0 1.1rem; }

  .home-org-directory { margin-top: 2rem; padding-top: 2rem; }
  .home-directory-count { margin-left: 0 !important; padding-bottom: 0; }

}
@media (max-width: 480px) {
  .home-directory-grid { grid-template-columns: minmax(0, 1fr); }

  .home-dashboard-tabs { padding: 0 .6rem .6rem; }
  .home-dashboard-tab { font-size: .76rem !important; }
  .home-dashboard-panel { padding: .3rem 1rem 1rem; }
  .home-dashboard-row { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .home-dashboard-row > [data-meeting-link-action], .home-dashboard-row > .home-dashboard-action, .home-dashboard-row > form { grid-column: 1; margin-top: .3rem; }

  .home-org-card__intro { min-height: 0; }
}
.home-directory-grid[data-view="list"] { grid-template-columns: minmax(0, 1fr); }
.home-directory-grid[data-view="list"] .home-org-card { display: grid; align-items: center; column-gap: 1.5rem; row-gap: .4rem; }
.home-directory-grid[data-view="list"] .home-org-card__header { grid-column: 1; grid-row: 1 / 3; margin: 0; }
.home-directory-grid[data-view="list"] .home-org-card__identity { flex-direction: column; align-items: flex-start; gap: .75rem; }
.home-directory-grid[data-view="list"] .home-org-card__logo { flex: 0 0 4.5rem; max-width: 100%; }
.home-directory-grid[data-view="list"] .home-org-card__intro { grid-column: 2; grid-row: 1 / 3; min-height: 0; }
.home-directory-grid[data-view="list"] .home-org-card__actions { grid-column: 3; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; border: 0; padding: 0; }
.home-directory-grid[data-view="list"] .home-org-card__follow { order: 0; }
.home-directory-grid[data-view="list"] .home-org-card__body { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .home-directory-grid[data-view="list"] .home-org-card { grid-template-columns: minmax(0, 1fr) auto; }
  .home-directory-grid[data-view="list"] .home-org-card__header { grid-column: 1; grid-row: 1; }
  .home-directory-grid[data-view="list"] .home-org-card__intro { grid-column: 1; grid-row: 2 / 4; }
  .home-directory-grid[data-view="list"] .home-org-card__actions { grid-column: 2; grid-row: 1 / 4; }
}
@media (max-width: 480px) {
  .home-directory-grid[data-view="list"] .home-org-card { display: block; }
  .home-directory-grid[data-view="list"] .home-org-card__header, .home-directory-grid[data-view="list"] .home-org-card__intro { margin-bottom: .7rem; }
  .home-directory-grid[data-view="list"] .home-org-card__actions { flex-direction: column; align-items: flex-end; margin-top: .8rem; }
}
@media (pointer: coarse) {
  .home-dashboard-page button, .home-dashboard-page .button.primary, .home-dashboard-page .bb-follow-control { min-height: 44px !important; }
  .home-dashboard-page [data-meeting-copy-link] { min-width: 44px !important; }
}
@media (prefers-reduced-motion: reduce) { .home-dashboard-page * { transition: none !important; } }

@media (prefers-reduced-motion: reduce) { .home-org-card__body:not([hidden]) { animation: none; } }

/* A full-height welcome section scrolls away before organization discovery. */
.home-photo-background { max-width: none; padding: 0; }
.home-hero {
  position: relative; isolation: isolate; min-height: calc(100svh - var(--bb-sticky-stack-offset, 50px));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 5rem 2rem calc(7rem + var(--home-credits-height, 0px)); gap: 1rem; text-align: center;
  color: #fff;
}
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; filter: saturate(1.3);
  background: var(--home-background-image, url("../img/home-background.529239e8ac82.jpeg")) center 52% / cover no-repeat;
}
.home-hero .home-about { position: relative; width: 100%; max-width: 56rem; padding: .75rem 0; }
.home-dashboard-page .home-hero .home-about > h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: .02em; }
.home-hero .home-about-subtext, .home-hero .home-about-detail { color: #fff; }
.home-hero .home-about-subtext { font-size: clamp(1rem, 2vw, 1.35rem); }
.home-hero .home-text-link { color: #fff !important; }
.home-visual-credits { position: absolute; right: 1rem; bottom: .5rem; z-index: 1; max-width: calc(100% - 2rem); margin: 0; font-size: 14px; line-height: 1.3; color: #fff; text-align: right; white-space: pre-line; overflow-wrap: anywhere; }
.home-visual-credits [data-text-preview] { display: block; }
.home-image-preview-frame .home-visual-credits { pointer-events: none; }
.home-visual-credits[hidden] { display: none; }
/* Keep discovery visible at the viewport bottom, bounded by the image itself. */
.home-hero-explore-track { --home-explore-bottom: calc(1.75rem + var(--home-credits-height, 0px)); position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: var(--home-explore-bottom); pointer-events: none; }
.home-dashboard-page .home-hero-scroll { position: sticky !important; top: auto !important; bottom: var(--home-explore-bottom); align-self: center; max-width: calc(100% - 2rem); pointer-events: auto; transform: none; color: #fff !important; display: flex; align-items: center; gap: .75rem; white-space: nowrap; font-size: .9rem; }
.home-dashboard-page .home-hero-scroll:hover { top: auto; transform: none; }
.home-photo-background .home-org-directory { max-width: 80rem; margin: 0 auto; padding: 3rem 2rem; }
.home-photo-background .home-footer { max-width: 76rem; margin: 0 auto; }
@media (max-width: 760px) {
  .home-photo-background { padding: 0; }
  .home-hero { padding: 4rem 1.1rem calc(6rem + var(--home-credits-height, 0px)); }
  .home-photo-background .home-org-directory { padding: 2rem 1.1rem; }
}

.home-about-field input[type="color"] { width: 4rem; height: 2.75rem; padding: .2rem; cursor: pointer; }

/* Homepage appearance editor */
.home-editor-heading { margin-bottom: 2rem; }
.home-editor-card { border: 1px solid var(--home-line); border-radius: 10px; padding: 1.5rem; margin: 0 0 1.5rem; min-width: 0; background: var(--home-paper); }
.home-editor-card legend { padding: 0 .5rem; font-size: 1.15rem; font-weight: 700; }
.home-about-editor select { width: 100%; height: 2.8rem; border: 1px solid var(--home-line); border-radius: 6px; padding: .5rem .75rem; background: var(--home-paper); color: var(--home-ink); font: inherit; }
.home-color-inputs { display: flex; gap: .65rem; align-items: center; }
.home-about-editor .home-color-inputs input[type="color"] { display: block; flex: 0 0 3rem; padding: .2rem; border: 1px solid var(--home-line); border-radius: 6px; background: transparent; cursor: pointer; }
.home-about-editor [data-color-value] { height: 2.8rem; border: 1px solid var(--home-line); border-radius: 6px; padding: .5rem .75rem; font: 1rem monospace; color: var(--home-ink); background: var(--home-paper); }
.home-about-field small { display: block; margin-top: .45rem; color: var(--home-muted); font-size: .8rem; }
.home-background-current { margin: 0 0 1.5rem; }
.home-background-current img { width: 100%; height: 12rem; object-fit: cover; object-position: center 52%; border-radius: 6px; }
.home-background-current figcaption { margin-top: .5rem; font-size: .85rem; color: var(--home-muted); }
.home-logo-preview { padding: 1.25rem; border-radius: 6px; background: #34445a; }
.home-logo-preview img { width: min(100%, 30rem); margin: auto; }
.home-editor-actions { display: flex; align-items: center; gap: 1.5rem; padding: .5rem 0; }
.home-about-editor .errorlist { color: #b91c1c; margin-top: .5rem; }
@media (max-width: 600px) { .home-editor-card { padding: 1rem; } }

/* Full-bleed home hero; directory retains its own readable gutters. */
#content > main > .py-8:has(> .home-photo-background) { padding: 0 !important; }
#content > main:has(.home-photo-background) { padding: 0 !important; }
/* Remove the collapsed-sidebar gutter from the public homepage. */
body:has(.home-dashboard-page.home-photo-background) #content { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; }
.home-dashboard-page .home-hero-scroll,
.home-dashboard-page .home-hero-scroll:hover,
.home-dashboard-page .home-hero-scroll:focus-visible { color: var(--home-explore-color, #fff) !important; font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 600; }
.home-about-editor input[name="explore_text"] { width: 100%; padding: .65rem .75rem; border: 1px solid var(--home-line); border-radius: 6px; background: var(--home-paper); color: var(--home-ink); }

/* Anchor targets leave room for both sticky banners. */
.home-photo-background .home-org-directory {
  padding-top: 3rem;
  scroll-margin-top: calc(var(--home-sticky-top) + var(--home-logo-banner-height, 10rem) + 1rem);
}

/* Roomy homepage footer with a compact, responsive directory of links. */
.home-photo-background .home-footer { display: grid; grid-template-columns: 1fr; align-items: start; gap: 2.5rem; text-align: center; padding: 3rem 2rem 3.5rem; font-size: 1rem; }
.home-footer-intro { max-width: none; margin: 0 auto; font-size: 1.2rem; line-height: 1.7; }
.home-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.home-footer-links a { display: block; font-size: .95rem; line-height: 1.5; }
@media (max-width: 760px) { .home-photo-background .home-footer { padding: 2.5rem 1.1rem; } .home-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.home-photo-background .home-footer-intro { width: 100%; text-align: center; }
.home-photo-background .home-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 1.2rem 2rem; text-align: center; }

/* Bleed the photo over the hero boundary to avoid fractional-pixel gaps. */
.home-photo-background .home-hero::before { bottom: -2px; }

.home-about-editor .home-logo-preview { background: #fff; border: 1px solid var(--home-line); }

.home-dashboard-page .home-footer a.home-footer-donate,
.home-dashboard-page .home-footer a.home-footer-donate:visited,
.home-dashboard-page .home-footer a.home-footer-donate:hover { justify-self: center; color: #800020 !important; font-size: 1.15rem; font-weight: 600; }

/* Phone homepage: readable controls, full-width spaces and a toolbar-aware logo. */
@media (max-width: 767px) {
  .home-photo-background .home-hero { min-height: calc(100svh - var(--bb-mobile-topbar-bottom, 32px)); padding: 4rem 1.25rem calc(6.5rem + var(--home-credits-height, 0px)); gap: 1.25rem; }
  .home-photo-background { --home-sticky-top: var(--bb-mobile-topbar-bottom, 32px); }
  .home-photo-background .home-logo-banner { padding-inline: 1.5rem; }
  .home-photo-background .home-logo-banner .home-brand { width: min(calc(100% - 1rem), var(--home-logo-width, 44rem)); }
  .home-photo-background .home-hero .home-about { padding: .5rem 0; }
  .home-dashboard-page .home-hero .home-about > h1 { font-size: clamp(1.35rem, 5.8vw, 1.8rem); line-height: 1.35; overflow-wrap: anywhere; }
  .home-photo-background .home-about-subtext, .home-photo-background .home-about-detail { line-height: 1.6; overflow-wrap: anywhere; }
  .home-hero-explore-track { --home-explore-bottom: calc(1.5rem + var(--home-credits-height, 0px)); }
  .home-dashboard-page .home-hero-scroll { width: calc(100% - 2.5rem); justify-content: center; white-space: normal; text-align: center; font-size: 1.2rem; min-height: 44px; }
  .home-photo-background .home-org-directory { padding-left: 1rem; padding-right: 1rem; }
  .home-photo-background .home-directory-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .85rem; }
  .home-photo-background .home-directory-search,
  .home-photo-background .home-directory-kind-switch,
  .home-photo-background .home-directory-filters,
  .home-photo-background .home-directory-count { grid-column: 1 / -1; max-width: none; width: 100%; }
  .home-photo-background .home-directory-filters button { flex: 0 0 auto; min-height: 36px; }
  .home-photo-background .home-directory-sort { min-width: 0; }
  .home-photo-background .home-directory-sort select { width: 100%; min-width: 0; font-size: 16px; min-height: 44px; }
  .home-photo-background .home-directory-search input { font-size: 16px; }
  .home-photo-background .home-org-card__name { overflow-wrap: anywhere; }
  .home-photo-background .home-org-card__body { width: 100%; }
  .home-photo-background .home-org-card__actions { gap: .75rem; align-items: center; }
  .home-photo-background .home-org-card__toggle { min-height: 44px; font-size: .85rem !important; }
  .home-photo-background .home-footer { padding: 2.5rem 1rem; gap: 2rem; }
  .home-photo-background .home-footer-intro { font-size: 1.1rem; line-height: 1.7; }
  .home-photo-background .home-footer-links { gap: .75rem .6rem; }
  .home-photo-background .home-footer-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: .85rem; overflow-wrap: anywhere; }
  .home-photo-background .home-footer-donate { min-height: 44px; padding: .5rem; }
}
@media (max-width: 600px) {
  .home-photo-background .home-directory-grid { grid-template-columns: minmax(0, 1fr); }
  .home-photo-background .home-directory-grid[data-view="list"] .home-org-card { display: block; }
  .home-photo-background .home-directory-grid[data-view="list"] .home-org-card__actions { align-items: stretch; margin-top: 1rem; }
  .home-photo-background .home-directory-grid[data-view="list"] .home-org-card__follow { align-self: flex-end; }
  .home-photo-background .home-directory-grid[data-view="list"] .home-org-card__toggle { align-self: flex-end; }
}

/* Editable image treatment keeps the uploaded original intact. */
.home-photo-background .home-hero { background: #fff; overflow: clip; }
.home-photo-background .home-hero::before { background-position: var(--home-bg-x, 50%) var(--home-bg-y, 52%); filter: saturate(var(--home-bg-saturation, 130%)); opacity: var(--home-bg-opacity, 100%); transform: scale(calc(var(--home-bg-zoom, 100) / 100)); transform-origin: var(--home-bg-x, 50%) var(--home-bg-y, 52%); }
/* Tuck the photo edge beneath the masthead despite fractional-pixel rounding. */
.home-introduction { width: 100%; max-width: none; margin: 0 auto; padding: 1.25rem 1.5in 1rem; text-align: center; scroll-margin-top: calc(var(--home-sticky-top, var(--bb-sticky-stack-offset, 50px)) + var(--home-logo-banner-height, 10rem) - 2px); }
.home-editor-layout-controls input { width: 100%; }
.home-about-editor [data-logo-width] { width: 100%; }
.home-logo-preview [data-logo-shadow-preview] { position: relative; margin: 0 auto; }
.home-about-editor .home-logo-preview .home-brand-favicon { width: 5%; }
.home-image-preview-frame { overflow: hidden; background: #fff; border-radius: 6px; }
.home-image-preview-frame img { border-radius: 0; }
.home-image-range { margin: 1.25rem 0; }
.home-image-range label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.home-image-range input[type="range"] { width: 100%; min-height: 44px; accent-color: #800020; }
.home-image-range output { font-variant-numeric: tabular-nums; font-weight: 400; }
.home-crop-toggle { border: 1px solid var(--home-line); border-radius: 6px; padding: .6rem 1rem; min-height: 44px; }
.home-image-help { color: var(--home-muted); font-size: .85rem; margin-top: 1rem; }
@media(max-width:767px) { .home-introduction { padding: 1.25rem 1rem 1rem; } }
.home-photo-background:has(.home-about-boxes) .home-org-directory { padding-top: 2.5rem; }

.home-image-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.5rem; align-items: start; }
.home-image-editor .home-background-current { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--bb-sticky-stack-offset, 50px) + 1rem); margin: 0; }
.home-image-settings { grid-column: 1; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
.home-image-editor .home-image-preview-frame { border: 1px solid var(--home-line); }
.home-image-editor .home-image-preview-frame img { object-fit: cover; }
.home-background-current figcaption strong, .home-background-current figcaption span { display: block; }
@media(max-width:760px) {
  .home-image-editor { display: flex; flex-direction: column; }
  .home-image-editor .home-background-current { width: 100%; position: relative; top: auto; }
  .home-image-settings { width: 100%; }
}
.home-crop-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.home-crop-toolbar button { min-width: 44px; min-height: 44px; border: 1px solid var(--home-line); border-radius: 6px; padding: .45rem .8rem; }
[data-crop-surface] { cursor: grab; touch-action: none; }
[data-crop-surface].is-dragging { cursor: grabbing; }
[data-crop-surface] img { user-select: none; -webkit-user-drag: none; }

/* Crop preview uses the same viewport shape as the full-height homepage hero. */
.home-image-editor .home-image-preview-frame { aspect-ratio: auto; position: relative; }
.home-image-editor .home-image-preview-frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }

.home-photo-background .home-primary-link { font-size: .85rem; padding: .5rem .85rem; gap: 0; line-height: 1.35; }
@media (pointer: coarse) { .home-photo-background .home-primary-link { min-height: 44px; } }

/* Font sizes may use the responsive default or an explicit pixel value. */
.home-about-editor [data-font-size] { width: 100%; height: 2.8rem; padding: .5rem .75rem; border: 1px solid var(--home-line); border-radius: 6px; background: #fff; color: var(--home-ink); font: inherit; }

/* Apply the chosen shadow to the outlined wordmark and seal together. */
.home-logo-shadow { display: block; position: relative; }
.home-photo-background .home-logo-shadow { filter: var(--home-logo-shadow, none); }

/* A compact appearance editor, with controls beside their related content. */
.home-about-editor { max-width: 68rem; padding: 1.5rem clamp(.875rem, 2vw, 1.75rem) 2rem; font-size: .875rem; }
.home-about-editor .home-editor-heading { margin-bottom: 1rem; }
.home-about-editor .home-editor-heading h1 { font-size: 1.7rem; letter-spacing: -.025em; }
.home-editor-section { border: 1px solid var(--home-line); border-radius: 8px; margin-bottom: .75rem; background: #fff; }
.home-editor-section > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem .75rem; position: relative; padding: .85rem 2.5rem .85rem 1rem; cursor: pointer; font-size: .95rem; font-weight: 600; list-style: none; }
.home-editor-section > summary::-webkit-details-marker { display: none; }
.home-editor-section > summary::after { content: "+"; position: absolute; right: 1rem; font: 1.2rem Arial, sans-serif; color: var(--home-muted); }
.home-editor-section[open] > summary::after { content: "−"; }
.home-editor-section > summary > span { color: var(--home-muted); font-size: .75rem; font-weight: 400; }
.home-editor-section[open] > summary { border-bottom: 1px solid var(--home-line); }
.home-editor-section > summary:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; border-radius: 8px; }
.home-editor-section-content { padding: 1rem; }
.home-about-editor .home-editor-card { margin: 0 0 .9rem; padding: .85rem 1rem; border-radius: 7px; }
.home-editor-section-content > .home-editor-card:last-child { margin-bottom: 0; }
.home-about-editor .home-editor-card legend { font-size: .9rem; padding: 0 .35rem; }
.home-about-editor .home-about-field { margin-bottom: .75rem; min-width: 0; }
.home-about-editor .home-about-field > label { font-size: .8rem; margin-bottom: .3rem; }
.home-about-editor .home-about-field small { margin-top: .3rem; font-size: .7rem; }
.home-about-editor .home-about-field textarea { font-size: .875rem; padding: .5rem .65rem; }
.home-about-editor [data-text-level] textarea { min-height: 3.5rem; height: 3.5rem; }
.home-about-editor select,
.home-about-editor [data-font-size],
.home-about-editor [data-color-value] { height: 2.25rem; padding: .35rem .55rem; font-size: .85rem; }
.home-about-editor .home-color-inputs { gap: .4rem; }
.home-about-editor .home-color-inputs input[type="color"] { flex-basis: 2.5rem; width: 2.5rem; height: 2.25rem; }
.home-about-editor [data-color-value] { width: 100%; min-width: 0; max-width: 9rem; }
.home-about-editor [data-text-level] [data-color-control] > small { display: none; }
.home-about-editor .home-image-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.25rem; }
.home-about-editor .home-image-editor .home-background-current { position: static; }
.home-about-editor .home-background-current figcaption { font-size: .7rem; margin-top: .4rem; }
.home-about-editor .home-image-range { margin: .65rem 0; }
.home-about-editor .home-image-range label { font-size: .8rem; }
.home-about-editor .home-image-range input[type="range"] { min-height: 28px; }
.home-about-editor .home-crop-toolbar { gap: .35rem; margin: .5rem 0; }
.home-about-editor .home-crop-toolbar button { min-height: 34px; min-width: 34px; padding: .3rem .55rem; font-size: .75rem; }
.home-about-editor .home-image-help { margin: .5rem 0; font-size: .75rem; }
.home-logo-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.25rem; align-items: center; }
.home-logo-settings { min-width: 0; }
.home-about-editor .home-logo-preview { display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding: 1rem 2rem 3rem; min-height: 13rem; }
.home-logo-preview > span { font-size: .7rem; color: var(--home-muted); }
.home-about-editor .home-logo-preview img { width: 100%; }
.home-about-editor .home-donate-preview { color: #800020; }
.home-about-editor .home-editor-actions { position: sticky; bottom: 0; z-index: 10; padding: .8rem 1rem; border: 1px solid var(--home-line); border-radius: 7px; background: #fff; box-shadow: 0 -3px 12px rgba(15, 23, 42, .05); gap: 1rem; }
.home-about-editor .home-editor-actions a { font-size: .85rem; }
@media (max-width: 900px) {
  .home-editor-section > summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .home-about-editor .home-image-editor, .home-logo-editor { display: flex; flex-direction: column; gap: 1rem; }
  .home-logo-settings, .home-logo-editor .home-logo-preview { width: 100%; }
  .home-about-editor .home-logo-preview { min-height: 10rem; }
  .home-editor-section-content { padding: .65rem; }
  .home-about-editor .home-editor-card { padding: .75rem; }
  .home-editor-section > summary { padding-left: .8rem; }
}
@media (pointer: coarse) {
  .home-about-editor .home-crop-toolbar button { min-height: 44px; min-width: 44px; }
  .home-about-editor select, .home-about-editor [data-font-size], .home-about-editor [data-color-value] { min-height: 44px; font-size: 16px; }
}

/* Organization discovery opens across the row, without nested gutters. */
.home-dashboard-page .home-directory-grid { align-items: stretch; }
.home-dashboard-page .home-org-card { display: flex; flex-direction: column; }
.home-dashboard-page .home-org-card__actions { align-items: center; flex-wrap: nowrap; margin-top: auto; padding-top: .8rem; gap: .75rem; }
.home-dashboard-page .home-org-card__toggle { order: 1; margin-right: auto; justify-content: flex-start; }
.home-dashboard-page .home-org-card__follow { order: 2; margin-left: auto; align-self: center; flex-shrink: 0; }
.home-dashboard-page .home-org-card__body { width: 100%; margin: 0; padding: 1rem; justify-self: stretch; transform-origin: left top; }
.home-dashboard-page .home-directory-panel { --home-branch-surface: var(--home-expanded-surface); grid-column: 1 / -1; border: 1px solid var(--home-line); border-radius: var(--bb-card-radius, 10px); }
.home-dashboard-page .home-directory-panel:not([hidden]) { animation: home-directory-reveal .3s ease-out both; }
@keyframes home-directory-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: .35; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
.home-dashboard-page .home-org-programs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.home-dashboard-page .home-org-program { --home-branch-direction: 90deg; --home-branch-surface: var(--home-expanded-surface); display: flex; flex-direction: column; min-width: 0; padding: .7rem; border: 1px solid var(--home-card-outline); border-radius: 7px; background: var(--home-branch-gradient); }
.home-org-program__identity { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-decoration: none; min-width: 0; width: 100%; color: var(--home-ink); }
.home-org-program__identity .home-org-program__logo { height: 2.5rem; min-width: 2.5rem; font-size: 1.6rem; }
.home-org-program__identity .home-org-program__logo:has(img:not([hidden])) { height: auto; min-width: 0; }
.home-org-program__identity .home-org-program__logo img { width: 100%; height: auto; max-height: none; }
.home-org-program__name { font-size: .78rem; overflow-wrap: anywhere; }
/* Space banners fill their card width, just like organization banners. */
.home-org-directory:not(.is-searching) .home-org-program__logo:has(img:not([hidden])) { flex: 0 1 auto; width: 100%; min-width: 0; height: auto; }
.home-org-directory:not(.is-searching) .home-org-program__logo img { width: 100%; height: auto; max-height: 8rem; object-fit: contain; object-position: left; }

.home-dashboard-page .home-org-program__summary { font-size: .75rem; line-height: 1.45; margin: .45rem 0; text-align: left; overflow-wrap: anywhere; }

.home-dashboard-page .home-org-program__bar { align-items: center; flex-wrap: nowrap; gap: .4rem; margin-top: auto; padding-top: .45rem; }
.home-dashboard-page .home-org-program__toggle { flex: 0 1 auto; align-items: center; justify-content: flex-start; gap: .4rem; font-size: .7rem; color: var(--home-accent); min-height: 1.65rem; }
.home-dashboard-page .home-org-program__arrow { margin: 0; }
.home-dashboard-page .home-org-program__follow { margin-left: auto; flex-shrink: 0; }
.home-dashboard-page .home-org-program__content { overflow-wrap: anywhere; margin: .75rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--home-line); }
.home-dashboard-page .home-directory-grid .bb-follow-control { --bb-follow-control-width: auto !important; width: auto !important; min-width: 0 !important; min-height: 1.65rem; padding: .2rem .45rem !important; font-size: .68rem !important; line-height: 1.25; }
@media (max-width: 600px) {
  .home-dashboard-page .home-org-card__body { padding: .85rem; }
  .home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card__actions { align-items: center; }
  .home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card__toggle { align-self: center; }
  .home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card__follow { align-self: center; }
}
@media (pointer: coarse) {
  .home-dashboard-page .home-directory-grid .bb-follow-control,
  .home-dashboard-page .home-org-program__toggle { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-dashboard-page .home-directory-panel:not([hidden]) { animation: none; }
}
.home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card__header { grid-column: 1; grid-row: 1; }
.home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card__intro { grid-column: 2; grid-row: 1; }
.home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card__actions { grid-column: 1 / -1; grid-row: 2; flex-direction: row; align-items: center; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--home-line); }
.home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card__follow { order: 2; }
@media (max-width: 700px) {
  .home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card { grid-template-columns: minmax(0, 1fr); }
  .home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card__intro { grid-column: 1; grid-row: 2; }
  .home-dashboard-page .home-directory-grid[data-view="list"] .home-org-card__actions { grid-row: 3; }
}

.home-dashboard-page .home-org-program .bb-follow-control { font-size: .63rem !important; padding: .18rem .4rem !important; min-height: 1.5rem; }
@media (max-width: 1100px) {
  .home-dashboard-page .home-org-programs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-dashboard-page .home-org-programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .home-dashboard-page .home-org-programs { grid-template-columns: minmax(0, 1fr); }
}

.home-dashboard-page .home-space-panel { --home-branch-direction: 270deg; --home-branch-surface: var(--home-subspace-surface); grid-column: 1 / -1; width: 100%; margin: 0; padding: .7rem; border: 1px solid var(--home-line); border-radius: 7px; }
/* Spaces fade left to right; subspaces reverse direction. Keep the same
   surface on the selected tile, connecting bridge, and expanded panel. */
.home-dashboard-page :is(.home-org-card, .home-org-program, .home-directory-panel, .home-space-panel) {
  --home-branch-gradient: linear-gradient(var(--home-branch-direction, 90deg), var(--home-branch-surface, var(--home-expanded-surface)), color-mix(in srgb, var(--home-branch-surface, var(--home-expanded-surface)) 35%, var(--home-paper)));
}
.home-dashboard-page :is(.home-directory-panel, .home-space-panel) {
  background: var(--home-branch-gradient);
}
.home-dashboard-page .home-space-panel:not([hidden]) { animation: home-directory-reveal .3s ease-out both; }
@media (prefers-reduced-motion: reduce) { .home-dashboard-page .home-space-panel:not([hidden]) { animation: none; } }

/* Join the selected tile to its descendants with a continuous outline. */
.home-dashboard-page .home-org-card { border-color: var(--home-boundary-color); }
.home-dashboard-page :is(.home-org-card, .home-org-program).is-connected,
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card.is-connected {
  position: relative;
  z-index: 2;
  background: var(--home-branch-gradient);
  border-color: var(--home-boundary-color, #4b5563);
  border-width: var(--home-connection-width, 2px);
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
}
.home-dashboard-page :is(.home-org-card, .home-org-program).is-connected::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--home-connection-width, 1px));
  right: calc(-1 * var(--home-connection-width, 1px));
  /* Mask the panel's top edge, but stop both side strokes at its top corner. */
  height: calc(var(--home-connection-gap, 1.1rem) + 2 * var(--home-connection-width, 2px));
  background:
    linear-gradient(var(--home-boundary-color, #4b5563), var(--home-boundary-color, #4b5563)) left top / var(--home-connection-width, 2px) calc(100% - var(--home-connection-left-stop, 2px)) no-repeat,
    linear-gradient(var(--home-boundary-color, #4b5563), var(--home-boundary-color, #4b5563)) right top / var(--home-connection-width, 2px) calc(100% - var(--home-connection-right-stop, 2px)) no-repeat,
    var(--home-branch-gradient);
  box-shadow: none;
  pointer-events: none;
  z-index: 3;
}
.home-dashboard-page :is(.home-directory-panel, .home-space-panel).is-connected-panel {
  position: relative;
  z-index: 1;
  --home-panel-unit: calc((100% - (var(--home-panel-columns, 1) - 1) * var(--home-panel-column-gap, 1.1rem)) / var(--home-panel-columns, 1));
  width: calc(var(--home-panel-unit) * var(--home-panel-span, 1) + (var(--home-panel-span, 1) - 1) * var(--home-panel-column-gap, 1.1rem));
  margin-left: calc((var(--home-panel-start, 1) - 1) * (var(--home-panel-unit) + var(--home-panel-column-gap, 1.1rem)));
  box-shadow: none;
  border: var(--home-connection-width, 1px) solid var(--home-boundary-color, #4b5563);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  animation: none;
}
.home-dashboard-page .is-connected-panel > .home-org-programs {
  grid-template-columns: repeat(var(--home-expanded-columns, 1), minmax(0, 1fr));
  animation: home-directory-reveal .3s ease-out both;
}
.home-dashboard-page .home-space-panel .home-org-program,
.home-dashboard-page [data-home-subspace-gallery],
.home-dashboard-page [data-home-subspace-gallery] .home-org-program,
.home-dashboard-page .home-org-card[data-kind="space"]:not([data-parent-space=""]) {
  --home-branch-direction: 270deg;
  --home-branch-surface: var(--home-subspace-surface);
}
@media (prefers-reduced-motion: reduce) {
  .home-dashboard-page .is-connected-panel > .home-org-programs { animation: none; }
}

/* Grey page canvas beneath the landing image and themed gallery surfaces. */
body:has(.home-photo-background) { --home-page-background: #e9ebef; background: var(--home-page-background); }
body:has(.home-photo-background) #content,
body:has(.home-photo-background) #content > main,
body:has(.home-photo-background) #content > main > .py-8,
.home-photo-background { background: var(--home-page-background, #e9ebef); }
/* My Fellowship uses the homepage's canvas, banner and card surfaces. */
body:has(.home-member-page) { --home-page-background: #e9ebef; background: var(--home-page-background); }
body:has(.home-member-page) #content,
body:has(.home-member-page) #content > main,
body:has(.home-member-page) #content > main > .py-8 { background: var(--home-page-background); }
#content > main > .py-8:has(> .home-member-page) { padding-top: 0 !important; padding-bottom: 0 !important; }
.home-member-page { padding: 0; background: var(--home-page-background); }


.home-member-page .home-footer { display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 2.5rem 1rem 2rem; margin-top: 3rem; }
.home-member-page .home-footer-intro { text-align: center; width: 100%; font-size: 1.15rem; }
.home-member-page .home-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; width: 100%; text-align: center; }
.home-member-page .home-footer-donate { align-self: center; color: #800020 !important; font-size: 1.05rem; margin-top: .5rem; }
@media (max-width: 760px) {

  .home-member-page .home-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.home-member-page .home-member-heading { position: static; width: min(calc(100% - 4rem), 76rem); margin: 0 0 0 2rem; padding: 2.5rem 0 1rem; text-align: left; }
.home-member-page .home-member-heading h1 { font-family: var(--bb-body-font, Arial, sans-serif) !important; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 400; letter-spacing: normal; color: var(--home-ink); }
@media (max-width: 760px) {
  .home-member-page .home-member-heading { width: calc(100% - 2.2rem); margin-left: 1.1rem; }
}

/* My Fellowship shares the space-page folder-tab structure. */
.home-member-page .home-member-tabs { width: min(calc(100% - 4rem), 76rem); margin: 1.5rem auto 0 2rem; min-width: 0; }
.home-member-page .home-member-tab-list { display: flex; align-items: flex-end; gap: .35rem; overflow-x: auto; border-bottom: 1px solid var(--home-line); scrollbar-width: none; }
.home-member-page .home-member-tab-list::-webkit-scrollbar { display: none; }
.home-member-page .home-member-tab { appearance: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; background: transparent; color: var(--home-muted); cursor: pointer; font-size: 1rem; font-weight: 600; line-height: 1; padding: .86rem 1.15rem; position: relative; transform: translateY(1px); transition: none; text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
.home-member-page .home-member-tab[aria-selected="true"] { border: 2px solid var(--home-line, #264577); border-bottom: 0; background: #fff; color: var(--bb-box-title-color, var(--bb-page-text, #1a1a1a)); box-shadow: none; font-weight: 750; }
.home-member-page .home-member-tab:hover, .home-member-page .home-member-tab:focus { color: var(--bb-box-title-color, var(--bb-page-text, #1a1a1a)); text-decoration: none; }
.home-member-page .home-member-tab#home-tab-explore { color: #d2202f; }
.home-member-page .home-member-tab:focus-visible { outline: 2px solid var(--bb-link, #2563eb); outline-offset: 2px; }
.home-member-page .home-member-panel { padding: 1.25rem 0; min-width: 0; }
.home-member-page .home-member-panel[hidden] { display: none; }
.home-member-page .home-member-dashboard { background: transparent; border: 0; border-radius: 0; padding: 0; }
.home-member-page .home-member-dashboard > .home-member-panel { padding-bottom: .5rem; }

@media (max-width: 760px) {
  .home-member-page .home-member-tabs { width: calc(100% - 2.2rem); margin-left: 1.1rem; }

  .home-member-page .home-member-tab { font-size: .9rem; padding: .8rem .9rem; }
  .home-member-page .home-member-tabs > .home-member-panel { padding: .75rem; }
}

/* Match the organization landing-page tab row and its open content area. */
.home-member-page .home-member-tabs > .home-member-tab-list { border-bottom: 0; background: linear-gradient(to top, var(--bb-box-divider, #d1d5db) 1px, transparent 1px); margin-bottom: 0; }
.home-member-page .home-member-tabs > .home-member-tab-list > .home-member-tab { transform: none; }
.home-member-page .home-member-tabs > .home-member-tab-list > .home-member-tab[aria-selected="true"]:focus-visible { outline: none; }
.home-member-page .home-member-tabs > .home-member-panel { border: 0; border-radius: 0; padding: 1.25rem 0; box-shadow: none; }
.home-member-page .home-member-subtabs { margin-top: 0; }

/* Reuse the homepage directory inside My Following without its landing-page spacing. */
.home-member-page .home-member-following { background: transparent; }
.home-member-page .home-member-following .home-org-directory { margin: 0; padding: 0; max-width: none; }
.home-member-page .home-member-following .home-directory-tools { gap: .75rem; }
.home-member-page .home-member-following .home-org-card { background: #fff; }

.home-member-page .home-member-tabs > .home-member-panel:has(> .home-member-following) {
  background: var(--home-page-background, #e9ebef);
}
.home-member-page #home-panel-dashboard { background: var(--home-page-background, #e9ebef); }

/* Parent context stays visible in both the space tile and list layouts. */
.home-space-card-text { margin: 0; }
.home-directory-parent { color: var(--home-muted); font-size: .8rem; margin: .65rem 0 0; }
.home-dashboard-page .home-directory-parent a,
.home-dashboard-page .home-directory-parent a:hover { color: var(--home-blue); text-decoration: none; }
.home-directory-kind-switch { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; color: var(--home-muted); font-size: .82rem; cursor: pointer; white-space: nowrap; }
.home-directory-kind-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.home-directory-switch-track { display: inline-block; position: relative; flex: 0 0 2.75rem; width: 2.75rem; height: 1.5rem; border: 1px solid var(--home-line); border-radius: 1rem; background: #fff; }
.home-directory-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1rem; height: 1rem; border-radius: 50%; background: var(--home-line); transition: transform .15s ease; }
.home-directory-kind-switch input:checked + .home-directory-switch-track { background: var(--bb-box-header-bg); }
.home-directory-kind-switch input:checked + .home-directory-switch-track::after { transform: translateX(1.25rem); }
.home-directory-kind-switch input:focus-visible + .home-directory-switch-track { outline: 2px solid var(--home-line); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .home-directory-switch-track::after { transition: none; } }

/* My Fellowship shares the centered homepage-directory width. */
.home-member-page { max-width: 80rem; padding-left: 2rem; padding-right: 2rem; }
@media (max-width: 760px) { .home-member-page { padding-left: 1rem; padding-right: 1rem; } }
#content > main > .py-8 > .home-member-page { margin-left: auto; margin-right: auto; }
.home-member-page > :is(.home-member-heading, .home-member-tabs, .home-footer) {
  width: 100%;
  margin-left: 0;
  margin-right: auto;
}
.home-member-page .home-member-heading { padding-bottom: 0; }
.home-member-page .home-member-tabs { margin-top: 1.75rem; }
.home-member-page .home-directory-tools { gap: .75rem; margin-bottom: 1.35rem; }
.home-member-page .home-directory-grid { gap: 1rem; }

.home-member-tab .home-discussion-unread { position: static; color: #b91c1c; font: 700 .7em var(--bb-body-font, Arial, sans-serif); line-height: 1; margin-left: .35em; align-self: center; transform: translateY(.25em); }
.home-member-page .home-discussion-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 1rem; padding: .7rem 0; margin: 0; max-width: none; border-bottom: 1px solid var(--home-line); }
.home-discussion-group + .home-discussion-group { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--home-line); }
.home-member-page .home-discussion-group-heading { margin: .6rem 0 .2rem; color: var(--home-muted); font-size: .85rem; font-weight: 700; }
.home-member-page .home-discussion-group .home-discussion-row:last-child { border-bottom: 0; }
.home-member-page .home-discussion-content { flex: 1 1 0; min-width: 0; }
.home-discussion-title { font-weight: 600; overflow-wrap: anywhere; font-size: .9rem; }
.home-member-page .home-discussion-source { color: var(--home-muted); font-size: .74rem; margin: .2rem 0 0; }
.home-member-page .home-discussion-source time { font-size: inherit; }
.home-member-page .home-discussion-summary { margin: .2rem 0; font-size: .82rem; }
.home-member-page .home-discussion-summary a { color: var(--home-ink); text-decoration: none; }
.home-member-page .home-discussion-summary a:hover { text-decoration: underline; }
.home-discussion-new { color: #b91c1c; font-size: .65rem; font-weight: 600; margin-left: .4rem; }
.home-discussion-pagination { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .85rem; }

/* Deep links land on the folder header, clear of the sticky menu. */
.home-member-page .home-member-tabs > .home-member-tab-list > .home-member-tab { scroll-margin-top: calc(var(--bb-user-tabs-height, 64px) + 1rem); }

.home-dashboard-page .home-footer-links a,
.home-dashboard-page .home-footer-links a:visited { color: var(--home-footer-links-color, var(--bb-link)) !important; }

/* Membership sizing is shared; public cards override only their compact values. */
.home-org-card .home-org-card__footer { margin-top: auto; min-width: 0; width: 100%; }
.home-org-card .home-org-card__membership { display: flex; justify-content: center; margin: .25rem 0 .8rem; }
.home-org-card .home-org-card__membership > .home-org-card__follow { margin-left: 0; align-self: auto; }
.home-org-card__membership > .home-org-card__follow > form { display: block !important; margin: 0; }
/* Keep centered directory controls compact, using the theme font's light weight. */
.home-dashboard-page .home-org-card__membership .bb-follow-control {
  --bb-follow-control-width: 8.5rem !important;
  --bb-follow-control-height: 1.6rem;
  --bb-follow-control-radius: 8px;
  width: var(--bb-follow-control-width) !important;
  max-width: var(--home-follow-max-width, var(--bb-follow-control-width)) !important;
  min-width: var(--home-follow-min-width, var(--bb-follow-control-width)) !important;
  height: var(--bb-follow-control-height) !important;
  min-height: var(--bb-follow-control-height) !important;
  padding: .25rem .7rem !important;
  border-radius: var(--bb-follow-control-radius) !important;
  font-size: var(--home-follow-font-size, .75rem) !important;
  font-weight: var(--home-follow-font-weight, 300) !important;
  line-height: var(--home-follow-line-height, 1.1) !important;
  justify-content: center !important;
  text-align: center !important;
}
.home-dashboard-page .home-org-card__membership .bb-follow-control.is-following {
  border: 1px solid var(--bb-follow-btn-text, #333) !important;
  background: var(--bb-following-bg) !important;
  color: var(--bb-following-text) !important;
}
.home-org-card .home-org-card__footer > .home-org-card__actions { margin: 0; border-top: 1px solid var(--home-line); padding-top: .8rem; flex-direction: row; align-items: center; }
.home-directory-grid[data-view="list"] .home-org-card { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.home-directory-grid[data-view="list"] .home-org-card > .home-org-card__header { grid-column: 1; grid-row: 1; }
.home-directory-grid[data-view="list"] .home-org-card > .home-org-card__intro { grid-column: 2; grid-row: 1; }
.home-directory-grid[data-view="list"] .home-org-card > .home-org-card__footer { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 700px) {
  .home-directory-grid[data-view="list"] .home-org-card { grid-template-columns: minmax(0, 1fr); }
  .home-directory-grid[data-view="list"] .home-org-card > .home-org-card__intro { grid-column: 1; grid-row: 2; }
  .home-directory-grid[data-view="list"] .home-org-card > .home-org-card__footer { grid-row: 3; }
}

/* Organization and Spaces-view cards share banners, names, and footer styling. */
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-color: color-mix(in srgb, var(--home-ink) 20%, var(--home-paper));
  border-radius: 14px;
  box-shadow: 0 2px 7px color-mix(in srgb, var(--home-ink) 4%, transparent);
}
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card.is-connected > .home-org-card__footer {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #fff;
}
.home-dashboard-page .home-org-card__header--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  margin: 0;
  padding: 1.2rem 1.2rem 0;
}
.home-org-card__header--compact > .home-org-card__identity { flex: 1 1 100%; flex-direction: row; align-items: center; gap: .7rem; min-width: 0; width: 100%; }
.home-org-card__header--compact .home-org-card__logo { flex: 0 0 2.75rem; min-width: 0; width: 2.75rem; height: 2.75rem; font-size: 1.6rem; }
.home-org-directory:not(.is-searching) .home-org-card__header--compact > .home-org-card__identity:has(img:not([hidden])) { flex-direction: column; align-items: flex-start; }
.home-org-directory:not(.is-searching) .home-org-card__header--compact .home-org-card__logo:has(img:not([hidden])) { flex: 0 1 auto; width: 100%; height: auto; }
.home-org-directory:not(.is-searching) .home-org-card__header--compact .home-org-card__logo img { width: 100%; height: auto; max-height: 8rem; object-fit: contain; object-position: left; }
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card__header--compact .home-org-card__name { color: #d2202f; font-size: 1.05rem; line-height: 1.3; }
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card__membership--compact { flex: 0 0 auto; justify-content: flex-end; margin: 0; padding: 0; max-width: 100%; }
.home-dashboard-page .home-org-card__membership--compact .bb-follow-control {
  --bb-follow-control-width: 7.5rem !important;
  --bb-follow-control-height: 1.875rem;
  --home-follow-min-width: 0;
  --home-follow-max-width: 100%;
  --home-follow-font-size: .78rem;
  --home-follow-font-weight: 400;
  --home-follow-line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--bb-follow-btn-border) !important;
  background: var(--bb-follow-btn-bg) !important;
  color: var(--bb-follow-btn-text) !important;
  white-space: nowrap;
}
.home-dashboard-page .home-org-directory :is(.home-org-card__follow, .home-org-program__follow) .bb-follow-control.is-following {
  background: color-mix(in srgb, var(--bb-follow-btn-bg) 22%, var(--home-paper)) !important;
  border-color: color-mix(in srgb, var(--bb-follow-btn-bg) 50%, var(--home-paper)) !important;
  color: color-mix(in srgb, var(--bb-follow-btn-bg) 45%, var(--home-ink)) !important;
}
.home-org-card__membership--compact .bb-follow-control.is-following::before { content: "♥"; color: #d2202f; font-size: 1.15em; line-height: 1; }
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card > .home-org-card__intro { min-height: 0; margin: 0; padding: .6rem 1.2rem 1.1rem; font-size: .85rem; line-height: 1.5; }
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card > .home-org-card__footer { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding: .65rem 1.2rem; border-top: 1px solid color-mix(in srgb, var(--home-ink) 15%, var(--home-paper)); border-radius: 0 0 14px 14px; background: color-mix(in srgb, var(--home-ink) 2%, var(--home-paper)); }
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card > .home-org-card__footer > .home-org-card__actions { flex: 1 1 auto; min-width: 0; padding: 0; border: 0; }
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card .home-org-card__footer .home-org-card__toggle { display: flex; justify-content: flex-start; width: 100%; min-height: 2rem; margin: 0; padding: 0; color: #d2202f; font-size: .85rem !important; text-align: left; }
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card .home-org-card__footer .home-org-card__toggle:hover { text-decoration: underline; text-underline-offset: .15em; }
.home-dashboard-page .is-searching .home-org-card__membership--compact { margin: 0; }
@media (pointer: coarse) {
  .home-dashboard-page .home-org-card__membership--compact .bb-follow-control { min-height: 44px !important; }
}

/* Dashboard sections use the meeting workspace's compact button treatment. */
.home-member-page .home-member-subtabs.home-member-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  width: 100%;
  padding: .7rem 0;
  border-bottom: 0;
  overflow: visible;
}
.home-member-page .home-member-subtabs .home-member-tab {
  width: auto;
  min-height: 2.15rem;
  padding: .35rem .85rem;
  border: 1px solid var(--bb-input-border, #d1d5db);
  border-radius: 7px;
  background: #fff;
  color: var(--bb-nav-text, #374151);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  transform: none;
  transition: transform .15s, box-shadow .15s;
  white-space: normal;
}
.home-member-page .home-member-subtabs .home-member-tab:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--bb-box-divider, #b0c989);
  color: var(--bb-box-header-text, #3d5224);
}
.home-member-page .home-member-subtabs .home-member-tab[aria-selected="true"] {
  box-shadow: 0 3px 9px rgba(15, 23, 42, .18);
  background: #fff;
  border-color: var(--bb-accent-border, var(--bb-accent, #5c7a36));
  color: var(--home-ink, #1a1a1a);
}
@media (max-width: 640px) {
  .home-member-page .home-member-subtabs .home-member-tab { font-size: .75rem; padding: .3rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-member-page .home-member-subtabs .home-member-tab { transition: none; }
}

.home-dashboard-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .65rem; margin: .35rem 0 .85rem; }
.home-dashboard-controls label { display: grid; gap: .25rem; font-size: .78rem; font-weight: 600; }
.home-dashboard-controls .home-registration-switch { display:inline-flex;gap:.5rem;align-items:center;min-height:2.2rem; }
.home-dashboard-controls select { max-width: 100%; padding: .35rem .5rem; min-height: 2.2rem; border: 1px solid var(--home-line); border-radius: 6px; color: var(--home-ink); background: #fff; font: inherit; font-size: .82rem; }
.home-member-dashboard > .home-member-panel { scroll-margin-top: calc(var(--bb-user-tabs-height, 64px) + 1rem); }

/* About preview uses the homepage's real viewport width and gutters. */


/* Compact discussion rows keep selection and read actions at the right edge. */
.home-discussion-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .45rem 0 .65rem; border-bottom: 1px solid var(--home-line); }
.home-discussion-total { color: var(--home-muted); font-size: .78rem; }
.home-dashboard-bulk { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; margin: 0 0 0 auto; font-size: .78rem; }
.home-dashboard-bulk label { display: inline-flex; align-items: center; gap: .4rem; }
.home-member-page .home-dashboard-bulk button { font-size: .78rem; padding: .35rem .65rem; min-height: 2rem; }
.home-dashboard-bulk button:disabled { opacity: .5; cursor: default; }
.home-member-page .home-discussion-row > .home-dashboard-selection { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: flex-end; gap: .65rem; width: auto; padding: 0; }
.home-member-page .home-dashboard-mark { font-size: .74rem; color: var(--home-blue); text-decoration: underline; white-space: nowrap; cursor: pointer; }
.home-dashboard-selection label { display: inline-flex; align-items: center; }
.home-dashboard-selection input, .home-dashboard-bulk input[type="checkbox"] { width: .95rem; height: .95rem; accent-color: var(--home-line); }
@media (max-width: 560px) {
  .home-member-page .home-discussion-row { gap: .65rem; }
  .home-member-page .home-discussion-row > .home-dashboard-selection { flex-direction: column-reverse; gap: .4rem; align-self: flex-start; padding-top: .1rem; }
  .home-member-page .home-dashboard-mark { font-size: .68rem; }
  .home-dashboard-bulk { gap: .45rem; }
}

/* Search results use readable rows; clearing the query restores the saved browse view. */
.home-search-input-wrap { position: relative; }
.home-search-input-wrap input { padding-right: 4rem; }
.home-search-input-wrap input::-webkit-search-cancel-button { display: none; }
.home-search-input-wrap button { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; border-radius: 4px; padding: .25rem .4rem; background: transparent; color: var(--home-accent); font-size: .8rem; cursor: pointer; }
.home-directory-count { margin: 0 0 1rem !important; }
.home-directory-count:empty { display: none; }
.home-search-recovery { display: flex; flex-wrap: wrap; gap: .75rem; padding: 0 0 1rem; }
.home-search-highlight { color: inherit; background: color-mix(in srgb, var(--home-accent) 12%, transparent); border-radius: 2px; font-weight: 650; padding: 0 .05em; }
.home-dashboard-page .is-searching [data-home-view-control] { display: none; }
.home-dashboard-page .is-searching .home-directory-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; border-top: 1px solid var(--home-line); }
.home-dashboard-page .is-searching .home-org-search-group { min-width: 0; margin-bottom: .75rem; }
.home-dashboard-page .is-searching .home-org-search-results { margin: .2rem 0 .5rem 2rem; border-left: 2px solid color-mix(in srgb, var(--home-accent) 35%, var(--home-line)); padding-left: 1rem; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card,
.home-dashboard-page .is-searching .home-search-space-card { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: .15rem; align-items: center; height: auto; min-height: 0; min-width: 0; margin: 0; padding: .65rem .75rem; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--home-line) 30%, transparent); border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card:hover,
.home-dashboard-page .is-searching .home-search-space-card:hover { background: var(--home-soft); }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card:focus-within,
.home-dashboard-page .is-searching .home-search-space-card:focus-within { outline: 2px solid var(--home-accent); outline-offset: -2px; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card__header { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .75rem; min-width: 0; margin: 0; padding: 0; background: transparent; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card__identity { position: static !important; display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .6rem; width: auto; max-width: 100%; min-width: 0; min-height: 0; }
.home-dashboard-page .is-searching .home-org-card__identity::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card__logo { flex: 0 0 1.75rem; min-width: 0; width: 1.75rem; max-width: 1.75rem; height: 1.75rem; font-size: 1rem; background: transparent; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card__logo:has(img:not([hidden])) { flex: 0 1 auto; width: auto; max-width: 8rem; height: 2.25rem; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card__logo img:not([hidden]) { width: auto; height: auto; max-width: 8rem; max-height: 2.25rem; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card__name { position: static; clip: auto; clip-path: none; width: auto; height: auto; margin: 0; overflow: visible; white-space: normal; display: block; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card__intro { grid-column: 1; grid-row: 2; min-width: 0; height: auto; min-height: 0; max-height: none; margin: 0; padding: 0 0 0 2.35rem; color: var(--home-muted); font-size: .8rem; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card__intro:empty { display: none; }
.home-dashboard-page .is-searching .home-directory-grid .home-org-card__footer,
.home-dashboard-page .is-searching .home-directory-grid .home-org-card > .home-org-card__actions { position: relative; z-index: 2; grid-column: 2; grid-row: 1 / 3; padding: 0; border: 0; align-self: center; }
.home-dashboard-page .is-searching .home-org-card__footer .home-org-card__actions,
.home-dashboard-page .is-searching .home-org-card > .home-org-card__actions .home-org-card__toggle { display: none; }
.home-dashboard-page .is-searching .home-directory-parent { position: relative; z-index: 2; min-width: 0; margin: 0; padding: 0; color: var(--home-muted); font-size: .78rem; line-height: 1.4; }
.home-dashboard-page .is-searching .home-directory-parent a { color: var(--home-muted); text-decoration: none; }
.home-dashboard-page .is-searching .home-directory-parent a:hover { color: var(--home-accent); text-decoration: none; }
.home-dashboard-page .is-searching .home-search-space-card { margin-left: calc(var(--home-space-depth, 0) * 1.5rem); }
.home-dashboard-page .is-searching .home-search-space-card.is-search-context > .home-org-card__intro { display: none; }
.home-dashboard-page .is-searching .home-search-space-card > .home-org-card__identity { grid-column: 1; grid-row: 1; }
@media (max-width: 600px) {
  .home-dashboard-page .is-searching .home-directory-grid .home-org-card,
  .home-dashboard-page .is-searching .home-search-space-card { padding: .65rem .35rem; column-gap: .6rem; }
  .home-dashboard-page .is-searching .home-org-search-results { margin-left: .85rem; padding-left: .65rem; }
  .home-dashboard-page .is-searching .home-search-space-card { margin-left: calc(var(--home-space-depth, 0) * .85rem); }
  .home-dashboard-page .is-searching .home-directory-parent { flex: 1 1 100%; padding-left: 2.35rem; }
  .home-dashboard-page .is-searching .home-org-card__follow { min-width: 0; }
}

/* Card copy is explicitly authored; empty fields do not reserve description space. */
.home-org-card__intro:empty, .home-org-program__summary:empty { display:none; }

/* The public About row and editor preview share the same layout and typography. */
.home-about-boxes { display: grid; gap: 1.25rem; align-items: start; width: 100%; }
.home-about-box { width: var(--home-box-width, 100%); left: var(--home-box-x, 0%); max-width: none; margin: 0; position: relative; box-sizing: border-box; min-width: 0; padding: 0; border: var(--home-box-border-width, 0px) solid var(--home-box-border-color, #800020); border-radius: 0; background: color-mix(in srgb, var(--home-box-fill, #ffffff) var(--home-box-opacity, 0%), transparent); text-align: left; overflow-wrap: anywhere; }
.home-about-box-text > :is(h2, h3, div) { margin: 0; font-family: inherit; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-about-box .home-about-box-title > h2 { line-height: 1.2; margin: 0; }
.home-about-box .home-about-box-subtitle > h3 { line-height: 1.4; margin: 0; }
.home-about-box-text + .home-about-box-text { margin-top: .85rem; }
.home-about-box-text[hidden] { display: none; }
.home-about-boxes-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.home-about-boxes-heading p { max-width: 48rem; margin: 0; color: var(--home-muted); font-size: .9rem; line-height: 1.6; }
.home-about-boxes-heading button { flex-shrink: 0; }
.home-about-boxes-live-preview { position: relative; box-sizing: border-box; margin-bottom: 1.5rem; background: transparent; }
.home-about-boxes-preview-label { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; margin: 0 0 1rem; font-size: .8rem; font-weight: 600; }
.home-about-boxes-preview-label span { color: var(--home-muted); font-weight: 400; }
.home-about-editor :is(.home-about-box-resize, .home-about-box-move) { position: absolute; bottom: 0; width: 32px; height: 32px; padding: 0; border: 1px solid var(--home-line); border-radius: 6px; background: #fff; color: var(--home-accent); touch-action: none; font-size: 1.1rem; z-index: 3; }
.home-about-box-resize { right: 0; cursor: nwse-resize; }
.home-about-box-move { left: 0; cursor: ew-resize; }
:is(.home-about-box-resize, .home-about-box-move):focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
.home-about-box-dimensions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
@media(max-width:767px) {
  .home-about-boxes { grid-template-columns: minmax(0, 1fr) !important; }
  .home-about-box { left: 0; max-width: 100%; }
  .home-about-boxes-heading { flex-direction: column; }
  .home-about-editor .home-about-boxes-live-preview { padding: 1.25rem 1rem 1rem; }
}

.home-about-boxes-live-preview .home-about-box { outline: 1px dotted var(--home-muted); outline-offset: 6px; }
.home-about-boxes-live-preview .home-about-box-text[data-empty="true"]:not(.is-selected) { display: none; }
.home-about-boxes-live-preview .home-about-box-text.is-selected { outline: 1px dashed var(--home-accent); outline-offset: 4px; }
.home-about-boxes-live-preview [data-inline-editable] { min-height: 1.3em; cursor: text; outline: none; }
.home-about-boxes-live-preview [data-inline-editable]:empty::before { content: attr(data-placeholder); opacity: .4; pointer-events: none; }
.home-about-inspector-help { padding: 1rem 0; color: var(--home-muted); font-size: .85rem; }
.home-about-editor .home-about-text-inspector { margin: .75rem 0 .5rem; padding: .5rem .75rem .65rem; }
.home-about-editor .home-about-text-inspector legend { padding: 0 .25rem; font-size: .8rem; }
.home-about-editor .home-about-text-inspector .home-about-field { margin-bottom: 0; }
.home-about-editor .home-about-text-inspector .home-about-inspector-text { margin-bottom: .55rem; }
.home-about-editor .home-about-inspector-text textarea { display: block; min-height: 2.25rem; height: 2.25rem; padding: .4rem .55rem; resize: vertical; line-height: 1.4; }
.home-about-editor .home-about-inspector-text textarea[rows="3"] { height: 4.5rem; }
.home-about-format-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; }
.home-about-format-toolbar > .home-about-field { flex: 0 1 10rem; }
.home-about-format-toolbar > .home-about-field:first-child { flex-basis: 14rem; }
.home-about-format-toolbar > .home-about-field:has([data-font-size]) { flex-basis: 5rem; }
.home-about-format-toolbar > [data-color-control] { flex-basis: 10.5rem; }
.home-about-editor .home-about-format-toolbar label, .home-about-style-label { display: block; margin: 0 0 .2rem; font-size: .7rem; line-height: 1.3; }
.home-about-editor .home-about-format-toolbar :is(select, [data-font-size], [data-color-value]) { height: 2rem; padding: .25rem .4rem; font-size: .8rem; }
.home-about-editor .home-about-format-toolbar [data-font-size-current] { display: none; }
.home-about-editor .home-about-format-toolbar .home-color-inputs { gap: .3rem; }
.home-about-editor .home-about-format-toolbar .home-color-inputs input[type="color"] { flex-basis: 2rem; width: 2rem; height: 2rem; }
.home-about-style-toggles { display: flex; gap: .2rem; }
.home-about-editor .home-about-style-toggles label { position: relative; margin: 0; cursor: pointer; }
.home-about-style-toggles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.home-about-style-toggles label > span[aria-hidden] { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--home-line); border-radius: 4px; font-size: .9rem; }
.home-about-style-toggles input:checked + span { color: var(--home-accent); border-color: currentColor; background: var(--home-soft); }
.home-about-style-toggles input:focus-visible + span { outline: 2px solid var(--home-accent); outline-offset: 2px; }
.home-about-editor .home-about-box-dimensions .home-about-field { display: flex; align-items: center; gap: .5rem; margin: 0; }
.home-about-editor .home-about-box-dimensions label { margin: 0; font-size: .7rem; }
.home-about-box-dimensions input { width: 5rem; height: 2rem; padding: .25rem .4rem; border: 1px solid var(--home-line); border-radius: 5px; background: var(--home-paper); font-size: .8rem; }
.home-about-box-dimensions > small { color: var(--home-muted); font-size: .7rem; }
.home-about-editor .home-about-box-settings { margin: .65rem 0; padding: .65rem .75rem; }
.home-about-box-settings legend { font-size: .8rem; }
.home-about-box-settings > small { display: block; margin-top: .4rem; color: var(--home-muted); font-size: .75rem; }
.home-about-box-settings .home-about-field { margin: 0; }
.home-about-box-settings [data-color-control] small { display: none; }
.home-about-box-settings .home-color-inputs [data-color-value] { width: 6rem; }
.home-about-box-settings [data-about-style="border_width"] { width: 5rem; }
.home-about-box-settings .home-about-border-toggle { display: flex; align-items: center; gap: .4rem; min-height: 2.2rem; }
.home-about-opacity output { margin-left: .35rem; font-variant-numeric: tabular-nums; }
@media(max-width:767px) {
  .home-about-editor .home-about-format-toolbar :is(select, [data-font-size], [data-color-value]),
  .home-about-editor .home-about-format-toolbar .home-color-inputs input[type="color"],
  .home-about-style-toggles label > span[aria-hidden], .home-about-box-dimensions input { min-height: 44px; height: 44px; font-size: 16px; }
  .home-about-style-toggles label > span[aria-hidden] { width: 44px; }
  .home-about-format-toolbar > .home-about-field:first-child { flex-grow: 1; }
  .home-about-editor .home-about-inspector-text textarea { font-size: 16px; }
}

.home-about-add-text { position: absolute; top: -2rem; left: 0; display: flex; gap: .25rem; opacity: 0; pointer-events: none; z-index: 2; }
.home-about-box:is(:hover, :focus-within) .home-about-add-text { opacity: 1; pointer-events: auto; }
.home-about-editor .home-about-add-text button { padding: .25rem .5rem; border: 1px solid var(--home-line); border-radius: 5px; background: var(--home-paper); font-size: .7rem; }
.home-about-add-text button[aria-pressed="true"] { color: var(--home-accent); font-weight: 600; }
.home-dashboard-page .home-about-boxes-preview-label { margin-bottom: 2.5rem; }
.home-about-boxes-live-preview .home-about-box[tabindex]:focus-visible { outline: 2px dotted var(--home-accent); }
@media(hover:none) { .home-about-add-text { opacity: 1; pointer-events: auto; } .home-about-boxes { row-gap: 3rem; } }

/* Keep the parent Org below Space copy in every directory layout. */
.home-dashboard-page .is-searching .home-org-card[data-kind="space"] > .home-org-card__intro { display: block; }
.home-dashboard-page .is-searching .home-space-card-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.home-dashboard-page .is-searching .home-org-card__intro .home-directory-parent { padding-left: 0; }

.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card[data-kind="space"] > .home-org-card__intro {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .65rem;
  padding-bottom: .15rem;
}
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card[data-kind="space"] .home-directory-parent { margin: auto 0 0; }
.home-dashboard-page .home-org-directory:not(.is-searching) .home-org-card[data-kind="space"] > .home-org-card__footer { margin-top: 0; }
