@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --facebook-blue: #1d4ed8;
  --facebook-light-blue: #eef4ff;
  --facebook-gray: #f8fafc;
  --facebook-border: #e2e8f0;
  --facebook-text: #0f172a;
  --facebook-text-secondary: #64748b;
  --page-bg: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --card-border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --border-radius: 14px;
  color-scheme: light;
  font-family: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--facebook-text);
  background: var(--page-bg);
  line-height: 1.5;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--facebook-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
}

.site-nav .donate-trigger {
  background: #16a34a;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.site-nav .donate-trigger:hover {
  background: #15803d;
  color: #ffffff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.75rem;
  height: 0.15rem;
  background: var(--ink);
  border-radius: 999px;
}

.section {
  padding: 3rem 0;
}

.page-intro {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--facebook-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  color: var(--ink);
}

.page-intro p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.facebook-page {
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  min-height: 100vh;
}

.profile-banner {
  height: 320px;
  overflow: hidden;
  position: relative;
  background: var(--facebook-gray);
  margin: 12px 12px 0;
  border: 1px solid var(--card-border);
  border-radius: 18px;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  border-radius: 16px;
  filter: saturate(1.14) contrast(1.08) brightness(1.03);
  transform: scale(1.015);
  transform-origin: center 68%;
}

.profile-header {
  background: #ffffff;
  border-bottom: 1px solid var(--facebook-border);
  border-left: 1px solid var(--facebook-border);
  border-right: 1px solid var(--facebook-border);
  padding: 20px 0;
}

.profile-info {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 16px;
}

.profile-avatar {
  width: 168px;
  height: 168px;
  margin-top: -84px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details h1 {
  margin: 0 0 8px;
  color: var(--facebook-text);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  font-family: "IBM Plex Sans", "Manrope", sans-serif;
  letter-spacing: 0.01em;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--facebook-text-secondary);
  font-size: 0.98rem;
}

.nav-tabs {
  background: #ffffff;
  border-bottom: 1px solid var(--facebook-border);
  border-left: 1px solid var(--facebook-border);
  border-right: 1px solid var(--facebook-border);
  position: sticky;
  top: 0;
  z-index: 35;
}

.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0 16px;
}

.tab {
  padding: 16px 16px 12px;
  border-bottom: 3px solid transparent;
  color: var(--facebook-text-secondary);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  background: #f8fafc;
  color: var(--facebook-text);
  text-decoration: none;
}

.tab.active {
  color: var(--facebook-blue);
  border-bottom-color: var(--facebook-blue);
}

.tab.donate-trigger {
  background: #16a34a;
  color: #ffffff;
  border-bottom-color: #15803d;
  border-radius: 999px;
  padding: 8px 14px;
  margin: 8px 0;
}

.tab.donate-trigger:hover {
  background: #15803d;
  color: #ffffff;
  text-decoration: none;
}

.main-content {
  background: #ffffff;
  border-left: 1px solid var(--facebook-border);
  border-right: 1px solid var(--facebook-border);
  padding: 20px 0 32px;
}

.content-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  padding: 0 16px;
}

.sidebar,
.feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-card,
.photos-card,
.post-card,
.memory-item,
.archive-empty {
  background: #ffffff;
  border: 1px solid var(--facebook-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.intro-card,
.photos-card,
.post-card {
  padding: 16px;
}

.intro-card h2,
.photos-card h3 {
  margin: 0 0 12px;
  color: var(--facebook-text);
  font-size: 1.25rem;
}

.about-card h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
  color: var(--ink);
}

.about-values {
  margin: 0;
  padding-left: 20px;
}

.about-values li {
  margin-bottom: 8px;
  color: var(--facebook-text);
}

.upcoming-pin-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--facebook-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}

.upcoming-pin-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #0f172a;
}

.upcoming-pin-empty {
  margin: 0;
  color: var(--facebook-text-secondary);
}

.upcoming-pin-cover-link {
  display: block;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--facebook-border);
}

.upcoming-pin-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.upcoming-pin-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.upcoming-pin-event h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.upcoming-pin-event h3 a {
  color: var(--facebook-text);
  text-decoration: none;
}

.upcoming-pin-event h3 a:hover {
  color: var(--facebook-blue);
}

.countdown-badge {
  flex-shrink: 0;
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  min-width: 104px;
  padding: 0.38rem 0.78rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: none;
}

.upcoming-pin-date,
.upcoming-pin-place {
  margin: 8px 0 0;
  color: var(--facebook-text-secondary);
  font-size: 0.88rem;
}

.upcoming-pin-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.on-this-day-card {
  background: #ffffff;
  border: 1px solid var(--facebook-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.on-this-day-card h2 {
  margin: 0 0 10px;
  color: var(--facebook-text);
  font-size: 1.25rem;
}

.on-this-day-card .memory-grid {
  display: block;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 6px 10px 2px;
}

.on-this-day-stack-item {
  margin-top: -88px;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--facebook-border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.on-this-day-stack-item:first-child {
  margin-top: 0;
}

.on-this-day-card .memory-item img,
.on-this-day-card .memory-item-no-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.memory-delta {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--facebook-text-secondary);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--facebook-border);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.social-link:hover {
  background: #f1f5f9;
  color: var(--ink);
  text-decoration: none;
}

.sidebar-footer-card h2 {
  margin: 0 0 10px;
  color: var(--facebook-text);
  font-size: 1.1rem;
}

.sidebar-footer-card .footer-mission-note {
  margin: 0;
  color: var(--facebook-text-secondary);
  font-size: 0.92rem;
}

.footer-quick-links {
  margin: 12px 0 0;
  font-weight: 600;
}

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.facebook-link {
  color: var(--facebook-blue);
}

.card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.card-heading h3 {
  margin-bottom: 0;
}

.card-copy,
.detail-item,
.archive-intro,
.gallery-note {
  color: var(--facebook-text-secondary);
}

.detail-item {
  margin-bottom: 8px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.photos-grid img,
.memory-item img,
.gallery-card img,
.gallery-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.photos-grid img {
  aspect-ratio: 1;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.post-info h3 {
  margin: 0;
  color: var(--facebook-text);
  font-size: 1rem;
}

.post-time {
  color: var(--facebook-text-secondary);
  font-size: 0.92rem;
}

.post-content p {
  margin: 0 0 12px;
  color: var(--facebook-text);
}

.home-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-feed-photo-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.home-feed-post {
  border: 1px solid var(--facebook-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

  border-radius: 10px;
  overflow: hidden;
}
.home-feed-post .post-header {
  padding: 12px 12px 0;
  margin-bottom: 8px;
}

.home-feed-body {

.home-feed-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.home-feed-video video {
  width: 100%;
  border-radius: 10px;
  background: #000000;
}

.home-feed-video-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--facebook-border);
}

.home-feed-video-link span {
  display: block;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--facebook-blue);
  font-weight: 600;
}
  padding: 0 12px 12px;
}

.home-feed-text {
  margin: 0 0 10px;
  color: var(--facebook-text);
}

.home-feed-text-link {
  color: var(--facebook-text);
  text-decoration: none;
}

.home-feed-text-link:hover {
  text-decoration: underline;
}

.home-feed-text-link {
  white-space: pre-line;
}

.home-feed-photo-grid-video {
  grid-template-columns: 1fr;
}

.home-feed-photo-grid-video .home-feed-video {
  max-width: 360px;
  margin: 0 auto;
}

.home-feed-video-reel video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.home-feed-photo {
  border-radius: 10px;
  overflow: hidden;
  background: var(--facebook-gray);
}

.feed-media-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.home-feed-photo img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
}

.home-feed-footer {
  margin-top: 10px;
  color: var(--facebook-text-secondary);
  font-size: 0.9rem;
}

.values-list {
  margin: 0;
  padding-left: 20px;
}

.values-list li {
  margin-bottom: 8px;
}

.stats-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--facebook-border);
  border-radius: var(--border-radius);
}

.stat {
  color: var(--facebook-blue);
  font-weight: 700;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--facebook-border);
}

.action-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--facebook-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--facebook-text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.action-btn:hover,
.button:hover {
  background: #f8fafc;
  text-decoration: none;
  transform: translateY(-1px);
}

.action-btn.primary,
.button-primary {
  background: var(--facebook-blue);
  border-color: var(--facebook-blue);
  color: #ffffff;
}

.action-btn.primary:hover,
.button-primary:hover {
  background: #166fe5;
}

.button-secondary {
  color: var(--facebook-blue);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.memory-item {
  overflow: hidden;
}

.memory-item img {
  aspect-ratio: 4 / 3;
}

.memory-item-no-image {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
}

.memory-copy {
  padding: 12px;
}

.memory-copy h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--ink);
}

.memory-copy p {
  margin: 0;
  color: var(--muted);
}

.archive-empty {
  padding: 16px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid-large {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-feed-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-post-card {
  background: #ffffff;
  border: 1px solid var(--facebook-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-post-card .post-header {
  padding: 14px 14px 0;
  margin-bottom: 10px;
}

.gallery-post-body {
  padding: 0 14px 14px;
}

.gallery-post-message {
  margin: 0 0 12px;
}

.gallery-post-message .home-feed-text-link {
  white-space: pre-line;
}

.gallery-post-media-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-media-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-media-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.gallery-post-media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-post-video video {
  width: 100%;
  border-radius: 10px;
  background: #000000;
}

.gallery-post-video-reel {
  max-width: 360px;
  margin: 0 auto;
}

.gallery-post-video-reel video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.gallery-card-video .gallery-post-video {
  border-radius: 10px;
  overflow: hidden;
}

.gallery-media-caption {
  --gallery-caption-lines: 3;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--facebook-text-secondary);
  white-space: pre-line;
}

.gallery-media-caption.is-clamped .home-feed-text-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--gallery-caption-lines);
  line-clamp: var(--gallery-caption-lines);
  overflow: hidden;
}

.gallery-media-caption.is-expanded .home-feed-text-link {
  display: block;
}

.gallery-caption-toggle {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--facebook-blue);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.gallery-caption-toggle:hover,
.gallery-caption-toggle:focus-visible {
  text-decoration: underline;
}

.gallery-post-footer {
  margin: 10px 0 0;
  color: var(--facebook-text-secondary);
  font-size: 0.9rem;
}

.fb-login-section {
  margin-bottom: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--facebook-border);
  border-radius: 10px;
  text-align: center;
}

.fb-login-button {
  background: var(--facebook-blue);
  color: #ffffff;
  border: 0;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.fb-login-button:hover {
  background: #166fe5;
}

.fb-post-composer {
  background: #ffffff;
  border: 1px solid var(--facebook-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.composer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

.composer-user-info {
  flex: 1;
}

.composer-label {
  margin: 0;
  font-size: 0.95rem;
  color: var(--facebook-text);
  font-weight: 500;
}

.fb-logout-button {
  background: transparent;
  color: var(--facebook-blue);
  border: 1px solid var(--facebook-border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.fb-logout-button:hover {
  background: var(--facebook-light-blue);
}

.composer-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--facebook-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--facebook-text);
  resize: vertical;
  margin-bottom: 12px;
}

.composer-textarea:focus {
  outline: none;
  border-color: var(--facebook-blue);
  box-shadow: 0 0 0 2px var(--facebook-light-blue);
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-submit-btn {
  background: var(--facebook-blue);
  color: #ffffff;
  border: 0;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.composer-submit-btn:hover {
  background: #166fe5;
}

.composer-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.post-status {
  font-size: 0.85rem;
  color: var(--facebook-text-secondary);
}

.post-status.success {
  color: #31a24c;
  font-weight: 600;
}

.post-status.error {
  color: #e4163a;
  font-weight: 600;
}

.post-comments-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--facebook-border);
}

.post-engagement-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--facebook-text-secondary);
  font-size: 0.88rem;
}

.post-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  margin-bottom: 10px;
  border-top: 1px solid var(--facebook-border);
  border-bottom: 1px solid var(--facebook-border);
}

.comment-action-btn,
.comment-action-link {
  border: 0;
  background: transparent;
  color: var(--facebook-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
}

.comment-action-btn:hover,
.comment-action-link:hover {
  color: var(--facebook-blue);
  text-decoration: none;
}

.post-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--facebook-text-secondary);
}

.more-comments-note {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--facebook-text-secondary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-item {
  background: var(--facebook-gray);
  padding: 10px 12px;
  border-radius: 8px;
}

.comment-author {
  font-weight: 600;
  color: var(--facebook-text);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.comment-author-link {
  color: var(--facebook-blue);
  text-decoration: none;
}

.comment-author-link:hover,
.comment-author-link:focus-visible {
  text-decoration: underline;
}

.comment-text {
  color: var(--facebook-text);
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.comment-time {
  color: var(--facebook-text-secondary);
  font-size: 0.8rem;
}

.comment-input-form {
  display: flex;
  gap: 8px;
}

.comment-textarea {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--facebook-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--facebook-text);
  resize: none;
  min-height: 36px;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--facebook-blue);
}

.comment-submit-btn {
  padding: 8px 14px;
  background: var(--facebook-blue);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comment-submit-btn:hover {
  background: #166fe5;
}

.comment-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.login-to-comment {
  text-align: center;
  padding: 10px;
}

.comment-login-trigger {
  border: 1px solid var(--facebook-border);
  background: #ffffff;
  color: var(--facebook-blue);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.comment-login-trigger:hover {
  background: var(--facebook-gray);
}

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-trigger img {
  pointer-events: none;
}

.gallery-card img {
  aspect-ratio: 1;
}

.gallery-card-copy {
  padding: 12px;
}

.gallery-card-copy h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.gallery-card-copy p {
  margin: 0;
  color: var(--muted);
}

.gallery-caption-note {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--facebook-text-secondary);
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  z-index: 90;
}

.gallery-lightbox.open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  width: min(1000px, 100%);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #020617;
}

.lightbox-figure img {
  width: 100%;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  background: #020617;
}

.lightbox-caption {
  padding: 0.9rem 1rem 1rem;
  color: #e2e8f0;
}

.lightbox-caption strong {
  display: block;
  margin-bottom: 0.15rem;
}

.lightbox-caption p {
  margin: 0;
  color: #cbd5e1;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-nav {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(30, 41, 59, 0.95);
}

.highlights {
  display: grid;
  gap: 1.5rem;
}

.highlights article,
.event-card,
.callout {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.callout {
  background: #eff6ff;
  border-color: #bfdbfe;
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.25fr 1fr;
}

.contact-grid form {
  display: grid;
  gap: 1rem;
}

.contact-grid label {
  font-weight: 700;
}

.contact-grid input,
.contact-grid textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── FB Events Page ─────────────────────────────────────── */
.events-section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--heading);
}

.fb-events-list {
  display: grid;
  gap: 1.25rem;
}

.fb-event-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.fb-event-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.fb-event-card--past {
  opacity: 0.7;
}

.event-cover-link {
  display: block;
  height: 100%;
}

.event-cover {
  width: 200px;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.fb-event-info {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fb-event-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fb-event-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.fb-event-name a {
  color: var(--heading);
  text-decoration: none;
}

.fb-event-name a:hover {
  color: var(--accent);
}

.event-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  white-space: nowrap;
}

.event-badge--canceled {
  background: #fee2e2;
  color: #b91c1c;
}

.fb-event-date,
.fb-event-place {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-icon {
  flex-shrink: 0;
  opacity: 0.6;
}

.event-description {
  font-size: 0.875rem;
  color: var(--body);
  margin: 0.25rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fb-event-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
}

.fb-event-link:hover {
  text-decoration: underline;
}

.events-loading,
.events-empty {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}

.events-fb-cta {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.events-fb-cta a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 600px) {
  .fb-event-card {
    grid-template-columns: 1fr;
  }

  .event-cover {
    width: 100%;
    height: 180px;
  }
}

.site-footer {
  background: #ffffff;
  color: var(--facebook-text-secondary);
  border-top: 1px solid var(--facebook-border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-mission-note {
  color: var(--facebook-text-secondary);
  max-width: 90ch;
}

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

.donate-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.donate-modal.open {
  display: flex;
}

.donate-modal-card {
  position: relative;
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.25);
  padding: 1rem 1rem 1.15rem;
  text-align: center;
}

.donate-modal-card h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.donate-modal-card p {
  margin: 0;
}

.donate-modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.donate-qr-image {
  width: min(360px, 100%);
  border-radius: 10px;
  margin: 0.85rem auto 0.5rem;
  border: 1px solid #e2e8f0;
  display: block;
}

.donate-cashtag {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.2rem;
}

.donate-open-link {
  margin-top: 0.8rem;
  display: inline-flex;
}

@media (max-width: 900px) {
  .content-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-info {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .profile-avatar {
    width: 132px;
    height: 132px;
    margin-top: -66px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open {
    display: flex;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 8px;
  }

  .tab {
    white-space: nowrap;
    padding: 12px 12px 8px;
  }

  .content-grid {
    padding: 0 8px;
  }

  .upcoming-pin-cover {
    height: 180px;
  }

  .stats-highlight {
    flex-direction: column;
  }

  .profile-banner {
    height: 220px;
  }

  .gallery-lightbox {
    padding: 0.5rem;
  }

  .lightbox-nav {
    position: absolute;
    bottom: 1rem;
    z-index: 2;
  }

  .lightbox-nav.prev {
    left: 1rem;
  }

  .lightbox-nav.next {
    right: 1rem;
  }

  .lightbox-figure {
    width: 100%;
  }

  .lightbox-figure img {
    max-height: calc(100vh - 12rem);
  }

  .home-feed-photo img {
    max-height: 260px;
  }

  .gallery-media-caption {
    --gallery-caption-lines: 2;
  }
}

.button-secondary {
  background: white;
  color: #2563eb;
  border-color: #c7d2fe;
}

.section {
  padding: 3rem 0;
}

.highlights {
  display: grid;
  gap: 1.5rem;
}

.highlights article {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.25fr 1fr;
}

.contact-grid form {
  display: grid;
  gap: 1rem;
}

.contact-grid label {
  font-weight: 700;
}

.contact-grid input,
.contact-grid textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
}

.form-note {
  font-size: 0.95rem;
  color: #475569;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-live-status {
  margin: 1rem 0 0;
  color: #4f556f;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.gallery-source-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.gallery-source-status-warning {
  color: #9a3412;
}

.gallery-source-status-info {
  color: #1d4ed8;
}

.gallery-live-sentinel {
  width: 100%;
  height: 1px;
}

.strava-rides-card {
  background: #ffffff;
  border: 1px solid var(--facebook-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.strava-rides-card h2 {
  margin: 0 0 12px;
  color: var(--facebook-text);
  font-size: 1.25rem;
}

.strava-embed {
  overflow: hidden;
  border-radius: 10px;
}

.strava-embed iframe {
  border: none;
  border-radius: 10px;
  display: block;
  width: 100%;
}

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer a {
  color: #93c5fd;
}

@media (max-width: 900px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    display: none;
    margin-top: 1rem;
  }

  .site-nav.open {
    display: flex;
  }
}
