:root {
  color-scheme: light;
  --ink: #172e2c;
  --ink-soft: #4f625e;
  --pine: #173b36;
  --pine-deep: #102b28;
  --pine-light: #e7eee7;
  --paper: #f5f5f0;
  --white: #fffefa;
  --line: #dce3dc;
  --muted: #6d8178;
  --gold: #b88952;
  --shadow: 0 18px 50px rgba(21, 48, 43, .055);
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9abdaa; outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
p { line-height: 1.6; }
.page-width { width: min(1260px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { margin-bottom: 15px; color: #9d6d45; font: 800 .68rem "Segoe UI", Arial, sans-serif; letter-spacing: .17em; }
.eyebrow.light { color: #e0bb8b; }
.muted { color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 47px; padding: 11px 21px; border: 1px solid transparent; border-radius: 8px; font-size: .87rem; font-weight: 750; text-decoration: none; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--pine); }
.button.primary:hover { background: var(--pine-deep); }
.button.secondary { color: var(--pine); background: var(--pine-light); }
.button.light { color: var(--pine-deep); background: #f7f3e8; }
.button.quiet { color: var(--ink-soft); background: transparent; border-color: var(--line); }
.button.full { width: 100%; }
.text-button, .subtle-link, .back-link, .external-link, .danger-link { border: 0; background: none; padding: 0; color: var(--pine); font-size: .79rem; font-weight: 750; text-decoration: none; }
.text-button:hover, .subtle-link:hover, .back-link:hover, .external-link:hover, .danger-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.danger-link { color: #a45649; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 17px; }
.field-label { color: #3b5149; font-size: .77rem; font-weight: 750; }
.input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #cbd6ce; border-radius: 8px; background: #fff; color: var(--ink); font-size: .9rem; }
.input::placeholder { color: #94a29a; }
textarea.input { min-height: 136px; resize: vertical; line-height: 1.5; }
.form-hint { color: var(--muted); font-size: .76rem; line-height: 1.55; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.notice { position: fixed; z-index: 30; top: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 22px; width: min(90vw, 600px); padding: 13px 17px; border: 1px solid #cad9ce; border-radius: 10px; background: var(--white); box-shadow: 0 18px 50px rgba(15, 40, 35, .18); font-size: .84rem; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--pine); text-align: left; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--pine); color: white; font: 700 1.28rem Georgia, serif; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font: 500 1.08rem Georgia, serif; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.brand-light { color: #f4f3e9; }
.brand-light .brand-mark { background: #e1bd8c; color: var(--pine-deep); }
.brand-light .brand-copy small { color: #a7bdb3; }

.guest-page { min-height: 100vh; }
.guest-header { display: flex; align-items: center; justify-content: space-between; min-height: 98px; }
.guest-header-right { display: flex; align-items: center; gap: 28px; }
.plain-link { color: var(--ink-soft); font-size: .8rem; font-weight: 700; text-decoration: none; }
.plain-link:hover { text-decoration: underline; }
.private-pill { padding: 9px 13px; border: 1px solid #cbd9ce; border-radius: 999px; color: var(--pine); font-size: .64rem; font-weight: 800; letter-spacing: .1em; }
.landing-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, 390px); align-items: center; gap: clamp(30px, 6vw, 96px); overflow: hidden; min-height: 610px; padding: clamp(35px, 6vw, 80px); border-radius: 23px; background: linear-gradient(90deg, rgba(14, 39, 35, .91) 0%, rgba(14, 39, 35, .73) 44%, rgba(14, 39, 35, .30) 100%), url('/assets/community-table.png') center center / cover; color: white; }
.landing-intro { position: relative; z-index: 1; max-width: 690px; }
.landing-intro h1 { max-width: 640px; margin-bottom: 22px; font-size: clamp(3.45rem, 5.8vw, 5.8rem); line-height: 1.04; }
.landing-copy { max-width: 490px; color: #ecf0e9; font-size: clamp(.98rem, 1.2vw, 1.08rem); }
.hero-bottom { display: flex; align-items: center; gap: 14px; margin-top: 75px; color: #d7e4d9; font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.hero-line { width: 28px; height: 1px; background: #e1bb8b; }
.auth-card { position: relative; z-index: 1; padding: 34px; border: 1px solid rgba(255,255,255,.4); border-radius: 15px; background: rgba(255,254,250,.97); box-shadow: 0 24px 70px rgba(0,0,0,.13); color: var(--ink); }
.auth-card h2 { margin-bottom: 8px; font-size: 2.25rem; }
.auth-description { margin-bottom: 26px; color: var(--ink-soft); font-size: .85rem; }
.auth-form { margin-bottom: 17px; }
.invite-note { margin: 10px 0 0; color: var(--muted); font-size: .76rem; }
.landing-areas { padding: 88px 0 110px; }
.landing-section-head { max-width: 600px; margin-bottom: 38px; }
.landing-section-head h2 { margin-bottom: 10px; font-size: clamp(2.35rem, 4vw, 3.7rem); }
.landing-section-head > p:last-child { color: var(--ink-soft); font-size: .94rem; }
.landing-area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.landing-area { min-height: 215px; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.landing-area:nth-child(2) { background: #eaf0e8; }
.landing-area:nth-child(4) { background: #f2eee3; }
.area-index { display: block; margin-bottom: 39px; color: #a37a53; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.landing-area h3 { margin-bottom: 10px; font-size: 1.45rem; }
.landing-area p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.guest-footer { padding: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; text-align: center; }

.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 30px 19px 21px; background: var(--pine-deep); color: #f0f3ed; }
.sidebar .brand { margin-left: 8px; }
.sidebar-label { margin: 63px 15px 14px; color: #94afa4; font-size: .64rem; font-weight: 800; letter-spacing: .14em; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { width: 100%; padding: 12px 15px; border: 0; border-radius: 8px; background: none; color: #b7cdc2; font-size: .86rem; font-weight: 650; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }
.nav-item.active { background: #e8eee7; color: var(--pine-deep); font-weight: 800; }
.sidebar-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 18px 4px 0; border-top: 1px solid rgba(255,255,255,.18); }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #d6e5d7; color: var(--pine); font-size: .7rem; font-weight: 800; }
.avatar.small { width: 33px; height: 33px; }
.avatar.large { width: 58px; height: 58px; font-size: 1rem; }
.sidebar-person { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 3px; }
.sidebar-person strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-person small { color: #aac0b5; font-size: .65rem; }
.signout { padding: 4px 0; border: 0; background: none; color: #c7d8d0; font-size: .65rem; }
.signout:hover { color: white; text-decoration: underline; }
.main-area { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 78px; padding: 0 clamp(25px, 5vw, 78px); border-bottom: 1px solid var(--line); background: #fafaf6; }
.topbar-title { font-size: .82rem; font-weight: 800; }
.topbar-right { color: var(--muted); font-size: .72rem; }
.main-content { width: min(1330px, 100%); margin: 0 auto; padding: 35px clamp(25px, 5vw, 78px) 100px; }
.member-hero { position: relative; overflow: hidden; min-height: 310px; padding: clamp(35px, 5vw, 62px); border-radius: 17px; background: linear-gradient(90deg, rgba(14, 42, 37, .94), rgba(14, 42, 37, .72) 55%, rgba(14, 42, 37, .22)), url('/assets/community-table.png') center center / cover; color: white; }
.member-hero h1 { max-width: 640px; margin-bottom: 15px; font-size: clamp(2.5rem, 4vw, 3.9rem); line-height: 1.1; }
.member-hero > p:not(.eyebrow) { max-width: 490px; color: #dce9e0; font-size: .89rem; }
.member-hero .button { margin-top: 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 39px 0 20px; }
.section-heading h2 { margin: 0; font-size: 1.85rem; }
.section-aside { color: var(--muted); font-size: .72rem; font-weight: 700; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.topic-card { position: relative; display: flex; flex-direction: column; min-height: 205px; padding: 23px; border: 1px solid #d8e1d7; border-radius: 13px; background: #e9f0e8; color: var(--ink); text-align: left; transition: transform .18s, box-shadow .18s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(15,43,38,.1); }
.topic-faith { background: #e7eee6; }
.topic-movement { background: #f0ecdf; border-color: #e9dfc9; }
.topic-opportunities { background: #e9eff0; border-color: #dce5e5; }
.topic-money { background: #f4ebe6; border-color: #ebded5; }
.topic-number { color: #8a9b8c; font-size: .67rem; font-weight: 800; }
.topic-label { margin-top: auto; padding-top: 30px; font: 500 1.36rem Georgia, serif; letter-spacing: -.03em; }
.topic-description { margin-top: 9px; padding-right: 9px; color: var(--ink-soft); font-size: .72rem; line-height: 1.45; }
.topic-arrow { position: absolute; top: 20px; right: 19px; font-size: 1.2rem; }
.home-lower { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 24px; align-items: start; margin-top: 6px; }
.home-lower .section-heading { margin-top: 31px; }
.home-side { padding-top: 31px; }
.home-movement, .home-note { padding: 24px; }
.home-movement h3 { font-size: 1.55rem; margin-bottom: 11px; }
.home-movement > p:not(.eyebrow), .home-note > p:not(.eyebrow) { color: var(--ink-soft); font-size: .78rem; }
.home-note { margin-top: 15px; border-radius: 13px; background: #e9eee6; }
.home-note > p:last-child { margin-bottom: 0; }
.post-card { margin-bottom: 14px; padding: 25px 27px; }
.post-top, .post-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topic-tag { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: #e5ede5; color: #3c684d; font-size: .66rem; font-weight: 800; }
.tag-movement { background: #f2ecdf; color: #7f663c; }
.tag-opportunities { background: #e4eff0; color: #446a72; }
.tag-money { background: #f5e9e0; color: #99664c; }
.tag-general { background: #e9ebe9; color: #52665f; }
.post-date, .post-author { color: var(--muted); font-size: .7rem; }
.post-title { display: block; margin: 17px 0 9px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 1.5rem Georgia, serif; letter-spacing: -.025em; text-align: left; }
.post-title:hover { color: #3f7159; }
.post-excerpt { margin-bottom: 18px; color: var(--ink-soft); font-size: .83rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.post-foot { padding-top: 16px; border-top: 1px solid var(--line); }
.post-compact { padding: 22px 25px; }
.post-compact .post-title { font-size: 1.3rem; }
.post-compact .post-excerpt { font-size: .78rem; }
.page-head { max-width: 740px; margin-bottom: 32px; }
.page-head h1 { margin-bottom: 11px; font-size: clamp(2.6rem, 4vw, 4rem); }
.page-description { color: var(--ink-soft); font-size: .95rem; }
.page-head .button { margin-top: 7px; }
.content-wide { max-width: 1020px; margin: 0 auto; }
.content-narrow { max-width: 760px; margin: 0 auto; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 22px; padding-bottom: 5px; }
.filter-pill { flex: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink-soft); font-size: .74rem; font-weight: 700; }
.filter-pill:hover { background: var(--pine-light); }
.filter-pill.active { border-color: var(--pine); background: var(--pine); color: white; }
.composer, .reply-form, .invite-form, .library-form, .checkin-card { padding: 28px; margin-bottom: 26px; }
.composer h2, .reply-form h2, .invite-form h2, .library-form h2, .checkin-card h2 { margin-bottom: 25px; font-size: 1.65rem; }
.empty { padding: 47px 34px; text-align: center; }
.empty h3 { margin-bottom: 10px; font-size: 1.55rem; }
.empty p { max-width: 460px; margin: 0 auto 20px; color: var(--muted); font-size: .82rem; }
.empty .button { margin-top: 3px; }
.back-link { margin: 5px 0 25px; }
.detail-card { padding: clamp(25px, 4vw, 45px); }
.detail-card h1 { margin: 22px 0 12px; font-size: clamp(2.2rem, 4vw, 3.3rem); overflow-wrap: anywhere; }
.detail-meta { padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.detail-body { padding-top: 23px; font-size: .91rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-card .danger-link { margin-top: 15px; }
.comment { padding: 22px 26px; margin-bottom: 11px; }
.comment > strong { font-size: .8rem; }
.comment-date { display: block; margin-top: 3px; color: var(--muted); font-size: .67rem; }
.comment-body { margin: 18px 0 6px; font-size: .85rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.reply-form { margin-top: 20px; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 25px; align-items: start; }
.split-main { min-width: 0; }
.split-main .section-heading { margin-top: 20px; }
.checkin-row { display: flex; align-items: center; gap: 12px; padding: 15px 18px; margin-bottom: 9px; }
.checkin-text { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.checkin-text strong { font-size: .78rem; }
.checkin-text span, .checkin-row small { color: var(--muted); font-size: .72rem; }
.feature-card { padding: 25px; }
.feature-card h2 { margin-bottom: 12px; font-size: 1.7rem; }
.feature-card p:not(.eyebrow) { color: var(--ink-soft); font-size: .8rem; }
.feature-card .subtle-link, .feature-card .external-link { display: block; margin-top: 15px; }
.feature-card .external-link { color: var(--muted); font-size: .72rem; }
.library-feature { padding: 32px; margin-bottom: 40px; background: #e8efe8; }
.library-feature h2 { font-size: 2rem; margin-bottom: 10px; }
.library-feature > p:not(.eyebrow) { max-width: 580px; color: var(--ink-soft); font-size: .86rem; }
.library-feature .button { margin-top: 8px; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.library-card { display: flex; flex-direction: column; align-items: flex-start; padding: 27px; }
.library-card h3 { margin: 17px 0 8px; font-size: 1.5rem; }
.library-card p { color: var(--ink-soft); font-size: .81rem; }
.library-card .subtle-link { margin-top: auto; }
.library-card .danger-link { margin-top: 18px; }
.library-form { margin-top: 35px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 15px; }
.member-card { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 27px; }
.member-card strong { margin-top: 8px; font-size: .85rem; }
.member-card small { color: var(--muted); font-size: .7rem; }
.invite-link { padding: 26px; margin-bottom: 28px; }
.invite-link strong { font-size: .9rem; }
.invite-link p { margin: 8px 0 14px; color: var(--muted); font-size: .76rem; }
.invite-link .input { margin-bottom: 12px; }
.invite-list { padding: 7px 24px; }
.invite-list > .muted { padding: 16px 0; }
.invite-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.invite-row:last-child { border-bottom: 0; }
.invite-row > div { display: flex; flex-direction: column; gap: 4px; }
.invite-row strong { font-size: .78rem; }
.invite-row small { color: var(--muted); font-size: .68rem; }
.status { padding: 6px 9px; border-radius: 999px; font-size: .65rem; font-weight: 800; }
.status.open { background: #e4efe3; color: #3a714d; }
.status.used { background: #e9ecea; color: #64786e; }
.status.expired { background: #f4e6df; color: #a76652; }

@media (max-width: 1200px) {
  .topic-grid, .landing-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-card { min-height: 175px; }
}
@media (max-width: 1050px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr) 340px; gap: 25px; padding: 50px; }
  .landing-intro h1 { font-size: 3.7rem; }
  .home-lower { grid-template-columns: 1fr; }
  .home-side { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 0; }
  .home-note { margin-top: 0; }
}
@media (max-width: 820px) {
  .landing-hero { grid-template-columns: 1fr; padding: 44px; }
  .landing-intro h1 { max-width: 660px; }
  .hero-bottom { margin-top: 32px; }
  .auth-card { max-width: 470px; }
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 17px 21px 0; }
  .sidebar .brand { margin-left: 0; }
  .sidebar-label { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; margin-top: 17px; padding-bottom: 10px; }
  .nav-item { width: auto; flex: none; white-space: nowrap; }
  .sidebar-bottom { position: absolute; top: 19px; right: 19px; margin: 0; padding: 0; border: 0; }
  .sidebar-bottom .avatar, .sidebar-person { display: none; }
  .topbar { display: none; }
  .main-content { padding-top: 22px; }
}
@media (max-width: 650px) {
  .page-width { width: min(100% - 28px, 480px); }
  .guest-header { min-height: 75px; }
  .guest-header-right .plain-link { display: none; }
  .private-pill { padding: 7px 10px; font-size: .55rem; }
  .brand-copy strong { font-size: .95rem; }
  .brand-copy small { font-size: .53rem; }
  .brand-mark { width: 36px; height: 36px; }
  .landing-hero { min-height: auto; padding: 32px 22px 24px; border-radius: 17px; background-position: 58% center; }
  .landing-intro h1 { font-size: clamp(2.75rem, 11vw, 4rem); }
  .landing-copy { font-size: .91rem; }
  .auth-card { padding: 25px 21px; }
  .landing-areas { padding: 66px 0 75px; }
  .landing-area-grid { grid-template-columns: 1fr; }
  .landing-area { min-height: 150px; }
  .area-index { margin-bottom: 20px; }
  .main-content { padding: 17px 15px 65px; }
  .member-hero { min-height: 270px; padding: 31px 25px; background-position: 55% center; }
  .member-hero h1 { font-size: 2.45rem; }
  .topic-grid, .library-grid, .home-side, .split-layout { grid-template-columns: 1fr; }
  .topic-card { min-height: 155px; }
  .section-heading h2 { font-size: 1.55rem; }
  .home-side { gap: 12px; }
  .post-card, .composer, .reply-form, .checkin-card, .invite-form, .library-form { padding: 22px; }
  .post-foot { align-items: flex-start; flex-direction: column; gap: 9px; }
  .checkin-row { flex-wrap: wrap; }
}

/* A stronger, service-inspired visual direction for the local preview. */
:root { --energy: #d5ee6a; --gold: #e1b26b; }
.guest-header { position: relative; }
.guest-header::before { content: ''; position: absolute; top: 0; left: 0; width: 86px; height: 4px; background: linear-gradient(90deg, var(--pine) 0 42%, var(--gold) 42% 66%, var(--energy) 66%); }
.landing-hero { display: block; min-height: 640px; overflow: visible; padding: clamp(42px, 6vw, 78px); background: linear-gradient(90deg, rgba(10, 35, 31, .88) 0%, rgba(10, 35, 31, .64) 42%, rgba(10, 35, 31, .06) 80%), url('/assets/group-walk.png') center center / cover; }
.landing-intro { max-width: min(60%, 690px); }
.landing-intro::before { content: '★'; display: block; margin-bottom: 20px; color: var(--energy); font-size: 1.25rem; }
.landing-intro h1 { max-width: 680px; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(3.65rem, 6.1vw, 6.3rem); font-weight: 850; line-height: .99; letter-spacing: -.069em; }
.landing-copy { max-width: 525px; font-size: 1.02rem; font-weight: 500; }
.hero-cta { margin-top: 20px; background: var(--energy) !important; color: var(--pine-deep) !important; font-weight: 800; }
.hero-bottom { margin-top: 45px; }
.hero-line { background: var(--energy); }
.auth-card { position: absolute; right: clamp(28px, 4.2vw, 62px); bottom: -93px; width: min(380px, 41%); max-width: none; border-top: 5px solid var(--energy); }
.landing-areas { padding-top: 186px; }
.landing-section-head h2, .page-head h1, .section-heading h2 { font-family: "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -.058em; }
.landing-section-head h2 { max-width: 690px; font-size: clamp(2.6rem, 4.2vw, 4.25rem); line-height: 1.06; }
.landing-area { border-top: 5px solid var(--pine); }
.landing-area:first-child { background: linear-gradient(90deg, rgba(13, 43, 38, .88), rgba(13, 43, 38, .47)), url('/assets/community-table.png') center center / cover; color: white; border-top-color: var(--energy); }
.landing-area:first-child .area-index { color: var(--energy); }
.landing-area:first-child p { color: #eef2e9; }
.landing-area:nth-child(2) { border-top-color: #d5a355; background: #f3ecd9; }
.landing-area:nth-child(3) { border-top-color: #477b94; background: #e5edf0; }
.landing-area:nth-child(4) { border-top-color: #b86d59; background: #f6e9e2; }
.landing-area h3 { font-family: "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -.04em; }
.button.primary { background: var(--pine-deep); }
.member-hero { background: linear-gradient(90deg, rgba(10, 35, 31, .91), rgba(10, 35, 31, .59) 55%, rgba(10, 35, 31, .08)), url('/assets/group-walk.png') center center / cover; }
.member-hero h1 { font-family: "Segoe UI", Arial, sans-serif; font-weight: 830; letter-spacing: -.06em; }
.member-hero .button.light { background: var(--energy); }
.topic-card { border-top: 5px solid var(--pine); }
.topic-movement { border-top-color: #c18a3c; }
.topic-opportunities { border-top-color: #477b94; }
.topic-money { border-top-color: #b86d59; }
.topic-label { font-family: "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -.04em; }
.sidebar { background: #0f2c2a; }
.sidebar .brand-mark { background: var(--energy); color: var(--pine-deep); }
.preview-banner { position: sticky; top: 0; z-index: 25; padding: 9px 18px; background: var(--energy); color: var(--pine-deep); font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-align: center; }

@media (max-width: 1050px) {
  .landing-hero { min-height: 640px; padding: 48px; }
  .landing-intro { max-width: 58%; }
  .landing-intro h1 { font-size: clamp(3.6rem, 5.5vw, 5rem); }
  .auth-card { right: 28px; }
}
@media (max-width: 820px) {
  .landing-hero { min-height: auto; padding: 44px; }
  .landing-intro { max-width: 100%; }
  .landing-intro h1 { max-width: 600px; }
  .auth-card { position: relative; right: auto; bottom: auto; width: min(100%, 470px); margin-top: 45px; }
  .landing-areas { padding-top: 84px; }
}
@media (max-width: 650px) {
  .landing-hero { padding: 32px 23px 24px; background-position: 60% center; }
  .landing-intro h1 { font-size: clamp(3rem, 11vw, 4.4rem); }
  .landing-copy { font-size: .9rem; }
  .auth-card { margin-top: 40px; }
  .landing-areas { padding-top: 68px; }
}

/* Member community */
.shell { grid-template-columns: 265px minmax(0, 1fr); background: #f1f3ed; }
.sidebar { z-index: 3; padding: 24px 14px 18px; background: #102c28; }
.sidebar .brand { margin: 0 10px; }
.sidebar .brand-copy strong { color: #fff; font-family: "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -.045em; }
.sidebar .brand-copy small { color: #a4c0ab; }
.sidebar-label { margin: 39px 14px 12px; color: #86a89b; }
.spaces-label { margin-top: 27px; }
.side-nav { gap: 3px; }
.nav-item { position: relative; min-height: 43px; padding: 10px 12px 10px 44px; border-radius: 10px; color: #d6e4dc; font-size: .82rem; font-weight: 650; }
.nav-item::before { position: absolute; left: 14px; top: 10px; width: 21px; color: #a6c4b0; font-size: 1rem; text-align: center; }
.nav-home::before { content: '▦'; }
.nav-lounge::before { content: '◈'; }
.nav-movement::before { content: '↗'; }
.nav-library::before { content: '▤'; }
.nav-members::before { content: '♟'; }
.nav-invites::before { content: '+'; }
.space-item { min-height: 39px; padding-left: 43px; font-size: .78rem; }
.space-item::before { content: ''; top: 15px; left: 20px; width: 8px; height: 8px; border-radius: 50%; background: #92b1a3; }
.space-faith::before { background: #d8b772; }
.space-movement::before { background: #cce56e; }
.space-opportunities::before { background: #83bfd2; }
.space-money::before { background: #dc9e82; }
.nav-item.active { background: #d9ec90; color: #17322b; }
.nav-item.active::before { color: #17322b; }
.sidebar-bottom { display: block; margin-top: auto; padding: 14px 10px 0; }
.profile-switch { display: flex; align-items: center; width: 100%; gap: 10px; padding: 0; border: 0; background: transparent; color: white; text-align: left; }
.profile-switch:hover .sidebar-person strong { text-decoration: underline; }
.sidebar-bottom .signout { margin: 10px 0 0 46px; }
.topbar { height: 66px; padding: 0 30px; background: #fff; }
.topbar-title { font-size: .78rem; letter-spacing: .02em; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-post { min-height: 37px; padding: 7px 16px; background: #d9ec90; color: #153129; font-size: .73rem; }
.topbar-post:hover { background: #c7e66b; }
.topbar-avatar { border: 0; }
.main-content { width: min(1500px, 100%); padding: 28px 31px 90px; }
.community-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(245px, 300px); justify-content: center; align-items: start; gap: 24px; }
.feed-column { min-width: 0; }
.feed-heading { margin: 4px 0 23px; }
.feed-heading .eyebrow { margin-bottom: 4px; color: #718766; }
.feed-heading h1 { margin: 0 0 5px; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(2.3rem, 4vw, 3.45rem); font-weight: 850; letter-spacing: -.07em; }
.feed-heading p:last-child { margin: 0; color: #64756e; font-size: .84rem; }
.share-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-color: #d7dfd4; box-shadow: 0 8px 30px rgba(20,45,35,.04); }
.share-box .avatar { width: 39px; height: 39px; background: #cee3cb; }
.share-prompt { flex: 1; min-height: 38px; padding: 0 10px; border: 0; background: none; color: #819188; font-size: .83rem; text-align: left; }
.share-action { min-height: 37px; padding: 8px 16px; background: #d9ec90; color: #153129; font-size: .73rem; }
.feed-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 14px; }
.feed-list-head h2 { margin: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.12rem; font-weight: 800; letter-spacing: -.035em; }
.feed-list-head span { color: #809087; font-size: .7rem; }
.feed-refresh { padding: 3px 0; border: 0; background: none; color: #597665; font-size: .7rem; font-weight: 750; }
.feed-refresh:hover { text-decoration: underline; }
.post-card { margin-bottom: 13px; padding: 20px 22px 14px; border-color: #d9e1d9; box-shadow: 0 9px 26px rgba(16,43,40,.04); }
.post-identity { display: flex; align-items: center; gap: 10px; }
.post-person { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.post-person strong { font-size: .78rem; }
.post-person small { color: #839188; font-size: .67rem; }
.preview-tag { color: #7b653e; font-size: .6rem; font-weight: 850; letter-spacing: .09em; }
.post-card .post-title { margin: 16px 0 7px; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.24rem; font-weight: 800; letter-spacing: -.045em; }
.post-card .post-excerpt { margin-bottom: 15px; color: #465d54; font-size: .83rem; line-height: 1.62; }
.post-media-wrap { margin: 12px 0 4px; }
.post-media-wrap:empty { display: none; }
.post-video { display: block; width: 100%; max-height: 420px; border-radius: 10px; background: #102c28; }
.post-shared-link { display: block; padding: 14px; border: 1px solid #c7dac8; border-radius: 9px; background: #eef5e8; color: #24553b; font-size: .77rem; font-weight: 750; overflow-wrap: anywhere; text-decoration: none; }
.post-engagement { display: flex; align-items: center; gap: 17px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #e4eae3; }
.engagement-button { padding: 5px 0; border: 0; background: none; color: #687a70; font-size: .71rem; font-weight: 750; }
.engagement-button:hover, .engagement-button.selected { color: #174b37; }
.engagement-button.open-post { margin-left: auto; }
.feed-empty { padding: 35px 25px; text-align: center; }
.feed-empty-icon { color: #88a552; font-size: 2rem; }
.feed-empty h3 { margin: 8px 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.35rem; font-weight: 800; }
.feed-empty p { color: #718178; font-size: .81rem; }
.activity-rail { display: grid; gap: 14px; padding-top: 7px; }
.rail-community, .rail-spaces, .rail-reminder { overflow: hidden; padding: 20px; box-shadow: none; }
.rail-community { padding-top: 0; }
.rail-photo { height: 117px; margin: 0 -20px 19px; background: url('/assets/community-table.png') center 43% / cover; }
.rail-community .eyebrow { margin-bottom: 7px; font-size: .58rem; }
.rail-community h2 { margin-bottom: 8px; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.13rem; font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.rail-community p:last-child, .rail-reminder p:last-child { margin-bottom: 0; color: #617269; font-size: .73rem; line-height: 1.55; }
.rail-spaces h3 { margin: 1px 0 13px; font-family: "Segoe UI", Arial, sans-serif; font-size: .83rem; font-weight: 800; letter-spacing: -.02em; }
.rail-space { display: flex; align-items: center; width: 100%; gap: 10px; padding: 9px 1px; border: 0; background: none; color: #44584e; font-size: .75rem; font-weight: 650; text-align: left; }
.rail-space:hover { color: #152f28; }
.rail-space small { margin-left: auto; color: #8a9a8f; }
.space-dot { width: 8px; height: 8px; border-radius: 50%; background: #92b1a3; }
.dot-faith { background: #d8b772; }.dot-movement { background: #adc75d; }.dot-opportunities { background: #83bfd2; }.dot-money { background: #dc9e82; }
.rail-reminder { border-color: #d7e1c9; background: #eef3e5; }
.rail-reminder .eyebrow { margin-bottom: 8px; color: #5d774a; font-size: .58rem; }
.composer { margin-top: 13px; padding: 22px; }
.composer h2 { font-family: "Segoe UI", Arial, sans-serif; font-weight: 800; }
.file-input { padding: 9px; }
.content-wide .page-head { margin-bottom: 20px; }
.content-wide .page-head h1, .content-narrow .page-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.detail-card .post-media-wrap { margin: 18px 0; }
.member-card { min-height: 205px; }
.member-card .subtle-link { margin-top: auto; }
.member-bio { margin: 2px 0 8px; color: #586c5e; font-size: .75rem; }
.chat-layout { display: grid; grid-template-columns: minmax(0, 800px) minmax(230px, 270px); justify-content: center; align-items: start; gap: 22px; }
.chat-main { display: flex; flex-direction: column; min-height: min(760px, calc(100vh - 145px)); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 17px; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.chat-head .eyebrow { margin: 0 0 4px; }
.chat-head h1 { margin: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.8rem; font-weight: 850; letter-spacing: -.06em; }
.chat-head p:last-child { margin: 3px 0 0; color: #708077; font-size: .74rem; }
.chat-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #d9ec90; color: #16362c; font-size: 1.3rem; }
.chat-messages { flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 330px; max-height: 570px; padding: 23px; overflow-y: auto; }
.chat-empty { margin: auto; text-align: center; }
.chat-empty > span { color: #9abc60; font-size: 2.3rem; }
.chat-empty h2 { margin: 5px 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.25rem; font-weight: 800; }
.chat-empty p { max-width: 280px; margin: 0 auto; color: #7a8980; font-size: .76rem; }
.chat-row { display: flex; align-items: flex-start; gap: 9px; }
.chat-row.mine { flex-direction: row-reverse; }
.chat-bubble { max-width: min(83%, 570px); padding: 12px 15px; border-radius: 12px; background: #edf2ec; }
.chat-row.mine .chat-bubble { background: #e8f2ca; }
.chat-meta { display: flex; align-items: center; gap: 9px; }
.chat-meta strong { font-size: .7rem; }.chat-meta small { color: #7d8c80; font-size: .61rem; }
.chat-bubble p { margin: 5px 0 0; font-size: .79rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble .danger-link { margin-top: 9px; font-size: .61rem; }
.chat-compose { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.chat-compose .input { min-height: 48px; max-height: 120px; resize: vertical; }.chat-compose .button { align-self: flex-end; }
.chat-side { padding: 25px; }
.chat-side h2 { font-family: "Segoe UI", Arial, sans-serif; font-size: 1.4rem; font-weight: 800; }
.chat-side p:not(.eyebrow) { color: #66796c; font-size: .78rem; }
.chat-side .button { margin: 9px 0 18px; font-size: .73rem; }
.chat-side .chat-privacy { padding-top: 17px; border-top: 1px solid var(--line); }
.profile-card { overflow: hidden; }
.profile-cover { position: relative; height: 160px; background: linear-gradient(100deg, rgba(14,44,39,.95), rgba(14,44,39,.34)), url('/assets/group-walk.png') center / cover; }
.profile-avatar { position: absolute; bottom: -32px; left: 28px; width: 65px; height: 65px; border: 4px solid white; font-size: 1.1rem; }
.profile-detail { padding: 43px 28px 29px; }
.profile-detail h1 { margin: 0 0 10px; font-family: "Segoe UI", Arial, sans-serif; font-size: 2rem; font-weight: 850; }
.profile-detail p:not(.eyebrow) { color: #50675a; font-size: .85rem; }
.profile-detail small { color: #839388; font-size: .7rem; }
.profile-form { margin-top: 18px; padding: 26px; }.profile-form h2 { font-family: "Segoe UI", Arial, sans-serif; font-weight: 800; }
@media (max-width: 1150px) { .community-layout, .chat-layout { grid-template-columns: minmax(0, 1fr) 240px; } }
@media (max-width: 950px) { .activity-rail, .chat-side { display: none; }.community-layout, .chat-layout { display: block; } }
@media (max-width: 820px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; padding: 15px; }
  .sidebar .brand { margin: 0; }
  .sidebar-label { display: block; margin: 16px 0 7px; }
  .side-nav { flex-direction: row; overflow-x: auto; margin: 0; }
  .nav-item, .space-item { flex: none; width: auto; min-height: 36px; padding: 7px 12px; white-space: nowrap; }
  .nav-item::before { display: none; }
  .sidebar-bottom { position: absolute; top: 17px; right: 18px; width: auto; margin: 0; padding: 0; border: 0; }
  .sidebar-bottom .sidebar-person, .sidebar-bottom .signout { display: none; }
  .sidebar-bottom .avatar { display: grid; }
  .topbar { display: none; }
  .main-content { padding: 23px 19px 65px; }
}
@media (max-width: 650px) {
  .feed-heading h1 { font-size: 2.5rem; }
  .share-box { padding: 12px; }
  .share-action { display: none; }
  .post-card { padding: 17px 16px 11px; }
  .post-engagement { gap: 10px; }
  .engagement-button.open-post { display: none; }
  .chat-main { min-height: 620px; }
  .chat-head { padding: 16px; }
  .chat-messages { padding: 16px; }
  .chat-compose { padding: 12px; }
}

/* Community controls */
.ui-icon { flex: none; width: 17px; height: 17px; }
.button { min-height: 44px; border-radius: 12px; font-size: .8rem; font-weight: 800; letter-spacing: .005em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); box-shadow: none; }
.button.primary { border-color: #b8d46e; background: linear-gradient(135deg, #e4f597, #c4e76c); color: #17382c; box-shadow: 0 5px 0 #9dbb5b, 0 13px 20px rgba(38,72,31,.13); }
.button.primary:hover { border-color: #a4ca59; background: linear-gradient(135deg, #ecfaa8, #d4ef80); box-shadow: 0 7px 0 #91af50, 0 17px 25px rgba(38,72,31,.17); }
.button.primary:active { box-shadow: 0 1px 0 #91af50; }
.button.secondary { border-color: #c8d8ca; background: #fff; color: #245842; box-shadow: 0 4px 12px rgba(16,43,40,.06); }
.button.secondary:hover { border-color: #8cb99a; background: #f1f8e9; box-shadow: 0 9px 19px rgba(16,43,40,.1); }
.button.quiet { background: #f4f6f1; border-color: #d7e1d8; }
.button.quiet:hover { background: #e8efe4; }
.topbar-post { min-height: 39px; padding: 8px 16px; border-color: #b8d46e; border-radius: 11px; background: linear-gradient(135deg, #e4f597, #c4e76c); color: #17382c; box-shadow: 0 4px 0 #9dbb5b, 0 9px 18px rgba(38,72,31,.13); }
.topbar-post:hover { background: linear-gradient(135deg, #ecfaa8, #d4ef80); box-shadow: 0 6px 0 #91af50, 0 14px 22px rgba(38,72,31,.15); }
.topbar-avatar { border: 2px solid #fff; box-shadow: 0 0 0 2px #cee3ca; transition: box-shadow .18s ease, transform .18s ease; }
.topbar-avatar:hover { box-shadow: 0 0 0 3px #9ebe7d; transform: translateY(-1px); }
.nav-item:not(.space-item) { display: flex; align-items: center; gap: 13px; padding: 10px 14px; border: 1px solid transparent; }
.nav-item:not(.space-item)::before { display: none; }
.nav-item .ui-icon { width: 18px; height: 18px; color: #b5d4bf; }
.nav-item:hover { background: rgba(223,246,186,.11); color: #fff; transform: translateX(2px); }
.nav-item.active { background: linear-gradient(95deg, #e0f39a, #cde981); box-shadow: inset 0 0 0 1px rgba(255,255,255,.26), 0 8px 19px rgba(0,0,0,.15); }
.nav-item.active:hover { color: #17322b; transform: none; }
.nav-item.active .ui-icon { color: #173d2d; }
.space-item::before { display: block; }
.space-item:hover:not(.active) { background: rgba(223,246,186,.09); }
.share-box { border: 1px solid #cddccf; box-shadow: 0 4px 0 #e0e9dc, 0 17px 32px rgba(18,50,34,.08); transition: border-color .18s ease, box-shadow .18s ease; }
.share-box:hover, .share-box:focus-within { border-color: #a5c592; box-shadow: 0 5px 0 #d0e3c8, 0 19px 35px rgba(18,50,34,.1); }
.share-prompt:hover { color: #2e5b42; }
.share-action { min-height: 38px; padding: 8px 15px; border-color: #bbd771; border-radius: 10px; background: #d9ee84; color: #183a2b; box-shadow: 0 3px 0 #a9c36a; }
.share-action:hover { background: #e6f59c; box-shadow: 0 5px 0 #a9c36a; }
.quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 13px 0 4px; }
.quick-action { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 13px; border: 1px solid #d8e4d7; border-radius: 999px; background: #fff; color: #456352; font-size: .72rem; font-weight: 800; box-shadow: 0 4px 10px rgba(22,57,37,.04); transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.quick-action:nth-child(2) { color: #745b2c; background: #fbf7e9; border-color: #e9dfbd; }
.quick-action:nth-child(3) { color: #47677d; background: #f0f6f8; border-color: #d2e2e8; }
.quick-action:hover { transform: translateY(-2px); border-color: #9fc795; background: #f3faed; box-shadow: 0 8px 17px rgba(22,57,37,.1); }
.quick-action .ui-icon { width: 15px; height: 15px; }
.post-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-2px); border-color: #c4d7c5; box-shadow: 0 17px 38px rgba(16,43,40,.1); }
.post-card .post-title:hover { color: #245b3c; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-engagement { gap: 9px; }
.engagement-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 7px 11px; border: 1px solid #e1e9df; border-radius: 9px; background: #f6f8f3; color: #536d5b; font-size: .69rem; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.engagement-button .ui-icon { width: 15px; height: 15px; }
.engagement-button:hover { transform: translateY(-1px); border-color: #a7ca99; background: #edf6e4; color: #224e35; }
.engagement-button.selected { border-color: #b4d19f; background: #e7f3da; color: #28613b; }
.engagement-button.selected .ui-icon { fill: #c9e2ae; }
.engagement-button.open-post { border-color: #d4e0d7; background: #eaf1e9; color: #285440; }
.engagement-button.open-post:hover { background: #dcebdc; }
.feed-refresh { min-height: 33px; padding: 6px 11px; border: 1px solid #d2dfd1; border-radius: 9px; background: #fff; color: #416348; transition: background .18s ease, transform .18s ease; }
.feed-refresh:hover { background: #e8f2e2; transform: translateY(-1px); text-decoration: none; }
.rail-space { padding: 9px; border-radius: 8px; transition: background .18s ease, transform .18s ease; }
.rail-space:hover { background: #eff5eb; transform: translateX(2px); }
.filter-pill { min-height: 36px; border-color: #d1dfd1; box-shadow: 0 3px 8px rgba(16,43,40,.04); transition: background .18s ease, color .18s ease, transform .18s ease; }
.filter-pill:hover { transform: translateY(-2px); background: #e5f0e0; }
.filter-pill.active { border-color: #173c32; background: #173c32; box-shadow: 0 5px 13px rgba(16,43,40,.17); }
.input { transition: border-color .18s ease, box-shadow .18s ease; }
.input:focus { outline: none; border-color: #78a764; box-shadow: 0 0 0 4px #e4f1da; }
.member-card, .library-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.member-card:hover, .library-card:hover { transform: translateY(-3px); border-color: #c3d6c2; box-shadow: 0 16px 30px rgba(16,43,40,.09); }
@media (max-width: 820px) {
  .nav-item:not(.space-item) { min-height: 37px; padding: 7px 12px; }
  .nav-item .ui-icon { width: 15px; height: 15px; }
  .space-item::before { display: none; }
  .space-nav { gap: 7px; }
  .space-nav .space-item { min-height: 32px; padding: 6px 12px; border: 1px solid rgba(222,242,218,.2); border-radius: 999px; background: rgba(255,255,255,.05); }
  .space-nav .space-item.active { border-color: #d4ec88; background: #d9ee8e; }
  .nav-item:hover { transform: none; }
}
@media (max-width: 650px) {
  .quick-actions { gap: 6px; }
  .quick-action { padding: 7px 10px; font-size: .68rem; }
  .engagement-button { min-height: 34px; padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .nav-item, .quick-action, .post-card, .engagement-button, .feed-refresh, .rail-space, .member-card, .library-card { transition: none; }
  .button:hover, .nav-item:hover, .quick-action:hover, .post-card:hover, .engagement-button:hover, .feed-refresh:hover, .rail-space:hover, .member-card:hover, .library-card:hover { transform: none; }
}
