/* Mobile overrides — scoped under .pl-mobile so they don't bleed into desktop artboards. */

.pl-mobile {
  background: var(--jfv-surface);
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--jfv-ink);
}

/* Mobile header */
.pl-m-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--jfv-bg);
  border-bottom: 1px solid var(--jfv-line);
  position: relative;
  z-index: 5;
}

.pl-m-header .pl-brand-badge {
  width: 36px;
  height: 36px;
}

.pl-m-admin-flag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--jfv-navy);
  color: white;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pl-m-admin-flag::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--jfv-sage);
}

.pl-m-hamburger {
  background: transparent;
  border: none;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--jfv-ink);
}
.pl-m-hamburger:active {
  background: var(--jfv-surface);
}

/* Mobile dropdown menu (overlay on top of content) */
.pl-m-menu {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--jfv-navy);
  color: white;
  padding: 56px 24px 20px;
  z-index: 4;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.pl-m-menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 0;
}

.pl-m-menu-link {
  font-size: 18px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  padding: 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.pl-m-menu-link.is-active {
  color: var(--jfv-sage);
}

.pl-m-menu-user {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
}

/* Page wrapper */
.pl-m-page {
  padding: 20px 16px 40px;
}

.pl-m-page-head {
  margin-bottom: 22px;
}

.pl-m-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--jfv-sage-deep);
  margin: 0 0 6px;
}

.pl-m-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--jfv-ink);
}

.pl-m-sub {
  font-size: 14px;
  color: var(--jfv-ink-3);
  margin: 0;
  line-height: 1.5;
}

/* Mobile card (general) */
.pl-m-card {
  background: var(--jfv-bg);
  border: 1px solid var(--jfv-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  padding: 16px;
  margin-bottom: 12px;
}

.pl-m-card-accent {
  position: relative;
  overflow: hidden;
}
.pl-m-card-accent::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jfv-navy) 0 50%, var(--jfv-sage) 50% 100%);
}

/* Full-width primary button */
.pl-m-btn {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  border: none;
  background: var(--jfv-navy);
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--t-fast) var(--ease-out);
}

.pl-m-btn-sage {
  background: var(--jfv-sage-deep);
}

.pl-m-btn-ghost {
  background: transparent;
  color: var(--jfv-navy-deep);
  border: 1px solid var(--jfv-line);
  box-shadow: none;
}

.pl-m-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.pl-m-btn-row .pl-m-btn { flex: 1; }

/* Mobile form — single column */
.pl-mobile .pl-field {
  margin-bottom: 14px;
}

.pl-mobile .pl-input,
.pl-mobile .pl-select,
.pl-mobile .pl-textarea {
  padding: 13px 14px;
  font-size: 16px; /* prevents iOS zoom */
}

/* Mobile section header */
.pl-m-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--jfv-line);
}

.pl-m-section-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-stencil);
  font-weight: 700;
  font-size: 12px;
}
.pl-m-section-num.is-navy { background: var(--jfv-navy); color: white; }
.pl-m-section-num.is-sage { background: var(--jfv-sage); color: var(--jfv-navy-deep); }

.pl-m-section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--jfv-ink);
}

/* Bottom sticky action bar */
.pl-m-bottombar {
  position: sticky;
  bottom: 0;
  background: var(--jfv-bg);
  border-top: 1px solid var(--jfv-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  margin: 0 -16px -40px;
  box-shadow: 0 -4px 12px rgba(14,14,16,.04);
}

/* Mobile event hero card */
.pl-m-event-hero {
  background: linear-gradient(135deg, var(--jfv-navy) 0%, var(--jfv-navy-deep) 100%);
  color: white;
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: 18px;
}

.pl-m-event-hero h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
  text-transform: none;
}

/* Mobile dienst row */
.pl-m-dienst {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pl-m-dienst .pl-date {
  width: 60px;
  padding: 8px 4px 6px;
}
.pl-m-dienst .pl-date-day { font-size: 26px; }
.pl-m-dienst .pl-date-wd { font-size: 10px; margin: -8px -4px 4px; padding: 3px 0; }
.pl-m-dienst .pl-date-mo { font-size: 10px; margin-top: 2px; }

/* Mobile admin member card */
.pl-m-mem-card {
  background: var(--jfv-bg);
  border: 1px solid var(--jfv-line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-1);
}

.pl-m-mem-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--jfv-ink);
}

.pl-m-mem-meta {
  font-size: 12px;
  color: var(--jfv-ink-3);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pl-m-mem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--jfv-ink-2);
  margin-top: 6px;
}

.pl-m-mem-row svg {
  color: var(--jfv-ink-4);
  flex-shrink: 0;
}

/* Tabs row — scrollable horizontally on mobile */
.pl-m-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--jfv-line);
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pl-m-tabs::-webkit-scrollbar { display: none; }

.pl-m-tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px 12px;
  border: none;
  background: transparent;
  color: var(--jfv-ink-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pl-m-tab.is-active {
  color: var(--jfv-navy-deep);
  border-bottom-color: var(--jfv-navy);
}

.pl-m-tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--jfv-surface);
  color: var(--jfv-ink-3);
}
.pl-m-tab.is-active .pl-m-tab-badge {
  background: var(--jfv-navy-soft);
  color: var(--jfv-navy-deep);
}

/* Mobile hero (login) — stacked, no split */
.pl-m-hero {
  background: var(--jfv-navy);
  color: white;
  padding: 24px 20px 32px;
  text-align: center;
  position: relative;
}

.pl-m-hero-badge {
  width: 120px;
  height: 120px;
  margin: 12px auto 18px;
  background: var(--jfv-sage);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}
.pl-m-hero-badge img { width: 100%; height: 100%; object-fit: contain; }

.pl-m-hero-script {
  font-family: var(--font-script);
  font-size: 44px;
  line-height: .98;
  margin: 0 0 12px;
  font-weight: 400;
}

.pl-m-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  margin: 0 0 4px;
}
