/* Dost in Need — site styles (built on Bootstrap 5.3) */

:root {
  --navy: #14284B;
  --navy-2: #1E3A68;
  --navy-deep: #0E1D38;
  --gold: #F29A1F;
  --gold-dark: #B9650A;
  --ink: #1B2533;
  --muted: #55637A;
  --line: #E3E7EE;
  --soft: #F4F6F9;
  --cream: #FFF7EC;
  --bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 30, 58, 104;
}

html { font-size: 18px; }
body { background: #fff; line-height: 1.65; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
h1, h2, h3, .serif { font-family: Georgia, "Times New Roman", serif; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.text-muted-2 { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--gold-dark); }
.section { padding: 80px 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bg-soft { background: var(--soft); }
.bg-cream { background: var(--cream); }
.prose { max-width: 46rem; }
.prose p, .prose li { font-size: 1.05rem; }

/* Buttons */
.btn { font-weight: 600; border-radius: 10px; padding: .7rem 1.3rem; }
.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-gold { background: var(--gold); color: #1a1205; border: 0; }
.btn-gold:hover, .btn-gold:focus { background: #E08A10; color: #1a1205; }
.btn-navy { background: var(--navy); color: #fff; border: 0; }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-2); color: #fff; }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover, .btn-check:checked + .btn-outline-navy { background: var(--navy); color: #fff; }
.btn-link-plain { background: none; border: 0; padding: 0; color: inherit; font: inherit; }

/* Header */
.topbar { background: var(--navy); color: #cfd8e6; font-size: .8rem; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.brand-logo { height: 50px; width: auto; display: block; }
@media (max-width: 400px) { .brand-logo { height: 40px; } }
.navbar .nav-link { color: var(--ink); font-weight: 600; font-size: .92rem; padding: .5rem .8rem !important; border-radius: 8px; white-space: nowrap; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--navy); background: var(--soft); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(242,154,31,.16), transparent 70%); pointer-events: none; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.trust-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .9rem; color: var(--muted); }
.trust-list i { color: var(--gold-dark); margin-right: .35rem; }

.card-soft { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(20,40,75,.35); padding: 28px; position: relative; z-index: 1; }
.card-plain { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.check-row { display: flex; gap: .8rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-icon { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--gold-dark); }

/* Quote band */
.belief { background: var(--navy); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.belief blockquote { font-family: Georgia, serif; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4; margin: 0; max-width: 52rem; }
.belief .quote-mark { color: var(--gold); font-size: 3rem; line-height: 1; font-family: Georgia, serif; }
.belief::after { content: ""; position: absolute; right: -100px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(242,154,31,.28), transparent 70%); }

/* Notice strip */
.notice { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; font-size: .88rem; color: var(--muted); }
.notice i { color: var(--navy); }

/* Feature icons and topics */
.value-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--cream); color: var(--gold-dark); }
.topic { display: flex; gap: .9rem; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; height: 100%; }
.topic i { font-size: 1.5rem; color: var(--navy); }
.topic h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.topic p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Page header */
.page-head { background: linear-gradient(180deg, var(--cream), #fff); padding: 56px 0 32px; }

/* Forms */
.form-control, .form-select { padding: .75rem .9rem; border-radius: 10px; border-color: #CBD3DF; font-size: 1rem; }
.form-label { font-weight: 600; font-size: .92rem; }
.auth-wrap { max-width: 480px; margin: 0 auto; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 3rem; }
.password-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: .3rem .5rem; }

/* App area (members and admin) */
.app-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 28px 0 0; }
.app-tabs { display: flex; gap: .25rem; overflow-x: auto; margin-top: 18px; }
.app-tabs a { padding: .6rem 1rem; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.app-tabs a.active, .app-tabs a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; height: 100%; }
.stat .num { font-family: Georgia, serif; font-size: 2.1rem; color: var(--navy); line-height: 1.1; }
.stat .lbl { font-size: .85rem; color: var(--muted); }
.coming { border: 2px dashed var(--line); border-radius: 16px; padding: 22px; color: var(--muted); height: 100%; }
.coming i { font-size: 1.5rem; color: var(--gold-dark); }
.table { font-size: .92rem; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.badge-role { background: var(--cream); color: var(--gold-dark); font-weight: 700; }
.msg-new { border-left: 4px solid var(--gold); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #AEBBD0; font-size: .9rem; }
.site-footer h2 { color: #fff; font-size: .95rem; font-family: inherit; font-weight: 700; margin-bottom: .9rem; }
.site-footer a { color: #DCE4F0; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #8E9CB4; }

/* Meetings */
.meeting-row { display: flex; gap: 1rem; align-items: flex-start; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.meeting-row:hover { border-color: #C9D2E0; box-shadow: 0 10px 24px -18px rgba(20,40,75,.5); color: var(--ink); }
.date-tile { flex: 0 0 64px; text-align: center; background: var(--cream); border-radius: 12px; padding: .5rem 0; line-height: 1.1; }
.date-tile b { display: block; font-size: 1.5rem; color: var(--navy); font-family: Georgia, serif; }
.date-tile span { font-size: .72rem; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--soft); color: var(--ink); }
.meeting-facts li { display: flex; gap: .75rem; padding: .3rem 0; }
.meeting-facts i { color: var(--gold-dark); font-size: 1.1rem; }
.prose-text { white-space: normal; overflow-wrap: anywhere; }

/* Action items */
.action-item { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px dashed var(--line); }
.action-item:last-child { border-bottom: 0; }
.action-check { border: 0; background: none; padding: 0; font-size: 1.35rem; line-height: 1; color: var(--navy); }
.action-item.is-done .action-check { color: #1C7C3C; }
.action-item.is-done .action-title { text-decoration: line-through; color: var(--muted); }

/* Library */
.library-item { display: flex; gap: 1rem; align-items: flex-start; }
.library-icon { font-size: 1.8rem; color: var(--navy); line-height: 1; }
.min-w-0 { min-width: 0; }

/* Community */
.avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--gold-dark); font-weight: 700; font-family: Georgia, serif; font-size: 1.1rem; }
.avatar-sm { flex-basis: 30px; width: 30px; height: 30px; font-size: .85rem; }
.topic-card { display: flex; gap: 1rem; align-items: flex-start; }
.vote-btn { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: .35rem .5rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); font-weight: 700; line-height: 1.2; }
.vote-btn i { font-size: 1.15rem; }
.vote-btn:hover:not(:disabled) { border-color: var(--gold); }
.vote-btn.is-voted { border-color: var(--gold); background: var(--cream); color: var(--gold-dark); }
.vote-btn:disabled { opacity: .7; }
.prose-wide { max-width: 860px; }
.dropdown-menu { border-color: var(--line); border-radius: 12px; box-shadow: 0 14px 30px -18px rgba(20,40,75,.45); }
.dropdown-item { padding: .5rem 1rem; font-size: .92rem; }
.dropdown-item:active { background: var(--navy); }
