/* Lokact — Warm, alive, human. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Rye&display=swap');

/* Zing Rust™ (Fontfabric): add ZingRustBase.woff2 from the free pack or your license — see static/fonts/README.txt */
@font-face {
  font-family: 'Zing Rust';
  src:
    url('/static/fonts/ZingRustBase.woff2') format('woff2'),
    url('/static/fonts/ZingRustBase.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette: Light Pink, Blue, Green, Reddish Maroon */
  --light-pink: #fce4ec;
  --blue: #2563eb;
  --green: #15803d;
  --maroon: #7f1d1d;

  --bg: var(--light-pink);
  --bg-warm: #f8d7e0;
  --bg-card: #fff5f7;
  --text: #2d0a0a;
  --text-muted: #5c1515;
  --text-soft: #7f1d1d;
  --border: #f0b8c4;
  --border-soft: #f5cbd3;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(127, 29, 29, 0.06);
  --shadow-card: 0 8px 32px rgba(127, 29, 29, 0.08), 0 2px 8px rgba(127, 29, 29, 0.04);
  --primary: var(--maroon);
  --primary-hover: #5c1515;
  --primary-soft: rgba(127, 29, 29, 0.12);
  --accent: var(--green);
  --accent-soft: rgba(21, 128, 61, 0.12);
  --logo-rust: #6b2d12;
  --logo-leaf: #166534;
  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-logo: 'Zing Rust', 'Rye', Georgia, serif;
  --max-width: 600px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 245, 248, 0.95);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  flex-shrink: 0;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(
    118deg,
    var(--logo-rust) 0%,
    var(--maroon) 38%,
    #9f1239 58%,
    var(--logo-leaf) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--maroon);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: filter 0.2s ease, opacity 0.2s ease;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .logo {
    color: transparent;
    text-shadow: none;
  }
}

.logo:hover {
  filter: brightness(1.08) saturate(1.05);
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--blue);
}

.nav-bell {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-bell .bell-icon svg {
  display: block;
}

.nav-bell:hover {
  color: var(--blue);
}

.bell-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1rem;
  text-align: center;
  background: var(--primary);
  color: white;
  border-radius: 999px;
}

.nav-cta {
  color: var(--blue) !important;
  font-weight: 600;
}

.nav-cta:hover {
  color: var(--maroon) !important;
}

.nav-cta-needs-username {
  outline: 2px dashed #dc2626;
  outline-offset: 2px;
  border-radius: 6px;
}

.bottom-nav-cta-needs-username {
  outline: 2px dashed #dc2626;
  outline-offset: 1px;
  border-radius: 10px;
}

/* Logged in but no username — loud, impossible to miss */
.nav-username-urgent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  margin: -0.15rem 0;
  font-weight: 800 !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 0 0 2px #fbbf24, 0 4px 14px rgba(127, 29, 29, 0.45);
  animation: username-urgent-pulse 1.8s ease-in-out infinite;
}

.nav-username-urgent:hover {
  color: #fff !important;
  filter: brightness(1.08);
}

@keyframes username-urgent-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px #fbbf24, 0 4px 14px rgba(127, 29, 29, 0.45);
  }
  50% {
    box-shadow: 0 0 0 4px #fcd34d, 0 6px 22px rgba(185, 28, 28, 0.55);
  }
}

.username-mandatory-alert {
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 35%, #b45309 100%);
  border-top: 3px solid #fbbf24;
  border-bottom: 3px solid #fbbf24;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.username-mandatory-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.username-mandatory-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  color: #fef08a;
}

.username-mandatory-copy {
  flex: 1;
  min-width: 200px;
  color: #fff;
}

.username-mandatory-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.35rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.username-mandatory-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.96;
}

.username-mandatory-body strong {
  color: #fef9c3;
}

.username-mandatory-cta {
  flex-shrink: 0;
  background: #fff !important;
  color: #7f1d1d !important;
  font-weight: 800 !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.username-mandatory-cta:hover {
  background: #fef3c7 !important;
  color: #450a0a !important;
}

@media (prefers-reduced-motion: reduce) {
  .nav-username-urgent {
    animation: none;
  }
}

.header-search {
  flex: 1;
  min-width: 120px;
  max-width: 240px;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.header-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.75rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
}

.header-search-input::placeholder {
  color: var(--text-soft);
}

.header-search-input:focus {
  outline: none;
}

.header-search-btn {
  padding: 0.4rem 0.6rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.header-search-btn:hover {
  opacity: 1;
}

.header-search-btn svg {
  display: block;
}

.nav {
  flex-shrink: 0;
}

/* Main */
.main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
  width: 100%;
  min-width: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(127, 29, 29, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--border);
  color: var(--text);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-warm);
  border-color: var(--text-soft);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

.btn-pill {
  border-radius: 999px;
}

.btn-pill[data-active] {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-google {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 1rem;
  width: 100%;
}

.btn-google:hover {
  background: var(--bg);
}

/* Feed */
.feed-header {
  margin-bottom: 2.25rem;
}

.filters {
  margin-top: 1.5rem;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-tag-clear {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem;
  color: inherit;
  opacity: 0.7;
}

.filter-tag-clear:hover {
  opacity: 1;
}

.filter-form select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  cursor: pointer;
}

.promo-card {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--light-pink) 100%);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid var(--border-soft);
}

.promo-card p {
  margin: 0 0 1.25rem;
  color: var(--primary-hover);
  font-size: 1.0625rem;
}

/* Post cards */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}

.post-highlight-flash {
  animation: post-highlight-pulse 2.2s ease;
}

@keyframes post-highlight-pulse {
  0%,
  100% {
    box-shadow: var(--shadow);
    border-color: var(--border-soft);
  }
  12% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
    border-color: var(--blue);
  }
}

.post-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.post-header-actions {
  margin-left: auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.post-detail-nav {
  margin-bottom: 1rem;
}

.post-detail-page .post-detail-nav + .post-card {
  margin-top: 0;
}

.post-author {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-author:hover {
  color: var(--blue);
}

.post-cause {
  font-size: 0.875rem;
  color: var(--text-soft);
}

.post-topic {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
}

/* Post images (intent + proof) */
.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-image-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.post-image-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}

.post-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prevent content overflow on mobile */
.post-content,
.profile-bio,
.comment-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* The idea — hero content */
.journey-idea .post-content {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 500;
}

/* Journey blocks */
.journey-block {
  padding: 1.125rem 0;
  border-top: 1px solid var(--border-soft);
}

.journey-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.block-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.block-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.block-count {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.stage-muted {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.action-type-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: capitalize;
}
.action-type-hands-on { background: var(--accent-soft); color: var(--green); }
.action-type-protest { background: rgba(127, 29, 29, 0.15); color: var(--maroon); }
.action-type-discussion { background: rgba(37, 99, 235, 0.12); color: var(--blue); }

.action-type-form {
  display: inline-block;
}
.action-type-form select {
  font-size: 0.875rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.people-chips {
  margin-bottom: 0.5rem;
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  margin: 0 0.25rem 0.4rem 0;
  background: var(--primary-soft);
  color: var(--primary-hover);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background: var(--primary);
  color: white;
}

.chip-more {
  background: var(--border);
  color: var(--text-muted);
}

.inline-form {
  margin: 0;
}

/* Event */
.event-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-form-edit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.event-edit-hint {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-soft);
}

.event-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.event-form-row .event-datetime,
.event-form-row .location-input {
  flex: 1;
  min-width: 150px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.event-map-wrap {
  margin-top: 0.5rem;
}

.event-map-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
}

.event-map {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 0.35rem;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 1rem;
}

.event-date {
  font-weight: 600;
  color: var(--text);
}

.event-location {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.event-location:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.event-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.event-link:hover {
  text-decoration: underline;
}

.event-online-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.event-datetime-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.event-datetime-row .event-datetime {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  max-width: 100%;
}
.event-datetime-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
}

.meetup-kind-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.meetup-kind-legend {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}
.meetup-kind-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.meetup-kind-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  cursor: pointer;
}
.meetup-kind-label input {
  accent-color: var(--primary);
}

.event-link-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}
.event-link-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Proof */
.proof-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.proof-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.proof-thumb {
  cursor: pointer;
}

.proof-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}

.proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-by {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem;
  font-size: 0.7rem;
  background: linear-gradient(transparent, rgba(127, 29, 29, 0.8));
  color: white;
  text-align: center;
}

.proof-form {
  margin: 0;
}

.proof-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.proof-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.proof-file-label {
  cursor: pointer;
  flex-shrink: 0;
}

.proof-file-name {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .proof-upload {
    flex-direction: column;
    align-items: stretch;
  }

  .proof-upload .proof-file-name {
    order: 3;
    white-space: normal;
  }

  .proof-upload .btn-primary {
    width: 100%;
  }
}

/* Comments */
.post-comments {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
}

.comment {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.comment:last-of-type {
  border-bottom: none;
}

.comment-author {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.35rem;
  text-decoration: none;
}

.comment-author:hover {
  color: var(--blue);
}

.comment-mention {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.comment-mention:hover {
  text-decoration: underline;
}

.comment-content {
  color: var(--text);
}

.comment-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-left: 0.5rem;
}

.post-admin-delete,
.comment-admin-delete {
  margin-left: 0.35rem;
  vertical-align: baseline;
}

.admin-remove-btn {
  font-size: 0.75rem;
  padding: 0.12rem 0.45rem;
  color: var(--text-soft);
}

.admin-remove-btn:hover {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
}

.comment-signin-prompt {
  margin: 0.5rem 0 0;
}

.comment-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.comment-input-wrap {
  flex: 1;
  position: relative;
}

.comment-form .comment-content-input,
.comment-form input[name="content"] {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
}

.comment-form .comment-content-input:focus,
.comment-form input[name="content"]:focus {
  outline: none;
  border-color: var(--primary);
}

.mention-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
}

.mention-dropdown[hidden] {
  display: none;
}

.mention-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.1s ease;
}

.mention-dropdown-item:hover,
.mention-dropdown-item.mention-active {
  background: var(--primary-soft);
}

.mention-dropdown-item .mention-username {
  font-weight: 500;
  color: var(--blue);
}

.mention-dropdown-item .mention-name {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.post-meta {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-top: 1.25rem;
  padding-top: 0.75rem;
}

/* Search page */
.search-container {
  max-width: 560px;
  width: 100%;
}

.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.search-tab {
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.search-tab:hover {
  color: var(--text);
}

.search-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.search-tab-panel.hidden {
  display: none;
}

.search-post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-post-card {
  display: block;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-post-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.search-post-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.search-post-author {
  font-weight: 600;
  color: var(--primary);
}

.search-post-cause {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.search-post-meta {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.search-post-content {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.search-post-tag {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.search-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-hint,
.search-empty {
  color: var(--text-muted);
  font-size: 1rem;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.user-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-card-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.user-card-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.user-card-username {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.user-card-username:hover {
  color: var(--primary);
}

.user-card-name {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.user-card-city {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.user-card-bio {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}

.empty-state p {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* Forms */
.form-container {
  max-width: 440px;
  width: 100%;
}

.form-container.form-create {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-soft);
}

.form-container h1 {
  margin-bottom: 0.5rem;
}

.post-form .form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group select,
.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-card);
  transition: border-color 0.15s ease;
}

.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--maroon);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.admin-container {
  max-width: 480px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-row input {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.cause-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.cause-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  overflow-wrap: break-word;
}

/* Profile */
.profile-header {
  margin-bottom: 2rem;
}

.profile-header-top {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  flex-shrink: 0;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-soft);
}

.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.profile-header-main {
  flex: 1;
  min-width: 0;
}

.profile-header-main h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.profile-display-name {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.profile-city {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-inline {
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
}

.btn-pill .icon-inline {
  margin-left: 0.2em;
}

.icon-back {
  margin-right: 0.35rem;
}

.event-link svg,
.event-location svg {
  vertical-align: middle;
  margin-left: 0.15em;
}

.profile-city-empty a {
  color: var(--text-muted);
  text-decoration: none;
}

.profile-city-empty a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.profile-follow-counts {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.profile-count-sep {
  margin: 0 0.35rem;
}

.profile-follow form {
  margin: 0;
}

.profile-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
}

.profile-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin: 0 0 1rem;
}

.profile-details {
  font-size: 0.9375rem;
}

.profile-bio {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem 2rem;
  margin-bottom: 1rem;
}

.profile-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  font-weight: 500;
}

.profile-achievements {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.profile-achievements ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.profile-achievements li {
  margin-bottom: 0.35rem;
}

/* Engagement stats */
.engagement-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  min-width: 0;
}

.engagement-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.engagement-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  overflow-wrap: break-word;
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.engagement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  min-width: 0;
  overflow: hidden;
}

.engagement-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.engagement-name {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.profile-container .post-list {
  margin-top: 0;
}

/* Prevent engagement overflow on narrow containers */
@media (max-width: 680px) {
  .engagement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Settings / Profile form */
.settings-username-blocker {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 3px solid #fbbf24;
  background: linear-gradient(145deg, #fef2f2, #fff7ed);
  box-shadow: 0 4px 20px rgba(127, 29, 29, 0.12);
}

.settings-username-blocker-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #7f1d1d;
  margin: 0 0 0.5rem;
}

.settings-username-blocker-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.settings-page .settings-section {
  margin-bottom: 2rem;
}

.settings-page .settings-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}

.settings-page .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .settings-page .form-row {
    grid-template-columns: 1fr;
  }
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

.form-group-checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group-checkbox .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.form-group-checkbox .checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
}

.required {
  color: var(--maroon);
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.avatar-upload .avatar-preview,
.avatar-upload .avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-soft);
}

.avatar-upload .avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-soft);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.avatar-upload-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

/* Auth modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(127, 29, 29, 0.35);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(127, 29, 29, 0.15), 0 8px 24px rgba(127, 29, 29, 0.08);
  border: 1px solid var(--border-soft);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: var(--border-soft);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-content h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
}

.auth-section input {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease;
}

.auth-section input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.auth-hint {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin: 0;
}

.auth-buttons .btn {
  flex: 1;
}

.auth-divider {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.875rem;
  margin: 1.25rem 0;
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(127, 29, 29, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: rgba(252, 228, 236, 0.25);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.gallery-close:hover {
  background: rgba(252, 228, 236, 0.4);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  background: rgba(252, 228, 236, 0.25);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev svg,
.gallery-next svg {
  width: 1.5rem;
  height: 1.5rem;
}

.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(252, 228, 236, 0.4);
}

.gallery-content {
  max-width: 90vw;
  max-height: 85vh;
}

.gallery-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.gallery-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(252, 228, 236, 0.95);
  font-size: 0.9rem;
}

/* Notifications */
.notifications-container {
  max-width: 480px;
}

.notification-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.notification-item:hover {
  background: var(--bg-warm);
}

.notification-unread {
  background: var(--primary-soft);
}

.notification-content {
  font-size: 0.9375rem;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.notification-meta {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--blue);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  animation: toast-in 0.25s ease;
}

.toast-success {
  background: var(--accent);
  color: white;
}

.toast-error {
  background: var(--maroon);
  color: white;
}

.toast-info {
  background: var(--text);
  color: white;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal[hidden] {
  display: none !important;
}

/* Bottom nav (mobile app-like) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 245, 248, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-soft);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  box-shadow: 0 -2px 12px rgba(127, 29, 29, 0.06);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
  color: var(--primary);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active .bottom-nav-label {
  color: var(--primary);
}

.bottom-nav-cta.active .bottom-nav-label {
  color: var(--maroon);
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.bottom-nav-icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav-cta .bottom-nav-label {
  color: var(--blue);
  font-weight: 600;
}

.bottom-nav-cta:hover .bottom-nav-label,
.bottom-nav-cta:focus .bottom-nav-label {
  color: var(--maroon);
}

.bottom-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.bottom-nav-bell-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.bottom-nav-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.5rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1rem;
  text-align: center;
  background: var(--primary);
  color: white;
  border-radius: 999px;
}

.bottom-nav-username-pending {
  color: #b91c1c !important;
  font-weight: 700;
}

.bottom-nav-username-pending .bottom-nav-label {
  font-weight: 800;
  color: #7f1d1d;
}

.bottom-nav-icon-pulse-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-username-dot {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.1rem;
  text-align: center;
  color: #fff;
  background: #dc2626;
  border: 2px solid #fef08a;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.6);
  animation: bottom-nav-dot-pulse 1.5s ease-in-out infinite;
}

.bottom-nav-username-pending.active .bottom-nav-username-dot {
  animation: none;
}

@keyframes bottom-nav-dot-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav-username-dot {
    animation: none;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .nav-desktop {
    display: none !important;
  }

  .bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
  }

  .nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .nav a {
    font-size: 0.875rem;
  }

  .main {
    padding: 1.5rem 1rem 5.5rem;
    padding-bottom: max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
  }

  .footer {
    margin-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .toast-container {
    bottom: max(5rem, calc(4rem + env(safe-area-inset-bottom, 0px)));
  }

  .form-container.form-create,
  .form-container {
    padding: 1.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .search-container,
  .notifications-container,
  .admin-container {
    max-width: 100%;
    width: 100%;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form .btn {
    width: 100%;
  }

  .cause-form .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cause-form .form-row input {
    min-width: 100%;
  }

  .cause-form .form-row .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header {
    padding: 0.65rem 0.875rem;
  }

  .logo {
    font-size: clamp(1.2rem, 5.5vw, 1.42rem);
    letter-spacing: 0.04em;
  }

  .nav {
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 0.8125rem;
  }

  .nav .nav-cta {
    order: -1;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }

  .main {
    padding: 1.25rem 0.875rem 5.5rem;
    padding-bottom: max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
  }

  h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .feed-header {
    margin-bottom: 1.5rem;
  }

  .filters .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-form select {
    width: 100%;
  }

  .promo-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .promo-card .btn {
    width: 100%;
  }

  .post-list {
    gap: 1.25rem;
  }

  .post-card {
    padding: 1.25rem;
    border-radius: var(--radius);
  }

  .post-header {
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .post-author {
    font-size: 0.9375rem;
  }

  .post-cause,
  .post-topic {
    font-size: 0.8125rem;
  }

  .journey-idea .post-content {
    font-size: 1.0625rem;
  }

  .journey-block {
    padding: 0.875rem 0;
  }

  .post-images {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.4rem;
  }

  .event-form-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .event-form-row .event-datetime,
  .event-form-row .location-input {
    min-width: 100%;
  }

  .event-map {
    height: 200px;
  }

  .proof-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .comment-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .comment-form .btn {
    align-self: flex-end;
  }

  .people-chips .chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .empty-state {
    padding: 2.5rem 1.5rem;
  }

  /* Profile mobile */
  .profile-header-top {
    gap: 1rem;
  }

  .profile-avatar,
  .profile-avatar-placeholder {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
  }

  .profile-header-main h1 {
    font-size: 1.25rem;
  }

  .profile-section {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .profile-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .engagement-stats {
    grid-template-columns: 1fr;
  }

  .engagement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Forms mobile */
  .form-container.form-create {
    padding: 1.25rem;
  }

  .form-actions {
    flex-direction: column;
    margin-top: 1.5rem;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* Modal */
  .modal {
    padding: 1rem;
    align-items: flex-end;
  }

  .modal-content {
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }

  .auth-buttons {
    flex-direction: column;
  }

  .auth-buttons .btn {
    width: 100%;
  }

  /* Gallery lightbox */
  .gallery-lightbox {
    padding: 1rem;
  }

  .gallery-prev,
  .gallery-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .gallery-prev { left: 0.5rem; }
  .gallery-next { right: 0.5rem; }

  .gallery-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }

  /* Toast */
  .toast-container {
    left: 0.875rem;
    right: 0.875rem;
    bottom: max(5rem, calc(4rem + env(safe-area-inset-bottom, 0px)));
    transform: none;
    max-width: calc(100vw - 1.75rem);
  }

  .toast {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 1rem;
    font-size: 0.8125rem;
  }

  /* Settings */
  .settings-page .settings-section h2 {
    font-size: 1rem;
  }

  .avatar-upload {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Search page */
  .search-form {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .search-input {
    width: 100%;
  }

  .user-card {
    padding: 0.875rem;
    gap: 0.75rem;
  }

  .user-card-avatar,
  .user-card-avatar-placeholder {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .user-card-username {
    font-size: 0.9375rem;
  }

  .user-card-bio {
    -webkit-line-clamp: 1;
  }

  /* Notifications */
  .notifications-container h1 {
    font-size: 1.375rem;
  }

  .notification-item {
    padding: 0.875rem 0;
  }

  .notification-content {
    font-size: 0.875rem;
  }

  .notification-meta {
    font-size: 0.75rem;
  }

  /* Admin causes */
  .admin-container h1 {
    font-size: 1.375rem;
  }

  .cause-list li {
    font-size: 0.9375rem;
    padding: 0.5rem 0;
  }

  .admin-container .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Form containers - ensure no overflow */
  .form-container,
  .form-container.form-create {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .nav {
    gap: 0.5rem 0.75rem;
  }

  .nav a:not(.nav-cta):not(.logo) {
    font-size: 0.8rem;
  }

  .post-card {
    padding: 1rem;
  }

  .profile-avatar,
  .profile-avatar-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }

  .proof-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .engagement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch-friendly: ensure minimum tap targets */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 36px;
  }

  .chip {
    min-height: 32px;
    padding: 0.35rem 0.8rem;
  }

  .mention-dropdown-item {
    min-height: 44px;
    padding: 0.6rem 1rem;
  }

  .comment-form .comment-content-input,
  .comment-form input[name="content"] {
    min-height: 44px;
  }
}

/* --- Landing (marketing home) --- */
.page-landing {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(252, 228, 236, 0.95), transparent 55%),
    radial-gradient(700px 480px at 92% 18%, rgba(219, 234, 254, 0.55), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(220, 252, 231, 0.45), transparent 45%),
    var(--bg);
}

.page-landing .main {
  max-width: 1100px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.landing {
  position: relative;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.landing-bg {
  position: absolute;
  inset: -4rem -2rem 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.landing-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: landing-blob-drift 18s ease-in-out infinite;
}

.landing-bg-blob--1 {
  width: 280px;
  height: 280px;
  background: rgba(248, 215, 224, 0.9);
  top: -40px;
  left: -80px;
}

.landing-bg-blob--2 {
  width: 220px;
  height: 220px;
  background: rgba(191, 219, 254, 0.75);
  top: 120px;
  right: -60px;
  animation-delay: -6s;
}

.landing-bg-blob--3 {
  width: 200px;
  height: 200px;
  background: rgba(187, 247, 208, 0.65);
  bottom: 10%;
  left: 35%;
  animation-delay: -12s;
}

@keyframes landing-blob-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(12px, -10px) scale(1.04);
  }
  66% {
    transform: translate(-8px, 8px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-bg-blob {
    animation: none;
  }

  .landing-polaroid {
    animation: none;
  }

  .landing-strip-track {
    animation: none;
  }
}

.landing-hero,
.landing-section,
.landing-photo-credit {
  position: relative;
  z-index: 1;
}

.landing-hero {
  padding: 0.25rem 0 2.5rem;
}

.landing-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .landing-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: 3rem;
  }

  .landing-hero-copy {
    text-align: left;
  }

  .landing-cta-row {
    justify-content: flex-start;
  }

  .landing-hero-chips {
    justify-content: flex-start;
  }
}

.landing-hero-copy {
  text-align: center;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.landing-eyebrow-icon {
  display: flex;
  color: var(--green);
}

.landing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.landing-headline-accent {
  background: linear-gradient(120deg, var(--maroon) 0%, #b91c1c 40%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-tagline-display {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
  max-width: 36rem;
}

.landing-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.65;
  max-width: 36rem;
}

@media (min-width: 880px) {
  .landing-lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.landing-cta-primary,
.landing-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-cta-icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.landing-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-hero-chips li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.landing-chip-icon {
  display: inline-flex;
  margin-right: 0.25rem;
  vertical-align: middle;
  color: var(--green);
  opacity: 0.9;
}

/* Polaroid collage */
.landing-hero-visual {
  min-height: 320px;
}

.landing-collage {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  min-height: 340px;
}

.landing-polaroid {
  position: absolute;
  margin: 0;
  background: #fff;
  padding: 0.55rem 0.55rem 2.1rem;
  border-radius: 4px;
  box-shadow:
    0 4px 6px rgba(45, 10, 10, 0.06),
    0 18px 38px rgba(127, 29, 29, 0.12);
  border: 1px solid rgba(240, 184, 196, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.landing-polaroid:hover {
  transform: scale(1.02) rotate(0deg) !important;
  box-shadow: var(--shadow-card);
  z-index: 5;
}

.landing-polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  background: var(--border-soft);
}

.landing-polaroid figcaption {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-sans);
}

.landing-polaroid--a {
  width: 46%;
  left: 0;
  top: 0;
  transform: rotate(-7deg);
  z-index: 1;
  animation: landing-float-in-a 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s backwards;
}

.landing-polaroid--b {
  width: 48%;
  right: 0;
  top: 48px;
  transform: rotate(8deg);
  z-index: 2;
  animation: landing-float-in-b 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}

.landing-polaroid--c {
  width: 44%;
  left: 22%;
  bottom: 0;
  transform: rotate(-2deg);
  z-index: 3;
  animation: landing-float-in-c 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s backwards;
}

.landing-polaroid--c img {
  aspect-ratio: 5 / 6;
}

@keyframes landing-float-in-a {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(-11deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-7deg);
  }
}

@keyframes landing-float-in-b {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(12deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(8deg);
  }
}

@keyframes landing-float-in-c {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-2deg);
  }
}

.landing-collage-badge {
  position: absolute;
  right: -4px;
  top: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(135deg, var(--maroon), #991b1b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(127, 29, 29, 0.35);
  animation: landing-badge-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards;
}

@keyframes landing-badge-in {
  from {
    opacity: 0;
    transform: scale(0.85) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.landing-collage-badge svg {
  flex-shrink: 0;
}

/* Sections */
.landing-section {
  margin: 2.75rem 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border-soft);
}

.landing-section-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.landing-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.65rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, var(--light-pink));
  border: 1px solid var(--border-soft);
  color: var(--maroon);
  box-shadow: var(--shadow);
}

.landing-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin: 0 0 0.35rem;
  color: var(--text);
}

.landing-subhead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.landing-prose {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.landing-prose-center {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

.landing-prose strong {
  color: var(--text);
}

.landing-origin-copy .landing-prose + .landing-prose {
  margin-top: 1rem;
}

/* Pillars */
.landing-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .landing-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.landing-pillar {
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.landing-pillar-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
}

.landing-pillar-icon--rose {
  background: linear-gradient(145deg, #be123c, var(--maroon));
}

.landing-pillar-icon--green {
  background: linear-gradient(145deg, #16a34a, #15803d);
}

.landing-pillar-icon--blue {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
}

.landing-pillar h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.landing-pillar p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Journey steps */
.landing-flow {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .landing-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }
}

.landing-step {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--step-accent, var(--border));
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-step:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}

.landing-step--1 {
  --step-accent: #f472b6;
}

.landing-step--2 {
  --step-accent: #60a5fa;
}

.landing-step--3 {
  --step-accent: #4ade80;
}

.landing-step--4 {
  --step-accent: #f87171;
}

.landing-step--5 {
  --step-accent: #a78bfa;
}

.landing-step--6 {
  --step-accent: #2dd4bf;
}

.landing-step--7 {
  --step-accent: #fb923c;
}

.landing-step--8 {
  --step-accent: #94a3b8;
}

.landing-step-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-soft);
  color: var(--maroon);
  align-self: center;
}

.landing-step-num {
  grid-column: 2;
  grid-row: 1;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.landing-step-body {
  grid-column: 3;
  grid-row: 1 / span 2;
}

@media (max-width: 719px) {
  .landing-step {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .landing-step-icon {
    grid-row: 1 / span 2;
  }

  .landing-step-num {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .landing-step-body {
    grid-column: 2;
    grid-row: 2;
  }
}

.landing-step-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.landing-step-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.landing-step-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Image strip */
.landing-strip {
  border-top: none;
  padding: 0;
  margin: 2rem -1.25rem 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.landing-strip-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding: 0.75rem 0;
  animation: landing-marquee 32s linear infinite;
}

.landing-strip-track img {
  width: 200px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid #fff;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

@keyframes landing-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Closing */
.landing-closing {
  border-top: none;
  padding-top: 0.5rem;
}

.landing-closing-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(252, 228, 236, 0.5));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.landing-closing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(21, 128, 61, 0.12);
  color: var(--green);
}

.landing-closing-card .landing-prose {
  margin-bottom: 1.35rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-photo-credit {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin: 2rem 0 0;
}

.landing-photo-credit a {
  color: var(--maroon);
  font-weight: 600;
}

/* Articles */
.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.article-cards {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-card {
  margin-bottom: 1rem;
}

.article-card-link {
  display: block;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.article-card-link:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.article-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.article-card-badge--native {
  color: var(--green);
}

.article-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--text);
}

.article-card-excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.article-detail-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0.35rem 0 0.5rem;
}

.article-detail-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin: 0;
}

.article-detail-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.article-detail-cover {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.article-detail-cover img {
  width: 100%;
  display: block;
  vertical-align: middle;
}

.article-detail-excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.article-body pre {
  overflow-x: auto;
  padding: 0.75rem 1rem;
  background: rgba(127, 29, 29, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.article-external-cta {
  padding: 1.5rem;
  background: rgba(37, 99, 235, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(37, 99, 235, 0.15);
  text-align: center;
}

.article-detail-back {
  margin-top: 2rem;
}

.admin-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-article-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.admin-article-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.admin-article-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-kind-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quill-editor {
  min-height: 280px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.admin-article-editor .ql-container {
  font-family: var(--font-sans);
  font-size: 1rem;
}
