/* P346 Social — app look (Facebook-familiar layout in P346 black and gold). */
:root {
  color-scheme: light;
  --sa-bg: #efece4;
  --sa-card: #fff;
  --sa-ink: #1c2433;
  --sa-ink-2: #4a505c;
  --sa-muted: #65676b;
  --sa-line: #e6e1d6;
  --sa-soft: #f1eee6;
  --sa-hover: #e9e5db;
  --sa-button: #e8e4da;
  --sa-border: #d6d0c2;
  --sa-gold: #c6a34a;
  --sa-gold-dark: #7a5a12;
  --sa-gold-soft: #f6e7b8;
  --sa-prayer: #fbf3dc;
  --sa-prayer-ink: #1c2433;
  --sa-unread: #fbf6e6;
  --sa-danger: #8a1c12;
  --sa-danger-bg: #fbe3df;
  --sa-ok: #1f5a37;
  --sa-black: #000;
  --sa-backdrop: rgba(239, 236, 228, 0.75);
  --sa-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  --sa-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.18);
  --sa-skeleton: linear-gradient(90deg, #ece8de 0%, #f5f2ea 50%, #ece8de 100%);
}
/* Dark mode: chosen in Settings (on / automatic). The class is set before the page paints. */
html.sa-dark {
  color-scheme: dark;
  --sa-bg: #18191a;
  --sa-card: #242526;
  --sa-ink: #e4e6eb;
  --sa-ink-2: #c9ccd1;
  --sa-muted: #b0b3b8;
  --sa-line: #3a3b3c;
  --sa-soft: #3a3b3c;
  --sa-hover: #3a3b3c;
  --sa-button: #3a3b3c;
  --sa-border: #4e4f50;
  --sa-gold: #d4b35c;
  --sa-gold-dark: #e2c46e;
  --sa-gold-soft: #4a3f22;
  --sa-prayer: #2f2a1c;
  --sa-prayer-ink: #f1e6c8;
  --sa-unread: #2c2a22;
  --sa-danger: #ff8a80;
  --sa-danger-bg: #4a2522;
  --sa-ok: #7fd39b;
  --sa-backdrop: rgba(0, 0, 0, 0.7);
  --sa-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sa-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.6);
  --sa-skeleton: linear-gradient(90deg, #303132 0%, #3a3b3c 50%, #303132 100%);
}
* {
  box-sizing: border-box;
}
body.sa {
  margin: 0;
  background: var(--sa-bg);
  color: var(--sa-ink);
  font: 400 15px/1.45 Inter, Arial, sans-serif;
}
.sa a {
  color: inherit;
}
.sa button,
.sa input,
.sa select,
.sa textarea {
  font: inherit;
  color: inherit;
}
.sa [hidden] {
  display: none !important;
}
.sa a.sa-avatar {
  color: #fff;
}
.sa-hide {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sa-skip {
  position: absolute;
  left: -9999px;
}
.sa-skip:focus {
  left: 8px;
  top: 8px;
  z-index: 50;
  background: #fff;
  padding: 8px 12px;
}
.sa :focus-visible {
  outline: 3px solid var(--sa-gold);
  outline-offset: 2px;
}

/* ---------- Top bar ---------- */
.sa-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sa-black);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 0 16px;
  min-height: 60px;
  border-bottom: 3px solid var(--sa-gold);
}
.sa-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 57px;
}
.sa-logo {
  display: flex;
  align-items: center;
}
.sa-logo img {
  height: 33px;
  width: auto;
  display: block;
}
.sa-search input {
  height: 40px;
  width: 240px;
  border: 0;
  border-radius: 999px;
  background: #26282c;
  color: #fff;
  padding: 0 16px;
}
.sa-search input::placeholder {
  color: #c9c4b8;
}
.sa-nav {
  display: flex;
  gap: 4px;
}
.sa-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 57px;
  color: #c9c4b8;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  border-radius: 8px 8px 0 0;
}
.sa-nav a:hover {
  background: #1a1b1e;
  color: #fff;
}
.sa-nav a[aria-current='page'] {
  color: var(--sa-gold);
  border-bottom-color: var(--sa-gold);
}
.sa-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-round {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #26282c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.sa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--sa-gold);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-top-links {
  display: flex;
  gap: 8px;
}
.sa-top-links a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #555;
}
.sa-top-links a.sa-primary-link {
  background: var(--sa-gold);
  border-color: var(--sa-gold);
  color: #000;
}

/* ---------- Avatars ---------- */
.sa-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 4px; /* every member picture is square, like classic Facebook */
  background: #3a3f4a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}
.sa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-avatar.sa-sm {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  font-size: 12px;
}
.sa-avatar.sa-xs {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  font-size: 11px;
}
.sa-avatar.sa-xl {
  width: 160px;
  height: 160px;
  font-size: 54px;
  border-radius: 6px; /* the big profile picture is square, like classic Facebook */
  border: 1px solid var(--sa-line);
}
.sa-round.sa-me {
  border-radius: 6px;
  border: 2px solid var(--sa-gold);
  background: #3a3f4a;
  font-weight: 700;
  overflow: hidden;
  padding: 0;
}
.sa-round.sa-me img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Layout ---------- */
.sa-wrap {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 16px 48px;
  max-width: 1360px;
  margin: 0 auto;
}
.sa-left {
  flex: 0 1 280px;
  position: sticky;
  top: 84px;
}
.sa-right {
  flex: 0 1 320px;
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sa-main {
  flex: 0 1 680px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body[data-social-page='guidelines'] .sa-main,
body[data-social-page='settings'] .sa-main,
body[data-social-page='profile'] .sa-main,
body[data-social-page='group'] .sa-main {
  flex-basis: 940px;
}
.sa-left:empty,
.sa-right:empty {
  display: none;
}
.sa-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 500;
}
.sa-shortcuts a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  min-height: 52px;
}
.sa-shortcuts a:hover,
.sa-shortcuts a[aria-current='page'] {
  background: var(--sa-hover);
}
.sa-shortcuts .sa-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sa-shortcuts hr {
  border: 0;
  border-top: 1px solid var(--sa-border);
  margin: 10px 8px;
}
.sa-shortcuts .sa-small-head {
  margin: 0 8px 4px;
  font-size: 13px;
  color: var(--sa-muted);
  font-weight: 600;
}
.sa-shortcuts .sa-plain {
  min-height: 40px;
}

/* ---------- Cards ---------- */
.sa-card {
  background: var(--sa-card);
  border-radius: 10px;
  box-shadow: var(--sa-shadow);
  padding: 14px 16px;
}
.sa-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
}
.sa-loading,
.sa-muted {
  color: var(--sa-muted);
}
.sa-reading h1 {
  font: 700 30px/1.2 'Playfair Display', Georgia, serif;
  margin: 6px 0 14px;
}
.sa-reading h2 {
  font-size: 18px;
  margin: 22px 0 6px;
}
.sa-reading p {
  margin: 0 0 10px;
}
.social-verse {
  color: var(--sa-gold-dark);
}
.social-closing {
  margin-top: 1.6em !important;
  font-weight: 600;
}
.sa-hero {
  text-align: center;
  padding: 36px 24px;
}
.sa-hero h1 {
  font: 700 34px/1.2 'Playfair Display', Georgia, serif;
  margin: 0 0 12px;
}
.sa-hero p {
  font-size: 17px;
  max-width: 34rem;
  margin: 0 auto 14px;
}

/* ---------- Buttons ---------- */
.sa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  background: var(--sa-gold);
  color: #000 !important;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.sa-btn:hover {
  filter: brightness(0.95);
}
.sa-btn.sa-quiet {
  background: var(--sa-button);
}
.sa-btn.sa-danger {
  background: var(--sa-danger-bg);
  color: var(--sa-danger) !important;
}
.sa-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.sa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.sa-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  color: inherit;
}

/* ---------- Forms ---------- */
.sa-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sa-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sa-field label {
  font-weight: 600;
}
.sa-field small {
  color: var(--sa-muted);
}
.sa-field input,
.sa-field select,
.sa-field textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  background: var(--sa-card);
  width: 100%;
}
.sa-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.sa-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #000;
}
.sa-status {
  margin: 0;
  min-height: 1.2em;
}
.sa-status:empty {
  display: none;
}
.sa-error {
  color: var(--sa-danger);
  font-weight: 600;
}
.sa-ok {
  color: var(--sa-ok);
  font-weight: 600;
}
.sa-notice {
  background: var(--sa-gold-soft);
  border-radius: 8px;
  padding: 10px 14px;
}
.sa-hp {
  position: absolute;
  left: -10000px;
}

/* ---------- Welcome (signed out) ---------- */
.sa-welcome {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.sa-welcome-copy {
  flex: 1 1 320px;
  max-width: 480px;
}
.sa-welcome-copy h1 {
  font: 700 40px/1.15 'Playfair Display', Georgia, serif;
  margin: 0 0 14px;
}
.sa-welcome-copy p {
  font-size: 18px;
  margin: 0 0 10px;
}
.sa-welcome .sa-card {
  flex: 1 1 320px;
  max-width: 400px;
  padding: 20px;
}

/* ---------- Composer ---------- */
.sa-composer-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sa-composer-open {
  flex: 1;
  text-align: left;
  min-height: 42px;
  border-radius: 999px;
  border: 0;
  background: var(--sa-soft);
  color: var(--sa-muted);
  font-size: 16px;
  padding: 0 16px;
  cursor: pointer;
}
.sa-composer-open:hover {
  background: var(--sa-hover);
}
.sa-composer-tools {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--sa-line);
  margin-top: 12px;
  padding-top: 6px;
}
.sa-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--sa-ink-2);
  cursor: pointer;
}
.sa-tool:hover {
  background: var(--sa-soft);
}
.sa-compose textarea {
  width: 100%;
  min-height: 110px;
  border: 0;
  resize: vertical;
  font-size: 18px;
  padding: 6px 2px;
  outline: none;
}
.sa-compose.sa-prayer-mode textarea {
  background: var(--sa-prayer);
  border-radius: 8px;
  padding: 14px;
  font-family: 'Playfair Display', Georgia, serif;
}
.sa-compose-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sa-compose-head strong {
  display: block;
}
.sa-compose-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--sa-line);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 8px 0;
}
.sa-compose-extras select {
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 8px;
  background: var(--sa-card);
}
.sa-previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.sa-previews figure {
  margin: 0;
  position: relative;
}
.sa-previews img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.sa-previews button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}

/* ---------- Posts ---------- */
.sa-post {
  padding: 0;
}
.sa-post-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px 0;
}
.sa-post-who {
  flex: 1;
  min-width: 0;
}
.sa-post-who a {
  font-weight: 700;
  text-decoration: none;
}
.sa-post-who a:hover {
  text-decoration: underline;
}
.sa-post-meta {
  font-size: 13px;
  color: var(--sa-muted);
}
.sa-post-meta a {
  font-weight: 400 !important;
}
.sa-post-text {
  margin: 10px 16px 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.sa-post-text.sa-big {
  font-size: 22px;
  line-height: 1.3;
}
.sa-prayer-card {
  margin: 10px 16px 12px;
  color: var(--sa-prayer-ink);
  background: var(--sa-prayer);
  border-radius: 8px;
  padding: 18px;
  font: 400 19px/1.45 'Playfair Display', Georgia, serif;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sa-prayer-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--sa-gold-dark);
  background: var(--sa-gold-soft);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 4px;
  vertical-align: 1px;
}
.sa-photos {
  display: grid;
  gap: 3px;
  background: #000;
}
.sa-photos a {
  display: block;
}
.sa-photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--sa-soft);
}
.sa-photos.sa-n1 img {
  max-height: 600px;
  object-fit: contain;
  background: var(--sa-soft);
}
.sa-photos.sa-n2,
.sa-photos.sa-n4 {
  grid-template-columns: 1fr 1fr;
}
.sa-photos.sa-n2 img,
.sa-photos.sa-n4 img {
  aspect-ratio: 1;
}
.sa-photos.sa-n3 {
  grid-template-columns: 1fr 1fr;
}
.sa-photos.sa-n3 a:first-child {
  grid-column: 1 / 3;
}
.sa-photos.sa-n3 a:first-child img {
  aspect-ratio: 2;
}
.sa-photos.sa-n3 a:not(:first-child) img {
  aspect-ratio: 1;
}
.sa-counts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--sa-muted);
  gap: 10px;
}
.sa-counts button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.sa-counts button:hover {
  text-decoration: underline;
}
.sa-emojis {
  display: inline-flex;
  margin-right: 6px;
  vertical-align: -4px;
}
.sa-emojis span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sa-card);
  border: 1px solid var(--sa-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: -4px;
}
.sa-emojis span:first-child {
  margin-left: 0;
}
.sa-bar {
  display: flex;
  border-top: 1px solid var(--sa-line);
  margin: 0 16px;
  padding: 4px 0;
}
.sa-bar > button,
.sa-bar > .sa-react-wrap > button {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: none;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--sa-ink-2);
  cursor: pointer;
}
.sa-react-wrap {
  flex: 1;
  position: relative;
  display: flex;
}
.sa-bar button:hover {
  background: var(--sa-soft);
}
.sa-bar button.sa-on {
  color: var(--sa-gold-dark);
}
.sa-bar button.sa-praying.sa-on {
  background: var(--sa-gold-soft);
  color: #000;
}
.sa-picker {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  z-index: 10;
  display: flex;
  gap: 2px;
  background: var(--sa-card);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 4px 6px;
}
.sa-picker[hidden] {
  display: none;
}
.sa-picker button {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.12s;
}
.sa-picker button:hover,
.sa-picker button:focus-visible {
  transform: scale(1.25);
}
.sa-menu-wrap {
  position: relative;
}
.sa-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 15;
  min-width: 210px;
  background: var(--sa-card);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.sa-menu[hidden] {
  display: none;
}
.sa-menu button,
.sa-menu a {
  text-align: left;
  border: 0;
  background: none;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--sa-ink);
}
.sa-menu button:hover,
.sa-menu a:hover {
  background: var(--sa-soft);
}
.sa-dots {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 20px;
  color: var(--sa-muted);
  cursor: pointer;
}
.sa-dots:hover {
  background: var(--sa-soft);
}

.sa-post-text a {
  color: var(--sa-gold-dark);
  overflow-wrap: anywhere;
}
.sa-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-top: 2px;
}
.sa-video.sa-video-tall {
  aspect-ratio: 9 / 16;
  width: min(100%, 360px);
  margin: 2px auto 0;
}
.sa-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sa-video-preview:empty {
  display: none;
}
.sa-video-preview {
  margin: 8px 0;
}
.sa-video-preview p {
  margin: 0 0 6px;
  font-size: 14px;
}
.sa-video-preview .sa-video {
  border-radius: 8px;
  overflow: hidden;
}

.sa-video-add {
  border: 1px solid var(--sa-line);
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sa-video-add label {
  font-size: 14px;
  font-weight: 600;
}
.sa-video-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sa-video-add-row input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
}

.sa-staff-badge {
  display: inline-block;
  margin-left: 6px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: #000;
  color: var(--sa-gold);
  font: 700 10px/1.6 Inter, Arial, sans-serif;
  letter-spacing: 0.08em;
  vertical-align: 2px;
  white-space: nowrap;
}
h1 .sa-staff-badge {
  font-size: 13px;
  vertical-align: 6px;
}

/* ---------- Comments ---------- */
.sa-comments {
  border-top: 1px solid var(--sa-line);
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sa-comments[hidden] {
  display: none;
}
.sa-comment {
  display: flex;
  gap: 8px;
}
.sa-comment-body {
  min-width: 0;
  max-width: 100%;
}
.sa-bubble {
  position: relative;
  display: inline-block;
  max-width: 100%;
  background: var(--sa-soft);
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sa-bubble strong {
  display: block;
  font-size: 13px;
  white-space: normal;
}
.sa-bubble strong a {
  text-decoration: none;
}
.sa-bubble-count {
  position: absolute;
  right: -10px;
  bottom: -10px;
  background: var(--sa-card);
  border-radius: 999px;
  box-shadow: var(--sa-shadow);
  padding: 1px 6px;
  font-size: 12px;
  white-space: nowrap;
}
.sa-comment-links {
  font-size: 12px;
  color: var(--sa-muted);
  font-weight: 600;
  margin: 4px 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}
.sa-comment-links button {
  background: none;
  border: 0;
  padding: 4px 0;
  font-weight: 600;
  color: var(--sa-muted);
  cursor: pointer;
  min-height: 28px;
}
.sa-comment-links button.sa-on {
  color: var(--sa-gold-dark);
}
.sa-comment-links .sa-react-wrap {
  flex: none;
}
.sa-comment-links .sa-picker {
  left: -10px;
}
.sa-replies {
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.sa-write {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.sa-write form {
  flex: 1;
  display: flex;
  gap: 6px;
}
.sa-write textarea {
  flex: 1;
  min-height: 38px;
  height: 38px;
  border-radius: 18px;
  border: 0;
  background: var(--sa-soft);
  padding: 8px 14px;
  resize: none;
  font-size: 14px;
}
.sa-write button {
  border: 0;
  background: var(--sa-gold);
  border-radius: 18px;
  font-weight: 700;
  padding: 0 14px;
  min-height: 38px;
  cursor: pointer;
}

/* ---------- Side cards ---------- */
.sa-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
}
.sa-person div {
  flex: 1;
  min-width: 0;
}
.sa-person a {
  font-weight: 600;
  text-decoration: none;
}
.sa-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
}

/* ---------- Profile ---------- */
.sa-profile {
  padding: 0;
  overflow: hidden;
}
.sa-cover {
  height: 260px;
  background: linear-gradient(#2b2b2b, #000);
  position: relative;
}
.sa-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sa-profile-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  position: relative;
}
/* The square profile picture sits fully below the cover photo (classic Facebook), never over it. */
.sa-profile-row h1 {
  font: 700 30px/1.2 Inter, Arial, sans-serif;
  margin: 0;
}
.sa-profile-row .sa-grow {
  flex: 1;
  min-width: 200px;
  padding-bottom: 6px;
}
.sa-profile-about {
  border-top: 1px solid var(--sa-line);
  padding: 14px 24px 18px;
  white-space: pre-wrap;
}

/* ---------- Notifications ---------- */
.sa-note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
}
.sa-note:hover {
  background: var(--sa-soft);
}
.sa-note.sa-unread {
  background: var(--sa-unread);
}
.sa-note .sa-when {
  display: block;
  font-size: 13px;
  color: var(--sa-gold-dark);
  font-weight: 600;
}

/* ---------- Dialog ---------- */
.sa-dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  width: min(520px, calc(100% - 24px));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.sa-dialog::backdrop {
  background: var(--sa-backdrop);
}
.sa-dialog-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--sa-line);
  padding: 14px 48px;
}
.sa-dialog-head h2 {
  margin: 0;
  font-size: 20px;
}
.sa-dialog-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--sa-soft);
  font-size: 20px;
  cursor: pointer;
}
.sa-dialog-body {
  padding: 14px 16px 16px;
}

/* ---------- Narrow screens and phones ---------- */
@media (max-width: 1100px) {
  .sa-right {
    display: none;
  }
}
@media (max-width: 900px) {
  .sa-left {
    display: none;
  }
  .sa-nav a {
    width: 72px;
  }
}
@media (max-width: 700px) {
  .sa-top {
    padding: 0 10px;
  }
  .sa-top-left {
    min-height: 56px;
    flex: 1;
  }
  .sa-logo img {
    height: 30px;
  }
  .sa-search {
    display: none;
  }
  .sa-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .sa-nav a {
    flex: 1;
    width: auto;
    height: 48px;
  }
  .sa-wrap {
    padding: 8px 0 32px;
  }
  .sa-main {
    gap: 8px;
  }
  .sa-card {
    border-radius: 0;
  }
  .sa-cover {
    height: 170px;
  }
  .sa-avatar.sa-xl {
    width: 112px;
    height: 112px;
    font-size: 38px;
  }
  .sa-profile-row {
    padding: 12px 14px 14px;
    gap: 14px;
  }
  /* Phones: small labels under the icons, like Facebook's app. */
  .sa-tool {
    flex-direction: column;
    gap: 2px;
    padding: 6px 4px;
    font-size: 12px;
    flex: 1;
  }
  .sa-top-links a {
    padding: 8px 10px;
  }
}


/* =====================================================================
   Polish (Nov 2026): calmer colors, hover states, dialogs, toasts,
   skeletons, photo viewer, notification panel, who-reacted, profile
   tabs, right column, phone menu. Everything uses the theme variables
   above, so dark mode follows automatically.
   ===================================================================== */
body.sa {
  transition: background-color 0.2s;
}
.sa-field input,
.sa-field select,
.sa-field textarea,
.sa-compose textarea,
.sa-compose-extras select,
.sa-video-add-row input,
.sa-write textarea {
  color: var(--sa-ink);
}
.sa-field input,
.sa-field select,
.sa-field textarea,
.sa-video-add-row input {
  background: var(--sa-card);
}
.sa-compose textarea {
  background: transparent;
}
.sa-field input:focus,
.sa-field select:focus,
.sa-field textarea:focus {
  border-color: var(--sa-gold);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sa-gold) 30%, transparent);
}
/* Buttons: neutral by default (like Facebook's grey), gold only for the main action. */
.sa-btn.sa-quiet {
  background: var(--sa-button);
  color: var(--sa-ink) !important;
}
.sa-btn.sa-quiet:hover {
  filter: none;
  background: var(--sa-hover);
}
.sa-btn.sa-dark {
  background: var(--sa-ink);
  color: var(--sa-card) !important;
}
.sa-btn {
  transition: filter 0.12s, background-color 0.12s, transform 0.06s;
}
.sa-btn:active,
.sa-tool:active,
.sa-bar button:active {
  transform: scale(0.98);
}
.sa-card {
  border: 1px solid transparent;
}
html.sa-dark .sa-card {
  border-color: #2f3031;
}
.sa-post-who a:hover,
.sa-person a:hover,
.sa-bubble strong a:hover {
  text-decoration: underline;
}
.sa-post-meta a:hover {
  text-decoration: underline;
}
.sa-post-meta {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sa-audience {
  display: inline-flex;
  color: var(--sa-muted);
}
.sa-tool,
.sa-bar button,
.sa-dots,
.sa-composer-open,
.sa-shortcuts a,
.sa-menu a,
.sa-menu button {
  transition: background-color 0.12s;
}
.sa-nav a {
  transition: background-color 0.12s, color 0.12s;
}
.sa-photos img {
  transition: filter 0.15s;
}
.sa-photos a:hover img {
  filter: brightness(0.94);
}
.sa-photos a {
  cursor: zoom-in;
}
.sa-counts .sa-reactors {
  cursor: pointer;
  position: relative;
}
.sa-counts .sa-reactors:hover > span:last-child {
  text-decoration: underline;
}
.sa-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 180px;
  max-width: 260px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  pointer-events: none;
}
.sa-popover strong {
  display: block;
  margin-bottom: 2px;
}

/* Toasts (bottom-left, like Facebook) */
.sa-toasts {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sa-toast {
  background: var(--sa-ink);
  color: var(--sa-card);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: var(--sa-shadow-lg);
  font-weight: 600;
  max-width: min(360px, calc(100vw - 32px));
  animation: sa-toast-in 0.18s ease-out;
}
.sa-toast.sa-toast-error {
  background: var(--sa-danger-bg);
  color: var(--sa-danger);
}
.sa-toast.sa-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
@keyframes sa-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Confirm dialogs */
.sa-dialog {
  background: var(--sa-card);
  color: var(--sa-ink);
}
.sa-dialog-close {
  color: var(--sa-ink);
  background: var(--sa-button);
}
.sa-confirm .sa-dialog-body p {
  margin: 0 0 14px;
}
.sa-confirm .sa-actions {
  justify-content: flex-end;
}

/* Skeleton posts while loading */
.sa-skel {
  padding: 14px 16px;
}
.sa-skel-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.sa-skel i {
  display: block;
  border-radius: 6px;
  background: var(--sa-skeleton);
  background-size: 200% 100%;
  animation: sa-shimmer 1.2s linear infinite;
}
.sa-skel .sa-skel-av {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  flex: none;
}
@keyframes sa-shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sa-skel i,
  .sa-toast {
    animation: none;
  }
}

/* Photo viewer */
.sa-viewer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  color: #fff;
}
.sa-viewer::backdrop {
  background: #000;
}
.sa-viewer img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 90px);
  object-fit: contain;
  user-select: none;
}
.sa-viewer-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-viewer-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.sa-viewer-btn[hidden] {
  display: none;
}
.sa-viewer-close {
  top: 14px;
  right: 14px;
}
.sa-viewer-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.sa-viewer-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.sa-viewer-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #ddd;
}
.sa-viewer-who {
  position: absolute;
  top: 18px;
  left: 18px;
  font-weight: 600;
  color: #eee;
}

/* Notification panel under the bell */
.sa-bell-wrap {
  position: relative;
}
.sa-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 380px;
  max-width: calc(100vw - 16px);
  max-height: min(560px, calc(100vh - 90px));
  overflow-y: auto;
  background: var(--sa-card);
  color: var(--sa-ink);
  border-radius: 10px;
  box-shadow: var(--sa-shadow-lg);
  padding: 10px 8px;
}
.sa-panel[hidden] {
  display: none;
}
.sa-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 8px;
}
.sa-panel-head h2 {
  margin: 0;
  font-size: 22px;
}
.sa-panel-head a {
  font-size: 14px;
  color: var(--sa-gold-dark);
}
.sa-round.sa-open {
  background: var(--sa-gold-soft);
  color: var(--sa-gold);
}
html.sa-dark .sa-round.sa-open {
  color: var(--sa-gold);
}

/* Comment paging */
.sa-more-comments {
  background: none;
  border: 0;
  padding: 2px 0;
  font-weight: 600;
  color: var(--sa-muted);
  cursor: pointer;
  text-align: left;
}
.sa-more-comments:hover {
  text-decoration: underline;
}

/* Profile: tabs, Intro card, Photos grid */
.sa-tabs {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--sa-line);
  padding: 4px 16px;
}
.sa-tabs a {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--sa-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  border-radius: 6px 6px 0 0;
}
.sa-tabs a:hover {
  background: var(--sa-hover);
}
.sa-tabs a[aria-current='page'] {
  color: var(--sa-gold-dark);
  border-bottom-color: var(--sa-gold);
}
.sa-profile-body {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.sa-profile-body > aside {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sa-profile-body > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.sa-intro p {
  margin: 0 0 12px;
  white-space: pre-wrap;
  text-align: center;
}
.sa-intro ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sa-intro li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--sa-ink-2);
}
.sa-intro li svg {
  color: var(--sa-muted);
  flex: none;
}
.sa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
}
.sa-grid a {
  display: block;
  cursor: zoom-in;
}
.sa-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--sa-soft);
}
.sa-about dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
  margin: 0;
}
.sa-about dt {
  color: var(--sa-muted);
  font-weight: 600;
}
.sa-about dd {
  margin: 0;
  white-space: pre-wrap;
}

/* Right column cards */
.sa-side-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sa-side-head a {
  font-size: 14px;
  color: var(--sa-gold-dark);
}
.sa-give {
  background: #000;
  color: #fff;
}
.sa-give h2 {
  color: var(--sa-gold);
}
.sa-give p {
  margin: 0 0 12px;
  color: #e6e1d6;
  font-size: 14px;
}
.sa-story {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
}
.sa-story img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: var(--sa-soft);
}
.sa-story strong {
  display: block;
  margin-top: 8px;
}
.sa-story:hover strong {
  text-decoration: underline;
}
.sa-story small {
  color: var(--sa-muted);
}
.sa-side-foot {
  font-size: 12px;
  color: var(--sa-muted);
  padding: 0 4px;
}
.sa-side-foot a {
  color: var(--sa-muted);
}

/* Settings: appearance choice */
.sa-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sa-choice label {
  flex: 1 1 140px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
}
.sa-choice input {
  accent-color: var(--sa-gold);
  width: 18px;
  height: 18px;
  margin: 0;
}
.sa-choice label:has(input:checked) {
  border-color: var(--sa-gold);
  background: var(--sa-unread);
}

/* Dark mode details */
html.sa-dark .sa-top {
  border-bottom-color: var(--sa-gold);
}
html.sa-dark .sa-shortcuts a:hover,
html.sa-dark .sa-shortcuts a[aria-current='page'] {
  background: var(--sa-hover);
}
html.sa-dark .sa-shortcuts hr {
  border-top-color: var(--sa-line);
}
html.sa-dark .sa-emojis span,
html.sa-dark .sa-bubble-count {
  border-color: var(--sa-card);
}
html.sa-dark .sa-prayer-tag {
  color: var(--sa-gold);
}
html.sa-dark .sa-notice {
  color: var(--sa-ink);
}
html.sa-dark .sa-btn:not(.sa-quiet):not(.sa-danger):not(.sa-dark) {
  color: #000 !important;
}
html.sa-dark .sa-staff-badge {
  background: var(--sa-gold);
  color: #000;
}
html.sa-dark .sa-dialog::backdrop {
  background: var(--sa-backdrop);
}

@media (max-width: 1180px) {
  .sa-profile-body {
    grid-template-columns: 1fr;
  }
  .sa-profile-body > aside {
    position: static;
  }
}
/* Phones: full-screen Menu like the Facebook app; notification panel full width. */
@media (max-width: 700px) {
  .sa-top-right .sa-menu {
    position: fixed;
    inset: 107px 0 0 0;
    min-width: 0;
    border-radius: 0;
    padding: 12px;
    overflow-y: auto;
    background: var(--sa-bg);
    box-shadow: none;
    gap: 4px;
  }
  .sa-top-right .sa-menu a,
  .sa-top-right .sa-menu button {
    min-height: 52px;
    background: var(--sa-card);
    border-radius: 8px;
    padding: 0 16px;
    font-size: 16px;
    box-shadow: var(--sa-shadow);
  }
  .sa-menu .sa-menu-head {
    display: flex;
  }
  .sa-panel {
    position: fixed;
    inset: 107px 0 0 0;
    width: auto;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
  .sa-viewer img {
    max-width: 100vw;
    max-height: calc(100vh - 120px);
  }
  .sa-viewer-prev,
  .sa-viewer-next {
    top: auto;
    bottom: 10px;
    transform: none;
  }
  .sa-toasts {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .sa-tabs {
    padding: 4px 8px;
  }
  .sa-tabs a {
    padding: 12px 10px;
  }
}
.sa-menu-head {
  display: none;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

body[data-social-page='profile'] .sa-left,
body[data-social-page='group'] .sa-left {
  display: none;
}
.sa-menu .sa-phone-only {
  display: none !important;
}
.sa-menu-me {
  font-weight: 700;
}
.sa-menu-me .sa-avatar {
  pointer-events: none;
}
@media (max-width: 700px) {
  .sa-menu .sa-phone-only {
    display: flex !important;
  }
}

/* =====================================================================
   Signed-out pages: welcome / sign in / join (Facebook-style front door)
   ===================================================================== */
/* Buttons keep their weight (the general `.sa button { font: inherit }` reset removed it). */
.sa .sa-btn {
  font-weight: 700;
}
.sa-big-btn {
  width: 100%;
  min-height: 50px;
  font-size: 17px;
}
.sa-center {
  text-align: center;
}
.sa-link {
  color: var(--sa-gold-dark);
  font-weight: 600;
  text-decoration: none;
}
.sa-link:hover {
  text-decoration: underline;
}
.sa-status.sa-error,
.sa-status.sa-ok,
.sa-status.sa-info {
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
}
.sa-status.sa-error {
  background: var(--sa-danger-bg);
}
.sa-status.sa-ok {
  background: color-mix(in srgb, var(--sa-ok) 12%, transparent);
}
.sa-status.sa-info {
  background: var(--sa-unread);
  color: var(--sa-ink);
  border: 1px solid var(--sa-gold-soft);
}
body.sa-signed-out .sa-main {
  flex-basis: 1040px;
}
body.sa-signed-out .sa-wrap {
  padding-top: 40px;
}
.sa-gate {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sa-gate-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 400px);
  gap: 40px;
  align-items: center;
}
.sa-gate-brand {
  background: #000;
  color: #fff;
  border-radius: 14px;
  padding: 40px 40px 36px;
  border-bottom: 4px solid var(--sa-gold);
}
.sa-gate-logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 24px;
}
.sa-gate-brand h1 {
  font: 700 38px/1.15 'Playfair Display', Georgia, serif;
  margin: 0 0 12px;
  color: #fff;
}
.sa-gate-lead {
  font-size: 18px;
  color: #e6e1d6;
  margin: 0 0 26px;
  max-width: 34rem;
}
.sa-gate-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sa-gate-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #cfc8b8;
  font-size: 15px;
}
.sa-gate-points strong {
  color: #fff;
  font-size: 16px;
}
.sa-gate-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #1c1c1c;
  color: var(--sa-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
}
.sa-gate-card {
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}
.sa-gate-card h2 {
  font-size: 22px;
  margin: 0 0 16px;
}
.sa-gate-card .sa-field input,
.sa-gate-card .sa-field select,
.sa-gate-card .sa-field textarea {
  min-height: 50px;
  font-size: 16px;
  border-radius: 8px;
}
.sa-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: var(--sa-muted);
  font-size: 14px;
}
.sa-or::before,
.sa-or::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--sa-line);
}
.sa-gate-foot {
  text-align: center;
  font-size: 13px;
  color: var(--sa-muted);
  margin: 14px 0 0;
}
.sa-gate-foot a {
  color: var(--sa-muted);
}
.sa-pw {
  position: relative;
}
.sa-pw input {
  padding-right: 52px !important;
}
.sa-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--sa-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-eye:hover {
  background: var(--sa-hover);
  color: var(--sa-ink);
}
.sa-field .sa-hint {
  color: var(--sa-muted);
  font-size: 13px;
}
.sa-field-error {
  color: var(--sa-danger);
  font-size: 13px;
  font-weight: 600;
}
.sa-field-error:empty {
  display: none;
}
.sa-field input[aria-invalid],
.sa-field textarea[aria-invalid] {
  border-color: var(--sa-danger) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sa-danger) 18%, transparent);
}
/* Join page */
.sa-gate-join {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sa-gate-brand.sa-compact {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  align-items: center;
}
.sa-gate-brand.sa-compact .sa-gate-logo {
  height: 40px;
  margin: 0;
  grid-row: span 2;
}
.sa-gate-brand.sa-compact h1 {
  font-size: 22px;
  margin: 0;
}
.sa-gate-brand.sa-compact .sa-gate-lead {
  font-size: 14px;
  margin: 0;
}
.sa-join-head h1 {
  font: 700 28px/1.2 'Playfair Display', Georgia, serif;
  margin: 0 0 4px;
}
.sa-join-head p {
  margin: 0;
}
.sa-group {
  border: 0;
  border-top: 1px solid var(--sa-line);
  margin: 0;
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.sa-group legend {
  padding: 0 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sa-gold-dark);
}
.sa-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.sa-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: -6px;
}
.sa-meter i {
  height: 5px;
  border-radius: 3px;
  background: var(--sa-line);
}
.sa-meter[data-score='1'] i:nth-child(-n + 1) {
  background: #c0503a;
}
.sa-meter[data-score='2'] i:nth-child(-n + 2) {
  background: #d39b2a;
}
.sa-meter[data-score='3'] i:nth-child(-n + 3) {
  background: #6a9b3c;
}
.sa-meter[data-score='4'] i {
  background: #2e7d4f;
}
.sa-meter + .sa-hint {
  margin-top: -8px;
  color: var(--sa-muted);
  font-size: 13px;
}
.sa-agree {
  background: var(--sa-soft);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sa-agree a {
  color: var(--sa-gold-dark);
}
.sa-thanks {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 28px;
}
.sa-thanks h1 {
  font: 700 30px/1.2 'Playfair Display', Georgia, serif;
  margin: 12px 0 8px;
}
.sa-thanks-ico {
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sa-gold);
  color: #000;
  align-items: center;
  justify-content: center;
}
.sa-steps {
  text-align: left;
  margin: 18px auto;
  max-width: 420px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 900px) {
  .sa-gate-split {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
  }
  .sa-gate-brand {
    padding: 26px 24px;
  }
  .sa-gate-brand h1 {
    font-size: 28px;
  }
  .sa-gate-lead {
    font-size: 16px;
    margin-bottom: 18px;
  }
  .sa-gate-points {
    gap: 12px;
  }
}
@media (max-width: 700px) {
  body.sa-signed-out .sa-wrap {
    padding: 0 0 24px;
  }
  .sa-gate-brand {
    border-radius: 0;
  }
  .sa-gate-logo {
    height: 44px;
    margin-bottom: 16px;
  }
  .sa-gate-points li span:last-child {
    font-size: 14px;
  }
  .sa-gate-card {
    border-radius: 0;
    box-shadow: none;
    padding: 20px 16px;
  }
  .sa-gate-brand.sa-compact {
    grid-template-columns: 1fr;
  }
  .sa-gate-brand.sa-compact .sa-gate-logo {
    grid-row: auto;
    height: 34px;
    margin-bottom: 6px;
  }
  .sa-two {
    grid-template-columns: 1fr;
  }
}
.sa-field .sa-field-error {
  color: var(--sa-danger);
}
.sa .sa-link {
  color: var(--sa-gold-dark);
  font-weight: 600;
}
.sa-gate-foot {
  text-wrap: balance;
}

/* =====================================================================
   Feed and profile polish (Nov 28): refined cards, filter chips,
   inline comments, new-posts button, profile cameras and milestone.
   ===================================================================== */
.sa-card {
  border-radius: 12px;
}
.sa-feed,
.sa-feed-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sa-feed-wrap {
  position: relative;
}
.sa-post-head {
  padding: 14px 16px 0;
}
.sa-post-who a {
  font-size: 15.5px;
}
.sa-post-text {
  font-size: 15.5px;
  line-height: 1.5;
}
.sa-counts {
  padding: 10px 16px 8px;
}
.sa-emojis span {
  width: 22px;
  height: 22px;
  font-size: 13px;
  border: 2px solid var(--sa-card);
  background: var(--sa-soft);
}
.sa-bar {
  padding: 2px 0;
}
.sa-bar > button svg,
.sa-bar > .sa-react-wrap > button svg {
  flex: none;
}
.sa-bar button.sa-on svg {
  fill: currentColor;
  fill-opacity: 0.18;
}
.sa-comments {
  padding: 8px 16px 14px;
  gap: 10px;
}
.sa-comments .sa-more-comments {
  font-size: 14px;
}
.sa-reply-link {
  margin: 4px 0 0 12px;
  font-size: 13px !important;
}
.sa-write textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--sa-gold) 50%, transparent);
}
.sa-write button {
  color: #000;
}
.sa-write button:disabled {
  opacity: 0.6;
}
/* Filter chips above the feed */
.sa-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sa-chip {
  border: 1px solid var(--sa-border);
  background: var(--sa-card);
  color: var(--sa-ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s;
}
.sa-chip:hover {
  background: var(--sa-hover);
}
.sa-chip[aria-pressed='true'] {
  background: var(--sa-ink);
  color: var(--sa-card);
  border-color: var(--sa-ink);
}
/* New posts button floats under the top bar */
.sa-new-posts {
  position: sticky;
  top: 76px;
  z-index: 12;
  align-self: center;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--sa-gold);
  color: #000;
  font-weight: 700;
  box-shadow: var(--sa-shadow-lg);
  cursor: pointer;
  margin-bottom: -8px;
}
.sa-new-posts[hidden] {
  display: none;
}
.sa-caught-up {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sa-muted);
  font-weight: 600;
  margin: 4px 0 0;
}
.sa-caught-up[hidden] {
  display: none;
}
.sa-caught-up svg {
  color: var(--sa-gold-dark);
}
/* Empty feed: friendly starters */
.sa-empty {
  text-align: center;
  padding: 28px 20px;
}
.sa-empty h2 {
  font: 700 24px/1.25 'Playfair Display', Georgia, serif;
  margin: 0 0 6px;
}
.sa-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.sa-starter {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--sa-border);
  background: var(--sa-card);
  color: var(--sa-ink);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}
.sa-starter:hover {
  background: var(--sa-hover);
}
.sa-starter svg {
  color: var(--sa-gold-dark);
}
/* Profile: placeholder cover, camera buttons, stats, milestone */
.sa-cover {
  /* Default cover: Easton on the Delaware with the P346 mark (shown until a cover is added). */
  background: #e9d3a0 url('/assets/social-cover-default.webp') center / cover no-repeat;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.sa-cover-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 38px !important;
  padding: 0 14px !important;
  gap: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #1c2433 !important;
}
.sa-xl-wrap {
  position: relative;
  flex: none;
}
.sa-camera {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--sa-card);
  background: var(--sa-button);
  color: var(--sa-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sa-camera:hover {
  background: var(--sa-hover);
}
.sa-profile-row h1 {
  font-size: 32px;
  letter-spacing: -0.01em;
}
.sa-stats {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--sa-line);
  font-size: 14px;
  color: var(--sa-muted);
}
.sa-stats:empty {
  display: none;
}
.sa-stats strong {
  color: var(--sa-ink);
  font-weight: 600;
}
.sa-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px;
  text-align: center;
}
.sa-milestone[hidden] {
  display: none;
}
.sa-milestone-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sa-gold-soft);
  color: var(--sa-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
@media (max-width: 700px) {
  .sa-card {
    border-radius: 0;
  }
  .sa-cover {
    border-radius: 0;
  }
  .sa-chips {
    padding: 0 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .sa-chip {
    flex: none;
  }
  .sa-cover-btn span {
    display: none;
  }
  .sa-cover-btn {
    right: 10px;
    bottom: 10px;
  }
  .sa-profile-row h1 {
    font-size: 26px;
  }
}
.sa-post-meta,
.sa-post-meta a {
  font-size: 13px !important;
  font-weight: 400 !important;
}
.sa-intro .sa-stats {
  text-align: left;
}

/* ---------- Phase A: pinned, answered prayers, link cards, photo descriptions, impact ---------- */
.sa-pinned-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--sa-gold-dark);
  letter-spacing: 0.02em;
}
.sa-prayer-card.sa-answered {
  background: linear-gradient(180deg, var(--sa-gold-soft), var(--sa-prayer));
  border: 1px solid color-mix(in srgb, var(--sa-gold) 45%, transparent);
}
.sa-answered-tag {
  font: 700 14px/1.4 Inter, Arial, sans-serif;
  color: var(--sa-gold-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.sa-answered-tag small {
  font-weight: 500;
  color: var(--sa-muted);
}
.sa-answer-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--sa-gold) 55%, transparent);
  font: 400 15px/1.5 Inter, Arial, sans-serif;
  text-align: left;
}
.sa-link-card {
  display: block;
  margin: 0 16px 6px;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--sa-ink);
  background: var(--sa-soft);
  transition: background-color 0.12s;
}
.sa-link-card:hover {
  background: var(--sa-hover);
}
/* Link previews: wide images full-width on top; square images and logos as a thumbnail beside the text. */
.sa-link-media {
  background: var(--sa-line);
  overflow: hidden;
}
.sa-link-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-link-card:not(.sa-link-wide):not(.sa-link-compact) .sa-link-media {
  display: none; /* until the image has loaded and we know its shape */
}
.sa-link-wide .sa-link-media {
  aspect-ratio: 1.91;
}
.sa-link-compact {
  display: flex;
  align-items: stretch;
}
.sa-link-compact .sa-link-media {
  flex: none;
  width: 136px;
  min-height: 112px;
  background: #fff;
  border-right: 1px solid var(--sa-line);
}
.sa-link-compact .sa-link-media img {
  object-fit: contain;
  padding: 10px;
}
html.sa-dark .sa-link-compact .sa-link-media {
  background: #18191a;
}
.sa-link-compact .sa-link-body {
  justify-content: center;
  min-width: 0;
}
.sa-link-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 700px) {
  .sa-link-compact .sa-link-media {
    width: 96px;
    min-height: 96px;
  }
  .sa-link-compact .sa-link-body span {
    -webkit-line-clamp: 1;
  }
}
.sa-link-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px 12px;
}
.sa-link-body small {
  font-size: 12px;
  color: var(--sa-muted);
  letter-spacing: 0.04em;
}
.sa-link-body strong {
  font-size: 16px;
  line-height: 1.3;
}
.sa-link-body span {
  font-size: 14px;
  color: var(--sa-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sa-previews .sa-alt-btn {
  top: auto;
  right: auto;
  left: 4px;
  bottom: 4px;
  width: auto;
  height: 24px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
}
.sa-previews .sa-alt-btn.sa-has-alt {
  background: var(--sa-gold);
  color: #000;
}
.sa-impact-num {
  font: 700 30px/1.1 'Playfair Display', Georgia, serif;
  color: var(--sa-gold);
}
/* Help feed a family: figure, caption, message, button, footnote. */
.sa-give-stat {
  margin: 14px 0 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(201, 162, 74, 0.45);
  border-bottom: 1px solid rgba(201, 162, 74, 0.45);
}
.sa-give-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sa-give .sa-give-lbs {
  font-family: var(--sa-headline);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sa-gold);
}
.sa-give .sa-give-label {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfc8b8;
}
.sa-give .sa-btn {
  display: flex;
  justify-content: center;
}
.sa-give .sa-give-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #9d968a;
  text-align: center;
}
.sa-page-title {
  font: 700 26px/1.2 'Playfair Display', Georgia, serif;
  margin: 2px 0 6px;
}

/* ---------- Ministry news: full-width article previews ---------- */
.sa-news {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  color: var(--sa-ink);
  border-top: 1px solid var(--sa-line);
  border-bottom: 1px solid var(--sa-line);
  background: var(--sa-soft);
  transition: background-color 0.12s;
}
.sa-news:hover {
  background: var(--sa-hover);
}
.sa-news:hover .sa-news-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.sa-news-photo {
  background: #000;
}
.sa-news-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.sa-news-banner {
  aspect-ratio: 16 / 7;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(198, 163, 74, 0.35), transparent 60%),
    #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-bottom: 4px solid var(--sa-gold);
}
.sa-news-banner img {
  width: min(52%, 300px);
  height: auto;
}
.sa-news-banner span {
  color: var(--sa-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
}
.sa-news-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.sa-news-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sa-gold-dark);
}
.sa-news-title {
  font: 700 22px/1.25 'Playfair Display', Georgia, serif;
}
.sa-news-desc {
  color: var(--sa-ink-2);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sa-news-cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--sa-ink);
  color: var(--sa-card);
  font-weight: 700;
  font-size: 14px;
}
/* The Herald: newspaper paper and nameplate */
.sa-news-herald {
  background: #f3eedf;
  color: #1c2433;
}
.sa-news-herald:hover {
  background: #ece5d2;
}
.sa-news-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 16px 10px;
  border-bottom: 3px double #1c2433;
  margin: 0 16px;
}
.sa-news-plate img {
  width: min(80%, 420px);
  height: auto;
}
.sa-news-plate span {
  font: italic 14px/1.2 'Old Standard TT', Georgia, serif;
  color: #59606d;
}
.sa-news-herald .sa-news-photo {
  margin: 12px 16px 0;
}
.sa-news-herald .sa-news-eyebrow {
  color: #7a5a12;
}
.sa-news-herald .sa-news-title {
  font-size: 26px;
  text-align: left;
}
.sa-news-herald .sa-news-desc {
  color: #3a404c;
}
.sa-news-herald .sa-news-cta {
  background: #1c2433;
  color: #fff;
}

/* News previews sit inside the post with breathing room (owner: margins were too tight). */
.sa-news {
  margin: 12px 16px 6px;
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  overflow: hidden;
}
.sa-news-photo {
  background: transparent;
  padding: 12px 12px 0;
}
.sa-news-photo img {
  border-radius: 8px;
}
.sa-news-banner {
  margin: 12px 12px 0;
  border-radius: 8px;
}
.sa-news-body {
  padding: 16px 18px 18px;
  gap: 8px;
}
.sa-news-plate {
  margin: 0 18px;
  padding: 18px 0 12px;
}
.sa-news-herald .sa-news-photo {
  margin: 0;
  padding: 14px 18px 0;
}
.sa-news-herald .sa-news-body {
  padding: 16px 18px 20px;
}
@media (max-width: 700px) {
  .sa-news {
    margin: 10px 12px 6px;
  }
  .sa-news-photo {
    padding: 10px 10px 0;
  }
  .sa-news-banner {
    margin: 10px 10px 0;
  }
  .sa-news-body {
    padding: 14px 14px 16px;
  }
  .sa-news-herald .sa-news-photo {
    padding: 12px 14px 0;
  }
  .sa-news-plate {
    margin: 0 14px;
  }
}

/* Sign-in page: the story panel and the sign-in card are the same height and line up
   top and bottom; the small footer sits centered under both (owner: boxes didn't line up). */
.sa-gate-split {
  align-items: stretch;
}
.sa-gate-split > .sa-gate-brand,
.sa-gate-split > .sa-gate-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 14px;
  margin: 0;
}
.sa-gate-split > .sa-gate-brand {
  padding: 36px 40px;
}
.sa-gate-split > .sa-gate-card {
  padding: 32px;
  border-bottom: 4px solid var(--sa-gold);
}
.sa-gate-split > .sa-gate-card h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
.sa-gate > .sa-gate-foot {
  margin-top: 6px;
}
@media (max-width: 900px) {
  .sa-gate-split > .sa-gate-brand,
  .sa-gate-split > .sa-gate-card {
    padding: 26px 24px;
  }
}
@media (max-width: 700px) {
  .sa-gate-split > .sa-gate-brand,
  .sa-gate-split > .sa-gate-card {
    border-radius: 0;
  }
  .sa-gate-split > .sa-gate-card {
    padding: 22px 16px;
    border-bottom: 0;
  }
}
.sa-gate-split .sa-gate-logo {
  align-self: flex-start;
}

/* =====================================================================
   Headlines in Bebas Neue (owner, Nov 28): page titles, card headings,
   the welcome and sign-in headlines, news headlines and the impact lines.
   Post text, names and buttons stay in Inter.
   Bebas Neue: SIL Open Font License, /assets/bebas-neue.woff.
   ===================================================================== */
@font-face {
  font-family: 'Bebas Neue';
  src: url('/assets/bebas-neue.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --sa-headline: 'Bebas Neue', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
}
.sa h1,
.sa .sa-card h2,
.sa .sa-page-title,
.sa .sa-hero h1,
.sa .sa-reading h1,
.sa .sa-reading h2,
.sa .sa-welcome-copy h1,
.sa .sa-gate-brand h1,
.sa .sa-gate-card h2,
.sa .sa-join-head h1,
.sa .sa-thanks h1,
.sa .sa-empty h2,
.sa .sa-profile-row h1,
.sa .sa-dialog-head h2,
.sa .sa-panel-head h2,
.sa .sa-news-title,
.sa .sa-news-herald .sa-news-title,
.sa .sa-impact-num,
.sa .sa-give h2,
.sa .sa-side-head h2,
.sa .sa-milestone strong {
  font-family: var(--sa-headline);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
/* Bebas Neue is narrow, so headings run a little larger than before. */
.sa .sa-card h2,
.sa .sa-side-head h2,
.sa .sa-give h2 {
  font-size: 22px;
}
.sa .sa-page-title {
  font-size: 34px;
}
.sa .sa-hero h1,
.sa .sa-reading h1 {
  font-size: 42px;
}
.sa .sa-reading h2 {
  font-size: 26px;
}
.sa .sa-gate-brand h1 {
  font-size: 52px;
}
.sa .sa-gate-card h2 {
  font-size: 30px;
}
.sa .sa-join-head h1,
.sa .sa-thanks h1 {
  font-size: 40px;
}
.sa .sa-empty h2 {
  font-size: 34px;
}
.sa .sa-profile-row h1 {
  font-size: 44px;
}
.sa .sa-dialog-head h2,
.sa .sa-panel-head h2 {
  font-size: 28px;
}
.sa .sa-news-title {
  font-size: 30px;
}
.sa .sa-news-herald .sa-news-title {
  font-size: 34px;
}
.sa .sa-impact-num {
  font-size: 52px;
  line-height: 0.95;
}
.sa .sa-milestone strong {
  font-size: 24px;
}
@media (max-width: 900px) {
  .sa .sa-gate-brand h1 {
    font-size: 40px;
  }
}
@media (max-width: 700px) {
  .sa .sa-gate-brand.sa-compact h1 {
    font-size: 28px;
  }
  .sa .sa-profile-row h1 {
    font-size: 34px;
  }
  .sa .sa-page-title {
    font-size: 30px;
  }
  .sa .sa-news-title {
    font-size: 26px;
  }
}
.sa .sa-gate-brand.sa-compact h1 {
  font-size: 30px;
}

/* ---------- Phase B: mentions, polls, shares, block list ---------- */
.sa a.sa-mention {
  color: var(--sa-gold-dark);
  font-weight: 700;
  text-decoration: none;
}
.sa a.sa-mention:hover {
  text-decoration: underline;
}
.sa-compose,
.sa-write form,
.sa-dialog form {
  position: relative;
}
.sa-mention-list {
  position: absolute;
  z-index: 60;
  min-width: 240px;
  max-width: 320px;
  margin-top: 4px;
  padding: 4px;
  background: var(--sa-card);
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  box-shadow: var(--sa-shadow-lg);
}
.sa-mention-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--sa-ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.sa-mention-list button.sa-on,
.sa-mention-list button:hover {
  background: var(--sa-hover);
}
.sa-poll-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  background: var(--sa-soft);
}
.sa-poll-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sa-poll-edit-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sa-poll-edit input,
.sa-poll-edit select {
  padding: 9px 11px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
}
.sa-poll-edit .sa-link {
  align-self: flex-start;
}
.sa-poll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 16px 10px;
}
.sa-poll-choice {
  padding: 10px 14px;
  border: 2px solid var(--sa-gold);
  border-radius: 999px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.sa-poll-choice:hover {
  background: var(--sa-gold-soft);
}
.sa-poll-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--sa-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sa-poll-row:disabled {
  cursor: default;
}
.sa-poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--sa-gold-soft);
  transition: width 0.4s ease;
}
.sa-poll-row.sa-mine .sa-poll-bar {
  background: var(--sa-gold);
  opacity: 0.45;
}
.sa-poll-label,
.sa-poll-pct {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sa-poll-row.sa-mine .sa-poll-label,
.sa-poll-pct {
  font-weight: 700;
}
.sa-poll-foot {
  font-size: 13px;
}
.sa-shared {
  margin: 0 16px 8px;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sa-card);
}
.sa-shared .sa-photos,
.sa-shared .sa-link-card,
.sa-shared .sa-news-card {
  margin: 0;
  border-radius: 0;
}
.sa-shared-body {
  padding: 6px 0 4px;
}
.sa-shared-body .sa-post-head {
  padding: 6px 14px;
}
.sa-shared-body .sa-post-text {
  margin: 0 14px 8px;
}
.sa-shared-body > .sa-link {
  display: inline-block;
  margin: 0 14px 10px;
}
.sa-shared-gone {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  background: var(--sa-soft);
}
.sa-dialog .sa-shared {
  margin: 0;
  max-height: 320px;
  overflow: auto;
}
.sa-block-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sa-block-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-dialog form > textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}

/* ---------- Phase C: friends and groups ---------- */
.sa .sa-small-btn {
  padding: 6px 12px;
  font-size: 14px;
  min-height: 34px;
}
.sa-btn svg {
  vertical-align: -3px;
  margin-right: 6px;
}
.sa-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sa-gold-soft);
  color: var(--sa-ink);
  font-size: 14px;
  font-weight: 700;
}
.sa .sa-pre {
  text-align: left;
  white-space: pre-line;
}
.sa-friend-btn {
  display: flex;
  gap: 8px;
}
.sa-audience-pick {
  margin-top: 2px;
  padding: 3px 8px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.sa-in-group {
  font-weight: 700;
}
.sa-in-group a {
  color: var(--sa-ink);
}
.sa-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
  gap: 12px;
}
.sa-person-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sa-card);
}
.sa-person-card > :not(.sa-person-photo) {
  margin: 0 10px;
}
.sa-person-photo .sa-avatar.sa-xl {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  font-size: 40px;
}
.sa a.sa-person-name {
  margin-top: 6px !important;
  color: var(--sa-ink);
  font-weight: 700;
  text-decoration: none;
}
.sa-person-card .sa-muted {
  font-size: 13px;
  min-height: 1.2em;
}
.sa-person-card .sa-friend-btn,
.sa-person-card .sa-actions {
  flex-direction: column;
  gap: 6px;
  margin-top: 4px !important;
}
.sa-person-card .sa-btn {
  width: 100%;
  justify-content: center;
}
.sa-sent {
  margin-top: 14px;
}
.sa-sent summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 10px;
}
.sa-waiting {
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 10px;
  background: var(--sa-gold-soft);
}
.sa-waiting h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.sa-groups-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sa-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.sa a.sa-group-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  overflow: hidden;
  color: var(--sa-ink);
  text-decoration: none;
  background: var(--sa-card);
  transition: box-shadow 0.15s;
}
.sa a.sa-group-tile:hover {
  box-shadow: var(--sa-shadow);
}
.sa-group-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2.4;
  color: #fff;
  font-family: var(--sa-headline);
  font-size: 34px;
  letter-spacing: 0.04em;
}
.sa-group-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-group-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}
.sa-group-info .sa-muted {
  font-size: 13px;
}
.sa-group-info svg {
  vertical-align: -2px;
}
.sa-group-extra {
  font-size: 13px;
  font-weight: 700;
  color: var(--sa-gold-dark);
}
.sa-group-page .sa-cover {
  min-height: 160px;
}
.sa-group-page .sa-profile-row {
  padding-top: 14px;
}
.sa-group-page .sa-muted svg {
  vertical-align: -2px;
}
.sa a.sa-admin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--sa-ink);
  text-decoration: none;
  font-weight: 600;
}
.sa-empty > svg {
  color: var(--sa-muted);
}

/* Default cover: gentler in dark mode so it doesn't glare. */
html.sa-dark .sa-cover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)), url('/assets/social-cover-default.webp');
}
.sa-group-cover.sa-default-cover {
  background: #e9d3a0 url('/assets/social-cover-default-sm.webp') center / cover no-repeat;
}
html.sa-dark .sa-group-cover.sa-default-cover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)), url('/assets/social-cover-default-sm.webp');
}

/* Photo framing (crop and position before upload) */
.sa-crop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.sa-crop-frame.sa-crop-square {
  width: min(320px, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
}
.sa-crop-frame:active {
  cursor: grabbing;
}
.sa-crop-frame:focus-visible {
  outline: 3px solid var(--sa-gold);
  outline-offset: 2px;
}
.sa-crop-frame img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
}
.sa-crop-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.25) 33.33%, transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.25) 66.66%, transparent calc(66.66% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.25) 33.33%, transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.25) 66.66%, transparent calc(66.66% + 0.5px));
}
.sa-crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-crop-zoom input {
  flex: 1;
  accent-color: var(--sa-gold);
}
.sa-size-hint {
  margin: 0;
  font-size: 13px;
  color: var(--sa-muted);
}
.sa-size-hint.sa-warn {
  color: var(--sa-danger, #b3261e);
}
.sa-dialog.sa-crop-dialog {
  width: min(760px, calc(100vw - 24px));
}

/* ---------- Polish 1 ---------- */
/* Quiet send arrow; gold only once there's something to send. */
.sa .sa-write button.sa-send {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sa-muted);
  transition: background 0.15s, color 0.15s;
}
.sa .sa-write form.sa-ready button.sa-send {
  background: var(--sa-gold);
  color: #000;
}
.sa .sa-write button.sa-send:hover {
  background: var(--sa-hover);
}
.sa .sa-write form.sa-ready button.sa-send:hover {
  background: var(--sa-gold);
  filter: brightness(1.05);
}
/* Long posts fold with "See more". */
.sa-post-text.sa-folded {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sa .sa-see-more {
  display: block;
  align-self: flex-start;
  margin: -6px 16px 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sa-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sa .sa-see-more:hover {
  text-decoration: underline;
}
.sa-comments:empty {
  display: none;
}
/* Default profile picture: a person outline on a warm neutral. */
.sa .sa-avatar.sa-no-photo,
.sa .sa-me:not(:has(img)) {
  background: #d8d1c1;
  color: #fff;
  overflow: hidden;
}
html.sa-dark .sa .sa-avatar.sa-no-photo,
html.sa-dark .sa .sa-me:not(:has(img)) {
  background: #4e4f50;
  color: #8a8d91;
}
.sa-silhouette {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
  margin-top: 12%;
}
/* Top bar: filled icon for the current page, and a label on hover (computers). */
.sa-nav a[aria-current='page'] svg :is(path, rect, circle) {
  fill: currentColor;
  fill-opacity: 0.2;
}
.sa-nav a {
  position: relative;
}
@media (hover: hover) and (min-width: 901px) {
  .sa-nav a[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(28, 30, 33, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 60;
  }
}
/* Phone search: a button opens the search box across the top bar. */
.sa-phone-search,
.sa-search-close {
  display: none;
}
@media (max-width: 700px) {
  .sa-phone-search {
    display: grid;
  }
  .sa-search.sa-search-open {
    display: flex !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #000;
    z-index: 70;
  }
  .sa-search.sa-search-open input {
    flex: 1;
    width: auto;
    font-size: 16px;
  }
  .sa-search.sa-search-open .sa-search-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #26282c;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
}
/* Phones: the sign-in or join form first; the welcome panel follows, without repeating the logo. */
@media (max-width: 700px) {
  .sa-gate-split > .sa-gate-card {
    order: -1;
  }
  .sa-gate-split > .sa-gate-brand .sa-gate-logo {
    display: none;
  }
  .sa-gate-split > .sa-gate-brand h1 {
    font-size: 26px;
  }
}
/* Notifications: New / Earlier, a blue-dot-style marker, and inline Confirm / Delete. */
.sa-note-group {
  margin: 10px 8px 4px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
}
.sa .sa-note .sa-when {
  color: var(--sa-muted);
  font-weight: 500;
}
.sa .sa-note.sa-unread .sa-when {
  color: var(--sa-gold-dark);
  font-weight: 700;
}
.sa-note > span:nth-child(2) {
  flex: 1;
}
.sa-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sa-gold);
}
.sa-note-actions {
  display: flex;
  gap: 8px;
  padding: 0 8px 10px 64px;
}
.sa-note-actions .sa-btn {
  flex: 1;
  max-width: 140px;
}
/* Side columns: your groups (left), friend requests and contacts (right). */
.sa-shortcuts .sa-group-ico {
  border-radius: 8px;
  overflow: hidden;
  background-color: #e9d3a0;
}
.sa-shortcuts .sa-group-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-my-groups {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sa-my-groups[hidden] {
  display: none;
}
.sa a.sa-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: var(--sa-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.sa a.sa-contact:hover {
  background: var(--sa-hover);
}
.sa-request .sa-friend-btn {
  margin-top: 8px;
}
.sa-request .sa-friend-btn .sa-btn {
  flex: 1;
}
/* Profile preview on hover */
.sa-hovercard {
  position: absolute;
  z-index: 80;
  width: 340px;
  padding: 16px;
  border-radius: 12px;
  background: var(--sa-card);
  color: var(--sa-ink);
  box-shadow: var(--sa-shadow-lg);
  border: 1px solid var(--sa-line);
}
.sa-hovercard-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sa-hovercard .sa-avatar.sa-xl {
  width: 84px;
  height: 84px;
  font-size: 28px;
  border: 0;
}
.sa a.sa-hovercard-name {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--sa-ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}
.sa-hovercard .sa-muted {
  font-size: 14px;
  margin-top: 2px;
}
.sa-hovercard-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.sa-hovercard-actions > * {
  flex: 1;
}
.sa-hovercard-actions .sa-btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Formatted (rich text) posts ---------- */
.sa-rich {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.5;
}
.sa-rich.sa-post-text {
  margin: 10px 16px 12px;
  white-space: normal;
}
.sa-rich > :first-child {
  margin-top: 0;
}
.sa-rich > :last-child {
  margin-bottom: 0;
}
.sa-rich p {
  margin: 0 0 10px;
}
.sa-rich .sa-rich-h1,
.sa-rich .sa-rich-h2 {
  font-family: var(--sa-headline);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--sa-ink);
  text-transform: uppercase;
}
.sa-rich .sa-rich-h1 {
  margin: 18px 0 8px;
  font-size: 36px;
}
.sa-rich .sa-rich-h2 {
  margin: 16px 0 6px;
  font-size: 28px;
}
.sa-rich .sa-rich-h3 {
  margin: 14px 0 6px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--sa-ink);
}
.sa-rich .sa-rich-subtitle {
  margin: -2px 0 12px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--sa-muted);
  font-style: italic;
}
.sa-rich blockquote {
  margin: 12px 0;
  padding: 6px 0 6px 16px;
  border-left: 4px solid var(--sa-gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
  color: var(--sa-ink);
}
.sa-rich ul,
.sa-rich ol {
  margin: 0 0 10px;
  padding-left: 26px;
}
.sa-rich li {
  margin: 3px 0;
}
.sa-rich hr {
  border: 0;
  height: 1px;
  margin: 16px 0;
  background: var(--sa-line);
}
.sa-rich a {
  color: var(--sa-gold-dark);
  font-weight: 600;
}
/* Long formatted posts fold with a soft fade before "See more". */
.sa-rich.sa-rich-folded {
  display: block;
  max-height: 15em;
  overflow: hidden;
  -webkit-line-clamp: unset;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
/* Editor */
.sa-rich-wrap {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sa-card);
}
.sa-rich-wrap[hidden] {
  display: none;
}
.sa-rich-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--sa-line);
  background: var(--sa-soft);
  position: sticky;
  top: 0;
  z-index: 1;
}
.sa-rich-style {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.sa .sa-rich-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--sa-ink);
  font-size: 16px;
  cursor: pointer;
}
.sa .sa-rich-btn:hover {
  background: var(--sa-hover);
}
.sa .sa-rich-btn.sa-on {
  background: var(--sa-gold-soft);
  color: var(--sa-ink);
}
.sa-rich-sep {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: var(--sa-border);
}
.sa-rich-editor {
  min-height: 180px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 14px 16px;
  outline: none;
  color: var(--sa-ink);
}
.sa-rich-editor.sa-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  color: var(--sa-muted);
  pointer-events: none;
}
.sa-rich-editor:focus-visible {
  box-shadow: inset 0 0 0 2px var(--sa-gold);
}
.sa-aa {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  color: #7a3e12;
}
html.sa-dark .sa-aa {
  color: #e2a46e;
}
.sa-tool.sa-rich-toggle.sa-on {
  background: var(--sa-gold-soft);
}
/* "@" suggestions in the formatting editor float next to the cursor. */
.sa-mention-list.sa-mention-float {
  position: fixed;
  margin: 0;
  z-index: 90;
}

/* ---------- Polish 2 ---------- */
/* Form boxes: borders at least 3:1 against the page (WCAG 1.4.11), in light and dark mode. */
.sa {
  --sa-field-border: #8a8475;
}
html.sa-dark .sa {
  --sa-field-border: #7a7b7d;
}
.sa .sa-field :is(input:not([type='checkbox']):not([type='radio']):not([type='range']), select, textarea),
.sa .sa-gate-card :is(input:not([type='checkbox']):not([type='radio']), select, textarea),
.sa .sa-poll-edit :is(input, select),
.sa .sa-rich-style,
.sa .sa-audience-pick,
.sa .sa-compose > textarea,
.sa .sa-rich-wrap {
  border-color: var(--sa-field-border);
}
/* Signed-out welcome section under the sign-in box */
.sa-landing {
  background: var(--sa-card);
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: var(--sa-shadow);
}
.sa-landing h2 {
  margin: 0 0 10px;
  font-family: var(--sa-headline);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
}
.sa-landing h3 {
  margin: 26px 0 12px;
  font-size: 18px;
}
.sa-landing-lead {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.55;
  max-width: 760px;
}
.sa-landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sa-landing-features li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 10px;
  background: var(--sa-soft);
  border-top: 3px solid var(--sa-gold);
}
.sa-landing-features span {
  color: var(--sa-muted);
  font-size: 14px;
  line-height: 1.45;
}
.sa-landing-steps {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
}
.sa-landing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 24px 0 0;
}
.sa a.sa-landing-signin {
  color: var(--sa-ink);
  font-weight: 700;
}
@media (max-width: 700px) {
  .sa-landing {
    border-radius: 0;
    padding: 24px 18px;
  }
  .sa-landing h2 {
    font-size: 28px;
  }
}
/* Get started checklist */
.sa-started-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sa-started-head h2 {
  margin: 0;
}
.sa-started-head p {
  margin: 2px 0 0;
}
.sa-started-bar {
  height: 8px;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: var(--sa-soft);
  overflow: hidden;
}
.sa-started-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--sa-gold);
}
.sa-started-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.sa-started-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--sa-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sa-started-list button:hover:not(:disabled) {
  background: var(--sa-hover);
}
.sa-started-list button:disabled {
  cursor: default;
}
.sa-started-list button > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sa-started-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--sa-field-border);
  font-weight: 800;
  color: #000;
}
.sa-started-list .sa-done .sa-started-check {
  background: var(--sa-gold);
  border-color: var(--sa-gold);
}
.sa-started-list .sa-done strong {
  text-decoration: line-through;
  color: var(--sa-muted);
}
.sa a.sa-friend-line {
  display: inline-block;
  margin-top: 4px;
  color: var(--sa-muted);
  font-weight: 700;
  text-decoration: none;
}
.sa a.sa-friend-line:hover {
  text-decoration: underline;
}

/* ---------- Link previews: classy and inviting ---------- */
.sa .sa-link-card {
  position: relative;
  display: block;
  margin: 2px 16px 10px;
  border: 1px solid var(--sa-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--sa-card);
  color: var(--sa-ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.sa .sa-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--sa-gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.sa .sa-link-card:focus-visible {
  outline: 3px solid var(--sa-gold);
  outline-offset: 2px;
}
.sa .sa-link-home {
  border-left: 4px solid var(--sa-gold);
}
.sa .sa-link-media {
  position: relative;
  overflow: hidden;
  background: var(--sa-soft);
}
.sa .sa-link-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.sa .sa-link-card:hover .sa-link-media img {
  transform: scale(1.035);
}
.sa .sa-link-wide .sa-link-media {
  aspect-ratio: 1.91;
}
/* A soft shade at the bottom edge of wide pictures, so they sit nicely on the card. */
.sa .sa-link-wide .sa-link-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.sa .sa-link-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px 16px;
  min-width: 0;
}
.sa .sa-link-site {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sa-muted);
  letter-spacing: 0.01em;
}
.sa .sa-link-icon {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}
.sa .sa-link-letter {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.sa .sa-link-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--sa-ink);
}
.sa .sa-link-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--sa-muted);
}
.sa .sa-link-cta {
  align-self: flex-start;
  margin-top: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sa-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--sa-ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.sa .sa-link-home .sa-link-cta,
.sa .sa-link-card:hover .sa-link-cta {
  background: var(--sa-gold);
  color: #000;
}
.sa .sa-link-arrow {
  display: inline-block;
  margin-left: 6px;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.sa .sa-link-card:hover .sa-link-arrow {
  transform: translateX(3px);
}
/* Compact: square pictures, logos and links without a picture. */
.sa .sa-link-compact {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px;
}
.sa .sa-link-compact .sa-link-media {
  flex: none;
  width: 128px;
  height: 128px;
  min-height: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--sa-line);
}
.sa .sa-link-compact .sa-link-media img {
  object-fit: contain;
  padding: 8px;
}
.sa .sa-link-compact .sa-link-body {
  padding: 4px 6px 4px 14px;
}
.sa .sa-link-compact .sa-link-title {
  font-size: 16.5px;
}
.sa .sa-link-compact .sa-link-cta {
  margin-top: 6px;
}
/* No picture: an elegant black-and-gold tile with the site's initial (or the P346 mark). */
.sa .sa-link-tile {
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #2a2418 0%, #0b0b0b 70%) !important;
  box-shadow: inset 0 0 0 1px rgba(198, 163, 74, 0.45) !important;
}
.sa .sa-link-tile span {
  font-family: var(--sa-headline);
  font-size: 64px;
  line-height: 1;
  color: var(--sa-gold);
}
.sa .sa-link-tile img {
  width: 64% !important;
  height: auto !important;
  padding: 0 !important;
  object-fit: contain;
}
html.sa-dark .sa .sa-link-compact .sa-link-media:not(.sa-link-tile) {
  background: #f4f1ea;
}
@media (max-width: 700px) {
  .sa .sa-link-card {
    margin: 2px 12px 10px;
  }
  .sa .sa-link-compact .sa-link-media {
    width: 92px;
    height: 92px;
  }
  .sa .sa-link-compact .sa-link-desc {
    -webkit-line-clamp: 1;
  }
  .sa .sa-link-title {
    font-size: 16.5px;
  }
  .sa .sa-link-tile span {
    font-size: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sa .sa-link-card,
  .sa .sa-link-media img,
  .sa .sa-link-arrow {
    transition: none;
  }
  .sa .sa-link-card:hover {
    transform: none;
  }
  .sa .sa-link-card:hover .sa-link-media img {
    transform: none;
  }
}
.sa .sa-shared .sa-link-card {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--sa-line);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

/* =====================================================================
   P346 Signature: an elegant serif, scripture, foil gold, letterhead,
   celebrations, member badges, paper texture and seasonal accents.
   ===================================================================== */
@font-face {
  font-family: 'P346 Serif';
  src: url('/assets/p346-serif.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'P346 Serif';
  src: url('/assets/p346-serif-italic.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
.sa {
  --sa-serif: 'P346 Serif', Georgia, 'Times New Roman', serif;
  --sa-foil: linear-gradient(100deg, #8a6a1f 0%, #d9b65c 28%, #fff1bf 46%, #c6a34a 62%, #7d5f1a 100%);
  --sa-skeleton: linear-gradient(90deg, #eee8da 0%, #f8f0db 50%, #eee8da 100%);
}
html.sa-dark .sa {
  --sa-skeleton: linear-gradient(90deg, #303132 0%, #3b3628 50%, #303132 100%);
}
/* A whisper of paper grain behind the cards, so the page feels printed rather than flat. */
body.sa {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.sa-dark body.sa {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 0 0 0 .025 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The serif, used sparingly: scripture, quotes, subtitles and a few welcome lines. */
.sa-rich blockquote,
.sa-rich .sa-rich-subtitle,
.sa-gate-brand h1,
.sa-reading h1,
.sa-answer-note,
.sa-landing-lead {
  font-family: var(--sa-serif);
}
.sa-gate-brand h1 {
  font-weight: 700;
}
.sa-rich blockquote cite {
  display: block;
  margin-top: 8px;
  font-family: Inter, Arial, sans-serif;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sa-gold-dark);
}
.sa-rich blockquote cite::before {
  content: '— ';
}
/* Drop cap on long formatted posts, like a magazine article. */
.sa-rich.sa-dropcap > p:first-of-type::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--sa-serif);
  font-size: 3.6em;
  font-weight: 700;
  line-height: 0.78;
  color: var(--sa-gold-dark);
}

/* Scripture: serif italic, a gold ornament and the reference in small capitals. */
.sa-ornament {
  display: block;
  width: 120px;
  height: 16px;
  color: var(--sa-gold);
}
.sa-ornament-sm {
  width: 64px;
  height: 10px;
}
.sa-scripture {
  margin: 0;
}
.sa-scripture blockquote {
  margin: 0;
  font-family: var(--sa-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--sa-ink);
}
.sa-scripture blockquote::before {
  content: '“';
}
.sa-scripture blockquote::after {
  content: '”';
}
.sa-scripture figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.sa-scripture cite {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sa-gold-dark);
}
.sa-verse {
  border-top: 3px solid var(--sa-gold);
}

/* Foil gold for the numbers and headings that matter most. */
.sa-foil,
.sa-gate-brand h1 {
  background: var(--sa-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
/* Thin gold rules instead of grey lines in the side columns. */
.sa-left hr,
.sa-shortcuts hr,
.sa-right hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 163, 74, 0.7), transparent);
}

/* Rings: gold for P346 staff, a quiet ring for your friends. */
.sa .sa-avatar.sa-ring-gold {
  box-shadow: 0 0 0 2px var(--sa-card), 0 0 0 4px var(--sa-gold);
}
.sa .sa-avatar.sa-ring-friend {
  box-shadow: 0 0 0 2px var(--sa-card), 0 0 0 3.5px rgba(198, 163, 74, 0.45);
}

/* Ministry posts on letterhead */
.sa-letterhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(198, 163, 74, 0.55);
  font-family: var(--sa-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sa-gold-dark);
}
.sa-letterhead img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.sa-letterhead .sa-ornament {
  margin-left: auto;
}
.sa-post:has(.sa-letterhead) {
  border-top: 3px solid var(--sa-gold);
}

/* The Herald as a front page: nameplate, double rules, dateline */
.sa-dateline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 6px 2px;
  border-top: 3px double #c6a34a;
  border-bottom: 3px double #c6a34a;
  font-family: var(--sa-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b5320;
}
.sa-news-herald .sa-news-title {
  font-family: var(--sa-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  text-transform: none;
}
@media (max-width: 700px) {
  .sa-dateline span:first-child,
  .sa-dateline span:last-child {
    display: none;
  }
  .sa-dateline {
    justify-content: center;
  }
}

/* Celebrations: a soft pop and gold sparkles */
.sa-spark {
  position: fixed;
  z-index: 300;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #fff6d5 0%, #e9c96a 45%, #b8923a 100%);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(var(--s));
  animation: sa-spark 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes sa-spark {
  to {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0) rotate(90deg);
    opacity: 0;
  }
}
.sa-bar > button.sa-pop :is(svg, img, .sa-emoji) {
  animation: sa-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes sa-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35) rotate(-8deg);
  }
  100% {
    transform: scale(1);
  }
}
/* Loading: the P emblem breathes softly instead of plain text. */
.sa-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
  font-size: 0;
}
.sa-loading::before {
  content: '';
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: url('/assets/header-logo.png') center / cover;
  animation: sa-breathe 1.6s ease-in-out infinite;
}
@keyframes sa-breathe {
  50% {
    opacity: 0.45;
    transform: scale(0.92);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sa-spark,
  .sa-bar > button.sa-pop :is(svg, img, .sa-emoji),
  .sa-loading::before {
    animation: none;
  }
}

/* Member badges */
.sa-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.sa-role {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(198, 163, 74, 0.6);
  background: rgba(198, 163, 74, 0.1);
  color: var(--sa-gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.sa-role-founding {
  background: #0b0b0b;
  border-color: var(--sa-gold);
  color: #e9c96a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.sa-person-card .sa-roles {
  margin-top: 2px !important;
}

/* A richer welcome: the Easton skyline behind the welcome panel. */
.sa-gate-brand {
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.78) 55%, rgba(32, 24, 8, 0.8) 100%),
    url('/assets/social-cover-default.webp') center / cover;
}

/* Seasonal accents */
html[data-season='advent'] {
  --sa-season: #1f4d3a;
}
html[data-season='christmas'] {
  --sa-season: #8c1c24;
}
html[data-season='lent'] {
  --sa-season: #4a2c5e;
}
html[data-season='easter'] {
  --sa-season: #5f7f5a;
}
html[data-season='thanksgiving'] {
  --sa-season: #a65a1c;
}
html[data-season] .sa-top {
  box-shadow: 0 3px 0 var(--sa-season);
}
.sa-season-card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--sa-season, var(--sa-gold));
  background: linear-gradient(120deg, color-mix(in srgb, var(--sa-season, #c6a34a) 9%, var(--sa-card)) 0%, var(--sa-card) 70%);
  padding-right: 120px;
}
.sa-season-card h2 {
  margin: 0 0 8px;
  color: var(--sa-season);
}
html.sa-dark .sa-season-card h2 {
  color: color-mix(in srgb, var(--sa-season) 45%, #fff);
}
.sa-season-sprig {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translateY(-50%) rotate(-12deg);
  background: var(--sa-season, var(--sa-gold));
  opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 96 C50 70 50 40 52 6' stroke='%23000' stroke-width='3' fill='none'/%3E%3Cg fill='%23000'%3E%3Cpath d='M51 20c-10-8-20-8-26-4 8 6 18 8 26 4z'/%3E%3Cpath d='M52 20c10-8 20-8 26-4-8 6-18 8-26 4z'/%3E%3Cpath d='M51 38c-12-9-24-9-31-4 9 7 21 9 31 4z'/%3E%3Cpath d='M52 38c12-9 24-9 31-4-9 7-21 9-31 4z'/%3E%3Cpath d='M51 56c-13-10-26-10-34-5 10 8 23 10 34 5z'/%3E%3Cpath d='M52 56c13-10 26-10 34-5-10 8-23 10-34 5z'/%3E%3Cpath d='M51 74c-12-8-24-8-30-4 9 6 20 8 30 4z'/%3E%3Cpath d='M52 74c12-8 24-8 30-4-9 6-20 8-30 4z'/%3E%3C/g%3E%3Ccircle cx='52' cy='6' r='4' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 96 C50 70 50 40 52 6' stroke='%23000' stroke-width='3' fill='none'/%3E%3Cg fill='%23000'%3E%3Cpath d='M51 20c-10-8-20-8-26-4 8 6 18 8 26 4z'/%3E%3Cpath d='M52 20c10-8 20-8 26-4-8 6-18 8-26 4z'/%3E%3Cpath d='M51 38c-12-9-24-9-31-4 9 7 21 9 31 4z'/%3E%3Cpath d='M52 38c12-9 24-9 31-4-9 7-21 9-31 4z'/%3E%3Cpath d='M51 56c-13-10-26-10-34-5 10 8 23 10 34 5z'/%3E%3Cpath d='M52 56c13-10 26-10 34-5-10 8-23 10-34 5z'/%3E%3Cpath d='M51 74c-12-8-24-8-30-4 9 6 20 8 30 4z'/%3E%3Cpath d='M52 74c12-8 24-8 30-4-9 6-20 8-30 4z'/%3E%3C/g%3E%3Ccircle cx='52' cy='6' r='4' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sa-season-card .sa-ornament {
  color: var(--sa-season);
}
@media (max-width: 700px) {
  .sa-season-card {
    padding-right: 20px;
  }
  .sa-season-sprig {
    width: 64px;
    height: 64px;
    top: 26px;
    transform: rotate(-12deg);
    opacity: 0.3;
  }
}

/* ---------- Privacy: who can see a post ---------- */
.sa-audience-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  padding: 3px 10px;
  border: 1px solid var(--sa-field-border, var(--sa-border));
  border-radius: 8px;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sa-audience-pill:hover {
  border-color: var(--sa-gold);
}
button.sa-audience-edit {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
button.sa-audience-edit:hover {
  color: var(--sa-gold-dark);
}
.sa-audience-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sa-audience-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.sa-audience-option:hover,
.sa-audience-option:has(input:checked) {
  background: var(--sa-soft);
}
.sa-audience-option input {
  order: 3;
  width: 20px;
  height: 20px;
  accent-color: var(--sa-gold-dark);
}
.sa-audience-option strong,
.sa-audience-option small {
  display: block;
}
.sa-audience-option small {
  font-size: 13px;
  line-height: 1.35;
}
.sa-audience-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sa-soft);
  color: var(--sa-ink);
}
.sa-audience-option:has(input:checked) .sa-audience-ico {
  background: var(--sa-gold-soft);
  color: var(--sa-gold-dark);
}
.sa-privacy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--sa-line);
}
.sa-privacy-row strong,
.sa-privacy-row small {
  display: block;
}
.sa-privacy-row select {
  min-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--sa-field-border, var(--sa-border));
  border-radius: 8px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
}
.sa-privacy p svg {
  vertical-align: -2px;
}
/* Signed-out visitors on a Public post or profile */
.sa-guest-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 16px 14px;
  padding: 10px 14px;
  border: 1px solid var(--sa-gold);
  border-radius: 10px;
  background: var(--sa-gold-soft);
  font-weight: 600;
}
.sa-guest-bar .sa-actions {
  margin: 0;
}
.sa-guest-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.sa-guest-invite .sa-actions {
  margin: 0;
}
.sa-audience-option > .sa-grow,
.sa-guest-invite > .sa-grow {
  flex: 1 1 240px;
}
.sa-privacy-row > .sa-grow {
  flex: 1 1 300px;
}
.sa-privacy-row select {
  width: 270px;
  max-width: 100%;
}

/* ================= Pages: nonprofit organizations ================= */
/* Round logo with a gold ring (members' pictures are square). */
.sa-page-logo {
  display: inline-grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b0b0b;
  box-shadow: 0 0 0 2px var(--sa-card), 0 0 0 3.5px var(--sa-gold);
  color: #e2c46e;
  text-decoration: none;
}
.sa-page-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-page-initials {
  font: 600 15px/1 var(--sa-serif);
  letter-spacing: 0.04em;
}
.sa-page-logo.sa-sm {
  width: 40px;
  height: 40px;
}
.sa-page-logo.sa-md {
  width: 72px;
  height: 72px;
}
.sa-page-logo.sa-md .sa-page-initials {
  font-size: 24px;
}
.sa-page-logo.sa-xl {
  width: 168px;
  height: 168px;
  box-shadow: 0 0 0 5px #0b0b0b, 0 0 0 7px var(--sa-gold), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.sa-page-logo.sa-xl .sa-page-initials {
  font-size: 54px;
}
.sa-seal {
  flex: none;
  margin-left: 6px;
  color: var(--sa-gold);
  vertical-align: -2px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
/* Small caps line under a Page's name: "501(c)(3) CHARITY · EASTON, PA · 1,240 FOLLOWERS" */
.sa-page-kicker {
  margin: 4px 0 0;
  color: var(--sa-gold-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* The Page itself: cover, then a black masthead band with a fine gold rule. */
.sa-org {
  overflow: hidden;
  padding: 0;
}
.sa-org .sa-cover {
  height: 300px;
}
.sa-org-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 26px;
  margin-top: -84px;
  padding: 0 28px 22px;
  position: relative;
}
.sa-org-masthead::before {
  content: '';
  position: absolute;
  inset: 84px 0 0;
  background: #0b0b0b;
  border-top: 2px solid var(--sa-gold);
  box-shadow: inset 0 -1px 0 rgba(198, 163, 74, 0.35);
  z-index: 0;
}
.sa-org-masthead > * {
  position: relative;
  z-index: 1;
}
.sa-org-title {
  min-width: 240px;
  padding-bottom: 4px;
}
.sa-org-title h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  color: #fff;
  font: 600 36px/1.15 var(--sa-serif);
  letter-spacing: 0.005em;
}
.sa-org-title .sa-page-kicker {
  color: #e2c46e;
}
.sa-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
}
.sa-org-masthead .sa-btn.sa-quiet {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f1e6;
}
.sa-org-masthead .sa-btn.sa-quiet:hover {
  background: rgba(255, 255, 255, 0.16);
}
.sa-btn.sa-gold-btn {
  background: var(--sa-foil, var(--sa-gold));
  color: #111;
  border: 0;
}
.sa-btn.sa-donate-btn {
  border: 1.5px solid var(--sa-gold);
  background: #0b0b0b;
  color: #f6e7b8;
}
.sa-btn.sa-donate-btn:hover {
  background: #1b1608;
}
.sa-org .sa-tabs {
  background: var(--sa-card);
}
.sa-org-about h2 {
  font-family: var(--sa-headline, inherit);
}
.sa-org-mission {
  margin: 0 0 14px;
  font: 400 17px/1.6 var(--sa-serif);
  white-space: pre-line;
}
.sa-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--sa-gold);
  border-radius: 10px;
  background: var(--sa-gold-soft);
}
.sa-trust .sa-seal {
  margin: 0;
}
.sa-trust strong,
.sa-trust small {
  display: block;
}
.sa-trust small {
  color: var(--sa-muted);
  font-size: 13px;
}
.sa-org-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sa-org-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-wrap: anywhere;
}
.sa-org-facts svg {
  flex: none;
  margin-top: 2px;
  color: var(--sa-gold-dark);
}
/* Page posts in the feed: round logo, seal, a "Page" label and a thin gold top edge. */
.sa-post.sa-post-page {
  border-top: 3px solid var(--sa-gold);
}
.sa-post-page .sa-post-head .sa-page-logo {
  width: 44px;
  height: 44px;
}
.sa-page-tag {
  padding: 1px 6px;
  border: 1px solid var(--sa-gold);
  border-radius: 4px;
  color: var(--sa-gold-dark);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sa-page-composer .sa-page-logo {
  width: 40px;
  height: 40px;
}
/* Pages directory */
.sa-pages-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border-top: 3px solid var(--sa-gold);
}
.sa-page-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1px solid var(--sa-line);
  border-radius: 999px;
  background: var(--sa-card);
  color: var(--sa-muted);
}
.sa-page-search {
  flex: 1;
  padding: 11px 0;
  border: 0;
  background: none;
  color: var(--sa-ink);
  font: inherit;
  outline: none;
}
.sa-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.sa-page-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  background: var(--sa-card);
  transition: box-shadow 0.15s, transform 0.15s;
}
.sa-page-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.sa-page-card-cover {
  display: block;
  height: 86px;
  background: #111;
}
.sa-page-card-cover.sa-default-cover {
  background: #111 url('/assets/social-cover-default-sm.webp') center / cover no-repeat;
}
.sa-page-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-page-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 16px;
  text-align: center;
}
.sa-page-card-body .sa-page-logo {
  margin-top: -36px;
}
.sa-page-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
  font: 600 19px/1.25 var(--sa-serif);
}
.sa-page-card h3 a {
  color: inherit;
  text-decoration: none;
}
.sa-page-card .sa-page-kicker {
  font-size: 11px;
}
.sa-page-card-about {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 12px;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.sa-page-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: auto 0 0;
  font-size: 13px;
}
.sa-pages-section h2 {
  margin-top: 0;
}
.sa-wide-dialog {
  max-width: 640px;
}
@media (max-width: 700px) {
  .sa-org .sa-cover {
    height: 180px;
  }
  .sa-org-masthead {
    flex-direction: column;
    align-items: center;
    margin-top: -64px;
    padding: 0 16px 18px;
    text-align: center;
  }
  .sa-org-masthead::before {
    inset: 64px 0 0;
  }
  .sa-page-logo.sa-xl {
    width: 128px;
    height: 128px;
  }
  .sa-org-title {
    min-width: 0;
  }
  .sa-org-title h1 {
    justify-content: center;
    font-size: 28px;
  }
  .sa-page-actions {
    justify-content: center;
  }
}
/* Page masthead: light text on the black band (overrides the neutral button colors). */
.sa .sa-org-masthead .sa-btn.sa-quiet {
  color: #f5f1e6 !important;
}
.sa .sa-org-masthead .sa-btn.sa-donate-btn {
  color: #f6e7b8 !important;
}
.sa .sa-btn.sa-gold-btn {
  color: #111 !important;
}
.sa .sa-org-title h1,
.sa .sa-page-card h3 {
  font-family: var(--sa-serif);
  text-transform: none;
  letter-spacing: 0.005em;
}
.sa .sa-org-title h1 {
  font-size: 36px;
  font-weight: 600;
}
.sa a.sa-page-logo,
.sa .sa-page-logo {
  color: #e2c46e;
}
@media (max-width: 700px) {
  .sa .sa-org-title h1 {
    font-size: 28px;
  }
}
/* Page team card and commenting as a Page */
.sa-team .sa-small-head {
  margin: 14px 0 6px;
}
.sa-team .sa-admin-row .sa-menu-wrap {
  margin-left: auto;
}
.sa-danger-zone {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sa-line);
}
.sa-danger-zone summary {
  color: var(--sa-danger);
  font-weight: 700;
  cursor: pointer;
}
.sa-danger-zone input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--sa-field-border, var(--sa-border));
  border-radius: 8px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
}
.sa-write-who {
  display: flex;
  flex: none;
  align-self: flex-start;
}
.sa-as-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.sa-comment-as {
  max-width: 64px;
  padding: 1px 2px;
  border: 0;
  background: none;
  color: var(--sa-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.sa-bubble.sa-bubble-page {
  box-shadow: inset 3px 0 0 var(--sa-gold);
}
.sa-page-logo.sa-xs {
  width: 28px;
  height: 28px;
}
.sa-page-logo.sa-xs .sa-page-initials,
.sa-page-logo.sa-sm .sa-page-initials {
  font-size: 13px;
}
.sa-team .sa-admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.sa-team .sa-admin-row a.sa-grow {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
/* "Comment as": the picture itself is the switch (an invisible select over it, with a small caret). */
.sa-as-wrap {
  position: relative;
}
.sa-as-wrap::after {
  content: '▾';
  position: absolute;
  right: -4px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--sa-card);
  box-shadow: 0 0 0 1px var(--sa-line);
  color: var(--sa-ink);
  font-size: 9px;
  pointer-events: none;
}
.sa-comment-as {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  opacity: 0;
}
.sa-as-wrap:focus-within {
  outline: 3px solid var(--sa-gold);
  outline-offset: 2px;
  border-radius: 50%;
}

/* ---------- Group tools ---------- */
.sa-official {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--sa-gold);
  border-radius: 999px;
  background: var(--sa-gold-soft);
  color: var(--sa-ink);
  font-size: 13.5px;
  text-decoration: none;
}
.sa-official .sa-page-logo {
  width: 26px;
  height: 26px;
  box-shadow: none;
}
.sa-official .sa-seal {
  margin-left: 0;
}
.sa-rules {
  margin: 0;
  padding-left: 22px;
}
.sa-rules li {
  margin: 0 0 6px;
}
.sa-join-ask {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sa-answer {
  margin: 0;
  padding: 6px 10px;
  border-left: 3px solid var(--sa-gold);
  background: var(--sa-soft);
  border-radius: 6px;
  font-size: 14px;
}
.sa-answer small {
  display: block;
}
/* Sign-up sheets */
.sa-signup {
  margin: 6px 16px 12px;
  padding: 12px 14px;
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  background: var(--sa-soft);
}
.sa-signup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--sa-gold-dark);
}
.sa-signup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--sa-line);
}
.sa-signup-row.sa-mine strong::after {
  content: ' · You’re signed up';
  color: var(--sa-gold-dark);
  font-size: 13px;
  font-weight: 600;
}
.sa-signup-meter {
  overflow: hidden;
  height: 6px;
  margin: 6px 0 4px;
  border-radius: 99px;
  background: var(--sa-line);
}
.sa-signup-meter span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--sa-gold);
}
.sa-full .sa-signup-meter span {
  background: #2e7d4f;
}
.sa-signup-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
}
.sa-signup-people a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}
.sa-slot-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.sa-slot-edit input[type='text'] {
  flex: 1;
  min-width: 0;
}
.sa .sa-slot-need {
  flex: none;
  width: 64px;
}
/* The first slot has no remove button; keep its row as wide as the others. */
.sa-slot-edit:first-child::after {
  content: '';
  flex: none;
  width: 32px;
}
.sa .sa-slot-remove {
  flex: none;
  width: 32px;
  height: 32px;
}
/* A Page's official groups */
.sa-org-group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sa-org-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-org-group-cover {
  display: block;
  flex: none;
  overflow: hidden;
  width: 56px;
  height: 40px;
  border-radius: 8px;
  background: #111;
}
.sa-org-group-cover.sa-default-cover {
  background: #111 url('/assets/social-cover-default-sm.webp') center / cover no-repeat;
}
.sa-org-group-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-org-group .sa-grow a {
  display: block;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.sa .sa-org-masthead .sa-btn.sa-join-group-btn {
  border: 1px solid rgba(226, 196, 110, 0.55);
  background: rgba(226, 196, 110, 0.12);
  color: #f6e7b8 !important;
}
.sa .sa-rules {
  list-style: decimal;
}
.sa .sa-rules li {
  display: list-item;
}
.sa-visit-page .sa-page-logo {
  width: 22px;
  height: 22px;
  box-shadow: 0 0 0 1.5px var(--sa-gold);
}
.sa-visit-page .sa-page-initials {
  font-size: 9px;
}
.sa-org-group {
  flex-wrap: wrap;
}
.sa-org-group .sa-grow {
  flex: 1 1 140px;
}
.sa-org-group .sa-btn {
  white-space: nowrap;
}
.sa-signup-row > .sa-grow {
  flex: 1 1 220px;
}

/* ================= Page tools ================= */
.sa-page-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 18px 20px;
  border-top: 3px solid var(--sa-gold);
  text-align: center;
}
.sa-page-impact strong {
  display: block;
  font: 400 40px/1.05 var(--sa-headline);
  letter-spacing: 0.02em;
}
.sa-page-impact span {
  color: var(--sa-muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sa-needs h2,
.sa-goal h2 {
  margin: 0;
}
.sa-need-list {
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.sa-need {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--sa-line);
}
.sa-need small {
  display: block;
}
.sa-need.sa-urgent {
  box-shadow: inset 3px 0 0 #b3261e;
  padding-left: 10px;
}
.sa-need.sa-met strong {
  color: var(--sa-muted);
  text-decoration: line-through;
}
.sa-urgent-tag {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fbe3df;
  color: #8a1c12;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sa-need-tools {
  display: flex;
  gap: 12px;
}
.sa-offer-need {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sa-gold-soft);
}
.sa-goal {
  border-top: 3px solid var(--sa-gold);
}
.sa-goal-bar {
  overflow: hidden;
  height: 12px;
  margin: 12px 0 8px;
  border-radius: 99px;
  background: var(--sa-line);
}
.sa-goal-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--sa-foil, var(--sa-gold));
}
.sa-goal-line {
  margin: 0 0 2px;
}
.sa-goal-raised {
  font: 400 30px/1 var(--sa-headline);
}
.sa-open-badge,
.sa-closed-badge {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
}
.sa-open-badge {
  background: #dff3e6;
  color: #1d6b3c;
}
.sa-closed-badge {
  background: var(--sa-soft);
  color: var(--sa-muted);
}
html.sa-dark .sa-open-badge {
  background: #1f3d2a;
  color: #9fe0b5;
}
.sa-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.sa-hours-table th,
.sa-hours-table td {
  padding: 4px 0;
  text-align: left;
  font-weight: 500;
}
.sa-hours-table td {
  text-align: right;
}
.sa-hours-table tr.sa-today {
  font-weight: 800;
}
.sa-hours-table tr.sa-today th,
.sa-hours-table tr.sa-today td {
  font-weight: 800;
  color: var(--sa-gold-dark);
}
.sa-help-card {
  border-left: 4px solid var(--sa-gold);
}
.sa-testimonial {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sa-soft);
}
.sa-testimonial blockquote {
  margin: 0 0 8px;
  font: italic 400 16px/1.55 var(--sa-serif);
}
.sa-testimonial blockquote::before {
  content: '“';
  color: var(--sa-gold);
}
.sa-testimonial blockquote::after {
  content: '”';
  color: var(--sa-gold);
}
.sa-testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
}
.sa-testimonial figcaption a {
  color: inherit;
  text-decoration: none;
}
.sa-team-inbox {
  border-top: 3px solid var(--sa-gold);
}
.sa-inbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--sa-line);
  background: none;
  color: var(--sa-ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.sa-badge-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #b3261e;
  color: #fff;
  font-size: 12.5px;
  text-align: center;
}
.sa-offer {
  padding: 12px 0;
  border-top: 1px solid var(--sa-line);
}
.sa-offer p {
  margin: 6px 0;
}
.sa-offer-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-offer-head small {
  display: block;
}
.sa-featured {
  outline: 2px solid var(--sa-gold);
}
.sa-hours-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.sa-hours-edit .sa-check {
  min-width: 130px;
}
.sa-edit-section {
  padding: 10px 0;
  border-top: 1px solid var(--sa-line);
}
.sa-edit-section summary {
  font-weight: 700;
  cursor: pointer;
}
.sa-edit-section > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.sa .sa-btn.sa-donate-btn {
  color: #f6e7b8 !important;
}
.sa-need > .sa-grow {
  flex: 1 1 160px;
}
/* Impact numbers on black, like the Page's masthead, so the gold foil numbers glow. */
.sa .sa-page-impact {
  border: 0;
  border-top: 2px solid var(--sa-gold);
  background: #0b0b0b;
  box-shadow: inset 0 -1px 0 rgba(198, 163, 74, 0.35), var(--sa-shadow, 0 1px 2px rgba(0, 0, 0, 0.1));
}
.sa .sa-page-impact > div + div {
  border-left: 1px solid rgba(198, 163, 74, 0.28);
}
.sa .sa-page-impact strong {
  font-size: 46px;
}
.sa .sa-page-impact span {
  color: #e2c46e;
}
@media (max-width: 520px) {
  .sa .sa-page-impact > div + div {
    border-left: 0;
    border-top: 1px solid rgba(198, 163, 74, 0.28);
    padding-top: 10px;
  }
}

/* ---------- Page messages, albums, events, partners, insights ---------- */
.sa-msg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 4px;
}
.sa-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--sa-soft);
}
.sa-msg p {
  margin: 0 0 2px;
  white-space: pre-line;
}
.sa-msg {
  align-self: flex-start;
}
.sa-msg.sa-msg-mine {
  align-self: flex-end;
  background: var(--sa-gold-soft);
}
.sa-msg-page {
  border-left: 3px solid var(--sa-gold);
}
.sa-thread-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 4px;
  border: 0;
  border-top: 1px solid var(--sa-line);
  background: none;
  color: var(--sa-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sa-thread-row small {
  display: block;
}
.sa-thread-row.sa-unread strong::after {
  content: ' •';
  color: #b3261e;
}
.sa-invite-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
}
.sa-invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--sa-line);
}
.sa-partner a.sa-grow {
  display: flex;
  align-items: center;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.sa-event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sa-event {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sa-event h3 {
  margin: 0 0 4px;
  font: 600 20px/1.25 var(--sa-serif);
}
.sa-event p {
  margin: 0 0 6px;
}
.sa-event.sa-canceled {
  opacity: 0.65;
}
.sa-event-date {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 62px;
  padding: 6px 0;
  border-radius: 10px;
  background: #0b0b0b;
  color: #f6e7b8;
}
.sa-event-date span {
  color: var(--sa-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.sa-event-date strong {
  font: 400 30px/1 var(--sa-headline);
}
.sa-event-link {
  color: inherit;
  text-decoration: none;
}
.sa-event-host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
}
.sa-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.sa-album {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
.sa-album-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #111;
}
.sa-album-cover.sa-default-cover {
  background: #111 url('/assets/social-cover-default-sm.webp') center / cover no-repeat;
}
.sa-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.sa-album:hover .sa-album-cover img {
  transform: scale(1.04);
}
.sa-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.sa-tile {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sa-soft);
}
.sa-tile strong {
  display: block;
  font: 400 32px/1.05 var(--sa-headline);
}
.sa-tile span {
  color: var(--sa-muted);
  font-size: 13px;
}
.sa-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  padding-top: 6px;
  border-bottom: 1px solid var(--sa-line);
}
.sa-bars span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--sa-gold);
}
.sa-top-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--sa-line);
  color: inherit;
  text-decoration: none;
}

/* ---------- Pages map ---------- */
.sa-map-card {
  padding: 10px;
}
.sa-map {
  position: relative;
  overflow: hidden;
  height: 440px;
  border-radius: 10px;
  background: #e8e4da;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.sa-map:focus-visible {
  outline: 3px solid var(--sa-gold);
}
.sa-map.sa-dragging {
  cursor: grabbing;
}
.sa-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  pointer-events: none;
}
html.sa-dark .sa-map-tiles {
  filter: brightness(0.72) contrast(1.1) saturate(0.6);
}
.sa-map-pin {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -100%);
  cursor: pointer;
}
.sa-map-pin::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  border: 7px solid transparent;
  border-top-color: var(--sa-gold);
  border-bottom: 0;
  transform: translateX(-50%);
}
.sa .sa-map-pin .sa-page-logo {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sa-gold), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.sa-map-pop {
  position: absolute;
  z-index: 3;
  width: 250px;
  padding: 12px;
  border-radius: 12px;
  background: var(--sa-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, calc(-100% - 58px));
}
.sa-map-pop[hidden] {
  display: none;
}
.sa-map-pop-head {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.sa-map-pop-head small {
  display: block;
}
.sa-map-pop-head strong {
  display: flex;
  align-items: center;
}
.sa-map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.sa-map-zoom {
  width: 36px;
  height: 36px;
  border: 0;
  border-bottom: 1px solid var(--sa-line);
  background: var(--sa-card);
  color: var(--sa-ink);
  font: 700 20px/1 Inter, Arial, sans-serif;
  cursor: pointer;
}
.sa-map-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 11px;
}
.sa-map-credit a {
  color: inherit;
}
.sa-map-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 4px;
  border: 0;
  border-top: 1px solid var(--sa-line);
  background: none;
  color: var(--sa-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sa-map-row strong {
  display: flex;
  align-items: center;
}
.sa-map-row small {
  display: block;
}
@media (max-width: 700px) {
  .sa-map {
    height: 340px;
  }
}
.sa-map-pop.sa-below {
  transform: translate(-50%, 14px);
}
.sa-map-row > .sa-grow {
  flex: 1;
}
/* Create (+) menu in the top bar */
.sa-create-menu {
  width: 320px;
  padding: 8px;
}
.sa-create-menu .sa-small-head {
  margin: 4px 8px 6px;
}
.sa-create-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--sa-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sa-create-item:hover,
.sa-create-item:focus-visible {
  background: var(--sa-soft);
}
.sa-create-item strong,
.sa-create-item small {
  display: block;
}
.sa-create-item small {
  font-size: 13px;
  line-height: 1.3;
}
.sa-create-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sa-gold-soft);
  color: var(--sa-gold-dark);
}
/* Posting in a group: choose yourself or one of your Pages. */
.sa-post-as {
  display: block;
  max-width: 100%;
  margin: 0 0 2px;
  padding: 4px 28px 4px 10px;
  border: 1px solid var(--sa-line, #e2ddd0);
  border-radius: 8px;
  background: var(--sa-card, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center;
  appearance: none;
  color: var(--sa-ink);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
/* Dark mode: the "post as" choice sits on the dark card, with a light arrow. */
html.sa-dark .sa-post-as {
  border-color: var(--sa-border);
  background-color: var(--sa-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c6a34a' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color: var(--sa-ink);
}
html.sa-dark .sa-post-as option {
  background: #242526;
  color: #e4e6eb;
}
.sa-post-as:focus-visible {
  outline: 3px solid var(--sa-gold);
  outline-offset: 1px;
}
/* Verified nonprofit: a gold award ribbon at the top right of the black band (never over the cover).
   Room is kept beside it so the name and buttons never run underneath. */
.sa-org-masthead.sa-has-award {
  padding-right: 178px;
  min-height: 272px; /* 84px under the cover line + the ribbon */
}
.sa-award {
  position: absolute;
  top: 100px; /* the band starts 84px down */
  right: 30px;
  width: 124px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.sa-award-main {
  font-family: var(--sa-headline), 'Bebas Neue', Impact, sans-serif;
  font-size: 16.5px;
  letter-spacing: 0.05em;
}
.sa-award-shine {
  animation: sa-award-shine 5.5s ease-in-out 1s infinite;
}
@keyframes sa-award-shine {
  0% {
    transform: skewX(-20deg) translateX(0);
  }
  40%,
  100% {
    transform: skewX(-20deg) translateX(230px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sa-award-shine {
    animation: none;
    opacity: 0;
  }
}
/* Page header buttons: main actions, then the rest. On a computer both groups flow as one row. */
.sa-act-main,
.sa-act-more {
  display: contents;
}
.sa-act-label {
  display: none;
}
.sa-nowrap {
  white-space: nowrap;
}
.sa .sa-org-title h1 {
  display: block;
}
.sa-org-title h1 .sa-seal {
  vertical-align: -0.1em;
}

/* Phones: a cleaner Page header. A wider cover, a smaller left-aligned logo, the name and details
   left-aligned, the main actions as one row of equal buttons, and the rest as small icon buttons. */
@media (max-width: 700px) {
  .sa-org .sa-cover {
    height: auto;
    aspect-ratio: 12 / 5;
  }
  .sa .sa-org-masthead {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: -46px;
    padding: 0 16px 16px;
    text-align: left;
  }
  .sa .sa-org-masthead::before {
    inset: 46px 0 0;
  }
  .sa .sa-org-masthead .sa-page-logo.sa-xl {
    width: 92px;
    height: 92px;
    font-size: 34px;
  }
  .sa .sa-org-title {
    min-width: 0;
    padding: 0;
  }
  .sa .sa-org-title h1 {
    font-size: 26px;
    line-height: 1.2;
    text-align: left;
  }
  .sa .sa-org-title .sa-page-kicker {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .sa .sa-org-masthead > * {
    min-width: 0;
    max-width: 100%;
  }
  .sa .sa-page-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 4px 0 0;
  }
  .sa-page-actions svg {
    flex: none;
  }
  /* Main actions two to a row; an odd one out takes the whole row. */
  .sa-act-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sa-act-main > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .sa-act-main > * {
    min-width: 0;
  }
  .sa-act-main .sa-follow-wrap {
    display: flex;
  }
  .sa-act-main .sa-btn,
  .sa-act-main .sa-follow-wrap .sa-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 9px 8px;
    white-space: nowrap;
  }
  .sa-act-more {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .sa-act-more > .sa-btn,
  .sa-act-more .sa-menu-wrap > .sa-btn {
    flex-direction: column;
    gap: 3px;
    width: 100%;
    min-height: 54px;
    padding: 7px 2px 6px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.1;
  }
  .sa-act-more .sa-menu-wrap {
    display: flex;
  }
  .sa-act-label {
    display: inline;
  }
  .sa-dots-glyph {
    height: 16px;
    font-size: 18px;
    line-height: 12px;
    letter-spacing: 1px;
  }
  /* The verified ribbon: a small medal in the black band's top right, beside the logo. */
  .sa-org-masthead.sa-has-award {
    padding-right: 16px;
    min-height: 0;
  }
  .sa-award {
    top: 54px; /* the band starts 46px down */
    right: 14px;
    width: 52px;
  }
  .sa-org-masthead.sa-has-award .sa-org-title h1 {
    padding-right: 54px;
  }
}


/* ===================================================================================
   Refined theme: a quieter, more prestigious frame for the organizations showcased here.
   Cool alabaster ground, white surfaces edged with a hairline instead of shadows and gold
   rules, one elegant serif for headings in sentence case, monochrome icons, and black
   primary buttons. Gold foil is kept for the Verified ribbon and for giving.
   =================================================================================== */
:root {
  --sa-bg: #f3f3f0;
  --sa-ink: #16181d;
  --sa-muted: #6b6a66;
  --sa-line: #e4e2dc;
  --sa-soft: #f5f4f1;
  --sa-hover: #ecebe6;
  --sa-button: #ecebe6;
  --sa-border: #d9d6ce;
  --sa-gold: #b8913a;
  --sa-gold-dark: #7e6220;
  --sa-shadow: none;
  --sa-backdrop: rgba(243, 243, 240, 0.8);
  --sa-skeleton: linear-gradient(90deg, #ecebe6 0%, #f7f7f4 50%, #ecebe6 100%);
  --sa-serif: 'P346 Serif', 'Source Serif 4', Georgia, serif;
}

/* Surfaces: white, a hairline edge, generous rounding, no drop shadows. */
.sa .sa-card {
  border: 1px solid var(--sa-line);
  border-radius: 14px;
  box-shadow: none;
}
html.sa-dark .sa .sa-card {
  border-color: #2f3031;
}
.sa .sa-landing-features li,
.sa .sa-post:has(.sa-letterhead),
.sa .sa-post.sa-post-page,
.sa .sa-pages-head,
.sa .sa-goal,
.sa .sa-team-inbox {
  border-top: 1px solid var(--sa-line);
}

/* Headings: one serif, sentence case. Big impact numbers keep their condensed figures. */
.sa h1,
.sa .sa-card h2,
.sa .sa-page-title,
.sa .sa-hero h1,
.sa .sa-reading h1,
.sa .sa-reading h2,
.sa .sa-welcome-copy h1,
.sa .sa-gate-brand h1,
.sa .sa-gate-card h2,
.sa .sa-join-head h1,
.sa .sa-thanks h1,
.sa .sa-empty h2,
.sa .sa-profile-row h1,
.sa .sa-dialog-head h2,
.sa .sa-panel-head h2,
.sa .sa-news-title,
.sa .sa-news-herald .sa-news-title,
.sa .sa-give h2,
.sa .sa-side-head h2,
.sa .sa-landing h2,
.sa .sa-rich .sa-rich-h2 {
  font-family: var(--sa-serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-transform: none;
}
.sa .sa-card h2,
.sa .sa-side-head h2 {
  font-size: 19px;
}
.sa .sa-give h2 {
  font-size: 19px;
}
.sa .sa-page-title {
  font-size: 30px;
}
.sa .sa-hero h1,
.sa .sa-reading h1 {
  font-size: 36px;
}
.sa .sa-reading h2 {
  font-size: 22px;
}
.sa .sa-gate-card h2,
.sa .sa-gate-split > .sa-gate-card h2 {
  font-size: 26px;
}
.sa .sa-join-head h1,
.sa .sa-thanks h1 {
  font-size: 32px;
}
.sa .sa-empty h2 {
  font-size: 26px;
}
.sa .sa-profile-row h1 {
  font-size: 34px;
}
.sa .sa-dialog-head h2,
.sa .sa-panel-head h2 {
  font-size: 22px;
}
.sa .sa-news-title {
  font-size: 24px;
}
.sa .sa-landing h2 {
  font-size: 30px;
}

/* Small labels: sentence case, quiet, no tracking. */
.sa .sa-page-kicker,
.sa .sa-page-tag,
.sa .sa-group legend {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.sa .sa-page-kicker {
  font-size: 14px;
}
.sa-pages-head .sa-page-kicker {
  color: var(--sa-muted);
}

/* The left menu: monochrome line icons; the current place marked with a thin gold bar. */
.sa .sa-shortcuts .sa-ico:has(> svg) {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: none !important;
  color: var(--sa-ink) !important;
}
.sa .sa-shortcuts a {
  position: relative;
  border-radius: 10px;
}
.sa .sa-shortcuts a[aria-current='page'] {
  background: var(--sa-card);
  box-shadow: inset 0 0 0 1px var(--sa-line);
  font-weight: 600;
}
.sa .sa-shortcuts a[aria-current='page']::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: var(--sa-gold);
}
.sa .sa-shortcuts a[aria-current='page'] .sa-ico {
  color: var(--sa-gold-dark) !important;
}
html.sa-dark .sa .sa-shortcuts .sa-ico:has(> svg) {
  color: var(--sa-ink) !important;
}

/* Buttons: black primary; gold is for giving and the gold foil buttons. */
.sa .sa-btn {
  background: var(--sa-black);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sa .sa-btn:hover {
  filter: none;
  background: #262626;
}
.sa .sa-btn.sa-quiet {
  background: var(--sa-card);
  color: var(--sa-ink) !important;
  box-shadow: inset 0 0 0 1px var(--sa-border);
}
.sa .sa-btn.sa-quiet:hover {
  background: var(--sa-soft);
}
.sa .sa-btn.sa-dark {
  background: var(--sa-card);
  color: var(--sa-ink) !important;
  box-shadow: inset 0 0 0 1px var(--sa-ink);
}
.sa .sa-btn.sa-gold-btn {
  background: var(--sa-foil, var(--sa-gold));
  color: #111 !important;
}
.sa .sa-btn.sa-donate-btn {
  background: transparent;
  color: var(--sa-gold-dark) !important;
  box-shadow: inset 0 0 0 1px var(--sa-gold);
}
html.sa-dark .sa .sa-btn {
  background: #f2f0ea;
  color: #111 !important;
}
html.sa-dark .sa .sa-btn.sa-quiet {
  background: var(--sa-card);
  color: var(--sa-ink) !important;
}
/* On black bands (Page header, giving card) the light buttons keep their own colors. */
.sa .sa-org-masthead .sa-btn.sa-quiet {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.sa .sa-org-masthead .sa-btn.sa-donate-btn {
  color: #f1dfa6 !important;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.8);
}
.sa .sa-give .sa-btn {
  background: var(--sa-foil, var(--sa-gold));
  color: #111 !important;
}

/* The welcome and sign-in page: a pure black panel framed in a gold hairline, a calm white card. */
.sa .sa-gate-brand {
  background: #000;
  border-bottom: 0;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.35);
}
.sa .sa-gate-brand h1 {
  color: #fff !important;
  font-size: 46px;
  line-height: 1.12;
  background: none;
  -webkit-text-fill-color: #fff;
}
.sa .sa-gate-lead {
  color: #d9d6cd;
}
.sa .sa-gate-points li {
  color: #bdb9ae;
}
.sa .sa-gate-points strong {
  color: #fff;
}
.sa .sa-gate-ico {
  background: none !important;
  color: #d9b65c !important;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.45);
}
.sa .sa-gate-card,
.sa .sa-gate-split > .sa-gate-card {
  border: 1px solid var(--sa-line);
  border-bottom: 1px solid var(--sa-line);
  box-shadow: none;
}
.sa .sa-landing-features li {
  background: none;
  border: 0;
  border-top: 1px solid var(--sa-line);
  border-radius: 0;
  padding: 16px 0 0;
}
@media (max-width: 900px) {
  .sa .sa-gate-brand h1 {
    font-size: 34px;
  }
}
@media (max-width: 700px) {
  .sa .sa-gate-brand h1 {
    font-size: 30px;
  }
  .sa .sa-page-title {
    font-size: 26px;
  }
}
/* Post tools (Photo, Video, Prayer request, Feeling): one calm ink color instead of four. */
.sa .sa-tool > span:first-child {
  color: var(--sa-gold-dark) !important;
}
/* Dark mode keeps the gold on giving and gold-foil buttons. */
html.sa-dark .sa .sa-give .sa-btn,
html.sa-dark .sa .sa-btn.sa-gold-btn {
  background: var(--sa-foil, var(--sa-gold));
  color: #111 !important;
}
html.sa-dark .sa .sa-btn.sa-donate-btn {
  background: transparent;
  color: #f1dfa6 !important;
  box-shadow: inset 0 0 0 1px var(--sa-gold);
}
/* Featured nonprofit: a black card with the organization's cover, logo and one impact number. */
.sa .sa-feature {
  padding: 0;
  overflow: hidden;
  background: #000;
  color: #f3f1ea;
  border: 1px solid rgba(201, 162, 74, 0.35);
}
.sa-feature-cover {
  height: 92px;
  background: #1a1a1a;
}
.sa-feature-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-feature-cover.sa-default-cover {
  background: #111 url('/assets/social-cover-default-sm.webp') center / cover no-repeat;
}
.sa-feature-body {
  padding: 0 16px 16px;
}
.sa-feature-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: -36px;
}
.sa-feature-top .sa-page-logo {
  box-shadow: 0 0 0 3px #000, 0 0 0 4.5px var(--sa-gold);
}
.sa-feature-kicker {
  padding-bottom: 4px;
  color: #d9b65c;
  font-size: 12px;
  font-weight: 600;
}
.sa .sa-feature .sa-feature-name {
  margin: 12px 0 2px;
  font-family: var(--sa-serif, 'P346 Serif', Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.sa-feature-name a {
  color: #fff;
  text-decoration: none;
}
.sa-feature-name a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(217, 182, 92, 0.7);
}
.sa .sa-feature p.sa-feature-meta {
  margin: 0 0 10px;
  color: #d9b65c;
  font-size: 13px;
}
.sa .sa-feature p.sa-feature-about {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #cfcabd;
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.sa-feature-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(201, 162, 74, 0.35);
  border-bottom: 1px solid rgba(201, 162, 74, 0.35);
}
.sa .sa-feature-stat .sa-impact-num {
  font-size: 34px;
  line-height: 1;
}
.sa-feature-stat-label {
  color: #e6e1d4;
  font-size: 13px;
  line-height: 1.3;
}
.sa-feature-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}
.sa-feature-actions > * {
  width: 100%;
}
.sa-feature-actions .sa-follow-wrap,
.sa-feature-actions .sa-follow-wrap .sa-btn {
  display: flex;
  width: 100%;
}
.sa .sa-feature .sa-btn.sa-quiet {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f1e6 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.sa .sa-feature .sa-btn.sa-gold-btn {
  background: var(--sa-foil, var(--sa-gold));
  color: #111 !important;
}
.sa .sa-feature p.sa-feature-note {
  margin: 12px 0 0;
  color: #9d968a;
  font-size: 12px;
}
.sa-feature-note a {
  color: #d9b65c;
}
/* ---------- Find help ---------- */
.sa .sa-help-head .sa-page-title {
  margin: 0 0 6px;
}
.sa-help-lead {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
}
.sa-help-urgent {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--sa-gold);
  background: var(--sa-soft);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}
.sa-help-urgent a {
  font-weight: 700;
  color: var(--sa-ink);
}
.sa-need-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.sa-need-chip {
  padding: 8px 14px;
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.sa-need-chip:hover {
  background: var(--sa-soft);
}
.sa-need-chip[aria-pressed='true'] {
  background: #000;
  border-color: #000;
  color: #fff;
}
html.sa-dark .sa-need-chip[aria-pressed='true'] {
  background: #f2f0ea;
  color: #111;
}
.sa-need-chip:focus-visible {
  outline: 3px solid var(--sa-gold);
  outline-offset: 2px;
}
.sa-help-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 180px auto;
  gap: 10px;
  align-items: center;
}
.sa-help-filters input[type='search'],
.sa-help-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
}
.sa-help-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 2px -4px;
}
.sa-help-count {
  margin: 0;
  color: var(--sa-muted);
  font-size: 14px;
}
.sa-help-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sa .sa-help-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sa .sa-help-name {
  margin: 0 0 2px;
  font-family: var(--sa-serif, 'P346 Serif', Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.sa-help-name a {
  color: var(--sa-ink);
  text-decoration: none;
}
.sa-help-name a:hover {
  text-decoration: underline;
}
.sa-help-meta {
  margin: 0 0 6px;
  color: var(--sa-muted);
  font-size: 14px;
}
.sa-help-serves {
  margin: 0 0 8px;
  font-size: 15px;
}
.sa-help-langs {
  margin: 8px 0 0;
  color: var(--sa-gold-dark);
  font-size: 14px;
  font-weight: 600;
}
.sa-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.sa-help-empty h2 {
  margin-top: 0;
}
.sa-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}
.sa-service-chip {
  padding: 3px 10px;
  border: 1px solid var(--sa-line);
  border-radius: 999px;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font-size: 13px;
  text-decoration: none;
}
a.sa-service-chip:hover {
  border-color: var(--sa-gold);
}
.sa-service-chip.sa-on {
  border-color: var(--sa-gold);
  background: #f6ecd2;
  color: #5a4512;
  font-weight: 600;
}
html.sa-dark .sa-service-chip.sa-on {
  background: #3a3020;
  color: #f1dfa6;
}
.sa-org-about .sa-service-chips {
  margin: 0 0 12px;
}
.sa-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-top: 8px;
}
/* The signed-out pages: a direct way to Find help. */
.sa .sa-gate-help {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 162, 74, 0.5);
  border-radius: 12px;
  color: #e9e4d6;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
}
.sa .sa-gate-help svg {
  flex: none;
  margin-top: 2px;
  color: #d9b65c;
}
.sa .sa-gate-help strong {
  color: #fff;
}
.sa .sa-gate-help:hover {
  background: rgba(201, 162, 74, 0.1);
}
.sa .sa-top-links .sa-help-link {
  border: 0;
  color: #f1dfa6 !important;
}
.sa-open-badge,
.sa-closed-badge {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .sa-help-filters {
    grid-template-columns: 1fr 1fr;
  }
  .sa-need-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px 14px;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }
  .sa-need-chip {
    flex: none;
  }
  .sa .sa-help-card .sa-page-logo {
    width: 48px;
    height: 48px;
  }
  .sa-check-grid {
    grid-template-columns: 1fr;
  }
  .sa .sa-top-links .sa-help-link {
    display: none;
  }
}
/* Default covers: a neutral black-and-gold pattern, so every organization, group and member
   looks like itself. Only P346's own Page keeps the Easton skyline. */
.sa .sa-cover,
html.sa-dark .sa .sa-cover,
.sa .sa-group-cover.sa-default-cover,
html.sa-dark .sa .sa-group-cover.sa-default-cover,
.sa .sa-page-card-cover.sa-default-cover,
.sa .sa-org-group-cover.sa-default-cover,
.sa .sa-album-cover.sa-default-cover,
.sa .sa-feature-cover.sa-default-cover,
.sa .sa-shortcuts .sa-group-ico.sa-default-cover {
  /* A fixed-size tile keeps the gold fan pattern visible on big covers and small tiles alike. */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 55%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(120% 90% at 50% 115%, rgba(201, 162, 74, 0.42), rgba(201, 162, 74, 0) 62%),
    url('/assets/social-cover-tile.svg') center bottom / 52px 26px repeat,
    #000;
}
.sa .sa-cover.sa-cover-p346,
html.sa-dark .sa .sa-cover.sa-cover-p346 {
  background: #e9d3a0 url('/assets/social-cover-default.webp') center / cover no-repeat;
}
.sa .sa-page-card-cover.sa-default-cover.sa-cover-p346 {
  background: #e9d3a0 url('/assets/social-cover-default-sm.webp') center / cover no-repeat;
}

/* No picture yet: gold initials on black, in the serif (like a Page's logo). */
.sa .sa-avatar.sa-no-photo:has(.sa-initials),
html.sa-dark .sa .sa-avatar.sa-no-photo:has(.sa-initials),
.sa .sa-me:has(> .sa-initials) {
  background: #0b0b0b;
  color: #e2c46e;
  container-type: size;
}
.sa .sa-initials {
  font-family: var(--sa-serif, 'P346 Serif', Georgia, serif);
  font-weight: 600;
  font-size: 40cqh;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #e2c46e;
  user-select: none;
}
/* ---------- Needs and offers board ---------- */
.sa-board-tabs {
  margin-bottom: 12px;
}
.sa-help-filters.sa-board-filters {
  grid-template-columns: 200px 1fr 1fr;
}
.sa-board-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sa .sa-board-card {
  border-left: 4px solid var(--sa-gold);
}
.sa .sa-board-card.sa-board-offer {
  border-left-color: var(--sa-ink);
}
.sa-board-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sa-board-kind {
  font-size: 13px;
  font-weight: 700;
  color: var(--sa-gold-dark);
}
.sa-board-offer .sa-board-kind {
  color: var(--sa-ink);
}
.sa .sa-board-label {
  margin: 8px 0 4px;
  font-family: var(--sa-serif, 'P346 Serif', Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.sa-board-detail {
  margin: 0 0 4px;
  font-size: 15px;
}
.sa-board-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--sa-line);
}
.sa-board-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sa-ink);
  font-weight: 600;
  text-decoration: none;
}
.sa-board-page:hover span {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .sa-help-filters.sa-board-filters {
    grid-template-columns: 1fr 1fr;
  }
  .sa-help-filters.sa-board-filters select {
    grid-column: 1 / -1;
  }
}
/* The representative's promise when creating a Page. */
.sa .sa-attest {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  font-weight: 600;
}
/* ---------- Español / English switch (Find help, sign in, join) ---------- */
.sa-help-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.sa .sa-lang-switch {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  color: var(--sa-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.sa .sa-lang-switch:hover {
  border-color: var(--sa-gold);
}
.sa .sa-lang-switch:focus-visible {
  outline: 3px solid var(--sa-gold);
  outline-offset: 2px;
}
.sa .sa-gate-lang {
  margin: 16px 0 0;
}
.sa .sa-gate-brand .sa-lang-switch {
  border-color: rgba(201, 162, 74, 0.6);
  color: #f1dfa6;
}
/* ---------- Printing: Find help lists and Page posters ---------- */
.sa-print-sheet {
  display: none;
}
@media print {
  html.sa-printing body > *:not(.sa-print-sheet) {
    display: none !important;
  }
  html.sa-printing,
  html.sa-printing body {
    background: #fff !important;
    color: #000 !important;
  }
  html.sa-printing .sa-print-sheet {
    display: block;
    font-family: 'Inter', Arial, sans-serif;
    color: #000;
    font-size: 11pt;
    line-height: 1.35;
  }
  .sa-print-sheet h1,
  .sa-print-sheet h2 {
    font-family: var(--sa-serif, 'P346 Serif', Georgia, serif);
    color: #000;
    text-transform: none;
    letter-spacing: 0;
  }
  .sa-print-sheet p {
    margin: 0 0 2pt;
  }
  .sa-print-head {
    border-bottom: 2pt solid #000;
    padding-bottom: 8pt;
    margin-bottom: 8pt;
  }
  .sa-print-brand {
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #7e6220;
  }
  .sa-print-head h1 {
    margin: 2pt 0 4pt;
    font-size: 24pt;
  }
  .sa-print-note {
    font-size: 11pt;
    padding: 6pt 8pt;
    border-left: 3pt solid #000;
    margin-bottom: 8pt !important;
    white-space: pre-wrap;
  }
  .sa-print-urgent {
    padding: 5pt 8pt;
    border: 1pt solid #000;
    font-weight: 700;
    font-size: 10pt;
    margin-bottom: 10pt !important;
  }
  .sa-print-list {
    margin: 0;
    padding-left: 16pt;
  }
  .sa-print-org {
    break-inside: avoid;
    padding: 6pt 0;
    border-bottom: 0.5pt solid #999;
  }
  .sa-print-org h2 {
    margin: 0 0 2pt;
    font-size: 13pt;
  }
  .sa-print-verified {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 9pt;
    font-weight: 700;
    color: #7e6220;
  }
  .sa-print-kind,
  .sa-print-services {
    font-size: 9.5pt;
    color: #333;
  }
  .sa-print-foot {
    display: flex;
    gap: 12pt;
    align-items: center;
    margin-top: 12pt;
    padding-top: 10pt;
    border-top: 2pt solid #000;
    break-inside: avoid;
  }
  .sa-print-foot .sa-print-qr svg {
    width: 1.1in;
    height: 1.1in;
    display: block;
  }
  /* The poster: one page, a big QR code in the middle. */
  .sa-print-poster {
    text-align: center;
  }
  .sa-poster-top {
    display: flex;
    gap: 16pt;
    align-items: center;
    justify-content: center;
    text-align: left;
    border-bottom: 3pt solid #000;
    padding-bottom: 12pt;
  }
  .sa-poster-top .sa-page-logo {
    width: 1.1in !important;
    height: 1.1in !important;
    flex: none;
    border: 2pt solid #b8913a;
  }
  .sa-poster-top h1 {
    margin: 0;
    font-size: 30pt;
    line-height: 1.1;
  }
  .sa-poster-about {
    margin: 14pt auto 6pt !important;
    max-width: 6in;
    font-size: 13pt;
  }
  .sa-poster-qr {
    margin: 14pt auto;
  }
  .sa-poster-qr svg {
    width: 3.4in;
    height: 3.4in;
    display: block;
    margin: 0 auto;
  }
  .sa-poster-scan {
    margin-top: 6pt !important;
    font-size: 18pt;
    font-weight: 700;
  }
  .sa-poster-link {
    font-size: 11pt;
    color: #333;
  }
  .sa-poster-facts {
    display: inline-block;
    text-align: left;
    font-size: 13pt;
    margin-top: 4pt;
  }
  .sa-print-foot-line {
    margin-top: 16pt !important;
    padding-top: 8pt;
    border-top: 1pt solid #000;
    font-size: 9pt;
    color: #333;
  }
  @page {
    margin: 0.5in;
  }
}
/* Volunteer Opportunities (board, Page tab and cards). A gold spots bar shows how full each one is. */
.sa .sa-opp {
  border-left: 4px solid var(--sa-gold);
}
.sa .sa-opp.sa-opp-full,
.sa .sa-opp.sa-opp-closed {
  border-left-color: var(--sa-line);
}
.sa .sa-opp-title {
  margin: 8px 0 6px;
  font-family: var(--sa-serif, 'P346 Serif', Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.sa-opp-facts {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 15px;
}
.sa-opp-facts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.sa-opp-facts svg {
  flex: none;
  margin-top: 2px;
  color: var(--sa-gold-dark);
}
.sa-opp-desc {
  margin: 8px 0 0;
  font-size: 15px;
  white-space: pre-line;
}
.sa-opp-spots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.sa-opp-bar {
  flex: 1;
  max-width: 220px;
  height: 8px;
  border-radius: 999px;
  background: var(--sa-soft);
  overflow: hidden;
}
.sa-opp-bar i {
  display: block;
  height: 100%;
  background: var(--sa-gold);
  border-radius: inherit;
}
.sa-opp-full .sa-opp-bar i {
  background: var(--sa-ink-2);
}
.sa-opp-spots small {
  font-weight: 600;
  color: var(--sa-ink-2);
}
.sa-opp-mine,
.sa-opp-team {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sa-opp-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--sa-gold-dark);
}
.sa .sa-opp-mine-list h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.sa-opp-mine-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--sa-line);
  color: var(--sa-ink);
  text-decoration: none;
}
.sa-opp-mine-row:hover strong {
  text-decoration: underline;
}
.sa .sa-form-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .sa .sa-form-row {
    grid-template-columns: 1fr 1fr;
  }
  .sa .sa-form-row > :first-child {
    grid-column: 1 / -1;
  }
}
.sa-signup-row {
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid var(--sa-line);
}
/* Shifts: the list on a card, the rows in the team's form, and the sign-up picker. */
.sa-opp-shifts {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--sa-line);
  font-size: 14px;
}
.sa-opp-shifts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--sa-line);
}
.sa-opp-shifts small {
  font-weight: 600;
  color: var(--sa-ink-2);
  white-space: nowrap;
}
.sa-opp-shifts .sa-opp-shift-full {
  color: var(--sa-muted);
}
.sa-opp-shifts .sa-opp-shift-past {
  color: var(--sa-muted);
}
.sa-opp-shifts .sa-opp-yes {
  font-size: 13px;
  gap: 4px;
}
.sa-shift-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.7fr 32px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.sa-shift-row input {
  min-width: 0;
}
.sa-shift-head {
  margin-bottom: 2px;
}
.sa-shift-head small {
  font-size: 12px;
  font-weight: 600;
  color: var(--sa-muted);
}
.sa-shift-past input {
  color: var(--sa-muted);
}
.sa .sa-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--sa-soft);
  color: var(--sa-ink-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.sa .sa-icon-btn:hover {
  background: var(--sa-line);
}
.sa-shift-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.sa-shift-tools select {
  width: auto;
}
@media (max-width: 560px) {
  .sa-shift-row {
    grid-template-columns: 1fr 1fr 32px;
  }
  .sa-shift-row > input[type='date'] {
    grid-column: 1 / -1;
  }
  .sa-shift-head {
    display: none;
  }
}
.sa-opp-pick .sa-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-signup-group + .sa-signup-group {
  margin-top: 12px;
}
.sa-signup-group h3 {
  margin: 0 0 4px;
}
.sa-opp-shifts li > .sa-grow {
  flex: 1;
  min-width: 0;
}
.sa-opp-shifts li > small {
  min-width: 80px;
  text-align: right;
}
.sa .sa-shift-row input {
  font-size: 14px;
  padding: 8px 6px;
}
.sa-shift-row {
  grid-template-columns: 1.3fr 1.2fr 1.2fr 0.6fr 32px;
}
/* "Before you serve": what an organization requires, and the reminder that signing up isn't approval. */
.sa-opp-screen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
}
.sa-opp-screen-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--sa-ink-2);
}
.sa-opp-screen-tag {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--sa-gold);
  color: var(--sa-ink);
  background: var(--sa-card);
}
.sa-opp-screen-box {
  padding: 12px 14px;
  border: 1px solid var(--sa-gold);
  border-radius: 10px;
  background: var(--sa-soft);
}
.sa-opp-screen-box ul {
  margin: 6px 0 8px;
  padding-left: 20px;
}
.sa .sa-opp-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sa-muted);
}
.sa-help-head .sa-opp-note {
  margin: 4px 0 8px;
}
.sa-screen .sa-check {
  margin: 2px 0;
}
.sa-screen-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px 28px;
  font-size: 14px;
}
/* Waitlist, calendar menu and the team's messages on a volunteer listing. */
.sa-opp-wait {
  font-weight: 700;
  color: var(--sa-ink-2);
}
.sa-opp-shifts .sa-opp-wait {
  font-size: 13px;
}
.sa-cal .sa-menu {
  right: 0;
  left: auto;
  min-width: 210px;
}
.sa-opp-updates {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sa-soft);
  border-left: 3px solid var(--sa-gold);
  font-size: 14px;
}
.sa-opp-updates p {
  margin: 4px 0 0;
  white-space: pre-line;
}
.sa-opp-team {
  flex-wrap: wrap;
}
.sa-cal .sa-menu {
  top: auto;
  bottom: calc(100% + 6px);
}
/* Group sign-ups, the opportunity a shared link points to, and the printed flyer. */
.sa-opp-group {
  margin: 4px 0 4px 28px;
}
.sa .sa-opp.sa-opp-focus {
  box-shadow: 0 0 0 3px var(--sa-gold);
}
.sa-flyer-kicker {
  margin: 0 0 4px;
  font-size: 18pt;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #8a6a16;
}
.sa-flyer-shifts {
  margin: 0 0 8px;
  padding-left: 20px;
  columns: 2;
}
/* Volunteer profile chips (Settings) and the volunteer directory. */
.sa-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sa-chip-check {
  position: relative;
  display: inline-flex;
}
.sa-chip-check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.sa-chip-check span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--sa-line);
  background: var(--sa-card);
  font-size: 14px;
}
.sa-chip-check input:checked + span {
  background: var(--sa-ink);
  border-color: var(--sa-ink);
  color: #fff;
}
.sa-chip-check input:focus-visible + span {
  outline: 3px solid var(--sa-gold);
  outline-offset: 2px;
}
.sa-chip-group {
  margin-bottom: 12px;
}
.sa-badge-switch {
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: var(--sa-soft);
  margin-bottom: 12px;
}
.sa-vol-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sa-vol-name {
  display: block;
  font-weight: 700;
  font-size: 17px;
  color: var(--sa-ink);
}
.sa-vol-about {
  margin: 10px 0 0;
  font-size: 15px;
}
.sa-vol-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
}
.sa-vol-facts {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--sa-muted);
}
.sa-vol-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.sa-vol-bottom select {
  width: auto;
}
.sa-vol-head > .sa-grow {
  flex: 1;
  min-width: 0;
}
/* Marking who came, the volunteer resume, hours letters and checking them. */
.sa-came-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--sa-line);
}
.sa-came-row input[type='number'] {
  width: 80px;
}
.sa-came-row .sa-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-resume-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sa .sa-resume-head h1 {
  margin: 0;
  font-size: 30px;
}
.sa-resume-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 12px;
}
.sa-resume-totals div {
  padding: 12px;
  border-radius: 10px;
  background: var(--sa-soft);
  border-top: 3px solid var(--sa-gold);
  text-align: center;
}
.sa-resume-totals strong {
  display: block;
  font-family: var(--sa-serif, 'P346 Serif', Georgia, serif);
  font-size: 28px;
}
.sa-resume-totals span {
  font-size: 13px;
  color: var(--sa-muted);
}
.sa-resume-tags {
  margin: 4px 0;
  font-size: 15px;
}
.sa .sa-resume h2 {
  margin: 20px 0 8px;
  font-size: 19px;
}
.sa-resume-org {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--sa-line);
}
.sa-resume-org-name {
  font-weight: 700;
  color: var(--sa-ink);
}
.sa-resume-hours {
  white-space: nowrap;
}
.sa-resume-desc {
  margin: 4px 0 0;
  font-size: 14px;
}
.sa-resume-recent {
  margin-top: 10px;
  font-size: 14px;
}
.sa-resume-foot {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--sa-muted);
}
.sa-resume-tools h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.sa-resume-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-top: 8px;
}
.sa-resume-share input {
  width: min(420px, 100%);
  font-size: 13px;
}
.sa-resume-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
}
.sa-verify-ok {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid var(--sa-gold);
}
.sa-verify-ok h2,
.sa-verify-no h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 19px;
}
.sa-verify-no {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: var(--sa-soft);
}
@media (max-width: 560px) {
  .sa-resume-totals strong {
    font-size: 22px;
  }
}
@media print {
  /* Printing the resume page itself: just the resume. */
  html:not(.sa-printing) .sa-no-print,
  html:not(.sa-printing) header,
  html:not(.sa-printing) nav,
  html:not(.sa-printing) aside {
    display: none !important;
  }
  html:not(.sa-printing) .sa-resume {
    box-shadow: none;
    border: 0;
  }
  .sa-print-letter {
    font-size: 11pt;
    line-height: 1.45;
  }
  .sa-letter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2pt solid #000;
    padding-bottom: 10pt;
    margin-bottom: 14pt;
    font-size: 9.5pt;
    text-align: right;
  }
  .sa-print-letter h1 {
    font-size: 20pt;
    margin: 10pt 0;
  }
  .sa-print-letter p {
    margin: 0 0 8pt !important;
  }
  .sa-letter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8pt 0 10pt;
    font-size: 10pt;
  }
  .sa-letter-table th,
  .sa-letter-table td {
    border-bottom: 0.75pt solid #999;
    padding: 4pt 6pt 4pt 0;
    text-align: left;
    vertical-align: top;
  }
  .sa-letter-table td:last-child,
  .sa-letter-table th:last-child {
    text-align: right;
  }
  .sa-letter-table tfoot td {
    font-weight: 700;
    border-bottom: 0;
    border-top: 1.5pt solid #000;
  }
  .sa-letter-check {
    margin: 12pt 0;
    padding: 8pt 10pt;
    border: 1pt solid #000;
  }
  .sa-letter-small {
    font-size: 8.5pt;
    color: #444;
  }
}
.sa-resume-org > .sa-grow {
  flex: 1;
  min-width: 0;
}

/* ---------- Ease-of-use pass (2026-11-29) ---------- */
/* Messages: conversations with Pages are links. */
a.sa-thread-row {
  text-decoration: none;
}
a.sa-thread-row:hover {
  background: var(--sa-soft);
}
/* Settings: a section menu at the top; sections land below the top bar. */
.sa-settings-nav .sa-page-title {
  margin: 0;
}
.sa-settings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
/* "View your profile": the way back from Settings, at the top and after each save. */
.sa .sa-to-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 14px 4px 5px;
  text-decoration: none;
}
.sa .sa-to-profile .sa-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.sa .sa-status .sa-to-profile {
  margin-left: 6px;
  vertical-align: middle;
}
.sa .sa-ok-text {
  color: var(--sa-ok);
  font-weight: 600;
}
.sa-settings-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sa-settings-links .sa-need-chip {
  text-decoration: none;
}
.sa-settings-part {
  scroll-margin-top: 76px;
}
@media (max-width: 700px) {
  .sa-settings-part {
    scroll-margin-top: 118px;
  }
}
/* Volunteer Opportunities: "For you / Everything", and the note folded under "Before you serve". */
.sa-switch-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}
.sa-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  background: var(--sa-soft);
}
.sa-switch button {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--sa-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sa-switch button[aria-pressed='true'] {
  background: #000;
  color: #fff;
}
html.sa-dark .sa-switch button[aria-pressed='true'] {
  background: #f2f0ea;
  color: #111;
}
.sa-switch button:focus-visible {
  outline: 3px solid var(--sa-gold);
  outline-offset: 2px;
}
.sa-opp-about {
  margin: 4px 0 8px;
}
.sa-opp-about summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--sa-gold-dark, #7a5a12);
}
.sa-opp-about[open] summary {
  margin-bottom: 6px;
}
html.sa-dark .sa-opp-about summary {
  color: var(--sa-gold);
}
/* Create a Page: the kinds of organization stack as full-width rows. */
.sa-choice-rows label {
  flex: 1 1 100%;
  align-items: flex-start;
}
.sa-choice-rows input {
  margin-top: 3px;
}
/* Volunteer directory: the resume link and the town on their own lines; the sort menu matches the filters. */
.sa-vol-head > .sa-grow > .sa-link,
.sa-vol-head > .sa-grow > small {
  display: block;
}
.sa-vol-bottom select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
}
.sa-thread-row > .sa-grow {
  flex: 1;
  min-width: 0;
}
@media (max-width: 700px) {
  .sa-help-bar {
    padding: 0 12px;
  }
}
/* Settings → Phone and notifications */
.sa-phone-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--sa-border);
}
.sa-phone-row:first-child {
  border-top: 0;
  padding-top: 4px;
}
.sa-phone-row p {
  margin: 4px 0 0;
  font-size: 14px;
}
.sa-phone-row > .sa-grow {
  flex: 1;
  min-width: 0;
}
.sa-phone-row > .sa-btn {
  flex: none;
}
@media (max-width: 520px) {
  .sa-phone-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.sa-phone-tip {
  margin: 0 0 12px;
}
/* Organizations listed by P346 staff, ready to claim */
.sa-unclaimed-tag {
  display: inline-block;
  margin: 4px 0;
  padding: 2px 10px;
  border: 1px dashed var(--sa-border);
  border-radius: 999px;
  color: var(--sa-muted);
  font-size: 13px;
}
.sa-claim-note {
  margin: 12px 16px;
}
.sa-claim-link {
  font-weight: 700;
}
/* Phone numbers: tap to call (a phone number never breaks across lines) */
.sa-tel {
  white-space: nowrap;
}

/* ---------- Phone layout: nothing scrolls sideways or gets cut off ---------- */
/* Page impact numbers sit on one line, top-aligned, however long a label is. */
.sa .sa-page-impact {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: start;
}
/* The Page's own "Get help" card is a plain card, not a Find help result row. */
.sa .sa-help-card#get-help {
  display: block;
}
.sa-photo-pair {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.sa-help-bar {
  flex-wrap: wrap;
}
.sa-board-page {
  flex-wrap: wrap;
  row-gap: 2px;
  min-width: 0;
}
.sa-need .sa-grow {
  min-width: min(100%, 200px);
}
@media (max-width: 700px) {
  .sa-side-head {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  /* Chip rows wrap onto more lines instead of scrolling sideways. */
  .sa .sa-chips,
  .sa .sa-need-chips {
    flex-wrap: wrap;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .sa .sa-chips {
    padding: 0 12px;
  }
  /* Page and profile tabs fill a grid so every tab shows. */
  .sa .sa-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 2px;
    padding: 4px 8px;
  }
  .sa .sa-tabs a {
    padding: 11px 6px;
    text-align: center;
    white-space: nowrap;
  }
  .sa-opp-mine-row {
    flex-wrap: wrap;
  }
  .sa-opp-mine-row > small {
    flex-basis: 100%;
    padding-left: 34px;
  }
}
@media (max-width: 520px) {
  .sa-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sa-photo-pair {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .sa .sa-help-filters,
  .sa .sa-help-filters.sa-board-filters {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .sa-person-card .sa-roles {
    max-width: 100%;
  }
  .sa-person-card .sa-role {
    max-width: 100%;
    white-space: nowrap;
    font-size: 9.5px;
    letter-spacing: 0.03em;
    padding-left: 6px;
    padding-right: 6px;
  }
  /* The town lines up under the organization's name, not under its logo. */
  .sa-board-page small {
    flex-basis: 100%;
    padding-left: 36px;
  }
}
/* A button sitting straight in a member card stretches between the card's margins. */
.sa-person-card > .sa-btn {
  width: auto;
}

/* ---------- Polish: calmer labels (sentence case; capitals only for short status tags) ---------- */
.sa .sa-milestone strong {
  font-family: var(--sa-serif, Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.sa .sa-give .sa-give-label {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.sa .sa-role-founding {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}
.sa .sa-scripture cite {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
.sa .sa-page-impact span {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ---------- Polish: labeled navigation on tablets and phones ---------- */
.sa-nav-label {
  display: none;
}
@media (max-width: 900px) {
  .sa .sa-nav a {
    flex-direction: column;
    gap: 3px;
    height: 58px;
  }
  .sa-nav-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
  }
  .sa .sa-nav a svg {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 700px) {
  .sa .sa-nav a {
    height: 54px;
  }
}

/* ---------- Polish: one row of Page actions, the rest under "More" ---------- */
.sa .sa-page-actions .sa-menu svg {
  flex: none;
  margin-right: 10px;
  color: var(--sa-muted);
}
.sa .sa-page-actions .sa-menu {
  color: var(--sa-ink);
  min-width: 230px;
}
.sa .sa-page-actions .sa-menu a,
.sa .sa-page-actions .sa-menu button {
  width: 100%;
  font-weight: 600;
  color: var(--sa-ink) !important;
}
.sa .sa-more-btn .sa-dots-glyph {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
}
@media (max-width: 700px) {
  .sa .sa-page-actions .sa-act-main {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .sa .sa-page-actions .sa-act-main > * {
    flex: 1 1 0;
    min-width: 0;
  }
  .sa .sa-page-actions .sa-act-main > .sa-menu-wrap {
    flex: none;
    display: flex;
  }
  .sa .sa-page-actions .sa-act-main .sa-more-btn {
    width: 48px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }
  .sa .sa-page-actions .sa-act-main .sa-btn {
    gap: 6px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 14px;
  }
}
/* Group tiles without a cover show the group's initials in gold on the pattern. */
.sa .sa-cover-initials {
  font-family: var(--sa-serif, Georgia, serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #e2c46e;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.sa .sa-nav a {
  text-decoration: none;
}
/* The Page card lets its "More" menu hang below it; the cover and tabs keep the rounded corners. */
.sa .sa-org {
  overflow: visible;
}
.sa .sa-org > .sa-cover {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  overflow: hidden;
}
.sa .sa-org > .sa-tabs {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.sa .sa-page-actions .sa-menu {
  z-index: 40;
}
/* The Page's tabs continue the black band, so the header reads as one piece. */
.sa .sa-org > .sa-tabs {
  background: #0b0b0b;
  border-top: 1px solid rgba(198, 163, 74, 0.28);
}
.sa .sa-org > .sa-tabs a {
  color: #c9c4b8;
}
.sa .sa-org > .sa-tabs a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.sa .sa-org > .sa-tabs a[aria-current='page'] {
  color: #e2c46e;
  border-bottom-color: #e2c46e;
}
.sa .sa-org > .sa-tabs a:focus-visible {
  outline: 2px solid #e2c46e;
  outline-offset: -2px;
}
/* Page header buttons all share one width (computers) or split the row evenly (phones). */
.sa .sa-page-actions .sa-act-main > .sa-btn,
.sa .sa-page-actions .sa-act-main > .sa-follow-wrap,
.sa .sa-page-actions .sa-act-main > .sa-follow-wrap .sa-btn {
  min-width: 148px;
  justify-content: center;
}
.sa .sa-page-actions .sa-act-main > .sa-follow-wrap {
  display: flex;
}
.sa .sa-page-actions .sa-act-main .sa-more-btn {
  min-width: 44px;
  width: 44px;
  padding: 0;
  justify-content: center;
}
@media (max-width: 700px) {
  .sa .sa-page-actions .sa-act-main {
    display: grid;
    grid-template-columns: repeat(var(--acts, 3), minmax(0, 1fr)) 48px;
    gap: 8px;
  }
  .sa .sa-page-actions .sa-act-main > *,
  .sa .sa-page-actions .sa-act-main > .sa-btn,
  .sa .sa-page-actions .sa-act-main > .sa-follow-wrap,
  .sa .sa-page-actions .sa-act-main > .sa-follow-wrap .sa-btn {
    min-width: 0;
    width: 100%;
  }
  .sa .sa-page-actions .sa-act-main .sa-more-btn {
    width: 48px;
  }
  /* Three buttons and More on one phone row: words only, so every label fits. */
  .sa .sa-page-actions .sa-act-main > .sa-btn > svg,
  .sa .sa-page-actions .sa-act-main > .sa-follow-wrap .sa-btn > svg {
    display: none;
  }
}
@media (max-width: 700px) {
  .sa .sa-page-actions .sa-act-main:not(:has(> .sa-menu-wrap)) {
    grid-template-columns: repeat(var(--acts, 3), minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .sa .sa-page-actions .sa-act-main > * {
    grid-column: auto;
  }
}

/* ---------- Polish: the home feed filters as equal rounded rectangles ---------- */
.sa .sa-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}
.sa .sa-chips .sa-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 10px;
  white-space: nowrap;
  text-align: center;
}
@media (max-width: 700px) {
  .sa .sa-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 12px;
  }
}

/* ---------- Messages: the one inbox, conversations with friends, the top bar button ---------- */
.sa .sa-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--sa-gold);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.sa .sa-msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 14px;
}
.sa .sa-msg-report {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sa-muted);
}
.sa .sa-msg-report:hover {
  color: var(--sa-ink);
}
.sa .sa-inbox-card .sa-side-head {
  align-items: center;
  margin-bottom: 4px;
}
.sa .sa-inbox-card .sa-side-head .sa-btn {
  gap: 6px;
}
.sa .sa-inbox-card h2 {
  margin: 0 0 4px;
}
.sa .sa-inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.sa .sa-inbox-empty p {
  margin: 0;
}
.sa .sa-thread-row .sa-count-pill {
  flex: none;
}
.sa .sa-msg-btn[aria-current='page'] {
  color: var(--sa-gold);
}
/* Five round buttons fit on the narrowest phones. */
@media (max-width: 430px) {
  .sa .sa-top-right {
    gap: 6px;
  }
  .sa .sa-top-right .sa-round {
    width: 38px;
    height: 38px;
  }
  .sa .sa-top-right .sa-round svg {
    width: 20px;
    height: 20px;
  }
  .sa .sa-logo img {
    height: 26px;
    width: auto;
  }
}
@media (max-width: 380px) {
  .sa .sa-top-right {
    gap: 4px;
  }
  .sa .sa-top-right .sa-round {
    width: 36px;
    height: 36px;
  }
  .sa .sa-logo img {
    height: 23px;
  }
  .sa .sa-top-right .sa-badge {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }
}
/* Room for the Messages button in the top bar on mid-size computer screens. */
@media (min-width: 901px) and (max-width: 1400px) {
  .sa .sa-nav a {
    width: 84px;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .sa .sa-nav a {
    width: 64px;
  }
}
/* Laptops and tablets (up to 1,100 px): search sits behind a button too, so the top bar stays one row. */
@media (min-width: 701px) and (max-width: 1100px) {
  .sa .sa-search:not(.sa-search-open) {
    display: none;
  }
  .sa .sa-phone-search {
    display: grid;
  }
  .sa .sa-top {
    position: relative;
  }
  .sa .sa-search.sa-search-open {
    display: flex !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: #000;
    z-index: 70;
  }
  .sa .sa-search.sa-search-open input {
    flex: 1;
    width: auto;
    font-size: 16px;
  }
  .sa .sa-search.sa-search-open .sa-search-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #26282c;
    color: #fff;
  }
}

/* ---------- Messages: one messenger (list + conversation) ---------- */
body[data-social-page='messages'] .sa-right {
  display: none;
}
body[data-social-page='messages'] .sa-main {
  flex-basis: 1000px;
}
.sa .sa-mx {
  --sa-mx-h: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  height: max(520px, var(--sa-mx-h));
  padding: 0;
  overflow: hidden;
}
.sa .sa-round-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--sa-soft);
  color: var(--sa-ink);
  cursor: pointer;
}
.sa .sa-round-btn:hover {
  background: var(--sa-hover);
}
/* The list */
.sa .sa-mx-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--sa-line);
}
.sa .sa-mx-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.sa .sa-mx-side-head h1 {
  margin: 0;
  font-family: var(--sa-serif, Georgia, serif);
  font-size: 26px;
  font-weight: 600;
}
.sa .sa-mx-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 16px 8px;
}
.sa .sa-mx-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.sa .sa-mx-box[aria-selected='true'] {
  border-color: #111;
  background: #111;
  color: #fff;
}
.sa .sa-mx-box .sa-count-pill {
  margin-left: 2px;
}
.sa .sa-mx-box-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa .sa-mx-search {
  margin: 0 16px 8px;
  width: auto;
  border-radius: 10px;
}
.sa .sa-mx-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 8px;
}
.sa .sa-mx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--sa-ink);
  text-align: left;
  cursor: pointer;
}
.sa .sa-mx-item:hover {
  background: var(--sa-soft);
}
.sa .sa-mx-item[aria-current='true'] {
  background: var(--sa-gold-soft);
}
.sa .sa-mx-item .sa-avatar,
.sa .sa-mx-item .sa-page-logo {
  flex: none;
  width: 48px;
  height: 48px;
}
.sa .sa-mx-item-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.sa .sa-mx-item-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.sa .sa-mx-item-top strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.sa .sa-mx-item-time {
  flex: none;
  color: var(--sa-muted);
  font-size: 12px;
}
.sa .sa-mx-item-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sa-muted);
  font-size: 14px;
}
.sa .sa-mx-item.sa-unread strong,
.sa .sa-mx-item.sa-unread .sa-mx-item-preview {
  font-weight: 800;
  color: var(--sa-ink);
}
.sa .sa-mx-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sa-gold);
}
.sa .sa-mx-empty,
.sa .sa-mx-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  color: var(--sa-muted);
  text-align: center;
}
.sa .sa-mx-placeholder {
  justify-content: center;
  height: 100%;
}
.sa .sa-mx-placeholder h2 {
  margin: 0;
  color: var(--sa-ink);
  font-family: var(--sa-serif, Georgia, serif);
  font-size: 22px;
  font-weight: 600;
}
.sa .sa-mx-empty p,
.sa .sa-mx-placeholder p {
  margin: 0;
  max-width: 280px;
}
.sa .sa-mx-none {
  padding: 16px 8px;
  color: var(--sa-muted);
}
/* The conversation */
.sa .sa-mx-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.sa .sa-mx-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--sa-line);
}
.sa .sa-mx-back {
  display: none;
}
.sa .sa-mx-head-pic {
  display: flex;
  flex: none;
}
.sa .sa-mx-head-pic .sa-avatar,
.sa .sa-mx-head-pic .sa-page-logo {
  width: 40px;
  height: 40px;
}
.sa .sa-mx-head-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.sa .sa-mx-head-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sa-ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.sa .sa-mx-head-name:hover {
  text-decoration: underline;
}
.sa .sa-mx-head-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sa-muted);
  font-size: 12.5px;
}
.sa .sa-mx-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
}
.sa .sa-mx-loading {
  padding: 20px;
}
.sa .sa-mx-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: auto 0;
  padding: 24px 12px;
  text-align: center;
}
.sa .sa-mx-start .sa-avatar,
.sa .sa-mx-start .sa-page-logo {
  width: 72px;
  height: 72px;
  font-size: 26px;
}
.sa .sa-mx-start p {
  max-width: 320px;
  margin: 0;
}
.sa .sa-mx-day {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px;
}
.sa .sa-mx-day span {
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--sa-soft);
  color: var(--sa-muted);
  font-size: 12px;
  font-weight: 600;
}
.sa .sa-mx-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 2px;
}
.sa .sa-mx-row.sa-first {
  margin-top: 10px;
}
.sa .sa-mx-row.sa-mine {
  flex-direction: row-reverse;
}
.sa .sa-mx-bubble {
  max-width: min(72%, 520px);
  padding: 9px 14px;
  border-radius: 18px;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sa .sa-mx-row:not(.sa-mine):not(.sa-first) .sa-mx-bubble {
  border-top-left-radius: 6px;
}
.sa .sa-mx-row:not(.sa-mine):not(.sa-last) .sa-mx-bubble {
  border-bottom-left-radius: 6px;
}
.sa .sa-mx-row.sa-mine .sa-mx-bubble {
  background: #111;
  color: #fff;
}
.sa .sa-mx-row.sa-mine:not(.sa-first) .sa-mx-bubble {
  border-top-right-radius: 6px;
}
.sa .sa-mx-row.sa-mine:not(.sa-last) .sa-mx-bubble {
  border-bottom-right-radius: 6px;
}
.sa .sa-mx-row.sa-mine .sa-mx-bubble a {
  color: #f0d98c;
}
html.sa-dark .sa .sa-mx-row.sa-mine .sa-mx-bubble {
  background: var(--sa-gold);
  color: #000;
}
html.sa-dark .sa .sa-mx-row.sa-mine .sa-mx-bubble a {
  color: #000;
}
.sa .sa-mx-bubble.sa-removed {
  background: none;
  border: 1px dashed var(--sa-border);
  color: var(--sa-muted);
  font-style: italic;
}
.sa .sa-mx-time {
  flex-basis: 100%;
  margin: 2px 6px 0;
  color: var(--sa-muted);
  font-size: 11.5px;
}
.sa .sa-mx-row.sa-mine .sa-mx-time {
  text-align: right;
}
.sa .sa-mx-act {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--sa-muted);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.12s;
}
.sa .sa-mx-act {
  opacity: 1;
}
.sa .sa-mx-act:hover {
  background: var(--sa-soft);
  color: var(--sa-ink);
}
/* The message box */
.sa .sa-mx-compose {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--sa-line);
}
.sa .sa-mx-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  max-height: 140px;
  padding: 10px 16px;
  border: 1px solid var(--sa-border);
  border-radius: 21px;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
}
.sa .sa-mx-input:focus {
  outline: none;
  border-color: var(--sa-gold);
  background: var(--sa-card);
  box-shadow: 0 0 0 3px rgba(198, 163, 74, 0.25);
}
.sa .sa-mx-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
}
.sa .sa-mx-send:hover:not(:disabled) {
  background: #000;
}
.sa .sa-mx-send:disabled {
  background: var(--sa-soft);
  color: var(--sa-muted);
  cursor: default;
}
html.sa-dark .sa .sa-mx-send:not(:disabled) {
  background: var(--sa-gold);
  color: #000;
}
.sa .sa-mx-error {
  flex-basis: 100%;
  margin: 0;
  color: #b3261e;
  font-size: 13.5px;
}
.sa .sa-mx-closed {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--sa-line);
  background: var(--sa-soft);
  color: var(--sa-muted);
  font-size: 14px;
  text-align: center;
}
/* Messages extras: pictures, reactions, actions, typing, filters, saved replies */
.sa .sa-mx-row.sa-mine .sa-mx-bubble.sa-removed,
html.sa-dark .sa .sa-mx-row.sa-mine .sa-mx-bubble.sa-removed {
  background: none;
  color: var(--sa-muted);
}
.sa .sa-mx-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: min(72%, 520px);
}
.sa .sa-mx-row.sa-mine .sa-mx-stack {
  align-items: flex-end;
}
.sa .sa-mx-stack .sa-mx-bubble {
  max-width: 100%;
}
.sa .sa-mx-pic {
  display: grid;
  flex: none;
  align-self: flex-end;
  width: 28px;
  height: 28px;
}
.sa .sa-mx-pic .sa-avatar,
.sa .sa-mx-pic .sa-page-logo {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.sa .sa-mx-row:not(.sa-mine) .sa-mx-time {
  margin-left: 40px;
}
.sa .sa-mx-row.sa-has-rx .sa-mx-stack {
  margin-bottom: 15px;
}
.sa .sa-mx-row.sa-has-rx:not(.sa-last) {
  margin-bottom: 4px;
}
.sa .sa-mx-rx {
  position: absolute;
  bottom: -15px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 1px 6px;
  border: 1px solid var(--sa-border);
  border-radius: 12px;
  background: var(--sa-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  color: var(--sa-muted);
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
.sa .sa-mx-row.sa-mine .sa-mx-rx {
  right: auto;
  left: 8px;
}
.sa .sa-mx-rx small {
  margin-left: 3px;
  font-size: 11.5px;
}
.sa .sa-mx-acts {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.12s;
}
.sa .sa-mx-row:hover .sa-mx-acts,
.sa .sa-mx-acts:focus-within {
  opacity: 1;
}
@media (hover: none) {
  .sa .sa-mx-acts {
    display: none;
    opacity: 1;
  }
  .sa .sa-mx-row.sa-acts-on .sa-mx-acts {
    display: inline-flex;
  }
  .sa .sa-mx-act {
    width: 36px;
    height: 36px;
  }
}
.sa .sa-mx-picker {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 6;
  display: flex;
  gap: 2px;
  padding: 4px 6px;
  border: 1px solid var(--sa-border);
  border-radius: 26px;
  background: var(--sa-card);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}
.sa .sa-mx-row.sa-mine .sa-mx-picker {
  left: auto;
  right: 0;
}
.sa .sa-mx-picker.sa-below {
  top: calc(100% + 6px);
  bottom: auto;
}
.sa .sa-mx-picker button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s;
}
.sa .sa-mx-picker button:hover,
.sa .sa-mx-picker button:focus-visible {
  transform: scale(1.18);
}
.sa .sa-mx-picker button.sa-on {
  background: var(--sa-soft);
  box-shadow: inset 0 0 0 2px var(--sa-gold);
}
.sa .sa-mx-typing .sa-mx-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 14px;
}
.sa .sa-mx-typing .sa-mx-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sa-muted);
  animation: sa-mx-dot 1.2s infinite ease-in-out;
}
.sa .sa-mx-typing .sa-mx-bubble span:nth-child(2) {
  animation-delay: 0.15s;
}
.sa .sa-mx-typing .sa-mx-bubble span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes sa-mx-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sa .sa-mx-typing .sa-mx-bubble span {
    animation: none;
    opacity: 0.7;
  }
}
.sa .sa-mx-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 16px 8px;
}
.sa .sa-mx-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.sa .sa-mx-filter[aria-selected='true'] {
  border-color: #111;
  background: #111;
  color: #fff;
}
html.sa-dark .sa .sa-mx-filter[aria-selected='true'] {
  border-color: #c6a34a;
  background: #c6a34a;
  color: #111;
}
.sa .sa-mx-filter-n {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font-size: 11.5px;
  line-height: 18px;
}
.sa .sa-mx-filter[aria-selected='true'] .sa-mx-filter-n {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}
html.sa-dark .sa .sa-mx-filter[aria-selected='true'] .sa-mx-filter-n {
  background: rgba(0, 0, 0, 0.18);
}
.sa .sa-mx-tools {
  position: relative;
  flex: none;
}
.sa .sa-mx-tool {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--sa-muted);
  cursor: pointer;
}
.sa .sa-mx-tool:hover,
.sa .sa-mx-tool[aria-expanded='true'] {
  background: var(--sa-soft);
  color: var(--sa-ink);
}
.sa .sa-mx-saved {
  top: auto;
  right: auto;
  bottom: calc(100% + 6px);
  left: 0;
  width: min(320px, calc(100vw - 32px));
  max-height: 340px;
  overflow-y: auto;
}
.sa .sa-mx-saved > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}
.sa .sa-mx-saved > button span {
  overflow: hidden;
  max-width: 100%;
  color: var(--sa-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa .sa-mx-saved .sa-mx-saved-manage {
  margin-top: 4px;
  border-top: 1px solid var(--sa-line);
  color: var(--sa-gold-ink, var(--sa-ink));
  font-weight: 600;
}
.sa-mx-saved-note {
  margin: 6px 8px;
  color: var(--sa-muted);
  font-size: 13.5px;
}
.sa-saved-dialog .sa-saved-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 40vh;
  overflow-y: auto;
}
.sa-saved-dialog .sa-saved-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
}
.sa-saved-dialog .sa-saved-item p {
  margin: 2px 0 0;
  color: var(--sa-muted);
  font-size: 14px;
  white-space: pre-wrap;
}
.sa-saved-dialog .sa-saved-item .sa-btn {
  flex: none;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
}
.sa-saved-dialog .sa-saved-h {
  margin: 18px 0 8px;
  font-size: 15px;
}
.sa-saved-dialog .sa-saved-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sa-saved-dialog .sa-saved-form input,
.sa-saved-dialog .sa-saved-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font: inherit;
  font-size: 15px;
}
.sa-saved-dialog .sa-saved-form input:focus,
.sa-saved-dialog .sa-saved-form textarea:focus {
  outline: none;
  border-color: var(--sa-gold);
  box-shadow: 0 0 0 3px rgba(198, 163, 74, 0.25);
}
/* Messages tools: replies, links, warnings, requests, search, the Page team bar, group chats */
.sa .sa-mx-quote {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 100%;
  margin: 2px 0 -10px;
  padding: 6px 12px 14px;
  border: 0;
  border-radius: 14px 14px 6px 6px;
  background: var(--sa-soft);
  color: var(--sa-muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  opacity: 0.85;
}
.sa .sa-mx-quote strong {
  font-size: 11.5px;
  font-weight: 600;
}
.sa .sa-mx-quote span {
  overflow: hidden;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa .sa-mx-row.sa-mine .sa-mx-quote {
  text-align: right;
}
.sa .sa-mx-from {
  margin: 0 12px 2px;
  color: var(--sa-muted);
  font-size: 12px;
  font-weight: 600;
}
.sa .sa-mx-event {
  margin: 10px auto;
  max-width: 80%;
  color: var(--sa-muted);
  font-size: 12.5px;
  text-align: center;
}
.sa .sa-mx-link {
  width: min(300px, 100%);
  margin-top: 4px;
}
/* In a chat, a link preview is always the small kind: thumbnail, site and title. */
.sa .sa-mx-link .sa-link-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px;
  border-left-width: 1px;
  font-size: 13px;
}
.sa .sa-mx-link .sa-link-media {
  flex: none;
  width: 56px !important;
  height: 56px !important;
  aspect-ratio: auto !important;
  border-radius: 8px;
  overflow: hidden;
}
.sa .sa-mx-link .sa-link-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa .sa-mx-link .sa-link-body {
  min-width: 0;
  padding: 0;
  gap: 2px;
}
.sa .sa-mx-link .sa-link-title {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa .sa-mx-link .sa-link-desc,
.sa .sa-mx-link .sa-link-cta {
  display: none;
}
.sa .sa-mx-warn {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 340px;
  margin: 4px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(214, 140, 0, 0.55);
  border-radius: 10px;
  background: rgba(214, 140, 0, 0.1);
  color: var(--sa-ink);
  font-size: 12.5px;
  line-height: 1.35;
}
.sa .sa-mx-warn svg {
  flex: none;
  margin-top: 1px;
  color: #c27c00;
}
.sa .sa-mx-row.sa-mx-flash .sa-mx-bubble,
.sa .sa-mx-row.sa-mx-hit-now .sa-mx-bubble {
  box-shadow: 0 0 0 3px var(--sa-gold);
}
.sa .sa-mx-row.sa-mx-hit .sa-mx-bubble {
  outline: 2px dashed rgba(198, 163, 74, 0.7);
  outline-offset: 2px;
}
.sa .sa-mx-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 360px;
  margin: 10px 0 0;
  color: var(--sa-muted);
  font-size: 12.5px;
  text-align: left;
}
.sa .sa-mx-tip svg {
  flex: none;
  margin-top: 2px;
}
.sa .sa-mx-starters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(420px, 100%);
  margin-top: 8px;
}
.sa .sa-mx-starter {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--sa-border);
  border-radius: 12px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sa .sa-mx-starter:hover {
  border-color: var(--sa-gold);
}
.sa .sa-mx-replying {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-left: 3px solid var(--sa-gold);
  border-radius: 6px;
  background: var(--sa-soft);
  font-size: 13px;
}
.sa .sa-mx-replying[hidden] {
  display: none;
}
.sa .sa-mx-replying .sa-grow {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sa .sa-mx-replying span {
  overflow: hidden;
  color: var(--sa-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa .sa-mx-replying .sa-round-btn,
.sa .sa-mx-find .sa-round-btn {
  width: 32px;
  height: 32px;
}
.sa .sa-mx-note-line {
  flex-basis: 100%;
  margin: 0;
  color: var(--sa-muted);
  font-size: 13px;
}
.sa .sa-mx-request {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--sa-line);
  background: var(--sa-soft);
}
.sa .sa-mx-request p {
  margin: 0 0 10px;
  font-size: 14px;
}
.sa .sa-mx-request p .sa-muted {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
}
.sa .sa-mx-request-acts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sa .sa-mx-find {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--sa-line);
}
.sa .sa-mx-find input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
}
.sa .sa-mx-find-n {
  flex: none;
  color: var(--sa-muted);
  font-size: 12.5px;
}
.sa .sa-mx-marks {
  display: inline-flex;
  flex: none;
  gap: 3px;
  color: var(--sa-muted);
}
.sa .sa-mx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.sa .sa-mx-tag {
  padding: 0 7px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  color: var(--sa-muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 18px;
}
.sa .sa-mx-tag-follow {
  border-color: var(--sa-gold);
  color: var(--sa-ink);
}
.sa .sa-mx-tag-urgent {
  border-color: #c0392b;
  color: #e06055;
}
.sa .sa-mx-tag-who::before {
  content: '→ ';
}
.sa .sa-mx-teambar {
  border-bottom: 1px solid var(--sa-line);
  background: var(--sa-soft);
}
.sa .sa-mx-teambar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
}
.sa .sa-mx-seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
}
.sa .sa-mx-seg button {
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-right: 1px solid var(--sa-border);
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sa .sa-mx-seg button:last-child {
  border-right: 0;
}
.sa .sa-mx-seg button[aria-pressed='true'] {
  background: #111;
  color: #fff;
}
html.sa-dark .sa .sa-mx-seg button[aria-pressed='true'] {
  background: #c6a34a;
  color: #111;
}
.sa .sa-mx-assign {
  width: auto;
  min-height: 34px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
}
.sa .sa-mx-chipbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sa .sa-mx-chipbtn[aria-expanded='true'] {
  border-color: var(--sa-gold);
}
.sa .sa-mx-labels {
  left: 0;
  right: auto;
  min-width: 180px;
}
.sa .sa-mx-labels .sa-check {
  padding: 6px 8px;
}
.sa .sa-mx-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 34vh;
  overflow-y: auto;
  padding: 0 16px 12px;
}
.sa .sa-mx-notes-hint {
  margin: 0;
  color: var(--sa-muted);
  font-size: 12.5px;
}
.sa .sa-mx-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--sa-gold);
  border-radius: 6px;
  background: var(--sa-card);
}
.sa .sa-mx-note small {
  color: var(--sa-muted);
  font-size: 12px;
}
.sa .sa-mx-note p {
  margin: 2px 0 0;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sa .sa-mx-note-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.sa .sa-mx-note-form textarea {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  font-size: 14px;
}
.sa .sa-mx-chatpic {
  position: relative;
  display: inline-block;
  flex: none;
}
.sa .sa-mx-chatpic-sm {
  width: 48px;
  height: 48px;
}
.sa .sa-mx-chatpic .sa-avatar {
  position: absolute;
  width: 29px;
  height: 29px;
  box-shadow: 0 0 0 2px var(--sa-card);
  font-size: 10px;
}
.sa .sa-mx-chatpic .sa-initials {
  font-size: 10px;
}
.sa .sa-mx-chatpic .sa-avatar:first-child {
  top: 0;
  left: 0;
}
.sa .sa-mx-chatpic .sa-avatar:nth-child(2) {
  right: 0;
  bottom: 0;
}
.sa .sa-mx-head-pic .sa-mx-chatpic-sm {
  width: 40px;
  height: 40px;
}
.sa .sa-mx-head-pic .sa-mx-chatpic .sa-avatar {
  width: 24px;
  height: 24px;
}
.sa .sa-mx-head-pic .sa-mx-chatpic .sa-initials {
  font-size: 9px;
}
.sa-msg-dialog .sa-mx-picked {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.sa-msg-dialog .sa-mx-picked:empty {
  display: none;
}
.sa-msg-dialog .sa-mx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--sa-gold);
  border-radius: 16px;
  background: none;
  color: var(--sa-ink);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.sa-msg-dialog .sa-mx-chip .sa-avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.sa-msg-dialog .sa-mx-pick-list {
  max-height: 46vh;
  overflow-y: auto;
}
.sa-msg-dialog .sa-mx-pick-hint {
  margin: 0 0 8px;
  font-size: 14px;
}
.sa-msg-dialog .sa-thread-row[aria-checked='true'] {
  background: var(--sa-soft);
}
.sa-msg-dialog .sa-mx-tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--sa-border);
  border-radius: 50%;
}
.sa-msg-dialog .sa-thread-row[aria-checked='true'] .sa-mx-tick {
  border-color: var(--sa-gold);
  background: var(--sa-gold);
  color: #111;
}
.sa-msg-dialog input[type='text'],
.sa-msg-dialog input[type='search'],
.sa .sa-mx-assign {
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font: inherit;
  font-size: 15px;
}
.sa-msg-dialog input[type='text'],
.sa-msg-dialog input[type='search'] {
  width: 100%;
  margin-top: 8px;
}
.sa-msg-dialog input:focus,
.sa .sa-mx-assign:focus {
  outline: none;
  border-color: var(--sa-gold);
  box-shadow: 0 0 0 3px rgba(198, 163, 74, 0.25);
}
.sa .sa-mx-replying .sa-round-btn span,
.sa .sa-mx-find .sa-round-btn > span {
  font-size: 20px;
  line-height: 1;
}
.sa .sa-mx-note .sa-link {
  flex: none;
  color: var(--sa-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.sa-msg-dialog .sa-mx-person .sa-btn {
  flex: none;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
}
.sa .sa-mx-filters.sa-mx-filters-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sa .sa-mx-filters.sa-mx-filters-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sa .sa-mx-filter {
  min-width: 0;
  padding: 4px 4px;
  white-space: nowrap;
}
/* Phones and small tablets: the list, or one conversation full-screen. */
@media (max-width: 760px) {
  .sa .sa-mx {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 140px);
    overflow: visible;
  }
  .sa .sa-mx-side {
    border-right: 0;
  }
  .sa .sa-mx-list {
    overflow: visible;
  }
  .sa .sa-mx-main {
    display: none;
  }
  .sa .sa-mx.sa-mx-open .sa-mx-main {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 80;
    height: 100vh;
    height: 100dvh;
    background: var(--sa-card);
  }
  .sa .sa-mx-back {
    display: inline-grid;
    background: none;
  }
  .sa .sa-mx-head {
    gap: 8px;
    padding: 8px 10px;
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .sa .sa-mx-compose {
    padding: 8px 10px max(10px, env(safe-area-inset-bottom));
  }
  .sa .sa-mx-bubble {
    max-width: 80%;
  }
  .sa .sa-mx-feed {
    padding: 8px 10px;
  }
}
@media (max-width: 760px) {
  html.sa-mx-locked,
  html.sa-mx-locked body {
    overflow: hidden;
  }
}
.sa .sa-mx-side,
.sa .sa-mx-main {
  min-width: 0;
}
.sa input.sa-mx-search {
  box-sizing: border-box;
  width: calc(100% - 32px);
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 19px;
  background: var(--sa-soft);
  color: var(--sa-ink);
  font: inherit;
  font-size: 14.5px;
}
.sa input.sa-mx-search:focus {
  outline: none;
  border-color: var(--sa-gold);
  background: var(--sa-card);
}
@media (max-width: 760px) {
  .sa .sa-mx {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sa .sa-mx-row.sa-pending .sa-mx-bubble {
  opacity: 0.7;
}
.sa .sa-mx-row.sa-failed .sa-mx-bubble {
  opacity: 1;
  background: #fbe3df;
  color: #8a1c12;
  cursor: pointer;
}
.sa .sa-mx-row.sa-failed .sa-mx-time {
  color: #b3261e;
  font-weight: 600;
  cursor: pointer;
}
.sa .sa-mx-head-pic,
.sa .sa-mx-head-pic:hover {
  text-decoration: none;
}
/* Dark mode: buttons on the Page's black header keep their light text
   (outranks the general dark-mode rule that makes button text black). */
html.sa-dark .sa .sa-org-masthead .sa-page-actions .sa-btn.sa-join-group-btn,
html.sa-dark .sa .sa-org-masthead .sa-page-actions .sa-btn.sa-quiet {
  color: #f6e7b8 !important;
}
html.sa-dark .sa .sa-org-masthead .sa-page-actions .sa-btn.sa-donate-btn {
  color: #f1dfa6 !important;
}
/* ---------- Dark mode is the default: fixes found by a contrast check ---------- */
/* Donate buttons keep their gold text everywhere (outranks the general dark button rule). */
html.sa-dark .sa .sa-btn.sa-donate-btn.sa-donate-btn.sa-donate-btn {
  color: #f1dfa6 !important;
}
/* The P346 Herald card stays cream with dark text. */
html.sa-dark .sa .sa-news-herald .sa-news-title {
  color: #1c2433;
}
/* Chosen skills and interests: light chip, dark text. */
html.sa-dark .sa .sa-chip-check input:checked + span {
  background: var(--sa-gold);
  border-color: var(--sa-gold);
  color: #000;
}
/* The cover photo button sits on a light pill, so its text stays dark. */
html.sa-dark .sa .sa-cover-btn,
html.sa-dark .sa .sa-cover-btn span {
  color: #1c2433 !important;
}

/* ---------- Dark mode buttons: P346 gold instead of white ----------
   Main actions are solid gold with black text; secondary ones are soft charcoal with light
   text; anything "selected" (feed filters, inbox tabs) uses the same gold. */
html.sa-dark .sa .sa-btn {
  background: #c6a34a;
  color: #111 !important;
}
html.sa-dark .sa .sa-btn:hover:not(:disabled) {
  background: #d4b35c;
}
html.sa-dark .sa .sa-btn.sa-quiet {
  background: #3a3b3c;
  border-color: #4a4b4d;
  color: #e4e6eb !important;
}
html.sa-dark .sa .sa-btn.sa-quiet:hover:not(:disabled) {
  background: #4a4b4d;
}
html.sa-dark .sa .sa-chip[aria-pressed='true'],
html.sa-dark .sa .sa-mx-box[aria-selected='true'] {
  background: #c6a34a;
  border-color: #c6a34a;
  color: #111;
}
html.sa-dark .sa .sa-need-chip[aria-pressed='true'],
html.sa-dark .sa .sa-switch button[aria-pressed='true'] {
  background: #c6a34a;
  border-color: #c6a34a;
  color: #111;
}

/* ---------- Page impact numbers: one row at every size ----------
   Phones keep the numbers side by side and level (smaller), with the labels underneath. */
@media (max-width: 520px) {
  .sa .sa-page-impact {
    gap: 0;
    padding: 14px 6px;
  }
  .sa .sa-page-impact > div {
    padding: 0 6px;
  }
  .sa .sa-page-impact > div + div {
    border-top: 0;
    border-left: 1px solid rgba(198, 163, 74, 0.28);
    padding-top: 0;
  }
  .sa .sa-page-impact strong {
    font-size: 31px;
  }
  .sa .sa-page-impact span {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.25;
  }
}
@media (max-width: 380px) {
  .sa .sa-page-impact strong {
    font-size: 27px;
  }
  .sa .sa-page-impact span {
    font-size: 11px;
  }
}

/* A tab's content fades slightly while the next tab loads in place. */
.sa main[aria-busy='true'] > *:not(:first-child) {
  opacity: 0.55;
  transition: opacity 0.15s;
}
/* A Page's cover button sits at the top, clear of the black name band that overlaps the cover. */
.sa .sa-org .sa-cover {
  position: relative;
}
.sa .sa-org .sa-org-cover-btn {
  top: 16px;
  bottom: auto;
  z-index: 3;
}
.sa .sa-org-logo-wrap .sa-camera {
  z-index: 3;
  right: 2px;
  bottom: 2px;
}
@media (max-width: 760px) {
  .sa .sa-org .sa-org-cover-btn {
    top: 10px;
  }
}
.sa .sa-org-logo-wrap {
  width: fit-content;
  justify-self: start;
  align-self: flex-start;
}
.sa .sa-cover-btn svg,
html.sa-dark .sa .sa-cover-btn svg {
  color: #1c2433;
  stroke: #1c2433;
}

/* Resource lists: "Add to list" on Find help, the bar at the bottom, and the send dialog. */
.sa-list-add[aria-pressed='true'] {
  border-color: var(--sa-gold);
  color: var(--sa-gold-dark);
}
html.sa-dark .sa-list-add[aria-pressed='true'] {
  color: var(--sa-gold);
}
.sa-help-tray {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px 10px 16px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  border: 1px solid var(--sa-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.sa-help-tray strong {
  color: var(--sa-gold);
}
.sa-help-tray[hidden] {
  display: none;
}
.sa-list-dialog {
  width: min(520px, 94vw);
}
.sa-list-rows {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}
.sa-list-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--sa-bg);
}
.sa-list-rows li > .sa-grow {
  flex: 1;
  min-width: 0;
}
.sa-list-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.sa-list-hint {
  margin: 12px 0 0;
  font-size: 0.9em;
}

/* Drives: a need with a goal, pledges and a progress bar. */
.sa-drive {
  margin-top: 6px;
}
.sa-drive .sa-goal-bar {
  height: 10px;
  margin: 6px 0 4px;
}
.sa-drive-line {
  margin: 0;
  font-size: 14px;
}
.sa-drive-met .sa-goal-bar span {
  background: #2f7d4f;
}
.sa-drive-mine {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--sa-gold-dark);
}
html.sa-dark .sa-drive-mine {
  color: var(--sa-gold);
}
.sa-need-drive {
  align-items: flex-start;
}
.sa-drive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.sa-drive-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.sa-drive-fields {
  margin: 4px 0 8px;
  padding: 10px 12px 2px;
  border-radius: 10px;
  background: var(--sa-bg);
}
.sa-drive-fields[hidden] {
  display: none;
}
.sa-pledges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.sa-pledges li {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 560px) {
  .sa-drive-grid {
    grid-template-columns: 1fr;
  }
}

/* Community calendar: filters, a month view with dots on days that have events, events by day. */
.sa-cal-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sa-cal-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.sa-cal-filters select,
.sa-cal-filters input {
  width: 100%;
}
.sa-cal-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sa-cal-month-head h2 {
  margin: 0;
  font: 400 22px/1.2 var(--sa-headline);
}
.sa-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.sa-cal-wd {
  font-size: 12px;
  font-weight: 700;
  color: var(--sa-muted, #777);
  padding: 4px 0;
}
.sa-cal-day {
  position: relative;
  display: grid;
  place-items: center;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 14px;
  color: inherit;
}
.sa-cal-past {
  opacity: 0.4;
}
.sa-cal-has {
  cursor: pointer;
  font-weight: 700;
  background: var(--sa-bg);
}
.sa-cal-has:hover,
.sa-cal-has:focus-visible {
  background: var(--sa-gold-soft);
  color: #111;
}
.sa-cal-has i {
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sa-gold);
}
.sa-cal-today {
  box-shadow: inset 0 0 0 2px var(--sa-gold);
}
.sa-cal-dayblock {
  scroll-margin-top: 80px;
}
.sa-cal-dayname {
  margin: 0 0 6px;
  font: 400 20px/1.2 var(--sa-headline);
}
.sa-cal-event {
  display: flex;
  gap: 14px;
  padding: 10px 8px;
  border-top: 1px solid var(--sa-line);
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}
.sa-cal-event:hover {
  background: var(--sa-bg);
}
.sa-cal-time {
  flex: 0 0 160px;
  font-weight: 700;
  font-size: 14px;
  color: var(--sa-gold-dark);
}
html.sa-dark .sa-cal-time {
  color: var(--sa-gold);
}
.sa-cal-event .sa-grow {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sa-cal-name {
  font-size: 16px;
}
.sa-cal-where {
  font-size: 14px;
}
@media (max-width: 560px) {
  .sa-cal-title {
    flex-direction: column;
  }
  .sa-cal-event {
    flex-direction: column;
    gap: 4px;
  }
  .sa-cal-time {
    flex: none;
  }
}

/* Prayer requests: the update from the person who asked, and reminders for people praying. */
.sa-prayer-update {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--sa-gold) 55%, transparent);
  font: 400 15px/1.5 Inter, Arial, sans-serif;
  text-align: left;
}
.sa-prayer-update small {
  opacity: 0.75;
}
.sa-prayer-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 6px 4px 8px;
  font-size: 14px;
}
.sa-prayer-follow .sa-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sa-prayer-follow-set {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* Group prayer list: Still praying / Answered, and Print the list. */
.sa-prayer-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.sa-seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: var(--sa-card);
}
.sa-seg-btn {
  padding: 7px 14px;
  border-right: 1px solid var(--sa-border);
  color: var(--sa-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.sa-seg-btn:last-child {
  border-right: 0;
}
.sa-seg-btn.sa-on {
  background: #111;
  color: #fff;
}
html.sa-dark .sa-seg-btn.sa-on {
  background: var(--sa-gold);
  color: #111;
}

/* P346's Page: "Need food for your family?" starts the Food Assistance Request. */
.sa-food-card {
  border: 1px solid var(--sa-gold);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sa-gold) 12%, var(--sa-card)), var(--sa-card) 70%);
}
.sa-food-card h2 {
  margin: 6px 0 6px;
  font: 400 22px/1.2 var(--sa-headline);
}
.sa-food-card p {
  margin: 0 0 12px;
  line-height: 1.5;
}
.sa-food-card .sa-big-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}
.sa-food-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111;
  color: var(--sa-gold);
}
.sa-food-links {
  margin-top: 12px !important;
  font-size: 14px;
}
.sa-food-note {
  font-size: 13px;
  margin-bottom: 0 !important;
}

/* Resource lists: notes under each organization, saved lists, sending in Messages, and the
   "Your list" button that follows you around the site while a list is in progress. */
.sa-list-note {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 5px 8px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-size: 13px;
}
.sa-list-rows li {
  align-items: flex-start;
}
.sa-list-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.sa-saved-lists {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.sa-saved-lists li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--sa-bg);
}
.sa-list-people {
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow: auto;
}
.sa-list-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sa-list-person:hover,
.sa-list-person:focus-visible {
  background: var(--sa-bg);
}
.sa-list-chip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--sa-gold);
  border-radius: 99px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.sa-list-chip svg {
  color: var(--sa-gold);
}
.sa-list-chip[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .sa-list-chip {
    bottom: 76px;
  }
}
@media print {
  .sa-list-chip {
    display: none;
  }
}
.sa-print-item-note {
  font-style: italic;
}
.sa-map-pop .sa-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------- The left side panel (desktop): sections, your Pages and groups, a one-line footer ---------- */
.sa .sa-left {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  padding-right: 4px;
}
.sa .sa-left:hover {
  scrollbar-color: var(--sa-border) transparent;
}
.sa .sa-sidenav {
  gap: 0;
  font-weight: 500;
}
.sa .sa-sidenav a {
  min-height: 38px;
  padding: 5px 10px;
  gap: 10px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--sa-ink);
}
.sa .sa-sidenav .sa-ico:has(> svg) {
  width: 24px;
  height: 24px;
}
.sa .sa-sidenav .sa-ico svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}
.sa .sa-sidenav a:hover {
  background: var(--sa-hover);
}
.sa .sa-sidenav a[aria-current='page'] {
  background: color-mix(in srgb, var(--sa-gold) 16%, transparent);
  box-shadow: none;
  font-weight: 650;
}
.sa .sa-sidenav a[aria-current='page']::before {
  top: 8px;
  bottom: 8px;
}
html.sa-dark .sa .sa-sidenav a[aria-current='page'] {
  background: color-mix(in srgb, var(--sa-gold) 14%, transparent);
  color: var(--sa-gold);
}
html.sa-dark .sa .sa-sidenav a[aria-current='page'] .sa-ico {
  color: var(--sa-gold) !important;
}
.sa .sa-side-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sa .sa-nav-me {
  min-height: 56px !important;
  margin-bottom: 6px;
}
.sa .sa-nav-me strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.sa .sa-nav-me small {
  display: block;
  color: var(--sa-muted);
  font-size: 13px;
  font-weight: 500;
}
.sa .sa-nav-section {
  padding: 14px 0 2px;
}
.sa .sa-nav-section[hidden] {
  display: none;
}
.sa .sa-nav-head {
  margin: 0 10px 4px;
  color: var(--sa-muted);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.sa .sa-nav-sub .sa-ico {
  width: 24px !important;
  height: 24px !important;
}
/* Your Pages and groups: plain rounded squares, the same size as the icons. */
.sa .sa-nav-sub .sa-page-logo,
.sa .sa-side-tile {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 24px;
  height: 24px;
  border: 0 !important;
  border-radius: 6px;
  box-shadow: none !important;
  background: #111;
  color: var(--sa-gold);
  font-size: 10px;
}
.sa .sa-side-tile img,
.sa .sa-nav-sub .sa-page-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.sa .sa-side-letter {
  font: 700 13px/1 var(--sa-headline);
}
html.sa-dark .sa .sa-side-tile,
html.sa-dark .sa .sa-nav-sub .sa-page-logo {
  box-shadow: inset 0 0 0 1px var(--sa-line) !important;
}
/* Upcoming events: a small date tile, the event, and when and who. */
.sa .sa-side-event {
  align-items: center;
  min-height: 48px !important;
}
.sa .sa-side-date {
  display: grid;
  place-items: center;
  align-content: center;
  flex: none;
  width: 34px;
  height: 36px;
  border-radius: 7px;
  background: #111;
  color: #fff;
  line-height: 1.05;
}
.sa .sa-side-date small {
  color: var(--sa-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sa .sa-side-date strong {
  font-size: 15px;
}
html.sa-dark .sa .sa-side-date {
  box-shadow: inset 0 0 0 1px var(--sa-line);
}
.sa .sa-side-event .sa-side-label {
  display: grid;
  white-space: normal;
}
.sa .sa-side-event-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 14px;
}
.sa .sa-side-event small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--sa-muted);
  font-size: 12.5px;
  font-weight: 500;
}
.sa .sa-nav-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--sa-gold);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.sa .sa-nav-count[hidden] {
  display: none;
}
.sa .sa-nav-more {
  min-height: 32px !important;
  color: var(--sa-muted) !important;
  font-size: 14px !important;
  padding-left: 44px !important;
}
.sa .sa-nav-foot {
  margin: 14px 10px 16px;
  color: var(--sa-muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.sa .sa-nav-foot a {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: var(--sa-muted) !important;
  font-size: inherit !important;
}
.sa .sa-nav-foot a:hover {
  background: none !important;
  text-decoration: underline;
}

/* ---------- Events: the event page, lists, the form and the feed card ---------- */
.sa-ev-head {
  padding: 0;
  overflow: hidden;
}
.sa-ev-cover {
  position: relative;
  height: 220px;
  background: #111;
}
.sa-ev-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sa-ev-cover-plain {
  height: 120px;
  background: radial-gradient(circle at 85% 20%, rgba(198, 163, 74, 0.45), transparent 55%), linear-gradient(135deg, #111 40%, #2a2418);
}
.sa-ev-bigdate {
  position: absolute;
  left: 20px;
  bottom: -28px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 72px;
  height: 76px;
  border-radius: 14px;
  background: var(--sa-card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  line-height: 1;
}
.sa-ev-bigdate span {
  color: #b23a2e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.sa-ev-bigdate strong {
  font: 400 34px/1 var(--sa-headline);
}
.sa-ev-body {
  padding: 40px 22px 20px;
}
.sa-ev-title {
  margin: 6px 0 10px;
  font: 400 32px/1.15 var(--sa-headline);
}
.sa-ev-host {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.sa-ev-host small {
  display: block;
  color: var(--sa-muted);
  font-size: 12.5px;
}
.sa-ev-host strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sa-ev-facts {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--sa-line);
  border-bottom: 1px solid var(--sa-line);
}
.sa-ev-facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sa-ev-facts svg {
  flex: none;
  margin-top: 2px;
  color: var(--sa-gold-dark);
}
html.sa-dark .sa-ev-facts svg {
  color: var(--sa-gold);
}
.sa-ev-facts span {
  display: grid;
  gap: 2px;
}
.sa-ev-facts small,
.sa-ev-facts a {
  color: var(--sa-muted);
  font-size: 14px;
}
.sa-ev-facts a {
  color: var(--sa-gold-dark);
  font-weight: 600;
}
html.sa-dark .sa-ev-facts a {
  color: var(--sa-gold);
}
.sa-full {
  color: #b23a2e !important;
  font-weight: 600;
}
.sa-ev-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sa-ev-rsvp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sa-ev-actions > .sa-ev-rsvp {
  padding-right: 8px;
  margin-right: 4px;
  border-right: 1px solid var(--sa-line);
}
.sa-ev-remind {
  margin-top: 12px;
  font-size: 14px;
}
.sa-ev-canceled-note {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fbe9e7;
  color: #8f2a1f;
  font-weight: 600;
}
.sa-ev-changed {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--sa-gold-soft);
  color: #4a3a10;
  font-size: 14px;
}
.sa-ev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}
.sa-ev-tag,
.sa-ev-kind {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--sa-bg);
  color: var(--sa-ink);
  font-size: 12px;
  font-weight: 600;
}
.sa-ev-kind {
  background: #111;
  color: var(--sa-gold);
}
.sa-ev-kind-food {
  background: #2f5d3a;
  color: #fff;
}
.sa-ev-kind-worship,
.sa-ev-kind-bible_study {
  background: #3a2f5d;
  color: #fff;
}
.sa-ev-kind-volunteer {
  background: #7a5a12;
  color: #fff;
}
.sa-ev-canceled {
  background: #fbe9e7;
  color: #8f2a1f;
}
.sa-ev-going {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--sa-muted);
}
.sa-ev-mine {
  color: #2f7d4f;
  font-weight: 700;
}
.sa-ev-spots {
  font-weight: 600;
}
.sa-ev-team h2,
.sa-ev-section h2 {
  margin: 0 0 12px;
}
.sa-ev-team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sa-danger-text {
  color: #b23a2e !important;
}
.sa-ev-pending {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sa-line);
}
.sa-ev-pending h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.sa-ev-note {
  padding: 10px 0;
  border-bottom: 1px solid var(--sa-line);
}
.sa-ev-note:last-child {
  border-bottom: 0;
}
.sa-ev-note p {
  margin: 0 0 4px;
  font: italic 400 16px/1.5 var(--sa-headline);
}
.sa-ev-update {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--sa-gold);
  background: var(--sa-bg);
  border-radius: 0 8px 8px 0;
}
.sa-ev-update p {
  margin: 0 0 4px;
}
.sa-ev-recap {
  border: 1px solid var(--sa-gold);
}
.sa-ev-served {
  margin: 4px 0 10px;
}
.sa-ev-served strong {
  font: 400 40px/1 var(--sa-headline);
  color: var(--sa-gold-dark);
}
html.sa-dark .sa-ev-served strong {
  color: var(--sa-gold);
}
.sa-ev-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* The team's list: who's coming, with check-in. */
.sa-ev-att-sum {
  margin: 0 0 10px;
}
.sa-ev-att-head {
  margin: 14px 0 6px;
  font-size: 14px;
  color: var(--sa-muted);
}
.sa-ev-att {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.sa-ev-att li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
}
.sa-ev-att li.sa-in {
  background: color-mix(in srgb, #2f7d4f 10%, transparent);
}
.sa-ev-att .sa-grow {
  display: grid;
}
.sa-ev-answer {
  color: var(--sa-muted);
  font-size: 12.5px;
}
/* The form */
.sa-ev-dialog {
  width: min(620px, 96vw);
}
.sa-form-section {
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sa-muted);
}
.sa-ev-feature-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.sa-ev-cover-prev {
  height: 110px;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sa-bg);
  display: grid;
  place-items: center;
  color: var(--sa-muted);
  font-size: 13px;
  text-align: center;
  padding: 0 12px;
}
.sa-ev-cover-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-ev-reg {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
}
.sa-ev-reg summary {
  cursor: pointer;
  font-weight: 600;
}
.sa-ev-scope {
  margin-top: 12px;
}
/* An event shared in the feed */
.sa-ev-feedcard {
  margin: 10px 0 4px;
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  overflow: hidden;
}
.sa-ev-feedcard-top {
  position: relative;
  display: block;
  height: 120px;
  background: linear-gradient(135deg, #111 40%, #2a2418);
}
.sa-ev-feedcard-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-ev-feedcard-top .sa-event-date {
  position: absolute;
  left: 12px;
  bottom: 12px;
}
.sa-ev-feedcard-body {
  padding: 10px 14px 14px;
}
.sa-ev-feedcard-title {
  font: 400 20px/1.2 var(--sa-headline);
  color: inherit;
  text-decoration: none;
}
.sa-ev-feedcard-body p {
  margin: 4px 0;
}
.sa-note-date {
  display: grid;
  place-items: center;
  align-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  line-height: 1;
}
.sa-note-date span {
  color: var(--sa-gold);
  font-size: 9px;
  font-weight: 700;
}
.sa-note-date strong {
  font-size: 15px;
}
/* Calendar quick filters */
.sa-cal-pills {
  margin-top: 12px;
}
.sa-cal-pill-gap {
  flex-basis: 100%;
  height: 0;
}
.sa-cal-near {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
@media (max-width: 560px) {
  .sa-ev-title {
    font-size: 26px;
  }
  .sa-ev-cover {
    height: 160px;
  }
  .sa-ev-feature-picks {
    grid-template-columns: 1fr;
  }
}
.sa .sa-ev-feedcard-title {
  display: block;
  font: 400 20px/1.2 var(--sa-headline) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.sa-ev-att .sa-grow {
  flex: 1;
  min-width: 0;
}
.sa .sa-btn.sa-danger-text {
  color: #b23a2e !important;
}
html.sa-dark .sa .sa-btn.sa-danger-text {
  color: #ef8f84 !important;
}

/* Event covers in lists: a Page's or group's Events tab, and the community calendar. */
.sa-ev-thumb {
  position: relative;
  flex: none;
  width: 168px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}
.sa-ev-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sa-ev-thumb .sa-event-date {
  position: absolute;
  left: 6px;
  top: 6px;
  transform: scale(0.85);
  transform-origin: top left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.sa-cal-thumb {
  order: 3;
  flex: none;
  width: 112px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}
@media (max-width: 560px) {
  /* On a phone: the cover across the top of the card, the details below. */
  .sa-event.sa-has-cover {
    flex-direction: column;
    gap: 10px;
  }
  .sa-event.sa-has-cover .sa-ev-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
  }
  .sa-cal-event.sa-has-cover .sa-cal-thumb {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
  }
}
@media (max-width: 560px) {
  /* The calendar's quick filters scroll sideways on a phone instead of filling the screen. */
  .sa-cal-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .sa-cal-pills::-webkit-scrollbar {
    display: none;
  }
  .sa-cal-pills .sa-need-chip {
    flex: none;
  }
  .sa-cal-pill-gap {
    flex: 0 0 8px;
    height: auto;
  }
}

/* ---------- Date and time picker (event form) ---------- */
.sa-when {
  display: grid;
  gap: 12px;
}
.sa-dp {
  position: relative;
}
.sa-dp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.sa-dp-btn:hover {
  border-color: var(--sa-gold);
}
.sa-dp-btn[aria-expanded='true'] {
  border-color: var(--sa-gold);
  box-shadow: 0 0 0 3px var(--sa-gold-soft);
}
.sa-dp-btn svg {
  color: var(--sa-gold-dark);
  flex: none;
}
.sa-dp-btn.sa-dp-empty .sa-dp-text {
  color: var(--sa-muted);
  font-weight: 400;
}
.sa-dp-text {
  flex: 1;
}
.sa-dp-caret {
  color: var(--sa-muted);
  font-size: 12px;
}
.sa-dp-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: min(340px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  background: var(--sa-card);
  box-shadow: var(--sa-shadow-lg);
}
.sa-dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sa-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.sa-dp-wd {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--sa-muted);
  padding: 4px 0;
}
.sa-dp-day {
  aspect-ratio: 1;
  min-height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--sa-ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.sa-dp-day:hover:not([disabled]):not(.sa-dp-blank) {
  background: var(--sa-hover);
}
.sa-dp-day[disabled] {
  color: var(--sa-muted);
  opacity: 0.45;
  cursor: default;
}
.sa-dp-today {
  box-shadow: inset 0 0 0 1.5px var(--sa-gold);
  font-weight: 700;
}
.sa-dp-day.sa-dp-on {
  background: var(--sa-black);
  color: #fff;
  font-weight: 700;
}
html.sa-dark .sa-dp-day.sa-dp-on {
  background: var(--sa-gold);
  color: #000;
}
.sa-dp-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sa-line);
}
.sa-when-multi {
  font-size: 15px;
}
.sa-when-sum {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--sa-gold);
  border-radius: 0 8px 8px 0;
  background: var(--sa-soft);
  font-weight: 600;
}
.sa-when-sum:empty {
  display: none;
}

/* ---------- Community calendar: search row, filters, day strip ---------- */
.sa-cal-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.sa-cal-town {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  background: var(--sa-card);
  color: var(--sa-muted);
}
.sa-cal-town:focus-within {
  border-color: var(--sa-gold);
  box-shadow: 0 0 0 3px var(--sa-gold-soft);
}
.sa-cal-town input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 0;
  background: none;
  color: var(--sa-ink);
  font: inherit;
  outline: none;
}
.sa-cal-search .sa-small-btn {
  min-height: 42px;
  border-radius: 999px;
  white-space: nowrap;
}
.sa-cal-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sa-gold);
  color: #000;
  font-size: 12px;
  font-weight: 800;
}
.sa-cal-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.sa-cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--sa-gold-soft);
  color: #3d2c05;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sa-cal-chip-x {
  font-size: 17px;
  line-height: 1;
  opacity: 0.7;
}
.sa-cal-chip:hover .sa-cal-chip-x {
  opacity: 1;
}
.sa-cal-clear {
  font-size: 14px;
}
.sa-cal-when {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
}
.sa-cal-strip {
  flex: 1;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.sa-cal-tile {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 54px;
  min-height: 66px;
  padding: 6px 4px;
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}
.sa-cal-tile strong {
  font-size: 19px;
  line-height: 1.1;
}
.sa-cal-tile-wd {
  font-size: 12px;
  font-weight: 600;
  color: var(--sa-muted);
}
.sa-cal-tile-dot {
  height: 10px;
  font-size: 13px;
  line-height: 10px;
  letter-spacing: 1px;
  color: var(--sa-gold);
}
.sa-cal-tile-wide {
  width: 74px;
}
.sa-cal-tile-wide strong {
  font-size: 15px;
}
.sa-cal-tile.sa-cal-none strong {
  color: var(--sa-muted);
  font-weight: 500;
}
.sa-cal-tile:hover {
  border-color: var(--sa-gold);
}
.sa-cal-tile.sa-on {
  border-color: var(--sa-black);
  background: var(--sa-black);
  color: #fff;
}
.sa-cal-tile.sa-on .sa-cal-tile-wd,
.sa-cal-tile.sa-on strong {
  color: #fff;
}
html.sa-dark .sa-cal-tile.sa-on {
  border-color: var(--sa-gold);
  background: var(--sa-gold);
}
html.sa-dark .sa-cal-tile.sa-on .sa-cal-tile-wd,
html.sa-dark .sa-cal-tile.sa-on strong,
html.sa-dark .sa-cal-tile.sa-on .sa-cal-tile-dot {
  color: #000;
}
.sa-cal-other {
  flex: none;
  display: flex;
  align-items: center;
}
.sa-cal-other .sa-dp-btn {
  min-height: 66px;
  width: auto;
  border-radius: 12px;
  font-size: 14px;
}
.sa-cal-other .sa-dp-caret {
  display: none;
}
.sa-cal-other .sa-dp-pop {
  left: auto;
  right: 0;
}
.sa-cal-showing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 10px;
  color: var(--sa-muted);
  font-weight: 600;
}
.sa-cal-empty p {
  color: var(--sa-muted);
}
.sa-cal-sheet .sa-form-section:first-child {
  margin-top: 0;
}
.sa-cal-sheet [role='radio'][aria-checked='true'] {
  background: var(--sa-black);
  border-color: var(--sa-black);
  color: #fff;
}
html.sa-dark .sa-cal-sheet [role='radio'][aria-checked='true'] {
  background: var(--sa-gold);
  border-color: var(--sa-gold);
  color: #000;
}
.sa-cal-sheet-acts {
  justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 560px) {
  .sa-cal-search {
    flex-wrap: wrap;
  }
  .sa-cal-town {
    flex-basis: 100%;
  }
  .sa-cal-search .sa-small-btn {
    flex: 1;
    justify-content: center;
  }
  .sa-cal-when {
    flex-direction: column;
    margin-inline: 0;
  }
  .sa-cal-other .sa-dp-btn {
    min-height: 44px;
    width: 100%;
  }
  .sa-cal-other {
    display: block;
  }
  .sa-cal-other .sa-dp-pop {
    left: 0;
    right: auto;
  }
  .sa-cal-title .sa-btn {
    align-self: flex-start;
  }
}
/* Compact date button (volunteer shift rows) and the 15-minute time lists. */
.sa-dp-short .sa-dp-btn {
  min-height: 44px;
  padding: 8px 10px;
  gap: 6px;
  font-weight: 500;
}
.sa-dp-short .sa-dp-btn svg {
  width: 16px;
  height: 16px;
}
.sa-dp-short .sa-dp-caret {
  display: none;
}
.sa-dp-clear {
  margin-left: auto;
  font-size: 14px;
}
.sa-shift-row > * {
  min-width: 0;
}
.sa-time-select {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  background: var(--sa-card);
  color: var(--sa-ink);
  font: inherit;
}
.sa-hours-edit .sa-time-select {
  width: auto;
}
.sa-shift-past .sa-time-select,
.sa-shift-past .sa-dp-btn {
  color: var(--sa-muted);
}
@media (max-width: 560px) {
  .sa-shift-row > .sa-dp {
    grid-column: 1 / -1;
  }
}

/* The ministry's own site, at the top of the account menu (and in the installed app). */
.sa-menu-group {
  margin: 8px 12px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sa-muted, #9a9a9a);
}
.sa-menu a.sa-menu-site {
  gap: 10px;
}
.sa-menu a.sa-menu-site svg {
  flex: none;
  color: #c6a34a;
}
.sa-menu-rule {
  width: calc(100% - 16px);
  margin: 6px 8px;
  border: 0;
  border-top: 1px solid var(--sa-line, #2a2a2a);
}
