﻿/* Fellowship micro-site â€” reuses accreditation scroll shell (acc-scroll-page, acc-float-nav). */

/* --- Brand mark (header + page intros) --- */
.corp-logo--brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gal-text);
}

.corp-logo-mark {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.corp-logo-text {
  font-family: var(--gal-logo-font);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.3em;
}

.fel-page-brand {
  margin: 0 auto 24px;
  text-align: center;
  max-width: 5rem;
}

.fel-page-brand img {
  width: 72px;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
}

.fel-landing-brand {
  margin: 0 0 12px;
  max-width: 3.5rem;
}

.fel-landing-brand img {
  width: 56px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}

/* --- Vertical centring: scroll #fel-main only (no nested overflow traps) --- */
body.fel-scroll-page .acc-scroll-main .acc-slide {
  justify-content: center;
}

body.fel-scroll-page .acc-slide-panel {
  width: 100%;
  max-width: none;
}

/* accreditation.css sets overflow on --scroll; landing uses #fel-main scroll only */
body.fel-scroll-page .acc-slide-panel--scroll {
  flex: initial;
  min-height: auto;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}

body.fel-scroll-page .acc-slide-panel.fel-slide-panel--center {
  justify-content: center;
  max-width: 40rem;
}

/* Landing scroll page — Galleria shell aligned with About */
body.fel-scroll-page {
  background: var(--gal-parchment);
  --fel-galleria-accent: var(--gal-gold);
  --acc-float-nav-w: 0;
  --acc-nav-edge: max(12px, env(safe-area-inset-left));
  --acc-nav-content-gap: 0;
  --acc-content-inset-left: max(20px, env(safe-area-inset-left));
  --acc-content-inset-right: max(20px, env(safe-area-inset-right));
  --acc-header-h: 3.25rem;
  --acc-float-nav-top: calc(var(--acc-header-h) + 28px);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.fel-scroll-page .acc-scroll-main > .acc-slide--section {
  border-top: none;
  background: var(--gal-parchment);
}

@media (min-width: 900px) {
  body.fel-scroll-page {
    --acc-content-inset-left: clamp(28px, 4vw, 56px);
    --acc-content-inset-right: clamp(28px, 4vw, 56px);
  }
}

/* Inner portal pages — fixed float nav beside content */
body.fel-portal-page {
  --acc-nav-edge: max(12px, env(safe-area-inset-left));
  --acc-nav-content-gap: 28px;
  --acc-content-inset-left: calc(
    var(--acc-nav-edge) + var(--acc-float-nav-w, 220px) + var(--acc-nav-content-gap)
  );
  --acc-header-h: 3.25rem;
  --acc-float-nav-top: calc(var(--acc-header-h) + 28px);
}

@media (max-width: 899px) {
  body.fel-portal-page {
    --acc-nav-content-gap: 16px;
    --acc-float-nav-w: 200px;
  }
}

/* Inner Fellowship pages — About-aligned measure, back link instead of float nav */
body.fel-portal-page--inner {
  --acc-float-nav-w: 0;
  --acc-nav-content-gap: 0;
  --acc-content-inset-left: max(20px, env(safe-area-inset-left));
  --acc-content-inset-right: max(20px, env(safe-area-inset-right));
  background: var(--gal-parchment);
}

@media (min-width: 900px) {
  body.fel-portal-page--inner {
    --acc-content-inset-left: clamp(28px, 4vw, 56px);
    --acc-content-inset-right: clamp(28px, 4vw, 56px);
  }
}

body.fel-portal-page--inner .fel-float-nav {
  display: none !important;
}

body.fel-portal-page--inner .acc-portal-main,
body.fel-portal-page--inner .fel-portal-main {
  padding-left: max(20px, var(--acc-content-inset-left));
  padding-right: max(20px, var(--acc-content-inset-right));
}

@media (min-width: 900px) {
  body.fel-portal-page--inner .acc-portal-main,
  body.fel-portal-page--inner .fel-portal-main {
    padding-left: clamp(28px, 4vw, 56px);
    padding-right: clamp(28px, 4vw, 56px);
  }
}

.fel-portal-back {
  margin: 0 0 1.25rem;
}

.fel-portal-back .hub-gal-pill {
  display: inline-flex;
}

.fel-portal-tier-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.25rem;
}

.fel-portal-tier-nav > .hub-gal-pill {
  display: inline-flex;
}

.fel-portal-next-tier .fel-portal-next-tier-prefix {
  margin-right: 0.35rem;
}

body.fel-portal-page--inner .fel-portal-main > .hub-gal-content {
  margin-inline: auto;
}

/* Fellowship scroll landing — hub landing header (same flex shell as About) */
body.fel-scroll-page .corp-header--landing {
  flex: 0 0 auto;
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 120;
  background: var(--gal-parchment);
  border-bottom: none;
  box-shadow: none;
}

body.fel-scroll-page {
  padding-top: 0;
}

body.fel-scroll-page[data-fel-chrome="static"] {
  padding-top: 0;
}

body.fel-scroll-page[data-fel-chrome="static"] .corp-header--landing {
  position: relative;
}

body.fel-scroll-page .corp-header--landing .corp-header-inner,
body.fel-portal-page .corp-header--fellowship .corp-header-inner {
  max-width: none;
  margin: 0;
  padding: 10px 20px;
}

body.fel-portal-page .corp-header--fellowship {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--gal-bg);
  border-bottom: none;
}

body.fel-portal-page[data-fel-chrome="static"] .corp-header--fellowship {
  position: relative;
}

/* Inner pages â€” document scroll; content aligns to float nav (not viewport-centred) */
body.fel-portal-page {
  min-height: 100dvh;
}

body.fel-portal-page .acc-portal-main,
body.fel-portal-page .fel-portal-main {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  flex: none;
  overflow: visible;
  padding: 28px clamp(20px, 4vw, 56px) 64px;
  padding-left: max(28px, var(--acc-content-inset-left));
  box-sizing: border-box;
}

@media (min-width: 900px) {
  body.fel-portal-page .acc-portal-main,
  body.fel-portal-page .fel-portal-main {
    padding-left: max(48px, var(--acc-content-inset-left));
  }
}

/* Do not max-width the whole <main> â€” left padding for float nav is inside main, so a
   narrow main width squashes content into a strip beside the nav. Constrain copy only. */
body.fel-portal-page .fel-portal-main--form .hub-gal-content--narrow .fel-nomination-form,
body.fel-portal-page .fel-portal-main--form .hub-gal-content--narrow .fel-nomination-thankyou {
  max-width: none;
}

.fel-nomination-form {
  width: 100%;
}

.fel-nomination-required-note {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--gal-stone);
}

.fel-nomination-label,
.fel-nomination-legend {
  display: block;
  margin: 1.1rem 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gal-midnight);
}

.hub-gal-form .fel-nomination-label,
.hub-gal-form .fel-nomination-legend {
  margin: 0 0 0.4rem;
}

.fel-nomination-legend {
  margin-bottom: 0.5rem;
  padding: 0;
  border: none;
}

.fel-nomination-req {
  color: var(--gal-gold);
}

.hub-gal-content:not(:has(.hub-gal-form)) .fel-nomination-input,
.hub-gal-content:not(:has(.hub-gal-form)) .fel-nomination-textarea {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--gal-border);
  font: inherit;
  background: #fff;
}

.fel-nomination-textarea {
  resize: vertical;
  min-height: 10rem;
}

.fel-nomination-fieldset {
  margin: 1.25rem 0 0;
  padding: 0;
  border: none;
}

.fel-nomination-hint {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.88rem;
  color: var(--gal-muted);
}

.fel-nomination-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0.35rem 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.fel-nomination-radio input {
  margin-top: 0.2rem;
}

.fel-nomination-status {
  margin: 0 0 1rem;
  padding: 10px 12px;
  border-left: 3px solid var(--gal-gold);
  font-size: 0.92rem;
}

.fel-nomination-status--err {
  border-left-color: #b42318;
  color: #b42318;
}

.fel-nomination-status--progress {
  border-left-color: var(--gal-deep-blue);
}

.fel-nomination-thankyou {
  padding-top: 0.5rem;
}

.acc-portal-actions--pair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Members' area (ifip.group) */
body.fel-portal-page .fel-portal-main--members {
  max-width: min(96rem, calc(100vw - 2.5rem));
}

body.fel-portal-page .fel-portal-main--members #fel-members-content {
  width: 100%;
  max-width: none;
}

.fel-float-nav-panel--members,
.fel-float-nav-panel--fellows {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.fel-members-gate {
  max-width: 36rem;
  padding: 1.25rem 0;
}

.fel-members-gate h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.fel-members-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.fel-view-as-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #b45309;
  background: #fffbeb;
  color: #78350f;
  border-radius: 8px;
}

.fel-view-as-banner-text {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.95rem;
}

.fel-view-as-banner-exit {
  flex-shrink: 0;
}

.fel-view-as-banner--edit {
  border-color: #0369a1;
  background: #f0f9ff;
  color: #0c4a6e;
}

.fel-profile-card {
  max-width: none;
  width: 100%;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--gal-border);
  background: rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
}

.fel-profile-photo {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.fel-profile-photo-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
}

.fel-profile-photo-preview-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
}

.fel-profile-photo-preview-wrap:has(.fel-profile-photo-preview:not([hidden])) .fel-profile-photo-placeholder {
  display: none;
}

.fel-profile-photo-placeholder[hidden] {
  display: none !important;
}

.fel-profile-photo-preview {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gal-border);
}

.fel-profile-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px dashed var(--gal-border);
  font-size: 0.85rem;
  color: var(--gal-muted);
}

.fel-profile-photo-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  align-self: center;
}

.fel-profile-photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 6px 14px;
  border: 1px solid var(--gal-midnight);
  background: transparent;
  color: var(--gal-midnight);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  width: auto;
  max-width: max-content;
  align-self: flex-start;
}

.fel-profile-photo-btn:hover,
.fel-profile-photo-btn:focus-visible {
  background: var(--gal-midnight);
  color: #fff;
  outline: none;
}

.fel-profile-photo-choose {
  margin: 0;
}

.fel-profile-dl {
  display: grid;
  gap: 10px;
  margin: 0 0 1.25rem;
}

.fel-profile-dl dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gal-muted);
}

.fel-profile-dl dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.fel-profile-bio {
  white-space: pre-wrap;
}

.fel-profile-tabpanel > .fel-profile-public-status {
  margin: 0 0 0.85rem;
}

.fel-profile-card--preview {
  margin-bottom: 0;
}

.fel-profile-summary {
  margin-bottom: 1.25rem;
}

.fel-profile-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  border-bottom: 1px solid var(--gal-border);
}

.fel-profile-tab {
  margin: 0;
  padding: 0.65rem 1.1rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--gal-stone);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.fel-profile-tab:hover,
.fel-profile-tab:focus-visible {
  color: var(--gal-midnight);
  outline: none;
}

.fel-profile-tab--active {
  color: var(--gal-midnight);
  border-bottom-color: var(--gal-gold);
}

.fel-profile-tabpanel[hidden] {
  display: none !important;
}

.fel-profile-card--visibility {
  margin-bottom: 0;
}

.fel-profile-visibility-intro {
  margin: 0 0 0.85rem;
  max-width: 52rem;
}

.fel-profile-visibility-status {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gal-border);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}

.fel-profile-visibility-status[data-live="1"] {
  border-color: rgba(13, 107, 77, 0.35);
  background: rgba(13, 107, 77, 0.08);
}

.fel-profile-visibility-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.fel-profile-visibility-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.fel-profile-visibility-table th,
.fel-profile-visibility-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--gal-border);
  vertical-align: middle;
  text-align: left;
}

.fel-profile-visibility-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gal-muted);
  font-weight: 700;
}

.fel-profile-visibility-table .fel-vis-col-fellows,
.fel-profile-visibility-table .fel-vis-col-public {
  width: 8.5rem;
  text-align: center;
}

.fel-profile-visibility-table .fel-vis-section-label {
  font-weight: 600;
  color: var(--gal-midnight);
}

.fel-vis-expand {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--gal-midnight);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.fel-vis-expand:hover,
.fel-vis-expand:focus-visible {
  color: var(--gal-gold);
  outline: none;
}

.fel-vis-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  cursor: pointer;
}

.fel-vis-check--locked {
  cursor: default;
  color: var(--gal-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fel-vis-na {
  color: var(--gal-muted);
  font-size: 0.8125rem;
}

.fel-vis-detail-row td {
  padding: 0.35rem 0.65rem 0.75rem;
  background: rgba(241, 245, 249, 0.65);
}

.fel-vis-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.fel-vis-detail-table th {
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
}

.fel-vis-detail-table td {
  padding: 0.35rem 0.5rem;
  border: none;
}

.fel-vis-detail-note td {
  font-size: 0.8125rem;
  color: var(--gal-muted);
  font-style: italic;
}

.fel-profile-card--auth {
  margin-top: 0;
  margin-bottom: 1rem;
}

.fel-auth-methods-lead {
  margin: 0 0 1rem;
  max-width: 52rem;
}

.fel-auth-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fel-auth-method-row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr) auto;
  gap: 0.5rem 0.85rem;
  align-items: center;
}

.fel-auth-method-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gal-stone);
}

.fel-auth-method-value {
  font-size: 0.95rem;
  color: var(--gal-deep-blue, #0f172a);
  word-break: break-word;
}

.fel-auth-method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.fel-auth-method-badge--on {
  background: rgba(13, 107, 77, 0.12);
  color: #0d6b4d;
}

.fel-auth-method-badge--off {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.fel-auth-method-actions {
  display: inline-flex;
  justify-content: flex-end;
}

.fel-auth-methods-status {
  margin-top: 1rem;
}

.fel-profile-preview-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gal-muted);
}

.fel-profile-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  max-width: 72rem;
}

.fel-profile-page-head-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.fel-profile-page-head-text h1 {
  margin: 0 0 0.35rem;
}

.fel-profile-page-head-text .acc-portal-lead {
  margin: 0;
}

.fel-profile-page-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  flex: 0 0 auto;
}

.fel-profile-save-status {
  display: none !important;
}

.fel-profile-save-status[data-state="saving"] {
  color: var(--gal-midnight);
  border-color: rgba(15, 23, 42, 0.2);
}

.fel-profile-save-status[data-state="saved"] {
  color: #0d5c36;
  border-color: rgba(13, 92, 54, 0.35);
  background: rgba(13, 92, 54, 0.08);
}

.fel-profile-save-status[data-state="error"] {
  color: #8b1a1a;
  border-color: rgba(139, 26, 26, 0.35);
  background: rgba(139, 26, 26, 0.06);
}

.fel-profile-editor {
  max-width: none;
  width: 100%;
}

.fel-profile-page-head,
.fel-profile-form,
.fel-profile-form-layout {
  max-width: none;
  width: 100%;
}

.fel-profile-directory-intro {
  margin: 0 0 1rem;
  max-width: 52rem;
}

.fel-profile-accordion {
  border: 1px solid var(--gal-border);
  background: rgba(255, 255, 255, 0.78);
  margin: 0 0 0.75rem;
}

.fel-profile-accordion-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.fel-profile-accordion-summary::-webkit-details-marker {
  display: none;
}

.fel-profile-accordion-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gal-midnight);
}

.fel-profile-accordion-vis {
  display: none;
}

.fel-section-vis-select {
  min-width: 11.5rem;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  border: 1px solid var(--gal-border);
  border-radius: 4px;
  background: #fff;
}

.fel-section-vis-locked {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gal-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fel-profile-accordion-body {
  padding: 0 1.1rem 1.15rem;
  border-top: 1px solid var(--gal-border);
}

.fel-profile-sharing {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.fel-profile-sharing-title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gal-stone);
}

.fel-profile-sharing .fel-profile-check {
  margin: 0;
}

.fel-profile-subaccordion {
  margin-top: 0.65rem;
  border: 1px dashed var(--gal-border);
  background: rgba(15, 23, 42, 0.02);
}

.fel-profile-subaccordion-summary {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.fel-profile-subaccordion-summary::-webkit-details-marker {
  display: none;
}

.fel-profile-subaccordion-body {
  padding: 0 0.75rem 0.65rem;
}

.fel-profile-save-float {
  position: fixed;
  top: calc(var(--corp-header-h, 64px) + 0.5rem);
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 120;
  min-width: 8.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--gal-border);
  background: rgba(255, 255, 255, 0.96);
  color: var(--gal-muted);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fel-profile-save-float--visible {
  opacity: 1;
  transform: translateY(0);
}

.fel-profile-save-float[data-state="idle"],
.fel-profile-save-float[data-state="loading"] {
  color: var(--gal-muted);
  border-color: var(--gal-border);
  background: rgba(255, 255, 255, 0.96);
}

.fel-profile-save-float[data-state="saved"] {
  color: #0d5c36;
  border-color: rgba(13, 92, 54, 0.35);
}

.fel-profile-save-float[data-state="error"] {
  color: #8b1a1a;
  border-color: rgba(139, 26, 26, 0.35);
}

.fel-profile-grid--wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem 1.25rem;
}

.fel-profile-form {
  margin-top: 0;
}

.fel-profile-form-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fel-profile-section-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--gal-border);
  background: rgba(255, 255, 255, 0.72);
}

.fel-profile-section-card-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gal-midnight);
}

.fel-profile-section-card--visibility {
  background: rgba(15, 23, 42, 0.03);
}

.fel-profile-form-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 0.85rem 0 0.25rem;
  margin-top: 0.5rem;
  background: linear-gradient(180deg, rgba(248, 246, 242, 0) 0%, rgba(248, 246, 242, 0.92) 28%, rgba(248, 246, 242, 1) 100%);
}

.fel-profile-required-note {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--gal-muted);
}

.fel-profile-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gal-border);
}

.fel-profile-section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.fel-profile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fel-profile-form label,
.fel-profile-form .fel-profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gal-stone);
}

.fel-profile-field > .fel-profile-label,
.fel-profile-full > .fel-profile-label {
  margin-bottom: 2px;
}

.fel-profile-label {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2em;
  line-height: 1.35;
}

.fel-profile-label-text {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.fel-profile-req {
  color: var(--gal-gold);
  text-decoration: none;
  font-weight: 700;
  margin: 0;
}

.fel-profile-field-stack,
.fel-profile-phone-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fel-profile-field-stack .fel-profile-check,
.fel-profile-phone-block .fel-profile-check {
  margin: 0;
}

.fel-profile-panel {
  border: 1px solid var(--gal-border);
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
  background: rgba(15, 23, 42, 0.02);
}

.fel-profile-panel-title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.fel-profile-panel-lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
}

.fel-profile-contact-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fel-profile-contact-row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 4px 12px;
  align-items: baseline;
}

.fel-profile-contact-row dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gal-stone);
}

.fel-profile-contact-row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.fel-contact-status {
  font-size: 0.85rem;
  font-weight: 600;
}

.fel-contact-status--on {
  color: #0d6b4d;
}

.fel-contact-status--off {
  color: var(--gal-stone);
}

.fel-contact-status--empty {
  color: var(--gal-muted);
  font-style: italic;
  font-weight: 500;
}

.fel-contact-value {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gal-deep-blue, #0f172a);
  word-break: break-word;
}

.fel-profile-form input,
.fel-profile-form textarea,
.fel-profile-form select {
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid var(--gal-border);
  background: #fff;
}

.fel-profile-full {
  display: block;
  margin-top: 12px;
}

.fel-profile-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
  font-weight: 500 !important;
}

.fel-profile-fieldset {
  border: 1px solid var(--gal-border);
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
}

.fel-profile-senior-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(184, 134, 11, 0.1);
  border-left: 3px solid var(--gal-gold, #b8860b);
}

.fel-profile-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fel-profile-radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.fel-profile-repeater {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.fel-profile-repeater-item {
  padding: 12px;
  border: 1px dashed var(--gal-border);
  display: grid;
  gap: 8px;
}

.fel-profile-add {
  margin-bottom: 8px;
}

.fel-profile-remove {
  justify-self: start;
  border: none;
  background: none;
  color: #b42318;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.fel-profile-actions {
  margin-top: 1.5rem;
}

.fel-profile-autosave-hint {
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
  min-height: 1.2em;
  color: var(--gal-stone);
}

.fel-profile-autosave-hint[hidden] {
  display: none !important;
}

.fel-profile-autosave-hint--saving {
  color: var(--gal-stone);
}

.fel-profile-autosave-hint--saved {
  color: #0d6b4d;
  font-weight: 600;
}

.fel-profile-autosave-hint--error {
  color: #b42318;
}

.fel-profile-field--autosave {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fel-profile-autosave-badge {
  align-self: flex-end;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d6b4d;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.fel-profile-autosave-badge--show {
  opacity: 1;
}

.fel-members-status--progress {
  color: var(--gal-deep-blue);
}

.fel-members-status--ok {
  color: #0d6b5c;
}

.fel-members-status--err {
  color: #b42318;
}

.fel-profile-onboarding {
  border: none;
  border-radius: 8px;
  padding: 0;
  max-width: min(32rem, calc(100vw - 24px));
}

.fel-profile-onboarding::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.fel-profile-onboarding-inner {
  padding: 1.5rem;
  margin: 0;
}

.fel-profile-onboarding-inner h2 {
  margin: 0 0 8px;
}

.fel-profile-onboarding-fields {
  display: grid;
  gap: 10px;
  margin: 1rem 0;
}

.fel-profile-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fel-profile-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.fel-profile-grid--contact {
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 22rem;
}

@media (min-width: 900px) {
  .fel-profile-grid--contact {
    max-width: 24rem;
  }
}

.fel-profile-grid--emails {
  margin-top: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 900px) {
  .fel-profile-card--preview {
    max-width: 72rem;
  }
}

@media (max-width: 899px) {
  .fel-auth-method-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .fel-auth-method-actions {
    justify-content: flex-start;
  }
}

.fel-profile-field-city {
  grid-column: 1 / -1;
}

.fel-profile-required-note {
  font-size: 0.88rem;
  color: var(--gal-stone);
  margin: 0 0 1rem;
}

.fel-profile-view-as {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 1rem;
}

.fel-profile-onboarding-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
}

.fel-profile-onboarding-panel[hidden] {
  display: none !important;
}

.fel-profile-onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.fel-profile-onboarding-scroll {
  position: relative;
  z-index: 1;
  background: var(--gal-bg);
  width: min(32rem, 100%);
  max-height: min(90dvh, 640px);
  overflow-y: auto;
  padding: clamp(20px, 4vw, 32px);
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.fel-profile-onboarding-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.fel-profile-onboarding-header h2 {
  margin: 0;
  flex: 1;
}

.fel-profile-onboarding-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gal-ink);
  padding: 0 4px;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

.fel-profile-onboarding-close:hover,
.fel-profile-onboarding-close:focus-visible {
  color: var(--gal-gold);
}

.fel-profile-onboarding-prefill {
  margin-top: 0;
}

.fel-profile-onboarding-phone-label {
  display: block;
  margin: 1.25rem 0;
}

.fel-profile-optional {
  font-weight: normal;
  color: var(--gal-stone);
  font-size: 0.9em;
}

.hub-phone-input {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9.5rem) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.hub-phone-dial {
  width: 100%;
  min-height: 2.75rem;
  font-size: 0.8125rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.hub-phone-national {
  width: 100%;
  min-height: 2.75rem;
  min-width: 0;
}

.fel-profile-field-phone .hub-phone-input {
  width: 100%;
}

.fel-profile-onboarding-grid {
  display: grid;
  gap: 14px 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1rem 0;
}

.fel-profile-onboarding-bio textarea {
  min-height: 10rem;
  width: 100%;
}

.fel-city-ac-input {
  width: 100%;
  min-height: 2.75rem;
}

.fel-city-ac-saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gal-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
}

.fel-city-ac-saved-value {
  flex: 1 1 12rem;
  font-weight: 600;
  color: var(--gal-midnight);
}

.fel-city-ac-change {
  flex: 0 0 auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
}

.fel-city-ac-hint {
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.fel-photo-crop-dialog {
  border: none;
  border-radius: 8px;
  padding: 0;
  max-width: min(420px, calc(100vw - 24px));
}

.fel-photo-crop-inner {
  padding: 1.25rem;
}

.fel-photo-crop-stage {
  margin: 12px 0;
  text-align: center;
}

.fel-photo-crop-canvas {
  max-width: 100%;
  touch-action: none;
  cursor: grab;
}

/* Members directory */
.fel-directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
  margin: 1rem 0;
}

.fel-directory-search-label {
  flex: 1 1 220px;
}

.fel-directory-toolbar input,
.fel-directory-toolbar select {
  display: block;
  width: 100%;
  min-width: 160px;
  margin-top: 4px;
  padding: 8px 10px;
  font: inherit;
  border: 1px solid var(--gal-border);
}

.fel-directory-count {
  font-size: 0.9rem;
  color: var(--gal-muted);
  margin: 0 0 8px;
}

.fel-directory-grid-wrap {
  margin: 1rem 0;
}

.fel-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 480px) {
  .fel-directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .fel-directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: 20px;
  }
}

.fel-directory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px 16px;
  border: 1px solid var(--gal-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--gal-surface, #fff);
  min-height: 100%;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.fel-directory-card:hover {
  border-color: color-mix(in srgb, var(--gal-midnight, #1a2b4a) 35%, var(--gal-border));
  box-shadow: 0 2px 10px rgba(26, 43, 74, 0.08);
}

.fel-directory-card:focus-visible {
  outline: 2px solid var(--gal-midnight, #1a2b4a);
  outline-offset: 2px;
}

.fel-directory-card-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.fel-directory-card-photo--empty {
  display: block;
  background: var(--gal-border);
}

@media (min-width: 480px) {
  .fel-directory-card-photo {
    width: 96px;
    height: 96px;
  }
}

.fel-directory-card-name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 4px;
  word-break: break-word;
}

.fel-directory-card-tier {
  font-size: 0.78rem;
  color: var(--gal-muted);
  margin-bottom: 4px;
  line-height: 1.3;
}

.fel-directory-card-country {
  font-size: 0.84rem;
  color: var(--gal-muted);
  line-height: 1.3;
}

.fel-directory-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gal-muted);
}

.fel-profile-view-toolbar {
  margin: 0 0 1rem;
}

.fel-profile-view-title {
  margin: 0 0 0.5rem;
}

/* Members â€” My subscription */
.fel-subscription-main {
  margin-top: 0.5rem;
}

.fel-subscription-exempt {
  margin: 1rem 0 2rem;
  max-width: 36rem;
}

.fel-subscription-exempt-panel {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--gal-border);
  background: rgba(255, 255, 255, 0.72);
}

.fel-subscription-exempt-lead {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gal-midnight);
}

.fel-subscription-exempt-body {
  margin: 0;
  color: var(--gal-muted);
}

.fel-subscription-renewal-due .fel-subscription-exempt-panel {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(254, 243, 199, 0.55);
}

.fel-subscription-renewal-due .fel-subscription-exempt-lead {
  color: #92400e;
}

.fel-subscription-past-due {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #b45309;
  background: #fffbeb;
  color: #78350f;
}

.fel-subscription-past-due p {
  margin: 0;
}

.fel-subscription-notice {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gal-border);
  border-left: 4px solid var(--gal-midnight, #1a2b4a);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.fel-subscription-notice p {
  margin: 0 0 0.75rem;
}

.fel-subscription-notice p:last-child {
  margin-bottom: 0;
}

.fel-subscription-notice-actions {
  margin: 0;
}

.fel-subscription-panel {
  max-width: 48rem;
  padding: 1.25rem;
  border: 1px solid var(--gal-border);
  background: rgba(255, 255, 255, 0.6);
}

.fel-subscription-value--placeholder {
  color: var(--gal-muted);
  font-weight: 400;
}

.fel-subscription-history-placeholder td {
  color: var(--gal-muted);
  font-style: italic;
  text-align: center;
  padding: 1.25rem 12px;
}

.fel-subscription-section {
  margin: 0 0 2rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--gal-border);
}

.fel-subscription-section:last-of-type {
  border-bottom: none;
}

.fel-subscription-dl {
  display: grid;
  gap: 12px 24px;
  margin: 1rem 0 0;
  max-width: 36rem;
}

@media (min-width: 560px) {
  .fel-subscription-dl {
    grid-template-columns: minmax(10rem, 40%) 1fr;
  }
}

.fel-subscription-dl dt {
  font-size: 0.85rem;
  color: var(--gal-muted);
  margin: 0;
}

.fel-subscription-dl dd {
  margin: 0;
  font-weight: 500;
  color: var(--gal-midnight);
}

.fel-subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.fel-sub-status--active {
  color: #166534;
  font-weight: 600;
}

.fel-sub-status--past-due {
  color: #b45309;
  font-weight: 600;
}

.fel-sub-status--canceling,
.fel-sub-status--canceled {
  color: #991b1b;
  font-weight: 600;
}

.fel-subscription-cancel-btn {
  border-color: var(--gal-error, #b42318);
  color: var(--gal-error, #b42318);
}

.fel-subscription-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.fel-subscription-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.fel-subscription-table th,
.fel-subscription-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gal-border);
  text-align: left;
  vertical-align: top;
}

.corp-btn--text.fel-subscription-receipt-btn {
  padding: 0;
  min-height: auto;
  font-size: inherit;
  text-decoration: underline;
  background: transparent;
  border: none;
  color: var(--gal-link, var(--gal-midnight));
}

.fel-subscription-dialog {
  max-width: min(32rem, calc(100vw - 2rem));
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gal-border);
  border-radius: 8px;
}

.fel-subscription-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.fel-subscription-cancel-rules {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
}

.fel-subscription-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fel-subscription-empty {
  margin-top: 1rem;
}

.fel-fees-intro {
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.fel-fees-tier-note {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--gal-muted);
  max-width: 34rem;
}

.fel-fees-levels-table thead th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gal-stone);
  padding-bottom: 8px;
}

.fel-fees-levels-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--gal-midnight);
}

/* --- Galleria landing (About-aligned hero + why pillars) --- */
#fel-slide-landing.acc-slide--landing {
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--gal-parchment);
}

.fel-galleria-slide--hero {
  background: var(--gal-parchment);
}

.fel-galleria-mission-panel {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  justify-content: center;
}

.fel-galleria-hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  align-items: center;
}

@media (min-width: 900px) {
  .fel-galleria-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 1.15fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    max-width: 92rem;
  }
}

.fel-galleria-hero-title {
  margin: 0 0 1.35rem;
  font-family: inherit;
  font-size: clamp(2.35rem, 5.8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--gal-midnight);
}

.fel-galleria-hero-subtitle {
  margin: 0 0 1.35rem;
  max-width: 44rem;
  font-family: inherit;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--gal-slate);
}

.fel-galleria-hero-lead {
  margin: 0 0 1.75rem;
  max-width: 44rem;
  font-size: clamp(1.0625rem, 1.9vw, 1.3rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--gal-slate);
}

.fel-galleria-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

#fel-slide-landing .fel-galleria-hero-actions--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
  width: 100%;
  max-width: 44rem;
}

@media (min-width: 720px) {
  #fel-slide-landing .fel-galleria-hero-actions--row {
    flex-wrap: nowrap;
  }

  #fel-slide-landing .fel-galleria-hero-actions--row .fel-galleria-hero-btn {
    flex: 0 1 auto;
    width: auto;
    padding: 0.65rem 1.1rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 1100px) {
  #fel-slide-landing .fel-galleria-hero-actions--row .fel-galleria-hero-btn {
    padding: 0.7rem 1.35rem;
    font-size: 0.9375rem;
  }
}

.fel-galleria-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fel-galleria-hero-btn--primary {
  background: var(--fel-galleria-accent, var(--gal-gold));
  border-color: var(--fel-galleria-accent, var(--gal-gold));
  color: #fff;
}

.fel-galleria-hero-btn--primary:hover,
.fel-galleria-hero-btn--primary:focus-visible {
  background: color-mix(in srgb, var(--fel-galleria-accent, var(--gal-gold)) 82%, #000);
  border-color: color-mix(in srgb, var(--fel-galleria-accent, var(--gal-gold)) 82%, #000);
  color: #fff;
  outline: none;
}

.fel-galleria-hero-btn--secondary {
  background: #fff;
  border-color: color-mix(in srgb, var(--gal-midnight) 18%, transparent);
  color: var(--gal-midnight);
}

body.corp a.fel-galleria-hero-btn--secondary,
body.corp a.fel-galleria-hero-btn--secondary:visited {
  color: var(--gal-midnight);
  background: #fff;
  border-color: color-mix(in srgb, var(--gal-midnight) 18%, transparent);
}

.fel-galleria-hero-btn--secondary:hover,
.fel-galleria-hero-btn--secondary:focus-visible,
body.corp a.fel-galleria-hero-btn--secondary:hover,
body.corp a.fel-galleria-hero-btn--secondary:focus-visible {
  background: color-mix(in srgb, var(--gal-midnight) 6%, #fff);
  border-color: color-mix(in srgb, var(--gal-midnight) 18%, transparent);
  color: var(--gal-midnight);
  outline: none;
}

.fel-galleria-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  min-width: 0;
}

.fel-galleria-hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 0;
}

.fel-galleria-hero-logo {
  width: min(100%, 26rem);
  max-height: min(42vh, 22rem);
  height: auto;
  object-fit: contain;
}

.fel-galleria-hero-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: clamp(280px, 48vh, 40rem);
  max-height: min(70vh, 44rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--gal-midnight);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
}

.fel-galleria-hero-links {
  width: 100%;
  max-width: 18rem;
}

.fel-galleria-hero-links__group + .fel-galleria-hero-links__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--gal-midnight) 10%, transparent);
}

.fel-galleria-hero-links__title {
  margin: 0 0 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gal-stone);
  line-height: 1.35;
}

.fel-galleria-hero-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fel-galleria-hero-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--gal-deep-blue);
  text-decoration: none;
}

.fel-galleria-hero-links a:hover,
.fel-galleria-hero-links a:focus-visible {
  color: var(--gal-gold);
  text-decoration: underline;
  outline: none;
}

.fel-galleria-section-title,
.hub-gal-content .fel-galleria-section-title {
  margin: 0 0 0.75rem;
  font-family: inherit;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--gal-midnight);
}

.fel-galleria-section-lead {
  margin: 0.75rem 0 0;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--gal-slate);
}

.fel-galleria-slide--why {
  background: var(--gal-parchment);
}

#fel-slide-why.acc-slide--section {
  min-height: var(--acc-scroll-snap-h, 100%);
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  #fel-slide-why.acc-slide--section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

.acc-scroll-main #fel-slide-why.acc-slide--section .fel-galleria-why-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fel-galleria-why-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.65rem, 1.5vh, 1.1rem);
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.fel-galleria-why-header {
  max-width: 42rem;
}

.fel-galleria-why-pillars {
  display: grid;
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
  width: 100%;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

@media (min-width: 720px) {
  .fel-galleria-why-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .fel-galleria-why-pillars {
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 72vw);
    height: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .fel-galleria-why-pillar {
    scroll-snap-align: start;
    min-height: 0;
    height: 100%;
  }
}

.fel-galleria-why-pillar {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--gal-midnight) 8%, transparent);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .fel-galleria-why-pillar:hover {
    border-color: color-mix(in srgb, var(--gal-gold) 45%, transparent);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  }
}

.fel-galleria-why-pillar-media {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(0.35rem, 0.8vh, 0.65rem);
  background: color-mix(in srgb, var(--gal-midnight) 4%, var(--gal-parchment));
  overflow: hidden;
}

.fel-galleria-why-pillar-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
}

.fel-galleria-why-pillar-content {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: clamp(0.75rem, 1.2vh, 0.95rem) clamp(0.85rem, 1.4vw, 1rem);
}

.fel-galleria-why-pillar-num {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--gal-gold) 85%, var(--gal-midnight));
}

.fel-galleria-why-pillar-title {
  margin: 0 0 0.4rem;
  font-family: inherit;
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--gal-midnight);
}

.fel-galleria-why-pillar-body {
  margin: 0;
  font-size: clamp(0.78rem, 1vw, 0.8125rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--gal-stone);
}

.fel-galleria-hero-btn[hidden] {
  display: none !important;
}

/* In-flow Join CTA on inner portal pages (paired with primary action) */
.fel-portal-join-inline {
  display: inline-flex;
}

.fel-portal-join-inline[hidden] {
  display: none !important;
}

/* Legacy standalone join block — prefer acc-portal-actions + fel-portal-join-inline */
.fel-portal-join-wrap {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.fel-portal-join-wrap[hidden] {
  display: none !important;
}

/* In-flow Join CTA within scroll landing content columns (guests) */
.fel-section-join {
  margin-top: clamp(1.25rem, 2.5vh, 2rem);
  padding-top: 0;
}

.fel-section-join[hidden] {
  display: none !important;
}

.fel-section-join .fel-galleria-hero-btn {
  min-width: min(100%, 14rem);
}

.fel-section-join--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: center;
  max-width: 28rem;
}

.fel-galleria-hero-actions.fel-section-join--pair {
  margin-top: clamp(1rem, 2vh, 1.5rem);
}

/* Tiers slide — full-width galleria shell */
.fel-galleria-tiers-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vh, 2.25rem);
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
}

#fel-slide-roles.acc-slide--section,
#fel-slide-associate.acc-slide--section {
  padding-top: clamp(1rem, 2vh, 1.5rem);
  padding-bottom: clamp(1rem, 2vh, 1.5rem);
  scroll-snap-align: start;
  box-sizing: border-box;
}

#fel-slide-roles .fel-galleria-tiers-header .fel-galleria-section-title,
#fel-slide-associate .fel-associate-slide-header .fel-galleria-section-title {
  font-size: clamp(2.35rem, 5.8vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

#fel-slide-roles .fel-tier-card.fel-tier-card--compact h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.35;
}

#fel-slide-roles .fel-tier-card.fel-tier-card--compact p {
  font-size: clamp(1.0625rem, 1.55vw, 1.1875rem);
  line-height: 1.6;
  color: var(--gal-slate);
}

#fel-slide-roles .fel-tier-card.fel-tier-card--compact a {
  font-size: clamp(1rem, 1.35vw, 1.0625rem);
  letter-spacing: 0.03em;
}

#fel-slide-roles .fel-tier-card.fel-tier-card--compact .fel-tier-card__body {
  padding: 14px 16px 16px;
  gap: 0.65rem;
}

#fel-slide-associate .fel-associate-intro__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

#fel-slide-associate .fel-associate-intro__kicker {
  font-size: clamp(0.875rem, 1.15vw, 0.9375rem);
}

#fel-slide-associate .fel-associate-benefit__title {
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
}

#fel-slide-associate .fel-associate-benefit__body {
  font-size: clamp(1rem, 1.25vw, 1.0625rem);
}

#fel-slide-associate .fel-associate-intro__more {
  font-size: clamp(1rem, 1.25vw, 1.0625rem);
}

@media (min-width: 900px) {
  #fel-slide-roles.acc-slide--section,
  #fel-slide-associate.acc-slide--section {
    min-height: var(--acc-scroll-snap-h, 100%);
    padding-top: clamp(1.25rem, 2.5vh, 2rem);
    padding-bottom: clamp(1.25rem, 2.5vh, 2rem);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .acc-scroll-main #fel-slide-roles.acc-slide--section .fel-galleria-tiers-panel,
  .acc-scroll-main #fel-slide-associate.acc-slide--section .fel-slide-panel--associate {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }

  #fel-slide-roles .fel-galleria-tiers-shell {
    gap: clamp(1.25rem, 2.5vh, 2rem);
  }

  #fel-slide-roles .fel-galleria-tiers-subtitle {
    font-size: 0.9375rem;
  }

  #fel-slide-roles .fel-tier-card.fel-tier-card--compact .fel-tier-card__media {
    min-height: clamp(100px, 16vh, 168px);
    padding: 10px 14px;
  }
}

@media (max-width: 899px) {
  #fel-slide-roles.acc-slide--section,
  #fel-slide-associate.acc-slide--section {
    min-height: auto;
    height: auto;
  }
}

.fel-associate-slide-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vh, 2rem);
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.fel-associate-slide-header {
  flex-shrink: 0;
  max-width: 44rem;
}

.fel-associate-intro--slide {
  padding: clamp(1.35rem, 2.8vw, 2rem);
}

.fel-associate-intro--slide .fel-associate-intro__layout {
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 720px) {
  .fel-associate-intro--slide .fel-associate-intro__layout {
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
    align-items: center;
  }
}

.fel-associate-intro--slide .fel-associate-intro__media {
  max-width: 200px;
}

.fel-associate-intro--slide .fel-associate-intro__media .fel-photo {
  max-height: 180px;
}

.fel-associate-intro--slide .fel-associate-benefits {
  margin-top: clamp(1rem, 2vw, 1.35rem);
  gap: 0.75rem;
}

.fel-associate-intro--slide .fel-associate-benefit {
  padding: 0.85rem 0.9rem;
}

.fel-associate-intro {
  --fel-associate-teal: #1a8a8a;
  --fel-associate-teal-bg: #e8f6f6;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 2px solid var(--fel-associate-teal);
  border-radius: 12px;
  background: var(--fel-associate-teal-bg);
}

.fel-associate-intro__layout {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  align-items: start;
}

@media (min-width: 720px) {
  .fel-associate-intro__layout {
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    align-items: center;
  }
}

.fel-associate-intro__media {
  margin: 0;
  max-width: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fel-associate-teal) 25%, transparent);
}

.fel-associate-intro__media .fel-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: color-mix(in srgb, var(--fel-associate-teal) 6%, #fff);
}

.fel-associate-intro__kicker {
  margin: 0 0 0.5rem;
  font-size: clamp(0.8125rem, 1.1vw, 0.875rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fel-associate-teal);
}

.fel-associate-intro__lead {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.0625rem);
  line-height: 1.6;
  color: var(--gal-midnight);
}

.fel-associate-intro__lead strong {
  font-weight: 700;
  color: var(--fel-associate-teal);
}

.fel-associate-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: clamp(0.85rem, 2vw, 1.1rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .fel-associate-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fel-associate-benefit {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--fel-associate-teal) 18%, transparent);
}

.fel-associate-benefit__title {
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  font-weight: 700;
  color: var(--fel-associate-teal);
}

.fel-associate-benefit__body {
  font-size: clamp(0.875rem, 1.1vw, 0.9375rem);
  line-height: 1.45;
  color: var(--gal-slate);
}

.fel-associate-intro__more {
  margin: 0.85rem 0 0;
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fel-associate-intro__more a {
  color: var(--fel-associate-teal);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.fel-associate-intro__more a:hover,
.fel-associate-intro__more a:focus-visible {
  color: var(--gal-midnight);
}

.fel-fellowship-tiers {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vh, 1.25rem);
}

.fel-galleria-tiers-header {
  max-width: 44rem;
}

.fel-galleria-tiers-subtitle {
  margin-top: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* Fees slide — two-column layout on wide screens */
.fel-galleria-fees-shell {
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
}

.fel-galleria-fees-intro {
  margin: 0.75rem 0 0;
  max-width: 52rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.6;
  color: var(--gal-slate);
}

.fel-galleria-fees-body {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 900px) {
  .fel-galleria-fees-body {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
  }
}

body.fel-scroll-page .fel-galleria-fees-tool {
  margin-top: 0;
  max-width: none;
}

body.fel-scroll-page .fel-galleria-fees-form {
  margin: 0;
}

body.fel-scroll-page .fel-galleria-fees-form .hub-gal-control {
  max-width: none;
}

body.fel-scroll-page .fel-galleria-fees-results .acc-fees-table,
body.fel-scroll-page #fel-slide-fees .acc-fees-table {
  max-width: none;
  width: 100%;
}

body.fel-scroll-page .fel-galleria-fees-results {
  min-width: 0;
}

@media (min-width: 900px) {
  body.fel-scroll-page .fel-galleria-fees-results {
    padding-top: 0.15rem;
  }
}

/* Apply slide — galleria grid (matches hero / fees) */
.fel-galleria-slide--apply {
  background: var(--gal-parchment);
}

.fel-galleria-apply-panel {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  justify-content: center;
}

.fel-galleria-apply-shell {
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
}

.fel-galleria-apply-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 900px) {
  .fel-galleria-apply-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.75fr);
    gap: clamp(2.5rem, 4vw, 3.5rem);
  }

  .fel-galleria-apply-aside {
    justify-self: end;
    width: 100%;
    max-width: 18rem;
  }
}

.fel-galleria-apply-body {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gal-slate);
}

.fel-galleria-apply-actions {
  margin-top: 1.75rem;
}

.fel-galleria-apply-subscribe {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.fel-galleria-apply-subscribe a {
  color: var(--gal-deep-blue);
  font-weight: 500;
  text-decoration: none;
}

.fel-galleria-apply-subscribe a:hover,
.fel-galleria-apply-subscribe a:focus-visible {
  color: var(--gal-gold);
  text-decoration: underline;
  outline: none;
}

/* Scroll section rail — vertical line + dots (IFIP Courses pattern) */
.fel-scroll-rail {
  position: fixed;
  left: clamp(14px, 2.2vw, 28px);
  top: 50%;
  z-index: 35;
  transform: translateY(-50%);
  pointer-events: none;
}

.fel-scroll-rail__track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0;
}

.fel-scroll-rail__track::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: color-mix(in srgb, var(--gal-midnight, #0f172a) 22%, transparent);
}

.fel-scroll-rail__progress {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: var(--gal-gold, #c9a227);
  pointer-events: none;
  transition: height 0.35s ease;
}

.fel-scroll-rail__dot {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  margin: 0.7rem 0;
  border: 2px solid color-mix(in srgb, var(--gal-midnight, #0f172a) 35%, #fff);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gal-midnight, #0f172a) 8%, transparent);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.fel-scroll-rail__dot.is-active {
  background: var(--gal-gold, #c9a227);
  border-color: var(--gal-gold, #c9a227);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--gal-gold, #c9a227) 28%, transparent),
    0 1px 4px color-mix(in srgb, var(--gal-midnight, #0f172a) 12%, transparent);
  transform: scale(1.2);
}

@media (max-width: 479px) {
  .fel-scroll-rail {
    left: max(8px, env(safe-area-inset-left, 0px));
  }

  .fel-scroll-rail__dot {
    width: 6px;
    height: 6px;
    margin: 0.55rem 0;
    border-width: 1.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fel-scroll-rail__dot,
  .fel-scroll-rail__progress {
    transition: none;
  }
}

.fel-scroll-hint {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gal-stone);
}

.fel-landing-cta {
  margin-top: 8px;
}

.fel-slide-lead {
  font-size: 1.05rem;
  color: var(--gal-muted);
  max-width: 42rem;
  margin: 0 0 1rem;
}

.fel-benefit-cards {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

@media (min-width: 720px) {
  .fel-benefit-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fel-benefit-card {
  border: 1px solid var(--gal-border);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.65);
}

.fel-benefit-card h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--gal-midnight);
}

.fel-benefit-card p {
  margin: 0;
  font-size: var(--gal-text-body);
  line-height: 1.55;
  color: var(--gal-muted);
}

.fel-roles-subtitle {
  margin: -8px 0 20px;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gal-stone);
}

.fel-tier-grid {
  display: grid;
  gap: 16px;
}

.fel-tier-grid--fellowship {
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

@media (min-width: 720px) {
  .fel-tier-grid--fellowship {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .fel-tier-grid:not(.fel-tier-grid--fellowship) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .fel-tier-grid:not(.fel-tier-grid--fellowship) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fel-tier-card--compact .fel-tier-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  max-height: none;
  min-height: clamp(96px, 14vh, 140px);
  padding: 8px 12px;
  overflow: hidden;
}

.fel-tier-card--compact .fel-tier-card__media .fel-photo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.fel-tier-card--compact .fel-tier-card__body {
  padding: 12px 14px 14px;
  gap: 0.5rem;
}

.fel-tier-card--compact h2,
.fel-tier-card--compact h3 {
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
}

.fel-tier-card--compact p {
  font-size: clamp(1rem, 1.35vw, 1.0625rem);
  line-height: 1.55;
}

.fel-tier-card--compact a {
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
}

.fel-tier-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--gal-border);
  background: var(--gal-bg);
  overflow: hidden;
}

.fel-tier-card--muted {
  opacity: 0.85;
  border-style: dashed;
}

.fel-tier-card__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid var(--gal-border);
}

.fel-tier-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fel-tier-card h2,
.fel-tier-card h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--gal-midnight);
}

.fel-tier-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gal-muted);
  flex: 1;
}

.fel-tier-card a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gal-deep-blue);
}

.fel-tier-card a:hover,
.fel-tier-card a:focus-visible {
  color: var(--gal-gold);
}

.fel-connection-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .fel-connection-layout {
    grid-template-columns: 1fr min(40%, 420px);
  }

  .fel-what-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    width: 100%;
    max-width: min(80rem, 100%);
    margin-inline: auto;
  }
}

.fel-slide-panel--what {
  max-width: none;
}

#fel-slide-what.acc-slide--section {
  min-height: var(--acc-scroll-snap-h, 100%);
  padding-top: clamp(1rem, 2vh, 1.5rem);
  padding-bottom: clamp(1rem, 2vh, 1.5rem);
  box-sizing: border-box;
}

#fel-slide-what .fel-slide-panel--what {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.fel-what-copy {
  min-width: 0;
}

.fel-what-prose p {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.65vw, 1.125rem);
  line-height: 1.65;
  color: var(--gal-slate);
}

.fel-what-prose p:last-child {
  margin-bottom: 0;
}

.fel-what-layout .fel-section-subhead {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--gal-logo-font);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--gal-gold);
}

.fel-what-layout .fel-landing-visual {
  align-self: start;
}

.fel-what-layout .fel-landing-visual .fel-photo {
  min-height: clamp(240px, 40vh, 480px);
}

@media (min-width: 900px) {
  .fel-what-layout .fel-landing-visual {
    align-self: center;
  }

  .fel-what-layout .fel-landing-visual .fel-photo {
    min-height: clamp(300px, 46vh, 520px);
  }
}


.fel-float-nav-panels {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fel-float-nav-panel {
  padding: 12px 0 0;
}

.fel-float-nav-panel:first-child {
  padding-top: 0;
}

.fel-float-nav-panel + .fel-float-nav-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gal-border);
}

.fel-float-nav-panel:last-child {
  padding-bottom: 0;
}

.fel-float-nav-panel-title {
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gal-stone);
}

.fel-float-nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fel-float-nav-members-only[hidden] {
  display: none;
}

.fel-slide-panel--fees {
  max-width: none;
}

.fel-float-nav-link--muted {
  color: var(--gal-stone);
}

.acc-float-nav-link--soon {
  display: block;
  color: var(--gal-stone);
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
}

.fel-float-nav .fel-float-nav-panels {
  max-height: calc(100dvh - var(--acc-float-nav-top, 120px) - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fel-float-nav .acc-float-nav-register {
  margin-top: 14px;
}

.fel-float-nav .acc-float-nav-register[data-fel-float-portal-wrap][hidden],
.fel-float-nav .acc-float-nav-register[hidden],
.fel-landing-cta[hidden] {
  display: none !important;
  margin: 0;
}

@media (min-width: 721px) {
  .fel-mobile-portal-drawer-head,
  .fel-mobile-portal-drawer-foot,
  .fel-mobile-portal-backdrop {
    display: none !important;
  }
}

[data-fel-nav-apply-only][hidden] {
  display: none;
}

/* Photos â€” broken until assets uploaded; title shows intended filename on hover */
.fel-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(184, 134, 11, 0.12));
}

.fel-photo--hero {
  min-height: 220px;
}

.fel-landing-visual {
  margin: 0;
  min-height: 0;
  border: 2px solid var(--gal-midnight);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.fel-landing-visual .fel-photo {
  min-height: clamp(200px, 32vh, 380px);
}

.fel-portal-hero {
  margin: 0 0 28px;
  border: 2px solid var(--gal-border);
  overflow: hidden;
  max-width: 56rem;
}

.fel-portal-hero .fel-photo {
  min-height: 200px;
  max-height: 420px;
}

.fel-bullet-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  max-width: 48rem;
  line-height: 1.7;
  color: var(--gal-muted);
}

.fel-bullet-list li {
  margin-bottom: 0.65rem;
}

.fel-ongoing-note {
  padding: 14px 16px;
  border-left: 3px solid var(--gal-gold);
  background: rgba(184, 134, 11, 0.08);
  max-width: 48rem;
}

.fel-directory-placeholder {
  margin-top: 24px;
}

/* Profile editor: tag pickers & citizenship grid */
.fel-tag-picker,
.fel-profile-field-citizenship .fel-citizenship-select {
  width: 100%;
  max-width: 22rem;
  min-height: 2.75rem;
}

.fel-citizenship-picker {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.fel-tag-picker-legend,
.fel-citizenship-legend {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.fel-tag-picker-grid,
.fel-citizenship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 6px 10px;
  max-height: 14rem;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--gal-border);
  background: rgba(15, 23, 42, 0.02);
}

.fel-tag-picker-item,
.fel-citizenship-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.88rem;
  cursor: pointer;
}

.fel-profile-field-cv .fel-profile-check--cv {
  margin-top: 8px;
}

.fel-profile-cv-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.fel-profile-cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fel-profile-repeater-item .fel-wh-industries {
  grid-column: 1 / -1;
}

.fel-event-picker {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fel-event-picker select {
  width: 100%;
  max-width: 100%;
}

.fel-event-legacy-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gal-muted, #64748b);
}

/* --- Fellowship members noticeboard (feed layout) --- */

body[data-fel-noticeboard-page] {
  background: var(--gal-bg, #f4f6f9);
}

.fel-noticeboard-shell {
  margin: 0 auto;
  width: min(44rem, 100%);
  padding: 0.5rem 0 2.5rem;
}

.fel-noticeboard-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fel-feed-header {
  padding: 0.25rem 0 0.35rem;
}

.fel-feed-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gal-gold, #b8860b);
}

.fel-feed-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--gal-navy, #1e293b);
}

.fel-feed-lead,
.fel-feed-count {
  margin: 0.45rem 0 0;
  color: var(--gal-muted, #64748b);
  font-size: 0.98rem;
  line-height: 1.5;
}

.fel-feed-count {
  font-size: 0.88rem;
}

.fel-feed-compose,
.fel-feed-post {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.fel-feed-compose {
  padding: 1rem 1.05rem 0.85rem;
}

.fel-feed-compose-trigger {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.fel-feed-compose-trigger:hover,
.fel-feed-compose-trigger:focus-visible {
  border-color: rgba(184, 134, 11, 0.45);
  background: #fff;
}

.fel-feed-compose-trigger:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gal-gold, #b8860b) 72%, white);
  outline-offset: 2px;
}

.fel-feed-compose-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.fel-feed-compose-placeholder {
  flex: 1;
  min-width: 0;
}

.fel-feed-compose-hint {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--gal-muted, #64748b);
}

.fel-feed-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #1e3a5f, #334155);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.fel-feed-avatar--compose {
  background: linear-gradient(145deg, var(--gal-gold, #b8860b), #8b6914);
  font-size: 1.35rem;
  line-height: 1;
}

.fel-feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fel-feed-filter {
  padding: 0.38rem 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.fel-feed-filter:hover,
.fel-feed-filter:focus-visible {
  border-color: rgba(184, 134, 11, 0.45);
  color: #1e293b;
}

.fel-feed-filter.is-active {
  border-color: rgba(184, 134, 11, 0.55);
  background: color-mix(in srgb, var(--gal-gold, #b8860b) 14%, white);
  color: #1e293b;
  font-weight: 700;
}

.fel-feed-filter:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gal-gold, #b8860b) 72%, white);
  outline-offset: 2px;
}

.fel-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fel-feed-empty {
  margin: 0;
  padding: 2rem 1.25rem;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gal-muted, #64748b);
  text-align: center;
}

.fel-feed-post {
  overflow: hidden;
}

.fel-feed-post.is-comments-open {
  overflow: visible;
}

.fel-feed-post.is-new {
  animation: felFeedFadeIn 700ms ease;
}

.fel-feed-post.is-pinned {
  border-color: rgba(184, 134, 11, 0.45);
}

.fel-feed-post.is-expiring {
  border-color: rgba(220, 38, 38, 0.35);
}

.fel-feed-post-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 1.05rem 0.35rem;
}

.fel-feed-post-meta {
  min-width: 0;
}

.fel-feed-post-author-row,
.fel-feed-post-time-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.fel-feed-post-author {
  font-weight: 700;
  color: #1e293b;
}

.fel-feed-post-category {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
}

.fel-feed-post-time-row {
  margin-top: 0.18rem;
  font-size: 0.84rem;
  color: #64748b;
}

.fel-feed-post-expiry {
  color: #b45309;
}

.fel-feed-post-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
}

.fel-feed-badge {
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.fel-feed-badge--pinned {
  background: color-mix(in srgb, var(--gal-gold, #b8860b) 18%, white);
  color: #7c5a08;
}

.fel-feed-badge--own {
  background: #e0f2fe;
  color: #0369a1;
}

.fel-feed-post-body {
  padding: 0.35rem 1.05rem 0.95rem;
}

.fel-feed-post-title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.35;
  color: #1e293b;
}

.fel-feed-post-text {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.62;
  white-space: normal;
  overflow-wrap: anywhere;
}

.fel-feed-post-link a {
  color: #1d4ed8;
  font-weight: 600;
}

.fel-feed-action {
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.fel-feed-action:hover,
.fel-feed-action:focus-visible {
  border-color: rgba(184, 134, 11, 0.45);
}

.fel-feed-action--danger {
  color: #b91c1c;
}

.fel-feed-action--danger:hover,
.fel-feed-action--danger:focus-visible {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fef2f2;
}

.fel-noticeboard-dialog {
  width: min(34rem, calc(100vw - 22px));
  max-width: 34rem;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22);
}

.fel-noticeboard-dialog::backdrop {
  background: rgba(16, 24, 40, 0.42);
  backdrop-filter: blur(2px);
}

.fel-noticeboard-dialog-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.2rem 1.1rem;
}

.fel-noticeboard-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.fel-noticeboard-dialog-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  color: #1e293b;
}

.fel-noticeboard-dialog-kicker {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.fel-noticeboard-dialog-body {
  display: grid;
  gap: 0.85rem;
  overflow-y: auto;
  overflow-x: visible;
}

.fel-noticeboard-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.fel-noticeboard-field {
  display: grid;
  gap: 0.32rem;
}

.fel-noticeboard-field > span {
  font-weight: 700;
  color: #334155;
}

.fel-noticeboard-field input,
.fel-noticeboard-field select,
.fel-noticeboard-field textarea,
.fel-noticeboard-field .fel-mention-editor {
  width: 100%;
  box-sizing: border-box;
  padding: 0.58rem 0.68rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.fel-noticeboard-field .fel-mention-editor {
  min-height: 9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

.fel-noticeboard-field .fel-mention-editor:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.fel-noticeboard-field .fel-mention-editor:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.fel-noticeboard-field textarea {
  resize: vertical;
}

.fel-noticeboard-compose-help {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
}

body.hub-theme-wb .fel-feed-compose,
body.hub-theme-wb .fel-feed-post,
body.hub-theme-wb .fel-feed-empty,
body.hub-theme-wb .fel-feed-filter,
body.hub-theme-wb .fel-noticeboard-dialog {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.28);
}

body.hub-theme-wb .fel-feed-title,
body.hub-theme-wb .fel-feed-post-author,
body.hub-theme-wb .fel-feed-post-title,
body.hub-theme-wb .fel-noticeboard-dialog-head h2 {
  color: #f8fafc;
}

body.hub-theme-wb .fel-feed-lead,
body.hub-theme-wb .fel-feed-count,
body.hub-theme-wb .fel-feed-compose-hint,
body.hub-theme-wb .fel-feed-post-text,
body.hub-theme-wb .fel-feed-empty,
body.hub-theme-wb .fel-noticeboard-compose-help {
  color: #cbd5e1;
}

body.hub-theme-wb .fel-feed-compose-trigger {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}

body.hub-theme-wb .fel-feed-post-category {
  background: #1e293b;
  color: #e2e8f0;
}

.fel-feed-post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.85rem;
  padding: 0.35rem 1.05rem 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.fel-feed-post-engage {
  display: flex;
  flex: 1 1 100%;
  align-items: stretch;
  gap: 0.35rem;
  padding-top: 0.2rem;
}

.fel-feed-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

.fel-feed-avatar--photo {
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.fel-feed-post-media {
  margin: 0.75rem 0 0;
}

.fel-feed-post-media img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.fel-feed-link-preview {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.fel-feed-link-preview:hover,
.fel-feed-link-preview:focus-visible {
  border-color: rgba(184, 134, 11, 0.45);
  background: #fff;
}

.fel-feed-link-preview-image {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 8px;
}

.fel-feed-link-preview-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.fel-feed-link-preview-title {
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

.fel-feed-link-preview-desc {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fel-feed-link-preview-host {
  color: #94a3b8;
  font-size: 0.8rem;
}

.fel-feed-like-wrap {
  position: relative;
  display: flex;
  flex: 1;
}

.fel-feed-like-wrap .fel-feed-like {
  width: 100%;
}

.fel-feed-likers-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 12;
  min-width: 10rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.fel-feed-like-wrap:hover .fel-feed-likers-tooltip,
.fel-feed-like-wrap:focus-within .fel-feed-likers-tooltip {
  opacity: 1;
  visibility: visible;
}

.fel-feed-like {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.fel-feed-like:hover,
.fel-feed-like:focus-visible {
  background: #f1f5f9;
  color: #334155;
}

.fel-feed-like.is-liked {
  background: transparent;
  color: #1d4ed8;
  font-weight: 700;
}

.fel-feed-like-count-only {
  color: #64748b;
  font-size: 0.86rem;
}

.fel-feed-comment-toggle {
  flex: 1;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.fel-feed-comment-toggle:hover,
.fel-feed-comment-toggle:focus-visible,
.fel-feed-comment-toggle.is-open {
  background: #f1f5f9;
  color: #334155;
}

.fel-feed-comments {
  --fel-feed-comment-indent: 3.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  margin: 0 0 0.85rem;
  padding: 0.75rem 1.05rem 0.95rem var(--fel-feed-comment-indent);
  overflow: visible;
}

.fel-feed-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.fel-feed-comments-view-all {
  display: block;
  width: 100%;
  margin: 0.15rem 0 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.fel-feed-comments-view-all:hover,
.fel-feed-comments-view-all:focus-visible {
  background: #f1f5f9;
  color: #334155;
}

.fel-feed-comments-status {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.fel-feed-comments-status--err {
  color: #b91c1c;
}

.fel-feed-comment {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  overflow: visible;
}

.fel-feed-comment.is-own .fel-feed-comment-bubble {
  background: #fffbeb;
}

.fel-feed-comment-main {
  flex: 1;
  min-width: 0;
}

.fel-feed-comment-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  background: #f0f2f5;
  color: #050505;
}

.fel-feed-comment-author {
  font-weight: 700;
  color: #050505;
  font-size: 0.84rem;
  line-height: 1.3;
  margin-bottom: 0.12rem;
}

.fel-feed-comment-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: 0.2rem;
  padding-left: 0.35rem;
}

.fel-feed-comment-meta-row time {
  color: #65676b;
  font-size: 0.75rem;
  font-weight: 600;
}

.fel-feed-comment-remove {
  border: 0;
  background: transparent;
  color: #65676b;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.fel-feed-comment-remove:hover,
.fel-feed-comment-remove:focus-visible {
  text-decoration: underline;
  color: #b45309;
}

.fel-feed-comment-body {
  color: #050505;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.fel-feed-comment-form {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  overflow: visible;
}

.fel-feed-comment-form-field {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.fel-feed-comment-form textarea,
.fel-feed-comment-form .fel-mention-editor {
  display: block;
  width: 100%;
  min-height: 2.35rem;
  max-height: 8rem;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #f0f2f5;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  box-sizing: border-box;
  resize: vertical;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.fel-feed-comment-form .fel-mention-editor:empty::before {
  content: attr(data-placeholder);
  color: #65676b;
  pointer-events: none;
}

.fel-feed-comment-form textarea:focus,
.fel-feed-comment-form .fel-mention-editor:focus {
  outline: none;
  border-color: rgba(148, 163, 184, 0.45);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.fel-feed-comment-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.fel-feed-comment-submit {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
}

.fel-feed-comment-submit:hover,
.fel-feed-comment-submit:focus-visible {
  background: #eff6ff;
}

.fel-feed-post.is-unread {
  box-shadow: inset 3px 0 0 #2563eb;
}

.fel-feed-post.has-new-comments .fel-feed-badge--new-comments {
  background: #dbeafe;
  color: #1d4ed8;
}

.fel-feed-unread-divider {
  margin: 0.85rem 0 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.fel-feed-load-sentinel {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fel-feed-loading-older {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #64748b;
  font-size: 0.88rem;
}

.fel-feed-loading-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 6rem;
  color: #64748b;
  font-size: 0.92rem;
}

.fel-feed-loading-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(100, 116, 139, 0.25);
  border-top-color: #b8860b;
  border-radius: 50%;
  animation: fel-feed-spin 0.8s linear infinite;
}

@keyframes fel-feed-spin {
  to {
    transform: rotate(360deg);
  }
}

.fel-feed-pin-dismiss {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

.fel-feed-mention {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.fel-feed-mention-chip {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  cursor: default;
  white-space: nowrap;
}

.fel-feed-mention:hover,
.fel-feed-mention:focus-visible {
  text-decoration: underline;
}

.fel-feed-comment-like {
  border: 0;
  background: transparent;
  color: #65676b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.fel-feed-comment-like:hover,
.fel-feed-comment-like:focus-visible {
  text-decoration: underline;
}

.fel-feed-comment-like.is-liked {
  color: #1d4ed8;
}

.fel-feed-mention-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.fel-feed-mention-menu--floating {
  position: fixed;
  z-index: 10050;
  margin: 0;
  min-width: 220px;
  max-width: min(24rem, calc(100vw - 1rem));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fel-feed-mention-option {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}

.fel-feed-mention-option:hover,
.fel-feed-mention-option:focus-visible {
  background: #eff6ff;
}

.fel-feed-post--highlight {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  transition: outline-color 0.4s ease;
}

.hub-noticeboard-bell-mount {
  position: relative;
}

.hub-noticeboard-bell-btn {
  position: relative;
}

.hub-noticeboard-bell-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.hub-noticeboard-bell-item--application {
  border-left: 3px solid #1e3a5f;
}

.hub-noticeboard-bell-badge-label {
  display: inline-block;
  margin-bottom: 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hub-noticeboard-bell-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(22rem, 92vw);
  max-height: min(24rem, 70vh);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  z-index: 40;
}

.hub-noticeboard-bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.hub-noticeboard-mark-all {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: #fff;
  color: #1e3a5f;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.hub-noticeboard-mark-all:hover:not(:disabled),
.hub-noticeboard-mark-all:focus-visible {
  border-color: #1e3a5f;
  background: #eff6ff;
}

.hub-noticeboard-mark-all:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hub-noticeboard-bell-status {
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.hub-noticeboard-bell-status--ok {
  color: #166534;
  background: #f0fdf4;
}

.hub-noticeboard-bell-status--err {
  color: #b91c1c;
  background: #fef2f2;
}

.hub-noticeboard-bell-foot {
  padding: 0.45rem 0.85rem 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  text-align: center;
}

.hub-noticeboard-show-history {
  padding: 0;
  border: 0;
  background: none;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.hub-noticeboard-show-history:hover,
.hub-noticeboard-show-history:focus-visible {
  color: #1e3a5f;
}

.fel-feed-unread-actions {
  margin-top: 0.65rem;
}

.fel-feed-mark-read {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(30, 58, 95, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #1e3a5f;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.fel-feed-mark-read:hover:not(:disabled),
.fel-feed-mark-read:focus-visible {
  border-color: #1e3a5f;
  background: #eff6ff;
}

.fel-feed-mark-read:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hub-noticeboard-bell-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.hub-noticeboard-bell-item a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: inherit;
  text-decoration: none;
}

.hub-noticeboard-bell-item.is-unread a {
  background: #eff6ff;
}

.hub-noticeboard-bell-text {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}

.hub-noticeboard-bell-preview {
  display: block;
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.8rem;
}

.hub-noticeboard-bell-empty {
  padding: 0.85rem;
  color: #64748b;
}

.fel-feed-avatar--sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.72rem;
}

.fel-noticeboard-emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-bottom: 0.35rem;
}

.fel-noticeboard-emoji-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.fel-noticeboard-emoji-btn:hover,
.fel-noticeboard-emoji-btn:focus-visible {
  border-color: rgba(184, 134, 11, 0.45);
}

.fel-noticeboard-image-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fel-noticeboard-image-pick {
  cursor: pointer;
}

.fel-noticeboard-compose-image-preview {
  margin: 0.65rem 0 0;
}

.fel-noticeboard-compose-image-preview img {
  display: block;
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

@media (max-width: 640px) {
  .fel-feed-link-preview {
    grid-template-columns: 1fr;
  }
}

@keyframes felFeedFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fel-float-nav,
  .fel-scroll-rail__dot,
  .fel-scroll-rail__progress,
  .fel-feed-compose-trigger,
  .fel-feed-filter,
  .fel-feed-action,
  .fel-feed-likers-tooltip {
    transition: none;
  }

  .fel-feed-post.is-new {
    animation: none;
  }
}

@media (max-width: 899px) {
  .fel-noticeboard-shell {
    width: 100%;
    padding-inline: 0.15rem;
  }
}

/* Mobile — inner Fellowship portal pages use document scroll (mirroring support-hub.css). */
@media (max-width: 720px) {
  html:has(body.fel-portal-page) {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.fel-portal-page,
  body.fel-portal-page--inner {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.fel-portal-page .acc-portal-main,
  body.fel-portal-page .fel-portal-main {
    display: block !important;
    flex: none !important;
    overflow: visible !important;
  }

  /* Members portal — hide fixed sidebar; full-width content + drawer menu */
  body.fel-portal-page:not(.fel-portal-page--inner) {
    --acc-float-nav-w: 0;
    --acc-nav-content-gap: 0;
    --acc-content-inset-left: max(20px, env(safe-area-inset-left));
    --acc-content-inset-right: max(20px, env(safe-area-inset-right));
  }

  body.fel-portal-page:not(.fel-portal-page--inner) .acc-portal-main,
  body.fel-portal-page:not(.fel-portal-page--inner) .fel-portal-main {
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
    max-width: none !important;
  }

  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer {
    position: fixed;
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 4900;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
    padding: 0;
    background: var(--gal-bg);
  }

  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer.fel-float-nav--mobile-drawer-open {
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer .fel-float-nav-panels {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 16px;
  }

  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer .fel-float-nav-panel {
    padding: 8px 0 0;
  }

  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer .fel-float-nav-panel-title {
    padding: 0 22px;
    margin-bottom: 4px;
    font-size: 0.72rem;
  }

  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer a.acc-float-nav-link {
    padding: 14px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    border-left: none;
    margin-left: 0;
  }

  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer a.acc-float-nav-link.is-active,
  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer a.acc-float-nav-link[aria-current="page"] {
    background: var(--gal-champagne);
    border-left: 4px solid var(--gal-gold);
    padding-left: 18px;
    text-decoration: none;
  }

  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer .acc-float-nav-register {
    display: none;
  }

  .fel-mobile-portal-drawer-head {
    flex: 0 0 auto;
    padding: max(14px, env(safe-area-inset-top, 0px)) 22px 12px;
    border-bottom: 1px solid var(--gal-border);
    background: var(--gal-bg);
  }

  .fel-mobile-portal-drawer-title {
    margin: 0;
    font-family: var(--gal-logo-font);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gal-midnight);
  }

  .fel-mobile-portal-drawer-foot {
    flex: 0 0 auto;
    padding: 14px 22px max(18px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--gal-border);
    background: var(--gal-champagne);
  }

  .fel-mobile-portal-main-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 6px;
    border: 1px solid var(--gal-border);
    background: #fff;
    color: var(--gal-midnight);
    font-family: var(--gal-font);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .fel-mobile-portal-main-menu-btn:hover,
  .fel-mobile-portal-main-menu-btn:focus-visible {
    outline: 2px solid var(--gal-gold);
    outline-offset: 2px;
    color: var(--gal-midnight);
  }

  .fel-mobile-portal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4800;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.42);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s;
  }

  .fel-mobile-portal-backdrop:not([hidden]) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.fel-mobile-portal-menu-open .corp-mobile-menu-host {
    z-index: 5000;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  body.fel-portal-page:not(.fel-portal-page--inner) .fel-float-nav--mobile-drawer,
  .fel-mobile-portal-backdrop {
    transition: none;
  }
}

/* —— Nine aspects flashcards (Fellowship scroll landing) —— */

.fel-galleria-slide--aspects {
  background: var(--gal-parchment);
}

#fel-slide-aspects.acc-slide--section {
  padding-top: clamp(1rem, 2vh, 1.5rem);
  padding-bottom: clamp(1rem, 2vh, 1.5rem);
  scroll-snap-align: start;
}

@media (min-width: 900px) {
  #fel-slide-aspects.acc-slide--section {
    min-height: var(--acc-scroll-snap-h, 100%);
    height: var(--acc-scroll-snap-h, 100%);
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
  }

  .acc-scroll-main #fel-slide-aspects.acc-slide--section .fel-galleria-aspects-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #fel-slide-aspects .fel-galleria-aspects-shell {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    gap: clamp(0.45rem, 1vh, 0.75rem);
  }

  #fel-slide-aspects .fel-galleria-aspects-header {
    flex-shrink: 0;
  }

  #fel-slide-aspects .fel-galleria-section-title {
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    margin-bottom: 0.35rem;
  }

  #fel-slide-aspects .fel-galleria-section-lead {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  #fel-slide-aspects .fel-aspects-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(0.4rem, 0.75vh, 0.6rem);
    align-content: stretch;
  }

  #fel-slide-aspects .fel-aspect-card {
    min-height: 0;
    height: 100%;
  }

  #fel-slide-aspects .fel-aspect-card__flip {
    height: 100%;
  }

  #fel-slide-aspects .fel-aspect-card__inner {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
  }

  #fel-slide-aspects .fel-aspect-card__front-title {
    padding: clamp(0.35rem, 0.7vw, 0.5rem) clamp(0.45rem, 0.9vw, 0.6rem);
    font-size: clamp(0.74rem, 1.05vw, 0.92rem);
    line-height: 1.12;
    border-radius: 8px;
  }

  #fel-slide-aspects .fel-aspect-card__face--front {
    padding: 0.4rem;
  }

  #fel-slide-aspects .fel-aspect-card__flip-hint {
    top: 0.35rem;
    right: 0.4rem;
    padding: 0.12rem 0.35rem;
    font-size: 0.55rem;
  }

  #fel-slide-aspects .fel-aspect-card__keyword {
    padding: 0.28rem 0.5rem;
    font-size: 0.58rem;
  }

  #fel-slide-aspects .fel-aspect-card__back-title {
    padding: 0.45rem 0.55rem 0.2rem;
    font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  }

  #fel-slide-aspects .fel-aspect-card__body {
    padding: 0 0.55rem 0.45rem;
    font-size: clamp(0.62rem, 0.82vw, 0.72rem);
    line-height: 1.35;
  }

  #fel-slide-aspects .fel-section-join {
    flex-shrink: 0;
    margin-top: clamp(0.45rem, 0.9vh, 0.65rem);
  }
}

@media (max-width: 899px) {
  #fel-slide-aspects.acc-slide--section {
    min-height: auto;
    height: auto;
  }
}

.fel-galleria-aspects-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vh, 1.35rem);
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
}

.fel-galleria-aspects-header {
  max-width: 44rem;
}

.fel-aspects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.2vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .fel-aspects-grid {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .fel-aspects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .fel-aspects-grid {
    grid-template-columns: 1fr;
  }
}

.fel-aspect-card {
  margin: 0;
  min-width: 0;
}

.fel-aspect-card__flip {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  perspective: 1100px;
}

.fel-aspect-card__flip:focus-visible {
  outline: 2px solid var(--gal-gold);
  outline-offset: 3px;
  border-radius: 10px;
}

.fel-aspect-card__inner {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.fel-aspect-card__flip.is-flipped .fel-aspect-card__inner,
.fel-aspect-card__flip[aria-pressed="true"] .fel-aspect-card__inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fel-aspect-card__flip:not([aria-pressed="true"]):hover .fel-aspect-card__inner,
  .fel-aspect-card__flip:not([aria-pressed="true"]):focus-within .fel-aspect-card__inner {
    transform: rotateY(180deg);
  }
}

.fel-aspect-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gal-midnight) 10%, transparent);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.fel-aspect-card__face--back {
  transform: rotateY(180deg);
  text-align: center;
}

.fel-aspect-card__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.fel-aspect-card__face--front {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.55rem, 1.5vw, 0.85rem);
  background: var(--gal-midnight);
}

.fel-aspect-card__face--front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.18) 0%,
    rgba(15, 23, 42, 0.42) 52%,
    rgba(15, 23, 42, 0.58) 100%
  );
  pointer-events: none;
}

.fel-aspect-card__front-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: clamp(0.55rem, 1.4vw, 0.8rem) clamp(0.65rem, 1.6vw, 0.95rem);
  max-width: calc(100% - 0.5rem);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
  text-wrap: balance;
}

@media (max-width: 899px) {
  .fel-aspect-card__photo {
    opacity: 0.55;
  }

  .fel-aspect-card__face--front {
    padding: 0.75rem 0.65rem;
  }

  .fel-aspect-card__front-title {
    font-size: clamp(1.1rem, 4.8vw, 1.55rem);
    padding: 0.75rem 0.85rem;
    line-height: 1.12;
    max-width: 100%;
    background: rgba(15, 23, 42, 0.88);
  }
}

.fel-aspect-card__flip-hint {
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  z-index: 3;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
}

.fel-aspect-card__keyword {
  display: block;
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: var(--fel-aspect-accent, var(--gal-midnight));
  flex-shrink: 0;
}

.fel-aspect-card__back-title {
  display: block;
  margin: auto 0 0;
  padding: 0.7rem 0.75rem 0.35rem;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gal-midnight);
  text-align: center;
}

.fel-aspect-card__body {
  margin: 0 0 auto;
  padding: 0 0.75rem 0.85rem;
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  line-height: 1.45;
  color: var(--gal-slate);
  flex: 0 1 auto;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .fel-aspect-card__inner {
    transition: none;
  }

  .fel-aspect-card__flip:not(.is-flipped):not([aria-pressed="true"]) .fel-aspect-card__face--back,
  .fel-aspect-card__flip.is-flipped .fel-aspect-card__face--front,
  .fel-aspect-card__flip[aria-pressed="true"] .fel-aspect-card__face--front {
    opacity: 0;
    visibility: hidden;
  }

  .fel-aspect-card__flip:not(.is-flipped):not([aria-pressed="true"]) .fel-aspect-card__face--front,
  .fel-aspect-card__flip.is-flipped .fel-aspect-card__face--back,
  .fel-aspect-card__flip[aria-pressed="true"] .fel-aspect-card__face--back {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .fel-aspect-card__flip.is-flipped .fel-aspect-card__inner,
  .fel-aspect-card__flip[aria-pressed="true"] .fel-aspect-card__inner {
    transform: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .fel-aspect-card__flip:not([aria-pressed="true"]):hover .fel-aspect-card__face--front,
    .fel-aspect-card__flip:not([aria-pressed="true"]):focus-within .fel-aspect-card__face--front {
      opacity: 0;
      visibility: hidden;
    }

    .fel-aspect-card__flip:not([aria-pressed="true"]):hover .fel-aspect-card__face--back,
    .fel-aspect-card__flip:not([aria-pressed="true"]):focus-within .fel-aspect-card__face--back {
      opacity: 1;
      visibility: visible;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fel-aspect-card__flip:hover .fel-aspect-card__face,
  .fel-aspect-card__flip:focus-visible .fel-aspect-card__face {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  }
}
