/* Account Hub — Vikinger layout patterns (TEMPLATEprivate), Saint Life brand */

.sl-hub {
  --hub-ink: #1d1e2c;
  --hub-muted: #7c7e98;
  --hub-line: #e8e8ef;
  --hub-surface: #ffffff;
  --hub-page: #faf7f2;
  --hub-accent: var(--sl-interest, #960202); /* interest only: alerts, pins, attention chips */
  --hub-accent-soft: rgba(150, 2, 2, 0.07);
  --hub-gold: var(--sl-gold, #fbca5c);
  --hub-orange: var(--sl-orange, #eb9309);
  --hub-gold-deep: #b86f00; /* orange-brown for small gold-toned text on white */
  --hub-gold-soft: rgba(235, 147, 9, 0.1); /* warm tint; plain yellow tints read sickly */
  --hub-black: var(--sl-black, #0d0d0d);
  --hub-ok: #23875a;
  --hub-radius: 12px;
  --hub-shadow: 0 2px 14px rgba(29, 30, 44, 0.06);
  /* Ends in white so the footer's torn-paper edge (white PNG) blends in */
  background: linear-gradient(var(--hub-page) calc(100% - 180px), #fff);
  /* Top padding leaves room for the shield pop-out (Vikinger content-grid: 112px) */
  padding: 56px 0 100px;
  font-family: Barlow, sans-serif;
  color: var(--hub-ink);
  overflow: visible;
}

.sl-hub .container {
  max-width: 1140px;
  overflow: visible;
}

/* ── Compact app header (member pages) ────────────────────────
   The marketing header is ~142px tall (60px menu padding). Member pages
   use a slimmer bar, closer to the TEMPLATEprivate app header. */

body.sl-app .header--styleFour {
  border-bottom: 1px solid #ece9e2;
}

body.sl-app .mainMenu > ul > li,
body.sl-app .sticky-on.sticky .mainMenu > ul > li {
  padding: 24px 0;
}

body.sl-app .header__logo__image {
  max-height: 40px;
}

body.sl-app .header__button .btn--styleOne {
  padding: 11px 24px;
  font-size: 13px;
}

@media (max-width: 991px) {
  body.sl-app .header--mobile {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ece9e2;
  }

  body.sl-app .mean-bar__logo {
    max-width: 110px;
    height: auto;
  }
}

/* ── Banner (.section-banner) ─────────────────────────────────── */

.sl-hub-banner {
  min-height: 160px;
  padding: 52px 60px 0 200px;
  border-radius: var(--hub-radius);
  margin-bottom: 28px;
  position: relative;
  overflow: visible; /* allow shield to break above the banner */
  background:
    /* Black behind the title, easing to gold so the faces pattern shows through */
    linear-gradient(105deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.8) 36%, rgba(13, 13, 13, 0.3) 58%, rgba(235, 147, 9, 0.2) 80%, rgba(235, 147, 9, 0.7) 100%),
    url("../image/hub/banner-bg.png") no-repeat center / cover;
  box-shadow: 0 8px 24px rgba(13, 13, 13, 0.14);
}

.sl-hub-banner__icon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  max-width: none;
  pointer-events: none;
  z-index: 2;
  /* Template shield is violet/cyan — greyscale keeps it neutral against the black/orange banner */
  filter: grayscale(1) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.sl-hub-banner__title {
  margin: 0;
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

.sl-hub-banner__text {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Area pages: Churches › Wales › Swansea above the heading */
.sl-hub-banner--trail {
  padding-top: 30px;
}

.sl-hub-banner__trail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sl-hub-banner__trail a {
  color: #fbca5c;
  text-decoration: none;
}

.sl-hub-banner__trail a:hover,
.sl-hub-banner__trail a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 991px) {
  .sl-hub-banner__trail {
    margin-bottom: 4px;
    font-size: 0.6875rem;
  }
}

/* ── Layout ───────────────────────────────────────────────────── */

.sl-hub-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sl-hub-sidebar {
  position: sticky;
  top: 96px;
}

.sl-hub-sidebar__box {
  background: var(--hub-surface);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow);
  overflow: hidden;
}

/* Member summary */
.sl-hub-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--hub-line);
}

.sl-hub-member__copy {
  min-width: 0;
}

.sl-hub-member__name {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hub-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Menu */
.sl-hub-menu {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.sl-hub-menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-left: 3px solid transparent;
  color: var(--hub-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.sl-hub-menu__link i {
  width: 18px;
  text-align: center;
  color: var(--hub-muted);
  transition: color 0.15s ease;
}

.sl-hub-menu__link:hover,
.sl-hub-menu__link.is-active {
  color: var(--hub-black);
  background: var(--hub-gold-soft);
}

.sl-hub-menu__link.is-active {
  border-left-color: var(--hub-orange);
}

.sl-hub-menu__link:hover i,
.sl-hub-menu__link.is-active i {
  color: var(--hub-orange);
}

.sl-hub-menu__link--logout {
  margin-top: 8px;
  border-top: 1px solid var(--hub-line);
  padding-top: 16px;
  color: var(--hub-muted);
}

/* ── Shared pieces ────────────────────────────────────────────── */

.sl-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hub-black);
  color: var(--hub-gold);
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  /* Halo: black until the member is community-verified (see .sl-avatar--halo) */
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hub-black);
}

.sl-avatar--halo {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hub-gold);
}

.sl-avatar--sm {
  width: 46px;
  height: 46px;
  font-size: 1.05rem;
}

.sl-avatar--lg {
  width: 104px;
  height: 104px;
  font-size: 2.1rem;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--hub-black);
}

.sl-avatar--lg.sl-avatar--halo {
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--hub-gold), 0 0 18px 4px rgba(251, 202, 92, 0.45);
}

.sl-halo-note {
  margin: 10px 0 0;
  color: var(--hub-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.sl-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0f0f5;
  color: var(--hub-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sl-chip--verified {
  background: rgba(35, 135, 90, 0.1);
  color: var(--hub-ok);
}

.sl-chip--pending,
.sl-chip--gold,
.sl-chip--unverified {
  background: rgba(235, 147, 9, 0.14);
  color: #7a4300;
}

/* Marks a church the member administers, so the admin panel is one click away. */
.sl-chip--admin {
  background: rgba(13, 13, 13, 0.08);
  color: #0d0d0d;
}

.sl-chip--attention {
  background: var(--hub-accent-soft);
  color: var(--hub-accent);
}

.sl-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sl-hub-btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.85rem;
}

.sl-hub-btn--primary {
  background: var(--hub-gold);
  color: var(--hub-black);
  box-shadow: 0 8px 18px rgba(235, 147, 9, 0.28);
}

.sl-hub-btn--primary:hover {
  background: var(--hub-orange);
  color: var(--hub-black);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 13, 13, 0.22);
}

.sl-hub-btn--ghost {
  background: #fff;
  color: var(--hub-ink);
  border: 1px solid var(--hub-line);
}

.sl-hub-btn--ghost:hover {
  color: var(--hub-black);
  border-color: var(--hub-orange);
}

.sl-hub-btn--gold {
  background: var(--hub-black);
  color: var(--hub-gold);
}

.sl-hub-btn--gold:hover {
  background: var(--hub-orange);
  color: var(--hub-black);
}

.sl-hub-btn:focus-visible,
.sl-hub-menu__link:focus-visible,
.sl-widget__link:focus-visible {
  outline: 3px solid var(--hub-gold-deep);
  outline-offset: 2px;
}

/* ── Content column ───────────────────────────────────────────── */

.sl-hub-content__header {
  margin-bottom: 18px;
}

.sl-hub-content__pretitle {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-gold-deep);
}

.sl-hub-content__title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 1.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--hub-black);
}

.sl-hub-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff4f4;
  border-left: 4px solid var(--hub-accent);
  color: var(--hub-ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.sl-hub-alert--success {
  background: #f1faf5;
  border-left-color: var(--hub-ok);
}

.sl-widget {
  background: var(--hub-surface);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow);
  padding: 28px 28px 10px;
  margin-bottom: 20px;
  scroll-margin-top: 96px;
}

.sl-widget__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sl-widget__head .sl-widget__title {
  margin: 0;
}

.sl-widget__title {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hub-ink);
}

.sl-widget__lead {
  margin: -10px 0 20px;
  color: var(--hub-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sl-widget__count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hub-muted);
}

.sl-widget__link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hub-black);
  text-decoration: underline;
  text-decoration-color: var(--hub-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.sl-widget__link:hover {
  color: var(--hub-gold-deep);
}

.sl-widget .sl-hub-actions {
  margin-bottom: 18px;
}

.sl-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 20px;
}

/* ── Overview: profile card (.user-short-description) ─────────── */

.sl-profile-card {
  background: var(--hub-surface);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.sl-profile-card__cover {
  height: 110px;
  background:
    linear-gradient(105deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.8) 36%, rgba(13, 13, 13, 0.3) 58%, rgba(235, 147, 9, 0.2) 80%, rgba(235, 147, 9, 0.7) 100%),
    url("../image/hub/banner-bg.png") center / cover;
}

.sl-profile-card__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 0 28px 24px;
  margin-top: -44px;
}

/* Name and actions start below the cover; only the avatar overlaps it */
.sl-profile-card__identity,
.sl-profile-card__actions {
  padding-top: 58px;
}

.sl-profile-card__name {
  margin: 0 0 4px;
  font-family: Oswald, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--hub-black);
}

.sl-profile-card__meta {
  margin: 0 0 10px;
  color: var(--hub-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.sl-profile-card__meta i {
  color: var(--hub-accent);
  margin-right: 4px;
}

.sl-profile-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-profile-card__actions {
  display: flex;
  gap: 10px;
}

/* ── Overview: set-up steps ───────────────────────────────────── */

.sl-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.sl-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--hub-line);
}

.sl-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.sl-step__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--hub-line);
  color: var(--hub-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.sl-step.is-done .sl-step__mark {
  border-color: var(--hub-gold);
  background: var(--hub-gold);
  color: var(--hub-black);
}

.sl-step__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.sl-step.is-done .sl-step__title {
  color: var(--hub-muted);
  text-decoration: line-through;
}

.sl-step__text {
  margin: 2px 0 0;
  color: var(--hub-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.sl-step__action {
  margin: 0;
}

/* ── Overview: details list ───────────────────────────────────── */

.sl-details {
  margin: 0 0 16px;
}

.sl-details__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--hub-line);
}

.sl-details__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.sl-details dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.sl-details dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.sl-details .sl-details__vis {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hub-muted);
  white-space: nowrap;
}

.sl-details .sl-details__vis::before {
  content: "\f06e"; /* eye */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
}

/* ── Overview: connections ────────────────────────────────────── */

.sl-connections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.sl-connection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
}

.sl-connection__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sl-connection__body {
  min-width: 0;
  width: 100%;
}

.sl-connection__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hub-gold-soft);
  color: var(--hub-orange);
}

.sl-connection__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.sl-connection__empty {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hub-ink);
}

.sl-connection__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.sl-connection__list--blocks {
  gap: 8px;
}

.sl-connection__list .sl-chip {
  margin-left: 4px;
  padding: 1px 7px;
  font-size: 0.64rem;
}

.sl-connection__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  background: #faf8f4;
  color: var(--hub-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sl-connection__list--blocks .sl-connection__btn {
  margin-top: 0;
}

.sl-connection__btn:hover {
  border-color: #0d0d0d;
  background: #fff;
  color: #0d0d0d;
}

.sl-connection__btn-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.sl-connection__btn-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hub-muted);
  letter-spacing: 0.02em;
}

.sl-connection__action {
  margin: 10px 0 0;
  font-size: 0.84rem;
  font-weight: 600;
}


/* ── Forms ────────────────────────────────────────────────────── */

.sl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.sl-form-row--one {
  grid-template-columns: 1fr;
}

.sl-form-row--half {
  grid-template-columns: minmax(0, 1fr) 1fr;
}

.sl-form-row--half > :only-child {
  grid-column: 1;
}

.sl-field {
  margin-bottom: 4px;
}

.sl-field-hint {
  margin: -8px 0 20px;
  color: var(--hub-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sl-input {
  position: relative;
}

.sl-input label {
  position: absolute;
  top: 18px;
  left: 18px;
  margin: 0;
  color: var(--hub-muted);
  font-size: 0.95rem;
  font-weight: 600;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1;
}

.sl-input input,
.sl-input select,
.sl-input textarea {
  width: 100%;
  min-height: 54px;
  padding: 18px 18px 10px;
  border: 1px solid #dedeea;
  border-radius: 12px;
  background: #fff;
  color: var(--hub-ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sl-input textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 26px;
}

.sl-input select,
.sl-vis__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238f91ac' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.sl-input input:focus,
.sl-input select:focus,
.sl-input textarea:focus,
.sl-vis__select:focus {
  outline: none;
  border-color: var(--hub-gold-deep);
  box-shadow: 0 0 0 3px var(--hub-gold-soft);
}

.sl-input input:disabled {
  background: #f7f7fb;
  color: var(--hub-muted);
  cursor: not-allowed;
}

.sl-input.is-active label,
.sl-input:focus-within label,
.sl-input:has(input:not(:placeholder-shown)) label,
.sl-input:has(textarea:not(:placeholder-shown)) label,
.sl-input:has(select) label,
.sl-input--select label {
  top: -7px;
  left: 12px;
  padding: 0 6px;
  font-size: 0.72rem;
  background: #fff;
  color: var(--hub-muted);
}

.sl-input input:disabled + label,
.sl-input:has(input:disabled) label {
  background: linear-gradient(#fff 50%, #f7f7fb 50%);
}

/* Field + "who can see this" pairing */
.sl-vis-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.sl-vis-row--top {
  align-items: start;
}

.sl-vis-row--solo {
  margin-top: -6px;
}

.sl-vis-row__text {
  justify-self: end;
  color: var(--hub-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.sl-vis {
  position: relative;
}

.sl-vis__label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  margin: 0;
  color: var(--hub-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.sl-vis-row--top .sl-vis__label {
  top: 22px;
}

.sl-vis__select {
  width: 100%;
  min-height: 44px;
  padding: 0 34px 0 38px;
  border: 1px dashed #d4d4e2;
  border-radius: 10px;
  background-color: #fafafc;
  background-position: right 12px center;
  color: var(--hub-ink);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.sl-vis--locked {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f7f7fb;
  color: var(--hub-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.sl-vis-legend {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--hub-radius);
  background: #fff;
  border: 1px solid var(--hub-line);
  border-left: 4px solid var(--hub-orange);
  color: var(--hub-ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sl-vis-legend i {
  margin-top: 3px;
  color: var(--hub-orange);
}

.sl-vis-legend p {
  margin: 0;
}

.sl-form-footer {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--hub-radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(29, 30, 44, 0.14);
}

.sl-form-footer--inline {
  position: static;
  padding: 4px 0 20px;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991px) {
  .sl-hub {
    padding-top: 56px;
  }

  .sl-hub-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  /* Match Vikinger ≤960px section-banner scaling — keep pop-out, don't hide the icon */
  .sl-hub-banner {
    min-height: 86px;
    padding: 18px 20px 14px 108px;
    margin-bottom: 18px;
  }

  .sl-hub-banner__icon {
    width: 92px;
    height: 86px;
    object-fit: contain;
    object-position: left bottom;
  }

  .sl-hub-banner__title {
    font-size: 1.5rem;
  }

  .sl-hub-banner__text {
    margin-top: 6px;
    font-size: 0.75rem;
  }

  /* Sidebar becomes a tab strip */
  .sl-hub-sidebar {
    position: static;
  }

  .sl-hub-member {
    display: none;
  }

  .sl-hub-menu {
    flex-direction: row;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sl-hub-menu::-webkit-scrollbar {
    display: none;
  }

  .sl-hub-menu__link {
    flex: 1 0 auto;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    font-size: 0.88rem;
  }

  .sl-hub-menu__link.is-active {
    border-bottom-color: var(--hub-orange);
  }

  .sl-hub-menu__link--logout {
    position: relative;
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 14px;
    border-top: 0;
    border-left: 1px solid var(--hub-line);
  }

  .sl-connections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .sl-form-row,
  .sl-form-row--half {
    grid-template-columns: 1fr;
  }

  .sl-vis-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sl-vis-row__text {
    justify-self: start;
  }

  .sl-vis-row--solo {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .sl-widget {
    padding: 22px 18px 6px;
  }

  .sl-hub-content__title {
    font-size: 1.5rem;
  }

  .sl-hub-banner__text {
    display: none;
  }

  .sl-hub-banner {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .sl-hub-menu__link span {
    font-size: 0.82rem;
  }

  /* Icon-only on phones; label stays for screen readers */
  .sl-hub-menu__link--logout span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sl-profile-card__body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0 18px 22px;
  }

  .sl-profile-card__identity,
  .sl-profile-card__actions {
    padding-top: 0;
  }

  .sl-profile-card__chips,
  .sl-profile-card__actions {
    justify-content: center;
  }

  .sl-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .sl-step__action {
    grid-column: 2;
    justify-self: start;
  }

  .sl-details__row {
    grid-template-columns: 1fr auto;
  }

  .sl-details dt {
    grid-column: 1 / -1;
  }

  .sl-form-footer {
    bottom: 10px;
  }

  .sl-form-footer .sl-hub-btn {
    flex: 1;
  }
}

/* ── People lists (vouchers, church members, admins, claims) ──── */

.sl-people {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.sl-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--hub-line);
}

.sl-person:first-child {
  border-top: 0;
  padding-top: 4px;
}

.sl-person .sl-avatar--sm {
  margin: 5px;
}

.sl-person__name {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hub-ink);
}

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

.sl-person__name a:hover {
  color: var(--hub-accent);
}

.sl-person__meta {
  margin: 2px 0 0;
  color: var(--hub-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sl-person__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sl-person__actions form {
  margin: 0;
}

.sl-subhead {
  margin: 8px 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.sl-empty {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 10px;
  background: #faf8f4;
  color: var(--hub-muted);
  font-size: 0.9rem;
}

@media (max-width: 575px) {
  .sl-person {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sl-person__actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

.sl-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--hub-ink);
  cursor: pointer;
}

.sl-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--hub-black);
}

.sl-church-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1efe9;
  color: var(--hub-muted);
  font-size: 1.05rem;
}

.sl-church-mark.is-confirmed {
  background: var(--hub-black);
  color: var(--hub-gold);
}

/* ── Verification paths ───────────────────────────────────────── */

.sl-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .sl-paths {
    grid-template-columns: 1fr;
  }
}

.sl-path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: #fcfbf8;
}

.sl-path.is-done {
  border-color: rgba(251, 202, 92, 0.8);
  background: linear-gradient(180deg, rgba(251, 202, 92, 0.14), #fff);
}

.sl-path__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hub-black);
  color: var(--hub-gold);
}

.sl-path__title {
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--hub-ink);
}

.sl-path__text {
  margin: 0;
  color: var(--hub-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sl-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #ece9e2;
  overflow: hidden;
}

.sl-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hub-orange), var(--hub-gold));
}

.sl-copy {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.sl-copy input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px dashed #d4d4e2;
  border-radius: 10px;
  background: #fff;
  color: var(--hub-muted);
  font: inherit;
  font-size: 0.85rem;
}

/* Bible quiz personal bests */
.sl-quiz-bests {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sl-quiz-best {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f6f2;
  border: 1px solid #e8e4da;
}

.sl-quiz-best__copy {
  min-width: 0;
}

.sl-quiz-best__title {
  display: block;
  font-weight: 700;
  color: var(--hub-ink, #1d1e2c);
  text-decoration: none;
}

.sl-quiz-best__title:hover {
  color: #960202;
}

.sl-quiz-best__date {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hub-muted, #7c7e98);
}

.sl-quiz-best__score {
  text-align: right;
  flex-shrink: 0;
}

.sl-quiz-best__num {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0d0d0d;
}

.sl-quiz-best__pct {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hub-muted, #7c7e98);
}

/* ── Member media uploads + socials ──────────────────────────── */

.sl-avatar--photo {
  background-color: #ddd;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
}

.sl-profile-card__cover.has-photo {
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0.15) 0%, rgba(13, 13, 13, 0.35) 100%),
    center / cover no-repeat;
}

.sl-profile-card__sep {
  margin: 0 0.35em;
  opacity: 0.55;
}

.sl-socials {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f0f5;
  color: var(--hub-ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sl-socials__link:hover,
.sl-socials__link:focus-visible {
  background: var(--hub-black);
  color: var(--hub-gold);
}

.sl-media-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.sl-media-slot {
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  padding: 12px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sl-media-slot__label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.sl-media-slot__preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #ddd center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sl-media-slot__preview.is-portrait {
  aspect-ratio: 1;
  border-radius: 50%;
  max-width: 140px;
}

.sl-media-slot__preview.is-empty {
  background: #f1efe9;
  color: #b7b3a8;
  font-size: 1.6rem;
  border: 1px dashed #d9d4c7;
}

.sl-media-slot__form {
  margin: 0;
}

.sl-file {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.sl-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sl-file:focus-within .sl-hub-btn {
  box-shadow: 0 0 0 3px rgba(235, 147, 9, 0.35);
}

.sl-media-slot__remove {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-accent);
  text-decoration: underline;
  cursor: pointer;
}


/* ── HQ: group leader sign-ups (F1.7) ─────────────────────────── */

.sl-hq-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
}

.sl-hq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sl-hq-table th,
.sl-hq-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hub-line);
  text-align: right;
  white-space: nowrap;
}

.sl-hq-table th:first-child,
.sl-hq-table td:first-child {
  text-align: left;
  white-space: normal;
}

.sl-hq-table th {
  color: var(--hub-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sl-hq-table td .sl-person__meta {
  display: block;
}

.sl-hq-sub {
  margin: 8px 0 12px;
  font-size: 0.95rem;
}

.sl-hq-steps {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.sl-hq-steps li {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
}

.sl-hq-steps__bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1efe8;
}

.sl-hq-steps__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fbca5c;
}

.sl-hq-steps__n {
  font-weight: 700;
  text-align: right;
}

.sl-hq-steps__n small {
  color: var(--hub-muted);
  font-weight: 500;
}

/* ── HQ: take something down ──────────────────────────────────── */

.sl-hub-btn--danger {
  background: var(--hub-accent);
  color: #fff;
}

.sl-hub-btn--danger:hover {
  background: #6f0101;
  color: #fff;
}

.sl-hq-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--hub-accent-soft);
  color: #5a0a0a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sl-hq-warning i {
  margin-top: 3px;
  color: var(--hub-accent);
}

.sl-hq-warning a {
  color: var(--hub-accent);
  font-weight: 700;
}

.sl-hq-find {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.sl-hq-find input {
  flex: 1 1 260px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  font: inherit;
}

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

.sl-hq-post.is-focus {
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--hub-accent);
}

.sl-hq-post__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sl-hq-takedown {
  margin-top: 8px;
}

.sl-hq-takedown > summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.sl-hq-takedown > summary::-webkit-details-marker {
  display: none;
}

.sl-hq-takedown__form {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.9rem;
}

.sl-hq-takedown__form label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.sl-hq-takedown__form select,
.sl-hq-takedown__form input[type="text"] {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}

.sl-hq-takedown__form .sl-hq-takedown__ban {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
}

.sl-hq-takedown__form button {
  justify-self: start;
}

.sl-hq-takedown__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
}

.sl-hq-takedown__actions form {
  margin: 0;
}

.sl-hq-takedown__actions .sl-hq-takedown {
  margin-top: 0;
}

/* "HQ: take down" at the top of a group, event or church page, for platform admins */
.sl-hq-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px dashed var(--hub-accent);
  border-radius: 10px;
  color: #5a0a0a;
  font-size: 0.85rem;
  font-weight: 600;
}

.sl-hq-bar a {
  color: var(--hub-accent);
  font-weight: 800;
}

/* The take-down form fits its card on a phone */
.sl-hq-takedown__form {
  width: 100%;
  box-sizing: border-box;
}

.sl-hq-takedown__form select,
.sl-hq-takedown__form input[type="text"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Grid items won't shrink below their content unless told to */
.sl-hq-takedown__form {
  grid-template-columns: minmax(0, 1fr);
}

.sl-hq-takedown__form > * {
  min-width: 0;
}

@media (max-width: 575px) {
  /* Kind label above the item, so the form gets the card's full width */
  .sl-person.sl-hq-post {
    grid-template-columns: minmax(0, 1fr);
  }

  .sl-hq-post .sl-chip {
    justify-self: start;
  }

  .sl-hq-takedown__form {
    padding: 12px;
  }
}
