:root {
  --brand-color: #7b3f23;
  --gold: #d4af6a;
  --nav-bg: #ffffff;
  --nav-border: #eee0d6;
  --text-muted: #6b6b6b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.75rem 2rem;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.scheduled-maintenance-banner {
  background-color: #e7b36a;
  color: #201209;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
}

.nav-logo {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.nav-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  justify-self: center;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-color);
}

.nav-link.active {
  color: var(--brand-color);
  border-bottom-color: var(--brand-color);
}

.nav-auth {
  display: flex;
  align-items: center;
  justify-self: end;
}

.nav-logout {
  text-decoration: none;
  color: #fff;
  background-color: var(--brand-color);
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.nav-logout:hover {
  opacity: 0.85;
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  color: var(--brand-color);
  cursor: pointer;
}

.nav-hamburger svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .navbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand hamburger"
      "links links"
      "auth auth";
    row-gap: 0.75rem;
  }

  .nav-brand {
    grid-area: brand;
  }

  .nav-hamburger {
    display: flex;
    grid-area: hamburger;
    justify-self: end;
  }

  .nav-links,
  .nav-auth {
    display: none;
  }

  .navbar.is-open .nav-links {
    grid-area: links;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .navbar.is-open .nav-auth {
    grid-area: auth;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .nav-auth .nav-link {
    padding: 0.25rem 0;
  }

  .nav-logout {
    align-self: flex-start;
  }
}

/* Carousel */

.carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff8f0, #f3e6d8);
  overflow: hidden;
}

.carousel-track-wrapper {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  list-style: none;
  transition: transform 0.45s ease;
}

.carousel-slide {
  min-width: 100%;
  min-height: 520px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 6rem;
  text-align: center;
}

.carousel-slide p {
  max-width: 640px;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brand-color);
  line-height: 1.4;
}

.mission-box {
  background: #4a2515;
  border-radius: 20px;
  padding: 2.75rem 3.5rem;
  max-width: 760px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.mission-box h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.mission-box p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #fdf6ec;
  max-width: 700px;
}

.mission-box blockquote {
  margin: 1.75rem 0 0;
  max-width: 640px;
}

.mission-box blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold);
  margin: 0;
}

.mission-box cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 600;
  color: #fdf6ec;
}

.carousel-slide-stories {
  padding: 3.5rem 4rem;
}

.stories-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.stories-text {
  flex: 0 1 380px;
  max-width: 440px;
  text-align: left;
}

.stories-text h2 {
  font-size: 2.25rem;
  color: var(--brand-color);
  margin-bottom: 1.1rem;
}

.stories-text p {
  font-size: 1.2rem;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  max-width: 440px;
  text-align: left;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: #fff;
  background-color: var(--brand-color);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

.applications-closed-note {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7b3f24;
  background: rgba(123, 63, 35, 0.1);
  border: 1px solid rgba(123, 63, 35, 0.22);
  border-radius: 999px;
}

.applications-closed-note[hidden] {
  display: none;
}

.story-grid {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-row {
  display: flex;
  gap: 0.75rem;
}

.story-row-offset {
  transform: translateX(3.25rem);
}

.story-card {
  width: 92px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0dcc4, #e2bd94);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-color);
  box-shadow: 0 8px 18px rgba(123, 63, 35, 0.18);
}

.story-card-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-slide-creators {
  padding: 3.5rem 4rem;
}

.phone-mockups {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  height: 380px;
}

.phone-frame {
  position: absolute;
  box-sizing: border-box;
  width: 160px;
  height: 320px;
  padding: 8px;
  background: #1c1c1e;
  border-radius: 34px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.phone-frame-back {
  top: 0;
  left: 0;
  transform: rotate(-8deg);
  z-index: 1;
  opacity: 0.95;
}

.phone-frame-front {
  top: 40px;
  left: 80px;
  transform: rotate(6deg);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 16px;
  background: #000;
  border-radius: 10px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, #3b2a1f, #7b3f23);
}

.phone-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  color: #fdf6ec;
}

.play-icon {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
  border: none;
  color: var(--brand-color);
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.95);
}

.carousel-arrow-left {
  left: 1.5rem;
}

.carousel-arrow-right {
  right: 1.5rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.6rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(123, 63, 35, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.dot.active {
  background: var(--brand-color);
}

@media (max-width: 768px) {
  .carousel-slide {
    min-height: 460px;
    padding: 3.5rem 3.5rem;
  }

  .carousel-slide p {
    font-size: 1.15rem;
  }

  .mission-box {
    padding: 2rem 1.75rem;
  }

  .mission-box h2 {
    font-size: 1.6rem;
  }

  .mission-box p {
    font-size: 1rem;
  }

  .carousel-slide-stories {
    padding: 2.5rem 2rem;
  }

  .stories-split {
    flex-direction: column;
    gap: 2rem;
  }

  .stories-text {
    text-align: center;
  }

  .stories-text p {
    margin: 0 auto;
    text-align: center;
  }

  .carousel-slide-creators .stories-text h2 {
    font-size: 2.125rem;
  }

  .story-grid {
    gap: 0.5rem;
  }

  .story-row {
    gap: 0.5rem;
  }

  .story-row-offset {
    transform: translateX(1.75rem);
  }

  .story-card {
    width: 70px;
    height: 52px;
  }

  .story-card-icon {
    width: 18px;
    height: 18px;
  }

  .carousel-slide-creators {
    padding: 2.5rem 2rem;
  }

  .phone-mockups {
    width: 190px;
    height: 260px;
  }

  .phone-frame {
    width: 115px;
    height: 228px;
    padding: 6px;
    border-radius: 24px;
  }

  .phone-frame-front {
    top: 28px;
    left: 56px;
  }

  .phone-notch {
    width: 40px;
    height: 12px;
    top: 7px;
  }

  .phone-screen {
    border-radius: 18px;
  }

  .play-icon {
    width: 32px;
    height: 32px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .carousel-arrow-left {
    left: 0.5rem;
  }

  .carousel-arrow-right {
    right: 0.5rem;
  }
}

/* Shared dashboard-style components */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background-color: #a0522d;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #8a4527;
}

.btn--outline {
  background-color: transparent;
  color: #7b3f24;
  border-color: #a0522d;
}

.btn--outline:hover {
  background-color: rgba(160, 82, 45, 0.06);
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .button-row {
    flex-direction: row;
  }

  .button-row .btn {
    width: auto;
    flex: 1;
  }
}

.dashboard-section__title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #2e2621;
  margin-bottom: 0.5rem;
}

.dashboard-section__subtitle {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6b5d4f;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* Pray for the Community section */

.pray-community-section {
  padding: 5rem 3rem;
  background-color: #ffffff;
}

.pray-community-inner {
  max-width: 960px;
  margin: 0 auto;
}

.pray-community-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.pray-community-columns {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.pray-community-column {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.pray-community-column-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  color: var(--brand-color);
  margin-bottom: 0.25rem;
}

.pray-community-column-title svg {
  width: 22px;
  height: 22px;
}

.pray-community-btn {
  width: 100%;
  max-width: 260px;
}

@media (max-width: 600px) {
  .pray-community-section {
    padding: 3rem 1.5rem;
  }

  .pray-community-columns {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
}

/* Stories section */

.stories-section {
  padding: 4.5rem 3rem;
  background-color: #f3e8d9;
}

.stories-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 2.25rem;
  color: var(--brand-color);
}

.view-all-link {
  text-decoration: none;
  color: var(--brand-color);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

.view-all-link:hover {
  text-decoration: underline;
}

.story-post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.story-post-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff8f0;
  box-shadow: 0 8px 20px rgba(123, 63, 35, 0.1);
}

.story-post-image {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0dcc4, #e2bd94);
  color: var(--brand-color);
}

.story-post-image-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.story-post-title {
  font-size: 1.15rem;
  color: var(--brand-color);
  margin-bottom: 0.5rem;
}

.story-post-desc {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  flex: 1;
}

.story-post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0 0.75rem;
}

.story-post-author {
  font-weight: 600;
}

.story-post-readmore {
  text-decoration: none;
  color: var(--brand-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.story-post-readmore:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .story-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stories-section {
    padding: 3rem 1.5rem;
  }

  .stories-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .story-post-grid {
    grid-template-columns: 1fr;
  }
}

/* Approved Creators CTA section */

.creators-cta-section {
  padding: 6rem 3rem;
  background: linear-gradient(135deg, #3a2418, #201209);
}

.creators-cta-inner {
  max-width: 960px;
  margin: 0 auto;
}

.creators-cta-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 800px) {
  .creators-cta-content {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.creators-cta-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e7b36a;
  margin-bottom: 0.75rem;
}

.creators-cta-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.creators-cta-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 440px;
}

.btn-creators-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 48px;
  margin-top: 2rem;
  text-decoration: none;
  color: #ffffff;
  background-color: #a0522d;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-creators-cta:hover {
  background-color: #8a4527;
}

.creators-cta-phone {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 460px;
  background: #0b0b0c;
  border-radius: 42px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-mockup-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #0b0b0c;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-mockup-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #0b0b0c;
}

.phone-mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-mockup-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.creator-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .creator-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.creator-preview-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.creator-preview-photo svg {
  width: 30px;
  height: 30px;
}

.creator-preview-name {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.creator-preview-bio {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.creator-preview-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.creator-preview-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e7b36a;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(231, 179, 106, 0.4);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.creator-preview-link:hover {
  background: #e7b36a;
  color: #201209;
}

/* Meet the Writers block — light background (inside .stories-section) */

.stories-writers-block {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e4d5bf;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stories-writers-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.stories-writers-block .creator-preview-name {
  color: #2e2621;
}

.stories-writers-block .creator-preview-bio {
  color: #5c4a3a;
}

.stories-writers-block .creator-preview-photo {
  background: rgba(123, 63, 35, 0.08);
  color: rgba(123, 63, 35, 0.5);
}

@media (max-width: 768px) {
  .creators-cta-section {
    padding: 3.5rem 2rem;
  }

  .creators-cta-phone {
    display: none;
  }
}

/* Creators directory page */

.creators-page-hero {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.creators-page-hero-desc {
  max-width: 560px;
  margin: 0 auto;
}

.creators-platform-section {
  padding: 5rem 3rem;
  background-color: #fff8f0;
}

.creators-platform-inner {
  max-width: 1500px;
  margin: 0 auto;
}

.content-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background-color: #ffffff;
  border: 1px solid #e4d5bf;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 3rem;
}

.content-toolbar__search {
  flex: 1 1 260px;
}

.content-toolbar__filter {
  flex: 0 1 200px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B5D4F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.25rem;
  cursor: pointer;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.person-card {
  position: relative;
  height: 210px;
  background: transparent;
  border-radius: 14px;
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

.person-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

.person-card.is-flipped .person-card__inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.person-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 0.85rem 0.75rem;
  background-color: #f7efe4;
  border: 1px solid rgba(123, 63, 35, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(123, 63, 35, 0.14), 0 2px 8px rgba(123, 63, 35, 0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Do not use overflow:hidden here — it breaks backface-visibility in
     Chrome/Safari and lets the mirrored front show through on flip. */
}

.person-card__face--front {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  z-index: 2;
}

.person-card__face--back {
  flex-direction: column;
  align-items: stretch;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  background-color: #f3e8d9;
  z-index: 1;
}

.person-card:hover .person-card__face {
  box-shadow: 0 14px 30px rgba(123, 63, 35, 0.2), 0 3px 10px rgba(123, 63, 35, 0.1);
}

.person-card__watermarks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.person-card__watermark-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  color: var(--brand-color);
  opacity: 0.08;
}

.person-card__watermark-icon:nth-child(1) {
  top: 10px;
  right: 12px;
  transform: rotate(12deg);
}

.person-card__watermark-icon:nth-child(2) {
  bottom: 12px;
  left: 10px;
  width: 44px;
  height: 44px;
  transform: rotate(-14deg);
  opacity: 0.07;
}

.person-card__watermark-icon:nth-child(3) {
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%) rotate(8deg);
  opacity: 0.05;
}

.person-card__photo,
.person-card__info {
  position: relative;
  z-index: 1;
}

.person-card__photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efe0cc;
  color: var(--brand-color);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.person-card__photo svg {
  width: 26px;
  height: 26px;
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card__info {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.person-card__platform {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a4795a;
  margin: 0;
}

.person-card__name {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2e2621;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card__bio {
  flex: 1;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #5c4a3a;
  overflow-y: auto;
  min-height: 0;
  /* Clip long bios on the back face only */
  max-height: 100%;
}

.person-card__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  overflow: hidden;
  max-height: 3.4rem;
  margin-top: 0.1rem;
}

.person-card__bio-btn {
  align-self: center;
  margin-top: 0.15rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-color);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(123, 63, 35, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.person-card__bio-btn:hover {
  background: var(--brand-color);
  color: #fff;
  border-color: var(--brand-color);
}

.person-card__bio-btn--back {
  align-self: center;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.person-card__link {
  font-size: 0.7rem;
  font-weight: 600;
  color: #e7b36a;
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(231, 179, 106, 0.5);
  border-radius: 999px;
  background-color: #fff8f0;
  transition: background 0.2s ease, color 0.2s ease;
}

.person-card__link:hover {
  background: var(--brand-color);
  color: #fff;
  border-color: var(--brand-color);
}

.person-card__link--featured {
  color: #fff;
  background-color: var(--brand-color);
  border-color: var(--brand-color);
}

.person-card__link--featured:hover {
  background-color: #5c2f1a;
  border-color: #5c2f1a;
}

.person-card__newest-toggle {
  font-family: inherit;
  cursor: pointer;
}

.person-card__newest-menu {
  position: absolute;
  bottom: 52px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 140px;
  background-color: #ffffff;
  border: 1px solid #e4d5bf;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(123, 63, 35, 0.2);
  padding: 0.35rem;
}

.person-card__newest-menu a {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5c4a3a;
  text-decoration: none;
  white-space: nowrap;
}

.person-card__newest-menu a:hover {
  background-color: #fff8f0;
}

.person-card__newest-menu[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .people-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 780px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .people-grid {
    grid-template-columns: 1fr;
  }

  .person-card {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .creators-platform-section {
    padding: 3rem 1.5rem;
  }
}

/* Buy Me a Coffee floating button — links to the /donate explanation page
   rather than straight out to Buy Me a Coffee, so people know what it is
   and where the money goes before they leave the site. Sits directly above
   .scroll-top-btn (bottom: 1.5rem / 24px, 44px tall) in the same corner. */

.coffee-float-btn {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 499;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background-color: #7b3f23;
  color: #fff8f0;
  border: 1px solid #e7b36a;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.coffee-float-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .coffee-float-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background-color: #201209;
}

.site-footer__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #dddbda;
}

.site-footer__ssl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__lock-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.site-footer__discord {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__discord:hover {
  color: #fff;
}

.site-footer__discord-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .site-footer {
    justify-content: center;
    text-align: center;
    padding: 1.5rem 2rem;
  }
}

/* Form pages (e.g. Become a Creator) */

.form-page-section {
  padding: 4rem 1.5rem 6rem;
  background-color: #fff8f0;
  min-height: 60vh;
}

.form-page-inner {
  max-width: 640px;
  margin: 0 auto;
}

.form-page-title {
  font-size: 2rem;
  color: var(--brand-color);
  margin-bottom: 0.75rem;
}

.form-page-subtitle {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.form-disclaimer {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #6b4a2f;
  background-color: #f3e8d9;
  border-left: 3px solid var(--brand-color);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 2.5rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-field-input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #222;
  background-color: #ffffff;
  border: 1px solid #e0d2c2;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field-input:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(123, 63, 35, 0.15);
}

.form-field-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field-helper {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #777;
}

.rte {
  border: 1px solid #e0d2c2;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rte:focus-within {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(123, 63, 35, 0.15);
}

.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background-color: #f7f0e6;
  border-bottom: 1px solid #e0d2c2;
}

.rte-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #4a3a2c;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rte-btn:hover {
  background-color: #ecdfc9;
}

.rte-btn.is-active {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  color: #ffffff;
}

.rte-select {
  height: 32px;
  padding: 0 0.4rem;
  font-size: 0.8rem;
  font-family: inherit;
  color: #4a3a2c;
  background-color: #ffffff;
  border: 1px solid #e0d2c2;
  border-radius: 6px;
  cursor: pointer;
}

.rte-divider {
  width: 1px;
  height: 22px;
  background-color: #e0d2c2;
  margin: 0 0.15rem;
}

.rte-editor {
  min-height: 220px;
  max-height: 480px;
  overflow-y: auto;
  border: none;
  border-radius: 0;
}

.rte-editor:focus {
  outline: none;
  box-shadow: none;
}

.rte-editor:empty::before {
  content: attr(data-placeholder);
  color: #9a8b7a;
  pointer-events: none;
}

.rte-editor h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}

.rte-editor h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}

.rte-editor p {
  margin: 0 0 0.9rem;
}

.rte-editor ul,
.rte-editor ol {
  margin: 0 0 0.9rem 1.4rem;
}

.rte-editor blockquote {
  margin: 0 0 0.9rem;
  padding-left: 1rem;
  border-left: 3px solid var(--brand-color);
  color: #6b5d4f;
}

.rte-editor a {
  color: var(--brand-color);
  text-decoration: underline;
}

input[type="file"].form-field-input {
  padding: 0.65rem 1rem;
  min-height: auto;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-color);
  flex-shrink: 0;
}

.checkbox-field label {
  font-size: 0.9rem;
  color: #444;
}

.form-submit {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
}

.form-success {
  text-align: center;
}

.form-success .form-page-subtitle {
  margin-bottom: 2rem;
}

.verification-code {
  display: inline-block;
  margin: 0 auto 1.5rem;
  padding: 1rem 2rem;
  background-color: #fff;
  border: 2px dashed var(--brand-color);
  border-radius: 10px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-color);
}

.discord-link-panel {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background-color: #fff;
  border: 1px solid #e4d5bf;
  border-radius: 10px;
}

.discord-link-panel__text {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #4a4139;
}

.discord-link-code {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.25rem;
  background-color: #f3e8d9;
  border: 2px dashed var(--brand-color);
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-color);
}

.discord-link-code[hidden] {
  display: none;
}

.form-success-note {
  font-size: 0.9rem;
  color: #666;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .form-page-section {
    padding: 3rem 1.25rem 4rem;
  }

  .form-page-title {
    font-size: 1.6rem;
  }
}

/* Prayer Wall / Praise Wall */

.wall-page {
  min-height: 60vh;
  background-color: #f3e8d9;
}

.wall-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.wall-header {
  margin-bottom: 2rem;
}

.wall-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2e2621;
  margin-bottom: 0.5rem;
}

.wall-header__subtitle {
  font-size: 1rem;
  color: #6b5d4f;
  max-width: 620px;
  line-height: 1.6;
}

.wall-toolbar {
  background-color: #ffffff;
  border: 1px solid #e4d5bf;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
}

.wall-toolbar__search {
  position: relative;
  flex: 1 1 240px;
}

.wall-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b5d4f;
  display: flex;
  pointer-events: none;
}

.wall-search-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
}

.form-field-input--search {
  padding-left: 40px;
}

.wall-toolbar__clear {
  font-size: 0.875rem;
  color: #6b5d4f;
  cursor: pointer;
  white-space: nowrap;
}

.wall-toolbar__clear:hover {
  color: var(--brand-color);
  text-decoration: underline;
}

.wall-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

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

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

.wall-card {
  background-color: #ffffff;
  border: 1px solid #e4d5bf;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wall-card[hidden] {
  display: none;
}

.wall-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wall-card__date {
  font-size: 0.75rem;
  color: #6b5d4f;
  white-space: nowrap;
}

.wall-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #2e2621;
}

.wall-card__body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #2e2621;
}

.wall-card__meta {
  font-size: 0.8125rem;
  color: #6b5d4f;
}

.wall-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #e4d5bf;
}

.pray-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #a0522d;
  background-color: transparent;
  color: #7b3f24;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pray-btn svg {
  width: 16px;
  height: 16px;
}

.pray-btn:hover {
  background-color: #eddfcb;
}

.pray-btn.is-active {
  background-color: #a0522d;
  color: #ffffff;
  border-color: #a0522d;
}

.pray-btn__count {
  font-variant-numeric: tabular-nums;
}

.wall-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #6b5d4f;
}

/* My Requests page */

.wall-card__type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7b3f24;
}

.wall-card__type svg {
  width: 16px;
  height: 16px;
  color: #a0522d;
}

.status-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 0.75rem;
  white-space: nowrap;
}

.status-badge--approved {
  color: #3f7d3f;
  background-color: rgba(63, 125, 63, 0.12);
}

.status-badge--pending {
  color: #92620a;
  background-color: rgba(217, 145, 13, 0.14);
}

.status-badge--rejected {
  color: #b3261e;
  background-color: rgba(179, 38, 30, 0.1);
}

.wall-card__pray-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b5d4f;
}

.wall-card__pray-count svg {
  width: 16px;
  height: 16px;
  color: #a0522d;
}

.wall-card__awaiting {
  font-size: 0.875rem;
  color: #6b5d4f;
  font-style: italic;
}

@media (max-width: 600px) {
  .wall-main {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .wall-header__title {
    font-size: 1.5rem;
  }
}

/* Submit modals (Prayer Request / Praise Report) */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: rgba(30, 17, 10, 0.55);
  z-index: 1000;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #fff8f0;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.modal--wide {
  max-width: 720px;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  background-color: transparent;
  color: #7b3f24;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.modal-close:hover {
  background-color: rgba(123, 63, 35, 0.08);
}

.modal-title {
  font-size: 1.4rem;
  color: var(--brand-color);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.modal-success {
  text-align: center;
}

.modal-success .btn-primary {
  display: inline-block;
  width: auto;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .modal {
    padding: 2rem 1.5rem;
  }
}

/* Single story page */

.story-detail-main {
  max-width: 760px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b5d4f;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--brand-color);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.story-detail-image {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0dcc4, #e2bd94);
  color: var(--brand-color);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.story-detail-image-icon {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2e2621;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.story-detail-meta {
  font-size: 0.9375rem;
  color: #6b5d4f;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e4d5bf;
}

.story-detail-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2e2621;
}

.story-detail-body p {
  margin-bottom: 1.25rem;
}

.story-detail-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2e2621;
  margin: 1.75rem 0 1rem;
}

.story-detail-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2e2621;
  margin: 1.5rem 0 0.9rem;
}

.story-detail-body ul,
.story-detail-body ol {
  margin: 0 0 1.25rem 1.5rem;
}

.story-detail-body li {
  margin-bottom: 0.4rem;
}

.story-detail-body blockquote {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--brand-color);
  color: #6b5d4f;
  font-style: italic;
}

.story-detail-body a {
  color: var(--brand-color);
  text-decoration: underline;
}

.story-detail-link {
  color: var(--brand-color);
  font-weight: 600;
}

@media (max-width: 600px) {
  .story-detail-image {
    height: 220px;
    margin-bottom: 1.5rem;
  }

  .story-detail-title {
    font-size: 1.6rem;
  }
}

/* Legal pages (Terms / Privacy) */

.legal-main {
  max-width: 760px;
}

.legal-updated {
  font-size: 0.9375rem;
  color: #6b5d4f;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e4d5bf;
}

.legal-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2e2621;
}

.legal-body h2 {
  font-size: 1.375rem;
  color: var(--brand-color);
  margin: 2.5rem 0 1rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 1.25rem;
}

.legal-body ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body a {
  color: var(--brand-color);
  font-weight: 600;
}

/* Auth pages (Login / Create Account) */

.split-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .split-screen {
    flex-direction: row;
  }
}

.split-screen-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.split-screen-panel--mission {
  background-color: #f3e8d9;
}

.split-screen-panel--login {
  background-color: #ffffff;
  position: relative;
}

@media (min-width: 900px) {
  .split-screen-panel--login::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3rem;
    bottom: 3rem;
    width: 1px;
    background-color: #e4d5bf;
  }
}

@media (max-width: 899px) {
  .split-screen-panel--login {
    border-top: 1px solid #e4d5bf;
  }
}

.mission-panel {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.mission-panel-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-panel-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mission-title {
  font-size: 2rem;
  font-weight: 700;
  color: #7b3f24;
  margin-bottom: 1rem;
}

.mission-body {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #2e2621;
  margin-bottom: 1.5rem;
}

.mission-quote {
  background-color: #ffffff;
  border-left: 4px solid #a0522d;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 1px 3px rgba(43, 30, 15, 0.08);
}

.mission-quote-text {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #7b3f24;
  margin-bottom: 0.75rem;
}

.mission-quote-cite {
  font-size: 0.875rem;
  color: #6b5d4f;
  font-style: normal;
}

.auth-panel,
.auth-card {
  max-width: 380px;
  width: 100%;
}

.auth-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 30px rgba(43, 30, 15, 0.1);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-brand-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-name {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #7b3f24;
}

.auth-heading {
  font-size: 1.625rem;
  font-weight: 700;
  color: #2e2621;
  margin-bottom: 0.5rem;
}

.auth-subheading {
  font-size: 0.9375rem;
  color: #6b5d4f;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}

@media (min-width: 480px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field-input-wrap {
  position: relative;
}

.form-field-input--password {
  padding-right: 44px;
}

.form-field-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #6b5d4f;
}

.form-field-toggle:hover {
  color: #2e2621;
}

.form-field-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
}

.form-field-error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #b3261e;
}

.form-field-error.is-visible {
  display: flex;
}

.form-field-input.has-error {
  border-color: #b3261e;
}

.password-requirements {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
}

.password-requirements-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #6b5d4f;
  transition: color 0.2s ease;
}

.password-requirements-item.is-met {
  color: #2e2621;
}

.password-requirements-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6b5d4f;
}

.password-requirements-item.is-met .password-requirements-icon {
  color: #3f7d3f;
}

.password-requirements-icon svg {
  width: 100%;
  height: 100%;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
  margin-top: -0.5rem;
}

.link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #a0522d;
  text-decoration: none;
  cursor: pointer;
}

.link:hover {
  color: #8a4527;
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: #6b5d4f;
  font-size: 0.8125rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e4d5bf;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b5d4f;
}

.auth-footer a {
  color: var(--brand-color);
  font-weight: 600;
}

.auth-footer--consent {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: left;
}

.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3e8d9;
  padding: 2rem 1rem;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .mission-quote {
    padding: 1.25rem;
  }
}

/* Admin dashboard */

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-tab {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #e4d5bf;
  color: #6b5d4f;
  background-color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.admin-tab:hover {
  border-color: #a0522d;
  color: #2e2621;
}

.admin-tab.is-active {
  background-color: #a0522d;
  border-color: #a0522d;
  color: #ffffff;
}

.admin-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 0.4rem;
  padding: 0 5px;
  border-radius: 999px;
  background-color: #c0392b;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.admin-tab.is-active .admin-tab__badge {
  background-color: #ffffff;
  color: #a0522d;
}

.admin-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-panel-title {
  font-size: 1.3rem;
  color: #2e2621;
}

/* Role badges */

.role-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 0.75rem;
  white-space: nowrap;
}

.role-badge--owner {
  color: #ffffff;
  background-color: #a0522d;
}

.role-badge--admin {
  color: #7b3f24;
  background-color: #eddfcb;
}

.role-badge--support {
  color: #3f7d3f;
  background-color: rgba(63, 125, 63, 0.12);
}

.role-badge--writer {
  color: #7b3f24;
  background-color: #f3e8d9;
}

.role-badge--creator {
  color: #5c3d1e;
  background-color: #e8d4b8;
}

.role-badge--member {
  color: #6b5d4f;
  background-color: #e4d5bf;
}

/* Generic admin/data table (accounts, creators, content) */

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4d5bf;
  border-radius: 16px;
  background-color: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b5d4f;
  border-bottom: 1px solid #e4d5bf;
  white-space: nowrap;
}

.admin-table td {
  border-bottom: 1px solid #e4d5bf;
  color: #2e2621;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table__name {
  font-weight: 600;
  white-space: nowrap;
}

.admin-table__wrap {
  max-width: 260px;
  min-width: 160px;
}

.admin-table__email {
  color: #6b5d4f;
}

.admin-table__count {
  font-variant-numeric: tabular-nums;
}

.admin-table__thumb,
.admin-table__thumb-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3e8d9;
  color: #a0522d;
}

.admin-table__thumb {
  object-fit: cover;
}

.admin-table__thumb-placeholder svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-table__actions {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.role-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-form select.form-field-input {
  width: auto;
  min-height: 36px;
  padding: 4px 30px 4px 10px;
  font-size: 0.8125rem;
  background-size: 14px;
}

.role-form .btn {
  width: auto;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
}

/* Small buttons reused in table/card actions */

.btn--small {
  width: auto;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
}

.btn--danger-outline {
  background-color: transparent;
  color: #b3261e;
  border-color: #b3261e;
}

.btn--danger-outline:hover {
  background-color: rgba(179, 38, 30, 0.06);
}

/* Moderation cards */

.wall-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.reject-form {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reject-form[hidden] {
  display: none;
}

.reject-form textarea.form-field-input {
  min-height: 72px;
}

/* Follow-ups panel (salvation) */

.inline-action-form {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inline-action-form[hidden] {
  display: none;
}

.inline-action-form textarea.form-field-input {
  min-height: 72px;
}

.message-thread {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4d5bf;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.message-item {
  background-color: #fff8f0;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

.message-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b5d4f;
  margin-bottom: 0.35rem;
}

.message-item__body {
  font-size: 0.875rem;
  color: #2e2621;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Photo upload preview */

.image-upload-preview {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-color: #f3e8d9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0522d;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.image-upload-preview svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radio-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #2e2621;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .admin-tabs {
    gap: 0.4rem;
  }

  .admin-tab {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* Scroll-to-top button */

.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--brand-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 500;
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  filter: brightness(1.1);
}
