/* Readable type and stronger contrast, preserving CERBER's cream/gold palette. */
:root {
  --ink: #242c24;
  --muted: #3f493f;
  --readable-link: #573f16;
  --readable-accent: #755b25;
}

body { color: var(--ink); }
a:hover { color: var(--readable-link); }
.article-content p,
.intro-prose,
.review-list blockquote,
.warsaw-support .article-body p,
.district-lead,
.district-location-note,
.dropdown-label,
.depth-toggle { color: var(--muted); }

.article-content a:not(.button):not(.qbutton),
.header a:hover,
.header nav summary:hover,
.header nav summary.has-current,
.header nav > details[open] > summary,
.header nav > a[aria-current="page"],
.header .dropdown a:hover,
.header .dropdown a[aria-current="page"],
.header .district-menu > summary:hover,
.header .district-menu[open] > summary,
.header .offices-dropdown .all-offices-link,
.district-faq details[open] summary { color: var(--readable-link); }

.article-content a:not(.button):not(.qbutton):not(.text-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.text-link { border-bottom-color: var(--readable-accent); border-bottom-width: 2px; }
.outline, .menu-toggle { border-color: #72796c; }
.nav-expand, .district-guide svg { color: var(--readable-accent); }
.service-icon { stroke: var(--readable-accent); }
.author-bio .author_icon { color: var(--readable-accent); }
.inner-page .article-body strong, .inner-page .article-body b { color: var(--ink); }

.family-section, .district-contact, footer { color: #fffdf5; }
.family-grid p:not(.eyebrow),
.district-contact .duty-heading p,
.district-contact > p:not(.district-phone),
.district-contact .duty-details p,
.district-contact .duty-details span,
.footer-main p,
.footer-main h3,
.footer-bottom { color: #eeeade; }
.family-grid .eyebrow,
.family-grid .text-link,
.warsaw-parallax .eyebrow,
.brainbox-credit strong { color: #f5e4b7; }
.family-grid .text-link { border-color: #f5e4b7; }
.warsaw-parallax {
  background-image: linear-gradient(#14221be6, #14221be6), url('/assets/zdjecia-cerber/cerber-kwiaty-kolo-02-1448.webp');
}
.home-page .home-hero-gallery figcaption,
.home-page .hero-photo-main figcaption {
  background: #17271fe8;
  color: #fff;
}
#lightbox-tip { color: #e6e9df; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--readable-link);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #faf9f5;
}

@media (max-width: 800px) {
  :root {
    --reading-size: 1.125rem;
    --control-size: 1.0625rem;
    --label-size: .9375rem;
  }
  body { font-size:var(--reading-size); line-height: 1.7; }

  /* ID scope wins over the older page-specific 9-16px declarations. */
  #main .article-body,
  #main .intro-prose,
  #main :is(p, li, blockquote, address, dt, dd, td, th),
  #main .district-checklist > div,
  #main .district-faq details > div {
    font-size:var(--reading-size);
    line-height: 1.7;
  }
  #main :is(p, li, blockquote, address, dd) {
    overflow-wrap: break-word;
  }
  #main .eyebrow,
  #main .hero-note,
  #main .landing-address,
  #main .district-location-note,
  #main .district-map-note,
  #main .district-editorial,
  #main .article-meta,
  #main .glsr-review-date,
  #main figcaption,
  #main .full-review time,
  #main .services-index span,
  #main .office-card dt,
  #main .district-office-details dt,
  #main .city-contact-map > p,
  #main .duty-heading strong,
  #main .duty-details span {
    font-size:var(--label-size);
    line-height: 1.6;
  }
  #main .eyebrow { font-weight: 600; letter-spacing: .07em; }
  #main cite { font-size:var(--control-size); line-height: 1.6; }
  #main .office-card .office-note { min-height: 0; }
  #main .district-office .office-note { min-height: 0; }
  #main .office-card dd a[href^="tel:"],
  #main .district-office-details dd a[href^="tel:"] {
    font-size:1.375rem;
    font-weight: 600;
    line-height: 1.4;
  }
  #main .office-card dd a[href^="mailto:"],
  #main .district-office-details dd a[href^="mailto:"] { overflow-wrap: anywhere; }
  #main .district-contact .district-phone { font-size:clamp(1.875rem, 8vw, 2.25rem); line-height: 1.3; }

  #main .button,
  #main .qbutton,
  #main .text-link,
  #main .map-interaction,
  #main .depth-toggle {
    min-height: 48px;
    max-width: 100%;
    min-width: 0;
    font-size:var(--control-size);
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
  }
  #main .text-link { align-content: center; }
  #main .button, #main .qbutton { padding: 13px 18px; }
  #main .text-link:not(.button) { text-decoration: none; }
  #main summary { min-height: 48px; font-size:var(--reading-size); line-height: 1.5; }
  #main .breadcrumbs, #main .breadcrumbs a { font-size:var(--label-size); line-height: 1.5; letter-spacing: 0; }
  #main .service-shortcuts,
  #main .warsaw-jump-links a,
  #main .district-shortcuts a,
  #main .local-links a { font-size:var(--control-size); line-height: 1.6; }
  #main .guidance-links small { font-size:var(--control-size); line-height: 1.6; }
  #main .home-hero-gallery { margin-bottom: 54px; }
  #main .depth-toggle { bottom: -52px; }

  .header .menu-toggle { min-height: 48px; font-size:1.125rem; gap: 10px; }
  .header nav a,
  .header nav summary,
  .header nav > .nav-placeholder,
  .header .office-menu-list > li > a,
  .header .district-menu > summary,
  .header .district-panel .warsaw-office-link,
  .header .district-menu-list a,
  .header .offices-dropdown .all-offices-link {
    font-size:1.125rem;
    min-height: 48px;
    line-height: 1.5;
  }
  .header .dropdown-label,
  .header .district-panel .dropdown-label,
  .header .warsaw-office-link span,
  .header-phone small { font-size:var(--label-size); line-height: 1.5; }

  .footer-award .home-award-copy .eyebrow {
    font-size:max(14px, var(--label-size));
    font-weight: 600;
    letter-spacing: .07em;
  }
  .footer-award .home-award-copy > p:last-child { font-size:max(14px, var(--reading-size)); line-height: 1.7; }
  .footer-award .text-link {
    font-size:max(14px, var(--control-size));
    min-height: 48px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
  }

  .footer-main > div { min-width: 0; }
  .footer-main p,
  .footer-main .footer-qr p,
  .footer-main h3,
  .footer-bottom,
  .brainbox-credit strong { font-size:max(14px, var(--label-size)); line-height: 1.65; }
  .footer-main a { font-size:max(14px, var(--control-size)); line-height: 1.55; }
  .footer-main .text-link { font-size:max(14px, var(--control-size)); text-transform: none; letter-spacing: 0; }
  .footer-main .footer-phone { font-size:max(14px, 2.125rem); }
  .footer-links a { min-height: 44px; display: flex; align-items: center; }
  .brainbox-credit { white-space: normal; }
  #lightbox-title, #lightbox .lightbox-caption { font-size:var(--control-size); }
  #lightbox-tip { font-size:var(--label-size); }
}

@media (max-width: 640px) {
  footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .mobile-call {
    gap: 12px;
    min-height: 68px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    font-size:.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: #242c24;
    border-top: 1px solid #755b25;
  }
  .mobile-call span { max-width: 10em; }
  .mobile-call strong { font-size:1.375rem; font-weight: 600; white-space: nowrap; }
  #main .city-contact .office-card dl,
  #main .district-office-details { grid-template-columns: minmax(0,1fr); }
}
