/* ASK-ME — a11y/perf (WCAG AA contrast + footer credit). */

/* Hero light-card contrast (mobile homepage) — przeniesione z askme-hero-contrast.css */
@media (max-width: 720px) {
  html body.page-id-35 .ah-hero-inner { color: #071f38 !important; }
  html body.page-id-35 .ah-btn.askme-short-contact,
  html body.page-id-35 .ah-btn.secondary {
    color: #071f38 !important;
    background: #ffffff !important;
    border: 2px solid #071f38 !important;
    box-shadow: none !important;
  }
  html body.page-id-35 .ah-hero-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }
  html body.page-id-35 .ah-hero-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(7, 31, 56, 0.28) !important;
    border-radius: 12px !important;
    background: rgba(7, 31, 56, 0.06) !important;
    color: #071f38 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
  }
  html body.page-id-35 .ah-hero-links .ah-link-arrow { color: #071f38 !important; }
}

/* Kontrast AA: tagi / eyebrow / etykiety meta / notatki */
.funding-page .tag,
.funding-page [class*="tag"] {
  color: #5c3d9e !important;
}

.ap-eyebrow {
  color: #0b5fad !important;
}

.ap-note {
  color: #5a6478 !important;
}

/* Etykiety meta na kartach szkoleń (#747e95 / #747f8e) */
.nt-meta,
.nt-label,
.askme-meta-label,
[class*="meta-label"],
.nt-kicker,
.card-meta span,
.nt-facts span:first-child,
.nt-block .label {
  color: #5a6478 !important;
}

/* Zielone akcenty poniżej AA (#168b5a) */
.askme-badge-ok,
[style*="#168b5a"] {
  /* inline naprawiane w treści; klasa zapasowa */
}

/* Stopka — jedna linia credit, WCAG AA (>=4.5:1 na białym) */
footer .askme-footer-credit,
footer .askme-footer-credit a,
.wp-block-template-part .askme-footer-credit,
.wp-block-template-part .askme-footer-credit a,
p.askme-footer-credit,
p.askme-footer-credit a {
  color: #10284a !important;
  opacity: 1 !important;
}

footer .askme-footer-credit a,
.wp-block-template-part .askme-footer-credit a,
p.askme-footer-credit a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

footer .askme-footer-credit a:hover,
footer .askme-footer-credit a:focus-visible,
p.askme-footer-credit a:hover,
p.askme-footer-credit a:focus-visible {
  color: #0b5fad !important;
}

/* Podziękowanie — styl h1 jak dawne h2 */
.askme-nl-thanks h1 {
  font: 600 clamp(28px, 5vw, 42px) / 1.15 Georgia, serif;
  color: #153b32;
  margin: 24px 0 20px;
}

.askme-nl-thanks .nl-lead {
  font: 600 clamp(22px, 3.5vw, 30px) / 1.25 Georgia, serif;
  color: #153b32;
  margin: 0 0 16px;
}


/* Dodatkowe eyebrow / meta poniżej AA (po pierwszym przebiegu axe) */
.cy-eyebrow { color: #0b5fad !important; }
.oc-eyebrow { color: #b42318 !important; }
.et-eye { color: #0f6e48 !important; }
.gb-eye { color: #0f6e48 !important; }
.so-eye { color: #1a5c5a !important; }
.md-eyebrow { color: #0f6e48 !important; }
.care-eyebrow { color: #0f6e48 !important; }
.vm-eyebrow { color: #9d174d !important; }
.vm-icon { color: #b42318 !important; }

/* Meta etykiety (warianty #747d90 / #6f8285) */
.oc-facts span:first-child,
.md-facts span:first-child,
.cy-facts span:first-child,
.so-facts span:first-child,
.et-facts span:first-child,
.gb-facts span:first-child,
.care-facts span:first-child,
.vm-facts span:first-child {
  color: #5a6478 !important;
}

/* MIC-431: site logo in header — constrain tall mark; title beside on desktop */
.wp-block-site-logo img.custom-logo,
header .custom-logo {
  width: auto !important;
  height: 56px !important;
  max-height: 56px !important;
  object-fit: contain !important;
}
header .wp-block-site-title a {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .wp-block-site-logo img.custom-logo,
  header .custom-logo {
    height: 48px !important;
    max-height: 48px !important;
  }
  /* Logo already includes “Ask-Me / SZKOLENIA AI” — hide duplicate title on narrow viewports */
  header .wp-block-site-title {
    display: none !important;
  }
}
