/* ============================================================
   LF Design System — lf-design.css
   Loaded after bootstrap.css and lokalfrivillig.css
   All components prefixed lf-
   ============================================================ */

/* --- Tokens --- */
:root {
  --lf-primary:       #4a7c59;
  --lf-primary-light: #6a9e72;
  --lf-surface:       #e8f3e9;
  --lf-bg:            #fafaf9;
  --lf-text:          #1c1917;
  --lf-muted:         #78716c;
  --lf-border:        #f0eeec;
  --lf-success:       #16a34a;
  --lf-warning-bg:    #fef9c3;
  --lf-warning-text:  #854d0e;
  --lf-interest:      #6d4fc2;
  --lf-interest-bg:   #f3f0ff;
  --lf-danger-bg:     #fee2e2;
  --lf-danger-text:   #991b1b;
  --lf-danger-light:  #fca5a5;
}

html { font-size: 16px; }

/* Applied to <body> on redesigned pages (home.php, event.php) only */
.lf-page {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--lf-bg);
  color: var(--lf-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Nav --- */
.lf-nav {
  background: #fff;
  border-bottom: 1px solid var(--lf-border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 120;
}
.lf-nav-logo { font-size: 1.125rem; font-weight: 800; color: var(--lf-primary); text-decoration: none; margin-right: auto; }
.lf-nav-link { font-size: 0.875rem; font-weight: 500; color: var(--lf-muted); text-decoration: none; }
.lf-nav-link:hover, .lf-nav-link.active, .lf-nav-link--active { color: var(--lf-primary); }
.lf-nav-avatar-link { display: flex; align-items: center; text-decoration: none; background: none; border: none; padding: 0; cursor: pointer; }
.lf-nav-dropdown { position: relative; }
.lf-nav-dropdown__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  min-width: 168px;
  padding: 6px;
  z-index: 200;
}
.lf-nav-dropdown.open .lf-nav-dropdown__menu { display: block; }
.lf-nav-dropdown__item {
  display: block;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lf-text);
  text-decoration: none;
  border-radius: 8px;
}
.lf-nav-dropdown__item:hover { background: var(--lf-bg); color: var(--lf-primary); }
.lf-nav-dropdown__item--danger { color: #991b1b; }
.lf-nav-dropdown__item--danger:hover { background: #fef2f2; color: #991b1b; }
.lf-nav-dropdown__divider { height: 1px; background: var(--lf-border); margin: 4px 0; }
.lf-nav-initials { width: 32px; height: 32px; border-radius: 999px; background: var(--lf-surface); color: var(--lf-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8125rem; }
.lf-nav-btn {
  background: var(--lf-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.lf-nav-btn:hover { background: var(--lf-primary-light); color: #fff; }
.lf-nav-avatar { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; border: 2px solid var(--lf-surface); }
.lf-lang-switcher__btn { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--lf-border); border-radius: 8px; padding: 5px 10px; font-size: 0.8125rem; font-weight: 600; color: var(--lf-text); font-family: inherit; cursor: pointer; }
.lf-lang-switcher__btn:hover { border-color: #d1d5db; }
.lf-nav-dropdown.open .lf-lang-switcher__btn { background: var(--lf-surface); color: var(--lf-primary); border-color: var(--lf-border); }
.lf-lang-switcher__item--active { display: flex; align-items: center; justify-content: space-between; background: var(--lf-surface); color: var(--lf-primary); font-weight: 700; cursor: default; border-radius: 8px; }

/* Font size toggle */
.lf-font-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12px; /* intentional px — this button should not scale with the page font size */
  font-weight: 700;
  color: var(--lf-text);
  font-family: inherit;
  cursor: pointer;
  line-height: 1.3;
  min-width: 36px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.lf-font-toggle__dots {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}
.lf-font-toggle__dot {
  width: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--lf-border);
  transition: background 0.15s;
}
/* Regular — one dot lit */
.lf-font-toggle:not([data-level]),
.lf-font-toggle[data-level="regular"] {
  border-color: var(--lf-border);
  color: var(--lf-text);
}
.lf-font-toggle:not([data-level]) .lf-font-toggle__dot:first-child,
.lf-font-toggle[data-level="regular"] .lf-font-toggle__dot:first-child {
  background: var(--lf-primary);
}
/* Medium — two dots lit, green border */
.lf-font-toggle[data-level="medium"] {
  border-color: var(--lf-primary);
  color: var(--lf-primary);
}
.lf-font-toggle[data-level="medium"] .lf-font-toggle__dot:nth-child(-n+2) {
  background: var(--lf-primary);
}
/* Large — all three dots lit, green fill */
.lf-font-toggle[data-level="large"] {
  border-color: var(--lf-primary);
  color: var(--lf-primary);
  background: var(--lf-surface);
}
.lf-font-toggle[data-level="large"] .lf-font-toggle__dot {
  background: var(--lf-primary);
}

/* --- Platform Hero (home.php) --- */
.lf-platform-hero__inner {
  display: grid;
  grid-template-columns: 1fr 38%;
}

/* ── Volunteer panel ── */
.lf-platform-hero__vol {
  background: linear-gradient(140deg, #e8f3e9 0%, #f5fbf5 50%, #fff 100%);
  padding: 36px 32px 28px;
  position: relative;
  overflow: hidden;
}

/* Bubbles — volunteer side */
.lf-platform-hero__vol-b,
.lf-platform-hero__org-b {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  display: block;
}
.lf-platform-hero__vol-b { background: rgb(74, 124, 89); }
.lf-platform-hero__vol-b1 { width: 110px; height: 110px; top: -30px;    left: -30px;   opacity: 0.10; }
.lf-platform-hero__vol-b2 { width: 60px;  height: 60px;  top: 20px;     left: 50px;    opacity: 0.07; }
.lf-platform-hero__vol-b3 { width: 80px;  height: 80px;  bottom: -20px; left: 80px;    opacity: 0.08; }
.lf-platform-hero__vol-b4 { width: 40px;  height: 40px;  bottom: 40px;  right: 30px;   opacity: 0.06; }
.lf-platform-hero__vol-b5 { width: 90px;  height: 90px;  top: 50%;      right: -30px;  opacity: 0.09; transform: translateY(-60%); }

/* Content sits above bubbles */
.lf-platform-hero__content { position: relative; z-index: 1; }

/* Eyebrow */
.lf-platform-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lf-surface);
  color: var(--lf-primary);
  border: 1px solid #d4ead7;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.lf-platform-hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lf-primary);
  flex-shrink: 0;
  display: inline-block;
}

/* Headline */
.lf-platform-hero__headline {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--lf-text);
  line-height: 1.2;
  margin: 0 0 10px;
}
.lf-platform-hero__headline-em {
  color: var(--lf-primary);
  font-style: normal;
}

/* Body */
.lf-platform-hero__body {
  font-size: 0.9375rem;
  color: var(--lf-muted);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 380px;
}

/* Actions */
.lf-platform-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.lf-platform-hero__scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lf-primary);
  text-decoration: none;
  cursor: pointer;
}
.lf-platform-hero__scroll-link:hover { color: var(--lf-primary-light); }

/* Stats */
.lf-platform-hero__stats { display: flex; gap: 10px; flex-wrap: wrap; }
.lf-platform-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--lf-surface);
  border-radius: 999px;
  padding: 5px 12px 5px 9px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lf-text);
}
.lf-platform-hero__stat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lf-primary);
  flex-shrink: 0;
  display: inline-block;
}

/* ── Org panel ── */
.lf-platform-hero__org {
  background: #1e3a2f;
  padding: 36px 28px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Bubbles — org side */
.lf-platform-hero__org-b { background: rgb(168, 213, 181); }
.lf-platform-hero__org-b1 { width: 90px;  height: 90px;  top: 50%;      left: -30px;   opacity: 0.10; transform: translateY(-60%); }
.lf-platform-hero__org-b2 { width: 120px; height: 120px; bottom: -40px; right: -40px;  opacity: 0.07; }
.lf-platform-hero__org-b3 { width: 50px;  height: 50px;  top: 14px;     right: 20px;   opacity: 0.08; }
.lf-platform-hero__org-b4 { width: 35px;  height: 35px;  top: 60px;     left: 30px;    opacity: 0.06; }

.lf-platform-hero__org-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(168, 213, 181, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.lf-platform-hero__org-headline {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 10px;
}
.lf-platform-hero__org-divider {
  width: 28px; height: 2px;
  background: rgba(168, 213, 181, 0.3);
  border-radius: 2px;
  margin-bottom: 10px;
}
.lf-platform-hero__org-body {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0 0 18px;
}
.lf-platform-hero__org-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #5a9e6f;
  color: #fff;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 9px 16px;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s;
  cursor: pointer;
}
.lf-platform-hero__org-cta:hover { background: #6ab580; color: #fff; }

/* Mobile */
@media (max-width: 768px) {
  .lf-platform-hero__inner        { grid-template-columns: 1fr; }
  .lf-platform-hero__vol          { padding: 28px 20px 24px; }
  .lf-platform-hero__org          { padding: 24px 20px; }
  .lf-platform-hero__body         { max-width: 100%; }
  .lf-platform-hero__scroll-link  { display: none; }
  .lf-platform-hero__actions .lf-btn { width: 100%; text-align: center; }
}

/* --- How it works strip --- */
.lf-how-strip {
  background: #fff;
  border-top: 1px solid var(--lf-border);
  border-bottom: 1px solid var(--lf-border);
  padding: 18px 0;
}
.lf-how-strip__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.lf-how-strip__label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--lf-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px;
}
.lf-how-steps {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lf-how-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 20px;
  position: relative;
}
.lf-how-step__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--lf-surface);
  color: var(--lf-primary);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lf-how-step__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--lf-text);
  margin-bottom: 2px;
}
.lf-how-step__sub {
  font-size: 0.75rem;
  color: var(--lf-muted);
  line-height: 1.4;
}
@media (max-width: 480px) {
  .lf-how-steps                   { flex-direction: column; gap: 14px; }
  .lf-how-step                    { padding-right: 0; }
  .lf-how-step:not(:last-child)::after { display: none; }
  .lf-how-strip__inner            { padding: 0 16px; }
}

/* --- Filter bar --- */
.lf-filters {
  position: sticky;
  top: 56px;
  z-index: 110;
  background: #fff;
  border-bottom: 1px solid var(--lf-border);
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
}
.lf-filters::-webkit-scrollbar { display: none; }

/* Chips */
.lf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  background: var(--lf-surface);
  color: var(--lf-primary);
  position: relative;
}
.lf-chip:hover { background: #d4ead7; }
.lf-chip.lf-chip--all-active { background: var(--lf-primary); color: #fff; border-color: var(--lf-primary); }
.lf-chip.lf-chip--all-active:hover { background: var(--lf-primary-light); }
.lf-chip--interest { background: var(--lf-interest-bg); color: var(--lf-interest); }
.lf-chip--interest:hover { background: #e6e0ff; }
.lf-chip--date { background: #f1f5f9; color: #475569; }
.lf-chip--date:hover { background: #e2e8f0; }
.lf-chip svg { flex-shrink: 0; }

/* Chip dropdown wrapper */
.lf-chip-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Chip dropdown panel — position:fixed so overflow-x:auto on filter bar doesn't clip it */
.lf-chip-dropdown__menu {
  position: fixed;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
  padding: 6px 0;
  white-space: normal;
}
.lf-chip-dropdown__menu.hidden { display: none; }
.lf-chip-dropdown__menu { max-height: min(320px, calc(100vh - 80px)); overflow-y: auto; }
.lf-chip-dropdown__menu--checkboxes { min-width: 220px; }

/* Dropdown items */
.lf-chip-dropdown__item {
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: var(--lf-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-family: inherit;
}
.lf-chip-dropdown__item:hover { background: var(--lf-bg); }
.lf-chip-dropdown__item.active { color: var(--lf-primary); font-weight: 600; }

/* Checkbox items */
.lf-chip-dropdown__check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: var(--lf-text);
  cursor: pointer;
}
.lf-chip-dropdown__check-item:hover { background: var(--lf-bg); }
.lf-chip-dropdown__check-item input[type="checkbox"] {
  accent-color: var(--lf-interest);
  width: 14px; height: 14px; flex-shrink: 0;
}

/* Filter divider */
.lf-filter-divider {
  width: 1px; height: 22px;
  background: var(--lf-border);
  flex-shrink: 0;
}

/* Segmented control */
.lf-seg {
  display: inline-flex;
  background: var(--lf-bg);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--lf-border);
}
.lf-seg button {
  border: none; background: transparent;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--lf-muted);
  font-family: inherit;
  cursor: pointer;
}
.lf-seg button.lf-seg--active {
  background: #fff;
  color: var(--lf-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* --- Feed layout --- */
.lf-feed-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.lf-feed-page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.lf-feed {
  columns: 3;
  column-gap: 14px;
}
@media (max-width: 768px) {
  .lf-feed { columns: 1; }
}

/* --- Feed card (shared) --- */
.lf-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--lf-border);
  position: relative;
  overflow: hidden;
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.lf-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); cursor: pointer; transform: translateY(-2px); }

/* Invisible full-card link overlay; org link sits above it via z-index */
.lf-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 0;
}
.lf-card-org--link { position: relative; z-index: 1; }

/* --- Card image (top of card) --- */
.lf-card-img {
  width: 100%;
  display: block;
  min-height: 120px;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
}
/* Gradient fallback when no poster image is available */
.lf-card-img--no-img {
  height: 180px;
  background: linear-gradient(135deg, #a8d5b5, #4a7c59);
}

/* --- Card content area --- */
.lf-card-content {
  padding: 12px 14px 14px;
}
/* Top row: org name + title (left) and date badge (right) */
.lf-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.lf-card-body { flex: 1; min-width: 0; }
.lf-card-org {
  font-size: 0.6875rem; font-weight: 700;
  color: var(--lf-primary-light);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 2px;
  display: block;
}
.lf-card-org--link { cursor: pointer; display: inline-flex; align-items: center; gap: 3px; text-decoration: none; }
.lf-card-org-arrow { opacity: 0; transform: translateX(-3px); transition: opacity 0.15s, transform 0.15s; }
.lf-card-org--link:hover .lf-card-org-arrow { opacity: 1; transform: translateX(0); }
.lf-card-title { font-size: 0.9375rem; font-weight: 700; color: var(--lf-text); }
.lf-card-meta { font-size: 0.75rem; color: var(--lf-muted); margin-top: 2px; }
.lf-card-tags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.lf-tag {
  background: #f4f3f1; color: var(--lf-muted);
  border-radius: 999px; padding: 3px 10px;
  font-size: 0.6875rem; font-weight: 500;
}
.lf-tag--spots { background: var(--lf-surface); color: var(--lf-primary); font-weight: 600; }
.lf-tag--few { background: var(--lf-warning-bg); color: var(--lf-warning-text); font-weight: 600; }
.lf-tag--full { background: var(--lf-danger-bg); color: var(--lf-danger-text); font-weight: 600; }
.lf-tag--interest { background: var(--lf-surface); color: var(--lf-primary); }

/* --- Date badge (top-right of card content, dark bg) --- */
.lf-date-badge {
  background: var(--lf-primary);
  border-radius: 8px;
  padding: 4px 8px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.1;
}
.lf-date-day { font-size: 0.9375rem; font-weight: 800; color: #fff; line-height: 1; }
.lf-date-month { font-size: 0.625rem; font-weight: 600; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Shared action button --- */
.lf-btn {
  background: var(--lf-primary); color: #fff;
  border: none; border-radius: 999px;
  padding: 8px 18px; font-size: 0.8125rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  white-space: nowrap; align-self: center; flex-shrink: 0;
  text-decoration: none; display: inline-block;
}
.lf-btn:hover { background: var(--lf-primary-light); color: #fff; }
.lf-btn:disabled, .lf-btn--disabled { background: #d4d0cc; color: #a8a29e; cursor: default; }
.lf-btn--outline {
  background: transparent;
  color: var(--lf-primary);
  border: 1.5px solid var(--lf-primary);
}
.lf-btn--outline:hover { background: var(--lf-surface); color: var(--lf-primary); }
.lf-btn--surface { background: var(--lf-surface); color: var(--lf-primary); }
.lf-btn--surface:hover { background: #d4ead7; color: var(--lf-primary); }
.lf-btn--full { width: 100%; text-align: center; }

/* --- Post card --- */
.lf-post-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--lf-border);
  padding: 16px;
  break-inside: avoid;
  margin-bottom: 14px;
}
.lf-post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lf-post-avatar {
  width: 40px; height: 40px; border-radius: 999px;
  object-fit: cover; flex-shrink: 0;
}
.lf-post-avatar-initials {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--lf-surface); color: var(--lf-primary);
  font-size: 0.875rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lf-post-meta { flex: 1; min-width: 0; }
.lf-post-orgname { font-size: 0.875rem; font-weight: 700; color: var(--lf-text); }
.lf-post-time { font-size: 0.75rem; color: var(--lf-muted); }
.lf-badge-opslag {
  background: var(--lf-surface); color: var(--lf-primary);
  border-radius: 999px; padding: 3px 10px;
  font-size: 0.6875rem; font-weight: 700;
  flex-shrink: 0;
}
.lf-post-body { font-size: 0.875rem; line-height: 1.6; color: var(--lf-text); }

/* --- Vis flere / Load more --- */
.lf-load-more-wrap { text-align: center; margin-top: 20px; }

/* --- Empty state --- */
.lf-empty { text-align: center; padding: 60px 24px; color: var(--lf-muted); }
.lf-empty p { font-size: 1rem; margin-bottom: 16px; }
.lf-empty__cta { margin-top: 8px; }
.lf-empty__img { width: 100%; max-width: 260px; height: auto; margin: 0 auto 8px; display: block; }

/* --- Event page hero --- */
.lf-hero {
  width: 100%; height: 240px;
  background-size: cover; background-position: center;
  position: relative;
  display: flex; align-items: flex-end;
}
.lf-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
}
.lf-hero-content {
  position: relative; z-index: 1;
  padding: 0 24px 20px;
}
.lf-hero-org { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.lf-hero-title { font-size: 1.625rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.lf-hero-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lf-hero-tag {
  background: rgba(255,255,255,0.2);
  color: #fff; border-radius: 999px;
  padding: 4px 12px; font-size: 0.75rem; font-weight: 600;
  backdrop-filter: blur(4px);
}

/* --- Key info bar --- */
.lf-infobar {
  background: #fff;
  border-bottom: 1px solid var(--lf-border);
  display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.lf-infobar::-webkit-scrollbar { display: none; }
.lf-infobar-item {
  flex: 1; min-width: 120px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  border-right: 1px solid var(--lf-border);
}
.lf-infobar-item:last-child { border-right: none; }
.lf-infobar-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--lf-surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lf-infobar-icon svg { width: 16px; height: 16px; stroke: var(--lf-primary); fill: none; stroke-width: 2; }
.lf-infobar-label { font-size: 0.625rem; font-weight: 700; color: var(--lf-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lf-infobar-value { font-size: 0.8125rem; font-weight: 600; color: var(--lf-text); margin-top: 1px; }

/* --- Event body grid --- */
.lf-event-body {
  max-width: 1100px; margin: 0 auto;
  padding: 28px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 992px) {
  .lf-event-body { grid-template-columns: 1fr; }
  .lf-event-sidebar { position: static !important; }
}
.lf-event-sidebar { align-self: start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* Section headings */
.lf-section-title { font-size: 1.125rem; font-weight: 800; color: var(--lf-text); margin-bottom: 12px; }

/* Description */
.lf-event-desc { font-size: 0.9375rem; line-height: 1.7; color: var(--lf-text); margin-bottom: 28px; }

/* --- Task grid: 2-col grid where each card is its natural height --- */
.lf-event-body .task-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 16px;
  width: 100%;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .lf-event-body .task-grid { grid-template-columns: 1fr; }
}

/* --- Task card --- */
.lf-task {
  background: #fff; border: 1px solid var(--lf-border);
  border-radius: 14px; overflow: hidden;
  break-inside: avoid;
  margin-bottom: 16px;
  display: inline-block; /* required for break-inside to work correctly in columns */
  width: 100%;
}
.lf-task-header { padding: 12px 14px; border-bottom: 1px solid var(--lf-border); }
.lf-task-name { font-size: 0.875rem; font-weight: 700; color: var(--lf-text); }
.lf-task-desc { font-size: 0.75rem; color: var(--lf-muted); margin-top: 2px; }
.lf-task-shifts { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.lf-task-waitinglist { padding: 12px 14px; }

/* Shift date groups */
.lf-shift-date-group { margin-bottom: 12px; }
.lf-shift-date-group:last-child { margin-bottom: 0; }
.lf-shift-date-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.lf-shift-weekday { font-size: 0.8125rem; font-weight: 600; color: var(--lf-muted); }

/* Shift row */
.lf-shift {
  background: var(--lf-bg); border: 1px solid var(--lf-border);
  border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.lf-shift:last-child { margin-bottom: 0; }
.lf-shift-info { flex: 1; min-width: 0; }
.lf-shift-time { font-size: 0.8125rem; font-weight: 700; color: var(--lf-text); }
.lf-shift-name { font-size: 0.6875rem; color: var(--lf-muted); margin-top: 1px; }
.lf-spots {
  font-size: 0.6875rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
}
.lf-spots--ok { background: var(--lf-surface); color: var(--lf-primary); }
.lf-spots--few { background: var(--lf-warning-bg); color: var(--lf-warning-text); }
.lf-spots--full { background: var(--lf-danger-bg); color: var(--lf-danger-text); }
.lf-shift-btn {
  background: var(--lf-primary); color: #fff;
  border: none; border-radius: 999px;
  padding: 6px 13px; font-size: 0.75rem; font-weight: 700;
  font-family: inherit; cursor: pointer; flex-shrink: 0;
}
.lf-shift-btn:disabled { background: #d4d0cc; color: #a8a29e; cursor: default; }

/* --- Sidebar cards --- */
.lf-sidebar-card {
  background: #fff; border: 1px solid var(--lf-border);
  border-radius: 14px; padding: 16px;
}
.lf-sidebar-org-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.lf-sidebar-org-arrow { opacity: 0; transform: translateX(-3px); transition: opacity 0.15s, transform 0.15s; display: inline-block; margin-left: 3px; color: var(--lf-primary); }
.lf-sidebar-org-link:hover .lf-sidebar-org-arrow { opacity: 1; transform: translateX(0); }
.lf-org-logo { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; outline: 2.5px solid var(--lf-primary); outline-offset: 2px; }
.lf-org-initials {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--lf-surface); color: var(--lf-primary);
  font-size: 1.125rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  outline: 2.5px solid var(--lf-primary); outline-offset: 2px;
}
.lf-org-name { font-size: 0.9375rem; font-weight: 700; color: var(--lf-text); margin-top: 10px; }
.lf-org-sub { font-size: 0.75rem; color: var(--lf-muted); }

/* Follow btn */
.lf-follow-btn {
  width: 100%; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--lf-surface); color: var(--lf-primary);
  border: none; border-radius: 999px;
  padding: 9px 16px; font-size: 0.8125rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lf-follow-btn:hover { background: #d4ead7; }
.lf-follow-btn .lf-follow-heart { font-size: 0.9375rem; color: var(--lf-primary); transition: color 0.15s; }
.lf-follow-btn.following {
  background: #fff; color: var(--lf-muted);
  border: 1.5px solid var(--lf-border);
}
.lf-follow-btn.following .lf-follow-heart { color: var(--lf-primary); }
.lf-follow-btn.following:hover { background: var(--lf-danger-bg); color: var(--lf-danger-text); border-color: var(--lf-danger-light); }
.lf-follow-btn.following:hover .lf-follow-heart { color: var(--lf-danger-text); }

/* Contact person */
.lf-contact-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lf-muted); margin-bottom: 10px; }
.lf-contact-person { display: flex; align-items: center; gap: 10px; }
.lf-contact-avatar { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; flex-shrink: 0; outline: 2.5px solid var(--lf-primary); outline-offset: 2px; }
.lf-contact-initials {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  background: var(--lf-surface); color: var(--lf-primary);
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  outline: 2.5px solid var(--lf-primary); outline-offset: 2px;
}
.lf-contact-name { font-size: 0.875rem; font-weight: 700; color: var(--lf-text); }
.lf-contact-role { font-size: 0.75rem; color: var(--lf-muted); }
.lf-contact-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lf-border); }
.lf-contact-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; color: var(--lf-primary); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lf-contact-link:hover { text-decoration: underline; }
.lf-contact-link i { flex-shrink: 0; font-size: 0.875rem; }

/* FAQ card */
.lf-faq-card {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 14px; padding: 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.lf-faq-card:hover { background: #dcfce7; }
.lf-faq-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #bbf7d0; color: var(--lf-success);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lf-faq-text { flex: 1; }
.lf-faq-title { font-size: 0.875rem; font-weight: 700; color: #14532d; }
.lf-faq-sub { font-size: 0.75rem; color: #15803d; }

/* ================================================================
   ORG PAGE
   ================================================================ */

.lf-org-hero {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #a8d5b5, #4a7c59);
  background-size: cover;
  background-position: center;
}

/* Semi-transparent dark gradient at bottom for text legibility */
.lf-org-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.lf-org-hero .lf-org-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.lf-org-hero .lf-org-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.lf-org-hero__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lf-org-hero__parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.lf-org-hero__parent:hover { color: #fff; }
.lf-org-hero__parent:hover .lf-org-hero__parent-text { text-decoration: underline; }
.lf-org-hero__parent-arrow {
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.15s, transform 0.15s;
}
.lf-org-hero__parent:hover .lf-org-hero__parent-arrow {
  opacity: 1;
  transform: translateX(0);
}

.lf-org-hero .lf-org-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  line-height: 1.2;
}

.lf-org-profile {
  background: #fff;
  border-bottom: 1px solid var(--lf-border);
  padding: 16px 24px 20px;
}

.lf-org-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* Collapsible About — content is HTML, use max-height not line-clamp */
.lf-org-about { margin-top: 4px; }

.lf-org-about__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lf-muted);
  margin: 0 0 8px;
}

.lf-org-about__text {
  font-size: 0.8125rem;
  color: var(--lf-muted);
  line-height: 1.6;
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

.lf-org-about__text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.lf-org-about__text.expanded {
  max-height: none;
  overflow: visible;
}

.lf-org-about__text.expanded::after { display: none; }

.lf-org-about__toggle {
  background: none;
  border: none;
  padding: 0;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lf-primary);
  cursor: pointer;
  display: inline-block;
}

.lf-org-about__toggle:hover { text-decoration: underline; }

/* --- Org profile split (about + contact panel) ---
   Contact panel is absolutely positioned in the top-right of
   .lf-org-profile so it doesn't participate in the profile's height
   calculation. About text gets right-padding to leave room. A tall
   card may overflow past the profile's bottom; .lf-filters is sticky
   with z-index 110 and a solid bg, so it covers any overlap.
   (Float doesn't work here: .lf-org-profile is a flex item — flex
   items are BFCs and contain their floats, growing the profile.) */
.lf-org-profile { position: relative; }

.lf-org-profile__split { margin-top: 4px; }

.lf-org-profile__split:not(.lf-org-profile__split--single) .lf-org-contact {
  position: absolute;
  top: 16px;       /* matches .lf-org-profile padding-top */
  right: 24px;     /* matches .lf-org-profile padding-right */
  width: 280px;
  margin: 0;
  z-index: 115;    /* above .lf-filters (z-index 110) so the overflow
                      portion of the card sits in front of the sticky
                      filter bar instead of being covered by it. */
}
.lf-org-profile__split:not(.lf-org-profile__split--single) .lf-org-about {
  padding-right: 300px;   /* card width + breathing room */
}

@media (max-width: 700px) {
  .lf-org-profile__split:not(.lf-org-profile__split--single) .lf-org-contact {
    position: static;
    width: auto;
    margin: 12px 0 0 0;
  }
  .lf-org-profile__split:not(.lf-org-profile__split--single) .lf-org-about {
    padding-right: 0;
  }
}

/* --- Contact panel --- */
.lf-org-contact {
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.lf-org-contact__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lf-muted);
  margin: 0 0 12px;
}
.lf-org-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dashed var(--lf-border);
  font-size: 0.8125rem;
  color: var(--lf-text);
}
.lf-org-contact__row:first-of-type { border-top: none; }
.lf-org-contact__icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--lf-surface);
  color: var(--lf-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.lf-org-contact__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lf-muted);
  margin-bottom: 1px;
}
.lf-org-contact__value {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}
.lf-org-contact__value--link {
  color: var(--lf-primary);
  text-decoration: none;
}
.lf-org-contact__value--link:hover { text-decoration: underline; }
.lf-org-contact__cvr {
  font-size: 0.6875rem;
  color: var(--lf-muted);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--lf-border);
  text-align: right;
}

/* ================================================================
   ORG DISCOVERY STRIP (home page)
   ================================================================ */

.lf-org-strip {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--lf-border);
}

.lf-org-strip__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--lf-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.lf-org-strip__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lf-org-strip__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.lf-org-strip__item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lf-org-strip__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.lf-org-strip__initials {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--lf-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lf-org-strip__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lf-text);
  flex: 1;
}

.lf-org-strip__sub {
  font-size: 0.6875rem;
  color: var(--lf-muted);
  flex-shrink: 0;
}

/* --- Page header strip (white title bar below lf-nav) --- */
.lf-page-header {
  background: #fff;
  border-bottom: 1px solid var(--lf-border);
  padding: 14px 24px;
}
.lf-page-header__inner {
  max-width: 700px;
  margin: 0 auto;
}
.lf-page-header__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lf-text);
  margin: 0 0 2px;
}
.lf-page-header__subtitle {
  font-size: 0.8125rem;
  color: var(--lf-muted);
  margin: 0;
}

/* --- Page body (lf-bg wrapper between page-header and footer) --- */
.lf-page-body {
  background: var(--lf-bg);
  padding: 24px 16px 48px;
  flex: 1;
}

/* --- Standalone content card (profile, myshifts, auth pages) --- */
/* NOTE: Do NOT use .lf-card here — that class is for feed cards (display:block, masonry) */
.lf-content-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--lf-border);
  max-width: 700px;
  margin: 0 auto;
  padding: 28px;
}
.lf-content-card--narrow { max-width: 480px; }

/* --- Footer --- */
.lf-footer {
  background: #2d5a3d;
  padding: 20px 24px;
  margin-top: auto;
}
.lf-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lf-footer__brand { display: flex; flex-direction: column; gap: 2px; }
.lf-footer__name {
  font-size: 0.875rem; font-weight: 800; color: #fff;
  font-family: 'Figtree', sans-serif;
}
.lf-footer__copy { font-size: 0.6875rem; color: rgba(255,255,255,0.5); }
.lf-footer__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.lf-footer__links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-family: 'Figtree', sans-serif;
}
.lf-footer__links a:hover { color: #fff; }

/* --- Date badge day-name row (used in myshifts shift cards) --- */
.lf-date-dayname {
  font-size: 0.625rem; font-weight: 600;
  color: var(--lf-muted); text-transform: lowercase;
}

/* =============================================================
   MODAL SYSTEM
   ============================================================= */

.lf-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999 !important;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lf-modal.is-visible {
  display: flex;
  opacity: 1;
}

.lf-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: calc(100% - 2rem);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
  position: relative;
  z-index: 10000;
}
.lf-modal-content--wide {
  max-width: 820px;
}

@keyframes modalFadeIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* --- Header --- */
.lf-modal-header {
  background: var(--lf-surface);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
}
.lf-modal-header--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.lf-modal-header--left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lf-modal-header-icon {
  width: 44px;
  height: 44px;
  background: var(--lf-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lf-modal-header-icon--sm {
  width: 36px;
  height: 36px;
}
.lf-modal-header-icon svg {
  width: 22px;
  height: 22px;
}
.lf-modal-header-icon--sm svg {
  width: 18px;
  height: 18px;
}
.lf-modal-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lf-text);
  margin: 0;
}
.lf-modal-header-sub {
  font-size: 0.825rem;
  color: var(--lf-muted);
  margin: 0;
}

/* --- Close button --- */
.lf-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--lf-border);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  color: var(--lf-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.15s;
}
.lf-modal-close:hover {
  background: var(--lf-surface);
}

/* --- Body --- */
.lf-modal-body {
  padding: 1.5rem;
  text-align: left;
}

.lf-modal-body input[type="email"],
.lf-modal-body input[type="password"],
.lf-modal-body input[type="text"],
.lf-modal-body input[type="tel"] {
  display: block;
  width: 100%;
  border: 1.5px solid var(--lf-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.925rem;
  font-family: inherit;
  color: var(--lf-text);
  background: #fff;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.lf-modal-body input[type="email"]:focus,
.lf-modal-body input[type="password"]:focus,
.lf-modal-body input[type="text"]:focus,
.lf-modal-body input[type="tel"]:focus {
  outline: none;
  border-color: var(--lf-primary);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}
.lf-modal-body input::placeholder {
  color: var(--lf-muted);
  opacity: 1;
}

/* --- Button row --- */
.lf-modal-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.lf-modal-buttons .or-sep {
  font-size: 0.825rem;
  color: var(--lf-muted);
  flex-shrink: 0;
}
.lf-modal-buttons button {
  flex: 1;
  width: auto;
  margin-top: 0;
}

/* --- Scrollable text area (privacy) --- */
.lf-modal-scroll {
  max-height: 250px;
  overflow-y: auto;
  border: 1.5px solid var(--lf-border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  font-size: 0.825rem;
  color: var(--lf-muted);
  line-height: 1.6;
  background: var(--lf-bg);
  margin-bottom: 1rem;
}
.lf-modal-scroll p,
.lf-modal-scroll em,
.lf-modal-scroll strong,
.lf-modal-scroll a {
  text-align: left;
}
.lf-modal-privacy-meta {
  white-space: nowrap;
}
.lf-modal-privacy-meta strong,
.lf-modal-privacy-meta time {
  display: inline;
}

/* --- Footer (close button area) --- */
.lf-modal-footer {
  padding: 0 1.5rem 1.5rem;
}

/* --- FAQ accordion --- */
.faq-accordion { margin-top: 0; }
.faq-item {
  border: none;
  border-bottom: 1px solid var(--lf-border);
  border-radius: 0;
  overflow: visible;
  margin-bottom: 0;
  padding: 0.75rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--lf-text);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  gap: 0.5rem;
}
.faq-question .icon {
  color: var(--lf-primary);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.faq-answer {
  font-size: 0.875rem;
  color: var(--lf-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 0.25rem;
}

/* --- Messageboard items (inside modal) --- */
.msg-item {
  border-bottom: 1px solid var(--lf-border);
  padding: 0.75rem 0;
  text-align: left;
}
.msg-item:last-child { border-bottom: none; }
.msg-title {
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--lf-text);
  margin-bottom: 0.25rem;
  text-align: left;
}
.msg-preview,
.msg-full {
  font-size: 0.825rem;
  color: var(--lf-muted);
  line-height: 1.5;
  text-align: left;
}
.msg-toggle {
  font-size: 0.8rem;
  color: var(--lf-primary);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.25rem;
  text-align: left;
}
.msg-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--lf-border);
}
.msg-author {
  font-size: 0.775rem;
  color: var(--lf-primary);
  font-weight: 600;
}
.msg-ts {
  font-size: 0.775rem;
  color: var(--lf-muted);
}

/* =============================================================
   SENESTE NYT SIDEBAR CARD
   ============================================================= */

.lf-sidebar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
}
.lf-sidebar-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--lf-text);
}
.lf-sidebar-card-count {
  background: var(--lf-primary);
  color: white;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
}
.lf-msg-item {
  border-bottom: 1px solid var(--lf-border);
  padding: 0.75rem 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.lf-msg-item:hover { opacity: 0.7; }
.lf-msg-item:last-child {
  border-bottom: none;
  padding-bottom: 0.875rem;
}
.lf-msg-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--lf-text);
  margin-bottom: 0.25rem;
}
.lf-msg-preview {
  font-size: 0.8rem;
  color: var(--lf-muted);
  line-height: 1.5;
}
.lf-msg-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
}
.lf-msg-author {
  font-size: 0.75rem;
  color: var(--lf-primary);
  font-weight: 600;
}
.lf-msg-ts {
  font-size: 0.75rem;
  color: var(--lf-muted);
}
