/* Approved compact design. Scoped to the public e1 template. */
.zp-compact {
  --zp-green: #367f46;
  --zp-ink: #24352b;
  --zp-muted: #5b685f;
  --zp-soft: #f1f7f0;
  --zp-line: #dfe7dd;
  background: #fff;
  color: var(--zp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.zp-compact *,
.zp-compact *::before,
.zp-compact *::after { box-sizing: border-box; }

/* Legacy main.css sets 20px black text on every div and span. */
.zp-compact :where(p, span, ul, li, button, div) {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}

.zp-compact :where(button, input, select, textarea) { font-family: inherit; }
.zp-compact :where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--zp-green);
  outline-offset: 4px;
}

.zp-compact > .page-content { padding-top: 32px; }
.zp-compact .container,
.zp-compact .mo-directory .mo-wrapper,
.zp-compact .zp-header .zp-header__inner {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

.zp-compact .container_narrow { width: 100%; max-width: 840px; padding: 0 24px; }
.zp-compact .page-content h1 { margin: 0 0 24px; font-size: 36px; line-height: 1.2; color: var(--zp-ink); }
.zp-compact .page-content h2 { margin: 0 0 20px; font-size: 28px; line-height: 1.25; color: var(--zp-ink); }
.zp-compact .page-content h3 { font-size: 20px; line-height: 1.35; }
.zp-compact .page-content p { margin-top: 0; margin-bottom: 16px; }
.zp-compact .page-content a { color: var(--zp-green); text-underline-offset: 3px; }
.zp-compact .page-content a:hover { color: #245f32; }
.zp-compact .h-section-margin { margin-bottom: 40px; }
.zp-compact .h-padding { padding-top: 40px; padding-bottom: 40px; }
.zp-compact .page-content .big-title { margin: 0 0 24px; text-align: left; }
.zp-compact #map-anchor { scroll-margin-top: 24px; }

.zp-compact .zp-header { --zp-header-green: var(--zp-green); }
.zp-compact .zp-header .zp-header__top { padding: 16px 0; }
.zp-compact .zp-header .zp-header__link { min-height: 48px; padding-top: 13px; padding-bottom: 13px; }

.zp-compact .page-content .btn,
.zp-compact .page-content .zp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--zp-green);
  border-radius: 8px;
  background: var(--zp-green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: none;
}
.zp-compact .page-content .btn:hover,
.zp-compact .page-content .zp-button:hover { background: #286736; color: #fff; }
.zp-compact .page-content .zp-button--outline { background: #fff; color: var(--zp-green); }
.zp-compact .page-content .zp-button--outline:hover { background: var(--zp-soft); color: #245f32; }

.zp-compact .zp-home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}
.zp-home-intro__copy { min-width: 0; }
.zp-compact .zp-home-intro h1 { margin-bottom: 16px; letter-spacing: -.6px; }
.zp-compact .zp-home-intro p { color: var(--zp-muted); font-size: 17px; line-height: 1.5; }
.zp-compact .zp-home-intro .zp-home-intro__lead { font-size: 19px; font-weight: 600; }
.zp-home-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.zp-home-intro__about { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 16px; }
.zp-home-intro__photo { display: block; width: 100%; height: 300px; object-fit: cover; border-radius: 8px; }

.zp-compact .zp-advice { margin-bottom: 40px; }
.zp-advice__inner { padding: 24px; border-radius: 10px; background: var(--zp-soft); }
.zp-advice__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.zp-advice__card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--zp-line);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}
.zp-advice__icon { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; color: var(--zp-green); }
.zp-advice__copy { flex: 1; min-width: 0; }
.zp-compact .zp-advice h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.zp-compact .zp-advice h3 a { color: var(--zp-ink); text-decoration: none; }
.zp-compact .zp-advice h3 a:hover { color: var(--zp-green); text-decoration: underline; }
.zp-compact .zp-advice p { margin: 0 0 4px; color: var(--zp-muted); font-size: 15px; line-height: 1.5; }
.zp-advice__more { display: inline-flex; align-items: center; min-height: 28px; font-size: 15px; }
.zp-compact .zp-advice .zp-advice__phone { font-size: 17px; font-weight: 600; color: var(--zp-ink); text-decoration: none; }

.zp-compact .mo-directory { margin-bottom: 40px; scroll-margin-top: 24px; }
.zp-compact .mo-directory p { margin: 0; }
.zp-compact .mo-directory__intro { margin-bottom: 16px; }
.zp-compact .mo-directory__intro h2 { margin-bottom: 0; }
.zp-compact .mo-directory .mo-button_primary,
.zp-compact .mo-directory .mo-switch__button[aria-pressed="true"],
.zp-compact .mo-directory .mo-radio:has(input:checked) { background: var(--zp-green); border-color: var(--zp-green); color: #fff; }
.zp-compact .mo-directory .mo-button_primary:hover { background: #286736; }
.zp-compact .mo-directory .mo-item { border-color: var(--zp-line); }
.zp-compact .mo-directory .mo-item__title { color: var(--zp-ink); font-size: 18px; }
.zp-compact .mo-directory .mo-item__address { color: var(--zp-muted); }
.zp-compact .mo-directory .mo-item__tag { background: var(--zp-soft); }
.zp-compact .mo-directory .mo-load-more { margin-top: 16px; }
.zp-compact .mo-directory .mo-list__item .mo-action { color: var(--zp-green); }

.zp-compact .zp-infections { margin-bottom: 32px; }
.zp-infections__inner { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--zp-line); }
.zp-compact .zp-infections h2 { margin-bottom: 6px; font-size: 25px; }
.zp-compact .zp-infections p { margin: 0; color: var(--zp-muted); font-size: 16px; }
.zp-infections__inner > a { flex-shrink: 0; font-size: 16px; padding: 10px 0; }

.zp-compact .partner__container { gap: 24px; }
.zp-compact .partner__container > .partner { padding: 20px; border: 1px solid var(--zp-line); border-radius: 8px; }
.zp-compact .partner__container .partner__logo { max-width: 240px; height: 110px; margin-bottom: 16px; padding: 0; object-fit: contain; object-position: center; }
.zp-compact .partner__container .partner__name { min-height: 0; padding: 0; margin: 0 0 16px; font-size: 18px; line-height: 1.4; }
.zp-compact .partner__container .partner__name::after { display: none; }
.zp-compact .partner__container .btn { margin-top: auto; }
.zp-compact .help-intro p { max-width: 880px; }
.zp-compact .help-related { gap: 12px 24px; margin-top: 20px; font-size: 16px; }
.zp-compact .to-top { background: var(--zp-green); box-shadow: none; }
.zp-compact .page-content .wow { visibility: visible !important; animation: none !important; }

@media (min-width: 1000px) {
  /* Only catalogue rows: map popups retain their own layout. */
  .zp-compact .mo-directory .mo-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-rows: auto auto auto;
    gap: 4px 24px;
    padding: 16px 20px;
  }
  .zp-compact .mo-list__item .mo-item__heading { grid-column: 1; grid-row: 1; }
  .zp-compact .mo-list__item .mo-item__address { grid-column: 1; grid-row: 2; }
  .zp-compact .mo-list__item .mo-item__tags { grid-column: 1; grid-row: 3; }
  .zp-compact .mo-list__item .mo-item__details { grid-column: 2; grid-row: 1 / span 2; }
  .zp-compact .mo-list__item .mo-item__details summary { margin-left: auto; font-size: 14px; }
  .zp-compact .mo-list__item .mo-item__actions,
  .zp-compact .mo-list__item .mo-item__coordinate-note { grid-column: 2; grid-row: 3; align-self: end; border: 0; padding: 0; margin: 0; font-size: 13px; }
  .zp-compact .mo-list__item .mo-item__actions { justify-content: flex-end; gap: 20px; }
  .zp-compact .mo-list__item .mo-item__details[open] { grid-column: 1 / -1; grid-row: 4; padding-top: 8px; border-top: 1px solid var(--zp-line); }
  .zp-compact .mo-list__item .mo-item__details[open] summary { margin-left: 0; }
  .zp-compact .mo-directory .mo-list__item .mo-item__details[open] .mo-item__body { max-width: 850px; padding-bottom: 0; }
}

@media (max-width: 900px) {
  .zp-compact .zp-home-intro { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 24px; }
  .zp-compact .zp-home-intro h1 { font-size: 32px; }
  .zp-home-intro__photo { height: 300px; }
  .zp-advice__card { gap: 12px; padding: 16px; }
  .zp-advice__icon { width: 36px; height: 36px; flex-basis: 36px; }
}

@media (max-width: 760px) {
  .zp-compact { font-size: 17px; }
  .zp-compact > .page-content { padding-top: 24px; }
  .zp-compact .container,
  .zp-compact .container_narrow,
  .zp-compact .mo-directory .mo-wrapper,
  .zp-compact .zp-header .zp-header__inner { padding-right: 20px; padding-left: 20px; }
  .zp-compact .zp-header .zp-header__top { padding: 16px 0; }
  .zp-compact .page-content h1 { font-size: 30px; margin-bottom: 20px; }
  .zp-compact .page-content h2 { font-size: 25px; margin-bottom: 16px; }
  .zp-compact .zp-home-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .zp-compact .zp-home-intro h1 { font-size: 30px; }
  .zp-compact .zp-home-intro .zp-home-intro__lead { font-size: 18px; }
  .zp-home-intro__photo { height: auto; max-height: 240px; aspect-ratio: 951 / 600; }
  .zp-home-intro__actions { gap: 10px; }
  .zp-compact .zp-home-intro__actions .zp-button { flex: 1 1 220px; }
  .zp-compact .zp-advice,
  .zp-compact .zp-home-intro,
  .zp-compact .mo-directory,
  .zp-compact .h-section-margin { margin-bottom: 32px; }
  .zp-advice__inner { padding: 20px; }
  .zp-advice__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .zp-advice__more { min-height: 36px; }
  .zp-infections__inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .zp-compact .partner__container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .zp-compact .partner__container > .partner { padding: 16px; }
}

@media (max-width: 480px) {
  .zp-compact .container,
  .zp-compact .container_narrow,
  .zp-compact .mo-directory .mo-wrapper,
  .zp-compact .zp-header .zp-header__inner { padding-right: 16px; padding-left: 16px; }
  .zp-compact .zp-header .zp-header__phones--mobile { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
  .zp-advice__inner { padding: 16px; }
  .zp-advice__card { padding: 14px; }
  .zp-compact .partner__container { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .zp-compact .wow { visibility: visible !important; animation: none !important; }
  .zp-compact .to-top { transition: none; }
}
