
/* =========================================
   ZDJĘCIA POMYŁEK I DYMKI ŹRÓDEŁ (static/js/zrodla_dymki.js)
   ========================================= */
.kw-mylka { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px 0; }
.kw-mylka:last-child { margin-bottom: 0; }
.kw-mylka + .kw-mylka { border-top: 1px dashed rgba(155, 75, 75, 0.35); padding-top: 12px; }
.kw-mylka-tekst { margin: 0; flex: 1 1 auto; min-width: 0; }
.kw-mylka-foto {
    flex: 0 0 auto; position: relative; width: 108px; height: 108px; padding: 0; margin: 2px 0 0 0;
    border: 2px solid #c9a9a0; border-radius: 8px; overflow: hidden; background: #f3e6e2;
    cursor: zoom-in; box-shadow: 0 2px 6px rgba(92, 29, 29, 0.15); transition: transform 0.15s, box-shadow 0.15s;
}
.kw-mylka-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kw-mylka-foto:not([disabled]):hover, .kw-mylka-foto:focus-visible, .kw-mylka-foto.kw-src-active {
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(92, 29, 29, 0.3); outline: none; border-color: #9b4b4b;
}
.kw-mylka-foto[disabled] { cursor: default; }
.kw-mylka-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #b98b80; font-size: 30px; }
.kw-mylka-wait .kw-mylka-ph i { animation: kwMylkaPulse 1.2s ease-in-out infinite; }
@keyframes kwMylkaPulse { 50% { opacity: 0.35; } }
.kw-mylka-i {
    position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(43, 32, 28, 0.72); color: #fff; font: italic bold 13px/20px Georgia, serif; text-align: center;
}
.kw-mylka.kw-mylka-brak .kw-mylka-foto { display: none; }
@media (max-width: 420px) {
    .kw-mylka { gap: 10px; }
    .kw-mylka-foto { width: 84px; height: 84px; }
}

/* dymek zdjęcia */
.kw-mylka-big { display: block; margin: 8px 0 6px 0; border-radius: 6px; overflow: hidden; border: 1px solid #d1c7a7; background: #ede9df; }
.kw-mylka-big img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.kw-src-meta { font-size: 14px; line-height: 1.4; display: grid; gap: 2px; overflow-wrap: anywhere; }
.kw-src-meta a { color: #2d5a27; text-decoration: underline; }
.kw-src-k { color: #8a7a58; }
.kw-mylka-note { font-size: 12.5px; color: #8a4a3a; font-style: italic; margin: 8px 0 0 0; padding-top: 6px; border-top: 1px dashed #d1c7a7; }

/* dymek źródła przepisu */
.kw-src-tip.kw-src-page-tip { width: 400px; }
.kw-src-domain { font-size: 13px; color: #7a6a58; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 2px 0 6px 0; }
.kw-src-fav { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; }
.kw-src-status {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 13.5px; line-height: 1.35; padding: 5px 9px; border-radius: 5px;
    background: #ede9df; color: #5d5446; border: 1px solid #d1c7a7;
}
.kw-src-status.kw-src-ok { background: #e9f3e6; color: #2d5a27; border-color: #b9d4b0; }
.kw-src-status.kw-src-warn { background: #fdf3dc; color: #7a5a12; border-color: #e8cf8f; }
.kw-src-status.kw-src-bad { background: #f8e3e1; color: #7a1f1f; border-color: #e2b1ab; }
.kw-src-hint { font-size: 12px; opacity: 0.8; }
.kw-src-card { margin-top: 8px; }
.kw-src-card.kw-src-dead { opacity: 0.75; filter: grayscale(0.4); }
.kw-src-frame {
    position: relative; height: 230px; margin-top: 8px; border-radius: 6px; overflow: hidden;
    border: 1px solid #d1c7a7; background: #fff;
}
.kw-src-frame iframe {
    position: absolute; left: 0; top: 0; width: 1100px; height: 700px; border: 0;
    transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
.kw-src-frame.kw-src-frame-ready iframe { opacity: 1; }
.kw-src-frame-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #7a6a58; font-style: italic; font-size: 14px; }
.kw-src-frame-ready .kw-src-frame-load { display: none; }
.kw-src-frame-cover { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.kw-src-frame-cover:hover { box-shadow: inset 0 0 0 2px #3e4a3d; }
.kw-src-dim { color: #8a7a58 !important; font-size: 13px; text-decoration: underline !important; }
/* miniatura strony (zrzut WordPress mShots) i fragment źródła w dymku */
.kw-src-shot {
    position: relative; display: block; margin-top: 8px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden;
    border: 1px solid #d1c7a7; background: #f4efe2;
}
.kw-src-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
    opacity: 0; transition: opacity 0.25s; }
.kw-src-shot.kw-src-shot-ready img { opacity: 1; }
.kw-src-shot-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
    color: #7a6a58; font-style: italic; font-size: 14px; }
.kw-src-shot-ready .kw-src-shot-load { display: none; }
.kw-src-shot:hover, .kw-src-shot:focus-visible { box-shadow: 0 0 0 2px #3e4a3d; }
.kw-src-shot-cap { position: absolute; left: 6px; bottom: 6px; background: rgba(43, 43, 43, 0.75); color: #fff;
    font-size: 12px; padding: 1px 7px; border-radius: 9px; }
.kw-src-quote { margin: 8px 0 0; padding: 6px 10px; border-left: 3px solid #c8b27a; background: #faf6ea; color: #4a4234;
    font-size: 13.5px; font-style: italic; line-height: 1.4; max-height: 7.2em; overflow: auto; overflow-wrap: anywhere; }
a[data-kw-src].kw-src-active { background-color: rgba(209, 184, 128, 0.28); border-radius: 2px; }
@media (max-width: 575.98px) {
    .kw-src-tip.kw-src-page-tip { width: auto; }
    .kw-src-frame { height: 190px; }
    .kw-src-shot { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
    .kw-mylka-foto, .kw-src-frame iframe, .kw-src-shot img { transition: none; }
    .kw-mylka-wait .kw-mylka-ph i { animation: none; }
}
html[data-theme="night"] .kw-mylka + .kw-mylka { border-top-color: rgba(209, 120, 110, 0.3); }
html[data-theme="night"] .kw-mylka-foto { border-color: #6b3a33; background: #2a1d1a; }
html[data-theme="night"] .kw-src-shot { border-color: #4a4434; background: #26231c; }
html[data-theme="night"] .kw-src-quote { background: #2a2620; color: #e3dccb; border-left-color: #8a7848; }
