/* Scoped extension of the existing MedicoMarket / Astra visual system. */
body.post-type-archive-mm_przekazanie,
body.single-mm_przekazanie { background-color: #fff; }
body.post-type-archive-mm_przekazanie #content,
body.single-mm_przekazanie #content { background-color: #fff; }
.mm-przekazania {
    --mm-ink: #0f172a;
    --mm-text: #454f5e;
    --mm-blue: #12698e;
    --mm-pale: #eef8fc;
    --mm-line: #d4e1e8;
    color: var(--mm-ink);
    font-family: Lato, sans-serif;
    width: 100%;
    min-width: 0;
}
body.post-type-archive-mm_przekazanie #primary.mm-przekazania,
body.single-mm_przekazanie #primary.mm-przekazania {
    margin: 0;
    padding: 0 0 72px;
    width: 100%;
    float: none;
    border: 0;
}
.mm-przekazania *, .mm-przekazania *::before, .mm-przekazania *::after { box-sizing: border-box; }
.mm-przekazania ::selection { color: var(--mm-ink); background: #c3e7f6; }
.mm-przekazania a { color: var(--mm-blue); text-underline-offset: .23em; }
.mm-przekazania a:focus-visible { outline: 3px solid var(--mm-blue); outline-offset: 5px; }
.mm-przekazania h1, .mm-przekazania h2 { font-family: Poppins, sans-serif; color: var(--mm-ink); text-wrap: balance; }
.mm-przekazania h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; margin: 0 0 22px; }
.mm-page-intro { padding: 64px 0 38px; max-width: 820px; }
.mm-page-intro p { color: var(--mm-text); font-size: 20px; line-height: 1.65; max-width: 65ch; margin: 0; }
.mm-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.mm-stories--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#primary.mm-przekazania .mm-story { min-width: 0; width: auto; max-width: none; background: none; margin: 0; padding: 0; border: 0; }
.mm-story-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #f3f6f8; overflow: hidden; border-radius: 12px; }
.mm-story-photo img { display: block; width: 100%; height: 100%; object-fit: contain; background-color: transparent; }
.mm-przekazania img[style*="--dominant-color"] { background-color: transparent; }
.mm-stories--two .mm-story-photo { aspect-ratio: 4 / 5; }
.mm-story-copy { padding: 22px 0 0; }
.mm-przekazania .mm-story h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.35; margin: 0 0 12px; }
.mm-story h2 a { color: var(--mm-ink); text-decoration: none; }
.mm-story h2 a:hover { color: var(--mm-blue); text-decoration: underline; }
.mm-story-copy > p { font-size: 17px; line-height: 1.65; color: var(--mm-text); margin: 0 0 16px; }
.mm-story-copy .mm-story-location { color: #294556; font-size: 15px; margin: 0 0 8px; }
.mm-story-link { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.5; font-weight: 700; min-height: 44px; text-decoration: underline; }
.mm-story-link svg { flex-shrink: 0; transition: transform .18s ease-out; }
.mm-story-link:hover svg { transform: translateX(3px); }
.mm-contact-strip { background: var(--mm-pale); display: flex; gap: 32px; align-items: center; justify-content: space-between; margin-top: 68px; padding: 36px 40px; }
.mm-przekazania .mm-contact-strip h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.35; margin: 0 0 12px; max-width: 32ch; }
.mm-contact-strip p { margin: 0; color: #294556; font-size: 17px; line-height: 1.65; max-width: 58ch; }
.mm-przekazania .mm-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 48px; background: var(--mm-blue); color: #fff; padding: 14px 22px; font-size: 16px; font-weight: 700; text-align: center; border-radius: 6px; text-decoration: none; line-height: 1.4; }
.mm-przekazania .mm-button:hover { color: #fff; background: #0c526f; }
.mm-przekazania .mm-button:focus-visible { outline-offset: 4px; }
.mm-breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding-top: 30px; color: #526474; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.mm-breadcrumbs a { color: #294556; }
.mm-detail-heading { padding: 34px 0 30px; }
.mm-detail-heading h1 { max-width: 24ch; }
.mm-detail-meta { margin: 0; color: #526474; font-size: 15px; font-variant-numeric: tabular-nums; }
.mm-detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.mm-detail-photo { margin: 0; min-width: 0; }
.mm-detail-photo img { display: block; width: 100%; height: auto; max-height: 760px; object-fit: contain; background: #f3f6f8; border-radius: 12px; }
.mm-detail-photo figcaption { font-size: 14px; line-height: 1.6; color: #526474; margin-top: 12px; }
.mm-detail-copy { padding-top: 4px; min-width: 0; }
.mm-entry-content { color: var(--mm-text); font-size: 19px; line-height: 1.8; max-width: 70ch; overflow-wrap: anywhere; }
.mm-entry-content > :first-child { margin-top: 0; }
.mm-entry-content p { margin: 0 0 22px; }
.mm-entry-content img { max-width: 100%; height: auto; }
.mm-entry-content h2 { font-size: 25px; line-height: 1.35; margin: 36px 0 16px; }
.mm-model { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--mm-line); }
.mm-przekazania .mm-model h2 { font-size: 20px; margin: 0 0 8px; }
.mm-editorial-credit { color: #526474; font-size: 14px; margin: 32px 0 14px; }
.mm-stories-empty { padding: 48px 0; }
.mm-stories-empty h2 { font-size: 26px; }
.mm-photo-empty { color: #526474; padding: 24px; text-align: center; }
.mm-przekazania .navigation.pagination { margin-top: 40px; font-size: 18px; }
@media (max-width: 900px) {
    .mm-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-detail-layout { gap: 30px; }
    .mm-contact-strip { padding: 30px; align-items: flex-start; flex-direction: column; gap: 24px; }
}
@media (max-width: 600px) {
    .mm-page-intro { padding: 38px 0 28px; }
    .mm-page-intro p { font-size: 18px; }
    .mm-przekazania h1 { margin-bottom: 18px; }
    .mm-stories, .mm-stories--two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .mm-story-photo, .mm-stories--two .mm-story-photo { aspect-ratio: 4 / 5; }
    .mm-story-copy { padding-top: 18px; }
    .mm-contact-strip { margin-top: 44px; padding: 26px 22px; }
    .mm-contact-strip .mm-button { width: 100%; }
    .mm-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .mm-detail-heading { padding: 25px 0; }
    .mm-detail-photo img { max-height: none; }
    .mm-entry-content { font-size: 18px; line-height: 1.75; }
    .mm-breadcrumbs { padding-top: 22px; font-size: 13px; gap: 6px 9px; }
    body.post-type-archive-mm_przekazanie #primary.mm-przekazania,
    body.single-mm_przekazanie #primary.mm-przekazania { padding-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) { .mm-story-link svg { transition: none; } .mm-story-link:hover svg { transform: none; } }
