/* ==========================================================================
   EmbrioLife — moduł „Pomoc” (pomoc.css). Tylko zmienne z style.css (oba motywy).
   Ruch: tylko opacity / transform; [data-noanim] wyłącza wszystko (reguła w style.css).
   ========================================================================== */
.pm { min-width: 0; overflow-wrap: break-word; }
.pm [hidden] { display: none !important; }

/* pilna sprawa (hodowca) */
.pm-urgent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 18px; border-radius: var(--radius); background: var(--danger-soft); border: 1px solid var(--danger); color: var(--text); }
.pm-urgent__i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--danger); }
.pm-urgent__i svg { width: 20px; height: 20px; }
.pm-urgent > div { min-width: 0; }
.pm-urgent p { margin: 4px 0 10px; }
.pm-call { white-space: normal; text-align: left; max-width: 100%; }
.pm-tel { font-weight: 800; color: var(--brand); white-space: nowrap; }

/* wyszukiwarka i narzędzia */
.pm-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.pm-search { flex: 1 1 260px; }
.pm-search .input { width: 100%; }
.pm-all { flex: none; min-height: 44px; }
.pm-faq { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 6px; }
.pm-faq__l { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.pm-chip { min-height: 40px; padding: 0 14px; font-size: 14px; }
.pm-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pm-count { min-height: 22px; margin: 2px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* grupy i rozwijane tematy */
.pm-group { margin: 0 0 22px; min-width: 0; }
.pm-group__t { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin: 0 0 10px; }
.pm-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.pm-item + .pm-item { margin-top: 10px; }
.pm-item--warn { border-color: var(--danger); }
.pm-item--warn > .pm-sum::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.pm-sum { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 800; font-size: 16.5px; color: var(--text); border-radius: var(--radius); }
.pm-sum::-webkit-details-marker { display: none; }
.pm-sum::marker { content: ""; }
.pm-sum:hover { background: var(--surface-2); }
.pm-sum:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.pm-sum__t { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.pm-sum__c { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.pm-sum__c svg { width: 18px; height: 18px; }
.pm-item[open] > .pm-sum .pm-sum__c { transform: rotate(180deg); }
.pm-item[open] > .pm-sum { border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.pm-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 20px; padding: 16px 18px 18px; animation: pm-in .32s cubic-bezier(.22, 1, .36, 1) both; }
.pm-figure { padding-top: 4px; }
.pm-text { min-width: 0; font-size: 15px; line-height: 1.6; overflow-wrap: break-word; }
.pm-text > * + * { margin-top: 10px; }
.pm-text p { margin: 0; }
.pm-text a:not(.btn) { color: var(--brand); font-weight: 700; }
.pm-text .pm-call { margin-top: 12px; }
.pm-nw { white-space: nowrap; }
.pm-sub { font-weight: 800; margin-top: 14px !important; }

@keyframes pm-in { from { opacity: .6; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ilustracje SVG — kolory z motywu */
.pm-ill { display: block; width: 100%; max-width: 132px; height: auto; }
.pm-ill * { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-ill .s-brand { stroke: var(--brand); }
.pm-ill .s-info { stroke: var(--info); }
.pm-ill .s-acc { stroke: var(--accent); }
.pm-ill .s-muted { stroke: var(--border-strong); }
.pm-ill .s-danger { stroke: var(--danger); }
.pm-ill .s-on { stroke: var(--on-brand); }
.pm-ill .w3 { stroke-width: 3; }
.pm-ill .dash { stroke-dasharray: 5 4; }
.pm-ill .f-soft { fill: var(--brand-soft); }
.pm-ill .f-brand { fill: var(--brand); }
.pm-ill .f-info { fill: var(--info-soft); }
.pm-ill .f-acc { fill: var(--accent-soft); }
.pm-ill .f-surf { fill: var(--surface); }
.pm-ill .f-muted { fill: var(--border); }
.pm-ill .f-danger { fill: var(--danger); }
.pm-ill .f-ok { fill: var(--ok); }
.pm-ill .f-warn { fill: var(--accent); }
.pm-ill .f-text { fill: var(--text); }
.pm-ill text { stroke: none; font: 800 11px var(--font); }
.pm-ill .big { font-size: 22px; }
.pm-ill .t-brand { fill: var(--brand); }
.pm-ill .t-on { fill: #fff; font-size: 9px; }
.pm-ill .s-info.f-info { fill: var(--info-soft); }

/* klocki treści */
.pm-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13.5px; }
.pm-path b { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; overflow-wrap: break-word; max-width: 100%; }
.pm-path i { font-style: normal; color: var(--muted); font-weight: 800; }
.pm-steps { counter-reset: pm; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pm-steps li { counter-increment: pm; position: relative; padding-left: 40px; min-height: 28px; }
.pm-steps li::before { content: counter(pm); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 14px; }
.pm-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pm-list li::marker { color: var(--brand); }
.pm-tip { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--info-soft); font-size: 14px; line-height: 1.5; }
.pm-tip--warn { background: var(--danger-soft); }
.pm-quote { margin: 0; padding: 12px 14px; border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--brand-soft); white-space: pre-line; font-size: 14.5px; }
.pm-quote__h { display: block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-strong); margin-bottom: 4px; white-space: normal; }
.pm-go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.pm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.pm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pm-sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.pm-sw--ok { background: var(--ok); }
.pm-sw--warn { background: var(--accent); }
.pm-sw--danger { background: var(--danger); }
mark.pm-hl { background: var(--brand-soft); color: var(--brand-strong); border-radius: 3px; padding: 0 1px; box-shadow: 0 0 0 1px var(--brand); }

/* brak wyników i kontakt */
.pm-empty { text-align: center; padding: 22px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); margin-bottom: 22px; }
.pm-empty p + p { margin: 6px 0 12px; }
.pm-contact { margin-top: 6px; }
.pm-contact p { margin: 0 0 10px; }
.pm-contact a:not(.btn) { color: var(--brand); font-weight: 700; overflow-wrap: anywhere; }
.pm-contact__row .btn { white-space: normal; overflow-wrap: break-word; max-width: 100%; }

@media (max-width: 860px) {
  .pm-body { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 16px; }
  .pm-figure { display: flex; justify-content: flex-start; }
  .pm-ill { max-width: 112px; }
  .pm-sum { font-size: 16px; padding: 10px 14px; }
}
@media (max-width: 420px) {
  .pm-all { flex: 1 1 100%; }
  .pm-urgent { padding: 12px; gap: 10px; }
  .pm-call { width: 100%; justify-content: flex-start; }
}
@media print {
  .pm-tools, .pm-faq, .pm-count, .pm-urgent .btn { display: none !important; }
  .pm-body { animation: none; }
}

/* ---------- ulotka „w 5 krokach” (podgląd w aplikacji + druk A4) ---------- */
.pm-leaf { margin: 0 0 22px; padding: 18px; animation: pm-up .55s cubic-bezier(.22, 1, .36, 1) both; }
.pm-group .pm-leaf { margin-bottom: 0; }
.pm-leaf__note { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.pm-leaf__sheet { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; padding: 0 22px 18px; min-width: 0; }
.pm-leaf__band { height: 8px; margin: 0 -22px 18px; background: linear-gradient(90deg, var(--brand), var(--brand-logo) 60%, var(--brand-soft)); transform-origin: left center; animation: pm-band .8s cubic-bezier(.22, 1, .36, 1) both; }
.pm-leaf__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pm-leaf__logo img { height: 44px; }
.pm-leaf__clinic { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.45; overflow-wrap: break-word; }
.pm-leaf__clinic strong { display: block; color: var(--text); font-size: 14px; }
.pm-leaf__kick { margin: 18px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.pm-leaf__t { font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1.24; margin: 4px 0 0; color: var(--text); }
.pm-leaf__t em { font-style: normal; color: var(--brand); display: block; }
.pm-leaf__lead { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.pm-leaf__steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.pm-leaf__step { display: grid; grid-template-columns: 42px minmax(0, 1fr) 96px; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--brand-soft); animation: pm-up .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.pm-leaf__n { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 19px; }
.pm-leaf__txt { min-width: 0; overflow-wrap: break-word; }
.pm-leaf__txt h3 { font-size: 16px; font-weight: 800; line-height: 1.3; margin: 0; color: var(--text); }
.pm-leaf__txt p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.pm-leaf__step .pm-ill { max-width: 96px; }
.pm-leaf__step--alarm { background: var(--danger-soft); border-color: var(--danger); }
.pm-leaf__step--alarm .pm-leaf__n { background: var(--danger); color: var(--surface); }
.pm-leaf__step--alarm h3, .pm-leaf__step--alarm strong { color: var(--danger); }
.pm-leaf__access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 16px; align-items: center; margin: 16px 0 0; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--hero); color: var(--hero-text); }
.pm-leaf__access small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-logo); }
.pm-leaf__url { display: block; font-size: 24px; font-weight: 800; margin-top: 2px; overflow-wrap: anywhere; }
.pm-leaf__access p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; opacity: .85; }
.pm-leaf__access .pm-leaf__tip { margin: 0; border-left: 2px solid var(--brand-logo); padding-left: 12px; }
.pm-leaf__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.pm-leaf__foot strong { color: var(--text); }
.pm-leaf__contact { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pm-leaf__contact b { color: var(--brand); }
.pm-leaf__contact a { color: var(--text); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.pm-leaf__btns { margin-top: 14px; }
.pm-leaf__hint { margin-top: 8px; }
#pm-print { display: none; }

@keyframes pm-up { from { opacity: .6; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pm-band { from { transform: scaleX(.15); } to { transform: none; } }

@media (max-width: 860px) {
  .pm-leaf { padding: 14px; }
  .pm-leaf__sheet { padding: 0 14px 14px; }
  .pm-leaf__band { margin: 0 -14px 14px; }
  .pm-leaf__t { font-size: 29px; }
  .pm-leaf__step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px; align-items: start; }
  .pm-leaf__n { width: 36px; height: 36px; font-size: 16px; }
  .pm-leaf__step .pm-ill { display: none; }
  .pm-leaf__access { grid-template-columns: minmax(0, 1fr); }
  .pm-leaf__url { font-size: 20px; }
  .pm-leaf__clinic { text-align: left; }
}
@media (max-width: 420px) { .pm-leaf__btns .btn { flex: 1 1 100%; } }

/* „Drukuj”: tylko ulotka, A4, jasne kolory (zmienne jasnego motywu wymusza style.css w @media print) */
@media print {
  html[data-pm-print] body > *:not(#pm-print) { display: none !important; }
  html[data-pm-print] body { background: #fff !important; }
  html[data-pm-print] #pm-print { display: block !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #pm-print .pm-leaf__sheet { border: 0; padding: 0; border-radius: 0; }
  #pm-print .pm-leaf__band { margin: 0 0 6mm; }
  #pm-print .pm-leaf__band, #pm-print .pm-leaf__step { animation: none !important; }
  #pm-print .logo .logo__l { display: block !important; }
  #pm-print .logo .logo__d { display: none !important; }
  #pm-print .pm-leaf__t { font-size: 30pt; }
  #pm-print .pm-leaf__step { grid-template-columns: 12mm minmax(0, 1fr) 24mm; break-inside: avoid; padding: 3mm 4mm; }
  #pm-print .pm-leaf__step .pm-ill { display: block; }
  #pm-print .pm-leaf__access { grid-template-columns: minmax(0, 1fr) 62mm; background: #26262b; color: #fff; }
  #pm-print .pm-leaf__access small { color: #f3a6c8; }
}
/* 20.11 wieczór: WhatsApp obok „Zadzwoń do gabinetu” */
.pm-wa { white-space: normal; text-align: left; max-width: 100%; margin-left: 8px; }
.pm-text .pm-wa { margin-top: 12px; }
@media (max-width: 560px) { .pm-wa { width: 100%; justify-content: flex-start; margin: 8px 0 0; } }
.pm-urgent .pm-wa, .pm-text .pm-wa { display: inline-flex; }
