:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #60706b;
  --line: #d9e1dd;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --brand: #176b5a;
  --brand-dark: #0f4d42;
  --accent: #d65f35;
  --blue: #286b94;
  --green: #1f9b69;
  --orange: #d58922;
  --red: #b64d3e;
  --shadow: 0 20px 45px rgba(23, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 20px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 0.9rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.48);
}

.nav-links a:hover {
  border-color: var(--line);
  background: white;
  color: var(--brand-dark);
}

.nav-links a[href="beheer.html"] {
  border-color: rgba(214, 95, 53, 0.24);
  background: rgba(214, 95, 53, 0.1);
  color: var(--accent);
}

.nav-links a[href="beheer.html"]:hover {
  border-color: rgba(214, 95, 53, 0.42);
  background: rgba(214, 95, 53, 0.16);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - 72px);
  padding: clamp(80px, 12vw, 150px) 24px 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media::after,
.hero-media img {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  min-height: 100%;
  min-width: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.03);
  transform-origin: center;
}

.hero-media::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 28, 25, 0.88), rgba(13, 28, 25, 0.52) 48%, rgba(13, 28, 25, 0.18)),
    linear-gradient(0deg, rgba(13, 28, 25, 0.52), rgba(13, 28, 25, 0.04) 42%);
}

.hero-content {
  width: min(780px, 100%);
  max-width: 1180px;
  margin: 0 auto;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffc47f;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions,
.filters,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.6fr) auto;
  gap: 12px;
  align-items: end;
  max-width: 860px;
  margin-top: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-search label {
  color: var(--ink);
}

.standalone-search {
  background: var(--panel);
}

.hero-search .button {
  min-height: 50px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.hero-stats span {
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  padding-left: 12px;
}

.hero-stats span:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-stats strong {
  display: block;
  color: white;
  font-size: 1.35rem;
}

.button,
.filter-button,
.cms-tab {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.primary:hover {
  background: var(--brand-dark);
}

.secondary {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.filter-button {
  background: #e9eee9;
  color: var(--muted);
}

.filter-button.is-active {
  background: var(--ink);
  color: white;
}

.painters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card,
.service-card,
.results-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.step-card {
  padding: 22px;
}

.step-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.step-card h3 {
  margin-top: 16px;
}

.step-card p {
  color: var(--muted);
  line-height: 1.6;
}

.service-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.service-card {
  min-height: 96px;
  padding: 14px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.service-card:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.services-section--showcase.section {
  padding-top: clamp(52px, 7vw, 72px);
  padding-bottom: clamp(60px, 8vw, 88px);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(23, 107, 90, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(247, 245, 239, 0.4) 0%, var(--paper) 55%);
}

.services-showcase {
  width: 100%;
  padding: clamp(22px, 3.5vw, 34px) clamp(18px, 3vw, 28px);
  border-radius: 20px;
  border: 1px solid rgba(217, 225, 221, 0.95);
  background: linear-gradient(168deg, #ffffff 0%, #f4faf7 55%, #fbfbf9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 26px 60px rgba(23, 35, 31, 0.09);
}

.services-showcase-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto clamp(22px, 3vw, 30px);
}

.services-showcase-head .eyebrow {
  color: var(--brand);
  letter-spacing: 0.1em;
}

.services-showcase-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.42rem, 2.6vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.services-showcase-dek {
  margin: 12px 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--muted);
}

.service-grid--showcase {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.services-section--showcase .service-card {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.services-section--showcase .service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(23, 107, 90, 0.14);
}

.services-section--showcase .service-card:focus-visible {
  outline: 3px solid rgba(23, 107, 90, 0.35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .services-section--showcase .service-card {
    transition: none;
  }

  .services-section--showcase .service-card:hover {
    transform: none;
  }
}

.results-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.map-section {
  padding-top: 42px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.netherlands-map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbfb 0%, #eef7f4 100%);
  box-shadow: var(--shadow);
}

.netherlands-map .leaflet-control-attribution {
  font-size: 0.7rem;
}

.availability-map-icon {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.map-pin {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(31, 155, 105, 0.18);
}

.availability-map-icon strong {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 18px rgba(18, 53, 48, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.map-pin.status-orange {
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(237, 142, 54, 0.2);
}

.map-pin.status-red {
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(214, 82, 68, 0.18);
}

.map-legend {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.map-legend h3 {
  margin: 0;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}

.map-legend .status-dot {
  flex: 0 0 auto;
}

.results-sidebar {
  display: grid;
  gap: 16px;
  padding: 20px;
  position: sticky;
  top: 92px;
}

.results-sidebar .filters {
  display: grid;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.results-list {
  grid-template-columns: 1fr;
}

.compact-results-section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.compact-results-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-results-list .painter-card {
  min-height: 0;
}

.compact-results-list .card-top {
  display: grid;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.painter-card,
.panel,
.cms-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.painter-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.nickname {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf2ef;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.status-orange .status-dot {
  background: var(--orange);
}

.status-red .status-dot {
  background: var(--red);
}

/* Legenda: .status-dot komt later in het bestand en won anders van .legend-* */
.map-legend .status-dot.legend-orange {
  background: var(--orange);
}

.map-legend .status-dot.legend-red {
  background: var(--red);
}

.meta-list {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.45;
}

.meta-list strong {
  color: var(--ink);
}

.card-actions {
  margin-top: auto;
}

.painter-card .nickname-text h3 {
  margin: 0;
  line-height: 1.2;
}

.painter-card .card-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.painter-rating-wrap {
  margin: -6px 0 14px;
}

.painter-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf7 0%, #fff8e8 100%);
  font-size: 0.88rem;
  color: var(--ink);
}

.painter-rating--empty {
  background: linear-gradient(180deg, #fafbfa 0%, #f3f6f4 100%);
  opacity: 0.92;
}

.painter-rating .rating-stars {
  display: inline-flex;
  gap: 2px;
  letter-spacing: 0.02em;
  font-size: 1rem;
  line-height: 1;
  color: #c4a035;
}

.painter-rating--empty .rating-stars {
  color: #c9cfcb;
}

.painter-rating .star--full {
  color: #e2a61a;
  text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.painter-rating .rating-meta {
  font-weight: 600;
  color: var(--muted);
}

.painter-rating .rating-meta strong {
  color: var(--ink);
  font-weight: 800;
}

.experience-panel {
  margin-top: 22px;
}

.experience-panel .section-copy {
  margin-top: 0;
}

.experience-pending-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.experience-pending-list h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.experience-pending-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.88rem;
  color: var(--muted);
}

.experience-pending-item strong {
  color: var(--ink);
}

.experience-stars-inline {
  color: #c4a035;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cms-panel .exp-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cms-panel .exp-status--pending {
  background: #fff4d6;
  color: #8a5a00;
}

.cms-panel .exp-status--approved {
  background: #e6f5ec;
  color: #1f6b45;
}

.cms-panel .exp-status--rejected {
  background: #fdecec;
  color: #9a2f2f;
}

.experience-edit-row td {
  padding: 0 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8faf9 0%, #f0f3f1 100%);
  vertical-align: top;
}

.experience-edit-panel {
  margin: 10px 0 4px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  max-width: 720px;
}

.experience-edit-panel .eyebrow {
  margin-bottom: 10px;
}

.experience-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.experience-cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.painter-card .meta-list--painter {
  gap: 0;
  margin: 2px 0 20px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.painter-card .meta-list--painter .meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.painter-card .meta-list--painter .meta-row:last-child {
  border-bottom: 0;
}

@media (min-width: 420px) {
  .painter-card .meta-list--painter .meta-row {
    grid-template-columns: minmax(110px, 32%) minmax(0, 1fr);
    gap: 10px 16px;
    align-items: start;
  }
}

.painter-card .meta-list--painter dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}

.painter-card .meta-list--painter dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.painter-card .meta-date-primary {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
}

.painter-card .meta-specialty {
  font-weight: 600;
  color: var(--ink);
}

.painter-card .meta-availability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.painter-card .availability-chip {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 6px 16px rgba(18, 53, 48, 0.07);
}

.painter-card .availability-chip--date {
  border-left: 3px solid var(--green);
}

.painter-card .availability-chip--week {
  border-left: 3px solid var(--orange);
}

.painter-card .availability-chip--plain {
  border-left: 3px solid var(--line);
}

.painter-card .availability-chip .chip-kind {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.painter-card .availability-chip strong {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.painter-card .availability-chip .chip-hint {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.painter-card .availability-empty {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  font-style: italic;
}

.painter-card .card-actions .card-contact-button {
  width: 100%;
  justify-content: center;
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 20px;
  align-items: start;
}

.workspace-section {
  max-width: 1180px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: start;
}

.workspace-main,
.member-dashboard,
.contact-panel,
.experience-panel,
.cms-layout,
.cms-content,
.cms-panel {
  min-width: 0;
}

.workspace-main {
  display: grid;
  gap: 20px;
}

.signup-section {
  max-width: 900px;
}

.panel {
  padding: 26px;
}

.panel p {
  color: var(--muted);
  line-height: 1.65;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.field-hint.is-ok {
  color: var(--green);
}

.field-hint.is-error {
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(23, 107, 90, 0.13);
}

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

.notice {
  margin-top: 16px;
  border-radius: 8px;
  background: #eaf4ef;
  color: var(--brand-dark);
  padding: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.notice.error {
  background: #f8e9e5;
  color: var(--red);
}

.region-hint p {
  margin: 0 0 12px;
  font-weight: 600;
}

.region-hint p:last-child {
  margin-bottom: 0;
}

.region-hint a {
  color: var(--brand-dark);
  text-decoration: underline;
  font-weight: 800;
}

.region-hint-status {
  color: var(--muted);
  font-weight: 700;
}

.region-hint-peers {
  font-size: 0.92rem;
}

#messageTo optgroup[data-status="green"] {
  color: var(--green);
}

#messageTo optgroup[data-status="orange"] {
  color: var(--orange);
}

#messageTo optgroup[data-status="red"] {
  color: var(--red);
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.member-profile-private {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.88);
}

.member-profile-private-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.member-profile-private-lead {
  margin: 0 0 14px;
}

.member-profile-private > label {
  margin-bottom: 12px;
}

.member-profile-private input[readonly] {
  background: rgba(96, 112, 107, 0.1);
  color: var(--muted);
  cursor: default;
}

.member-password-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.member-password-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--brand-dark);
  user-select: none;
}

.member-password-details[open] summary {
  margin-bottom: 8px;
}

.member-inbox {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.inbox-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.inbox-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 14px;
}

.inbox-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.inbox-item em {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.inbox-item p {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.reply-button {
  margin-top: 12px;
}

.empty-state.compact {
  min-height: 120px;
}

.cms-section {
  padding-top: 42px;
}

.admin-page h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.admin-page {
  min-height: calc(100svh - 120px);
}

body.admin-locked .admin-shell,
body.admin-unlocked #adminLockBrand,
body.admin-unlocked #adminLoginPanel {
  display: none !important;
}

body.admin-unlocked .admin-shell {
  display: revert;
}

body.admin-unlocked header.admin-shell {
  display: block;
}

body.admin-unlocked .cms-layout {
  display: grid;
}

.admin-lock-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.admin-login {
  margin: 0 auto;
}

.section-copy {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.explainer-hero {
  padding-top: 92px;
  padding-bottom: 42px;
}

.explainer-hero h1 {
  color: var(--ink);
}

.explainer-hero--splash {
  position: relative;
  padding-top: clamp(52px, 7vw, 84px);
  padding-bottom: clamp(36px, 5vw, 56px);
  margin-bottom: 8px;
  background:
    radial-gradient(1100px 500px at 4% -12%, rgba(23, 107, 90, 0.18), transparent 58%),
    radial-gradient(760px 400px at 100% -4%, rgba(214, 95, 53, 0.11), transparent 52%),
    linear-gradient(168deg, #e4f0eb 0%, var(--paper) 48%, var(--paper) 100%);
}

.explainer-hero-surface {
  max-width: 820px;
  padding: clamp(22px, 4vw, 36px) clamp(22px, 4vw, 40px);
  border-radius: 18px;
  border: 1px solid rgba(217, 225, 221, 0.95);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(251, 252, 250, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 28px 70px rgba(23, 35, 31, 0.1);
}

.explainer-hero--splash .eyebrow {
  color: var(--brand);
  letter-spacing: 0.1em;
}

.explainer-hero--splash h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.05rem, 4.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.uitleg-hero-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--muted);
  font-weight: 600;
}

.uitleg-hero-highlights {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.uitleg-hero-highlights li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(251, 252, 250, 0.9);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.uitleg-hero-highlights strong {
  color: var(--ink);
  font-weight: 800;
}

.uitleg-highlight-icon {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--brand);
  font-weight: 900;
}

.uitleg-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.explainer-hero--splash .hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: rgba(23, 107, 90, 0.1);
  border: 1px solid rgba(23, 107, 90, 0.22);
}

.uitleg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.explainer-hero--splash .hero-search {
  margin-top: 18px;
}

.explainer-hero--splash .hero-search + .uitleg-hero-actions {
  margin-top: 16px;
}

.page-uitleg .explainer-card {
  border-radius: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.page-uitleg .explainer-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 107, 90, 0.28);
  box-shadow: 0 22px 50px rgba(23, 35, 31, 0.14);
}

.explainer-section {
  padding-top: 28px;
}

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.explainer-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.explainer-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.explainer-card h2 {
  margin-top: 16px;
  font-size: 1.3rem;
}

.explainer-card p {
  color: var(--muted);
  line-height: 1.65;
}

.role-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.role-columns .panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.role-columns .panel .button {
  margin-top: auto;
  align-self: flex-start;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.demo-logins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.demo-logins div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 16px;
}

.demo-logins code {
  display: block;
  margin-top: 8px;
  color: var(--ink);
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-login {
  max-width: 560px;
}

.cms-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.cms-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.cms-tab {
  width: 100%;
  min-height: 44px;
  text-align: left;
  background: #e9eee9;
  color: var(--muted);
}

.cms-tab.is-active {
  background: var(--brand);
  color: white;
}

.cms-tab--with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cms-tab-pending-badge {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a4a 0%, #e45722 100%);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(228, 87, 34, 0.45);
  animation: cms-tab-badge-pop 2.2s ease-in-out infinite;
}

.cms-tab--with-badge.is-active .cms-tab-pending-badge {
  background: linear-gradient(180deg, #ffffff 0%, #ffe8dc 100%);
  color: #c43d0a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@keyframes cms-tab-badge-pop {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.cms-content {
  min-height: 360px;
  padding: 18px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.cms-card-list {
  display: grid;
  gap: 16px;
}

.cms-person-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.cms-person-card--pending {
  border-color: rgba(237, 142, 54, 0.38);
  background: linear-gradient(180deg, #fffdf8 0%, #fbfcfb 100%);
}

.cms-person-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cms-person-head h3 {
  margin: 4px 0 4px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.cms-person-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.cms-person-kicker {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-person-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.cms-person-grid section {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cms-person-grid h4 {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.cms-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cms-detail-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cms-detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cms-person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cms-mail-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.cms-mail-boxes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.cms-mail-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.cms-mail-box span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-mail-box strong {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef4f1;
  color: var(--brand-dark);
  font-size: 0.78rem;
}

.cms-mail-box.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.cms-mail-box.is-active strong {
  background: white;
}

.cms-mail-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.cms-mail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cms-mail-head h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.cms-mail-head-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.cms-mail-head time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cms-mail-folder {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf2ef;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.cms-mail-type {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-mail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cms-mail-meta div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cms-mail-meta span,
.cms-mail-body span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cms-mail-meta strong,
.cms-mail-meta em {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.cms-mail-meta strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.cms-mail-meta em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 700;
}

.cms-mail-body {
  padding: 14px;
  border-radius: 8px;
  background: #f4f7f5;
}

.cms-mail-body p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cms-mail-move {
  display: grid;
  gap: 7px;
  max-width: 260px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.cms-mail-move select {
  min-height: 42px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.table td {
  color: var(--ink);
  font-size: 0.92rem;
}

.small-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.small-button.approve {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.small-button.danger {
  color: var(--red);
}

.settings-panel {
  max-width: none;
}

.mail-settings-page {
  display: grid;
  gap: 20px;
  max-width: 920px;
}

.mail-settings-header h2 {
  margin: 0 0 8px;
}

.mail-settings-header .section-copy {
  margin: 0;
}

.mail-check-card,
.mail-settings-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(23, 35, 31, 0.06);
}

.mail-check-card {
  border-color: #9fcfc0;
  background: linear-gradient(165deg, #f3faf7 0%, #fff 48%);
}

.mail-check-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.mail-step-badge {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.mail-step-badge--muted {
  background: #e8eeeb;
  color: var(--brand-dark);
}

.mail-check-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.mail-check-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.mail-check-form-block {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 107, 90, 0.12);
}

.mail-check-field {
  display: grid;
  gap: 6px;
}

.mail-check-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mail-check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mail-check-run {
  min-width: min(100%, 220px);
  font-size: 1rem;
  padding: 13px 24px;
}

.mail-upload-steps {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f8f7;
  border: 1px dashed var(--line);
}

.mail-upload-steps summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-dark);
  list-style: none;
}

.mail-upload-steps summary::-webkit-details-marker {
  display: none;
}

.mail-upload-steps summary::after {
  content: " ▾";
  font-size: 0.85em;
}

.mail-upload-steps[open] summary::after {
  content: " ▴";
}

.mail-check-steps {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mail-check-steps code {
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: #eef4f1;
}

.mail-settings-form {
  margin-top: 4px;
}

.mail-settings-form-footer {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mail-settings-notice {
  margin-top: 14px;
}

.mail-server-setup {
  margin-bottom: 20px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 2px solid var(--brand, #176b5a);
  background: linear-gradient(180deg, #f0faf7 0%, #fff 100%);
}

.mail-server-setup h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--brand-dark);
}

.mail-server-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mail-server-setup-actions .mail-setup-primary,
.mail-server-setup-actions .button.primary {
  font-size: 1rem;
  padding: 14px 20px;
}

.mail-config-fallback {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  border: 1px solid var(--border, #d4e5df);
  border-radius: 8px;
  background: #f6faf8;
  resize: vertical;
}

.cms-panel .mail-check-card .notice.error {
  margin-bottom: 14px;
}

.checkbox-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  box-shadow: 0 -8px 24px rgba(23, 35, 31, 0.04);
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer-row--main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 0 20px;
  align-items: start;
}

.site-footer-row--extras {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px 32px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.site-footer-pwa {
  min-width: 0;
}

.site-footer-pwa-caption {
  margin: 0 0 10px;
  font-size: 0.83rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--muted);
}

.site-footer-pwa-ios {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--muted);
}

.site-footer-pwa-btn {
  margin-top: 2px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.83rem;
  border-radius: 8px;
}

.site-footer-contact {
  min-width: 0;
}

.site-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-dark);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 245, 239, 0.65);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
  color: var(--brand);
  border-color: rgba(23, 107, 90, 0.35);
  background: rgba(23, 107, 90, 0.07);
}

.site-footer-social a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.site-footer-block--brand {
  min-width: 0;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 8px;
}

.site-footer-brand .brand-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 0.84rem;
}

.site-footer-name {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-footer-lead {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.48;
  font-weight: 600;
  color: var(--muted);
}

.site-footer-heading {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.8;
}

.site-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer-nav a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 2px 10px;
  margin-left: -10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-dark);
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  color: var(--brand);
  background: rgba(23, 107, 90, 0.08);
}

.site-footer-nav a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.site-footer-meta p {
  margin: 0 0 8px;
  font-size: 0.83rem;
  line-height: 1.45;
  font-weight: 600;
}

.site-footer-meta p:last-child {
  margin-bottom: 0;
}

.site-footer-copy {
  margin-top: 4px !important;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
}

@media (min-width: 921px) {
  .site-footer-row--main > .site-footer-nav,
  .site-footer-row--main > .site-footer-meta {
    padding-left: 22px;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 920px) {
  .section-heading,
  .split-section,
  .workspace-layout,
  .results-layout,
  .map-layout,
  .cms-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .workspace-layout {
    gap: 18px;
  }

  .contact-panel {
    order: 2;
  }

  .experience-panel {
    margin-top: 18px;
  }

  .dashboard-head {
    align-items: center;
  }

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

  .compact-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid,
  .explainer-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-sidebar {
    position: static;
  }

  .cms-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cms-tab {
    text-align: center;
  }

  .cms-person-grid {
    grid-template-columns: 1fr;
  }

  .cms-mail-meta {
    grid-template-columns: 1fr;
  }

  .cms-mail-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table {
    min-width: 760px;
  }

  .site-footer-inner {
    padding: 20px 18px 22px;
  }

  .site-footer-row--main {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }

  .site-footer-row--main > .site-footer-nav,
  .site-footer-row--main > .site-footer-meta {
    padding-left: 0;
    border-left: none;
  }

  .site-footer-row--extras {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer-pwa,
  .site-footer-contact {
    max-width: none;
  }

  .site-footer-nav a {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 780px;
    padding: 96px 18px 44px;
  }

  .section {
    padding: 56px 18px;
  }

  .workspace-section,
  .cms-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .painters-grid,
  .compact-results-list,
  .steps-grid,
  .service-grid,
  .explainer-grid,
  .role-columns,
  .demo-logins,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .service-grid--showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }

  .member-profile-private {
    padding: 14px;
    border-radius: 8px;
  }

  .dashboard-head {
    display: grid;
    gap: 12px;
  }

  .dashboard-head .button,
  .member-dashboard .button,
  .contact-panel .button,
  .experience-panel .button {
    width: 100%;
    justify-content: center;
  }

  .member-inbox {
    margin-top: 18px;
    padding-top: 16px;
  }

  .inbox-item,
  .experience-pending-item {
    padding: 12px;
  }

  .reply-button {
    width: 100%;
  }

  .member-password-details summary {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .cms-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cms-tab {
    min-height: 42px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.86rem;
  }

  .cms-content {
    padding: 12px;
    overflow-x: auto;
  }

  .cms-person-card {
    padding: 14px;
    gap: 14px;
  }

  .cms-mail-card {
    padding: 14px;
  }

  .cms-mail-head {
    display: grid;
    gap: 8px;
  }

  .cms-mail-head-side {
    justify-self: start;
    justify-items: start;
  }

  .cms-mail-move {
    max-width: none;
  }

  .cms-person-head {
    display: grid;
    gap: 10px;
  }

  .cms-person-head .status-pill {
    width: fit-content;
  }

  .cms-person-grid section {
    padding: 12px;
  }

  .cms-detail-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .cms-person-actions {
    justify-content: stretch;
  }

  .mail-check-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mail-check-run,
  .mail-check-actions .button {
    width: 100%;
    justify-content: center;
  }

  .mail-check-card,
  .mail-settings-card {
    padding: 18px 16px;
  }

  .cms-person-actions .small-button {
    width: 100%;
  }

  .table th,
  .table td {
    padding: 11px 9px;
    font-size: 0.86rem;
  }

  .uitleg-hero-actions {
    flex-direction: column;
  }

  .uitleg-hero-actions .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .workspace-section,
  .cms-section {
    padding-left: 8px;
    padding-right: 8px;
  }

  .panel,
  .cms-content {
    border-radius: 8px;
  }

  .cms-sidebar {
    grid-template-columns: 1fr;
  }

  .cms-mail-boxes {
    grid-template-columns: 1fr;
  }

  .cms-person-head h3 {
    font-size: 1.12rem;
  }

  .cms-detail-list dd {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-uitleg .explainer-card {
    transition: none;
  }

  .page-uitleg .explainer-card:hover {
    transform: none;
  }
}

/* Webapp / PWA install banner */
.pwa-install-slot {
  display: none;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #e8f4f0 0%, #dff0ea 100%);
  color: var(--ink);
}

.pwa-install-slot--visible {
  display: block;
}

.pwa-install-slot--ios {
  background: linear-gradient(180deg, #eef6f3 0%, #e4efea 100%);
}

.pwa-install-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 18px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pwa-install-text {
  flex: 1 1 220px;
  color: var(--ink);
}

.pwa-install-inner .button {
  flex: 0 0 auto;
}

html.emergency-pending body {
  visibility: hidden;
}

.page-vangscherm {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(23, 107, 90, 0.12), transparent 42%),
    var(--paper);
}

.vangscherm {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.vangscherm-card {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
  text-align: center;
}

.vangscherm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--brand-dark);
}

.vangscherm-message {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.vangscherm-card h1 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
}

.emergency-status {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f0f5f3;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.emergency-status.is-on {
  background: #fff4f0;
  border-color: #f0c9bc;
}

.emergency-status.is-off {
  background: #f0f5f3;
}

.page-recovery .recovery-panel {
  max-width: 560px;
  margin: 0 auto;
}

.recovery-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.recovery-tab {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.recovery-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.cms-password-reset {
  display: grid;
  gap: 10px;
}

.inline-reset-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-reset-form input {
  min-width: 160px;
  flex: 1 1 160px;
}

.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;
}

.login-recovery-details {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.login-recovery-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-dark);
}

.login-recovery-form {
  margin-top: 14px;
}

.mail-check-live,
.mail-check-summary {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8faf9;
}

.mail-check-live p:first-child,
.mail-check-summary p {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.mail-check-live.is-ok,
.mail-check-summary.is-ok {
  border-color: #b8e0ce;
  background: #f0faf4;
}

.mail-check-live.is-fail,
.mail-check-summary.is-fail {
  border-color: #f0c9bc;
  background: #fff8f5;
}

.mail-check-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mail-check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.mail-check-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.mail-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.mail-check-item.is-ok .mail-check-icon {
  background: #1f9b69;
  color: #fff;
}

.mail-check-item.is-fail .mail-check-icon {
  background: #b64d3e;
  color: #fff;
}

.mail-check-item p {
  margin: 2px 0 0;
  font-size: 0.9rem;
}
