/* WEBKON: dopiski do global.css (CSS z eksportu Claude Design). Tu trafia wyłącznie to, czego w oryginale
   dostarczał runtime (przełączanie widoków, image-slot, style-focus) oraz stany sterowane z site.js. */

[hidden] { display: none !important; }

/* Link „Przejdź do treści”: w oryginale atrybut style-focus="top:12px" */
.wk-skip:focus { top: 12px !important; }

/* Nagłówek: widoki zależne od szerokości okna (w oryginale isDesktop >= 1260 px, isWide >= 640 px) */
@media (max-width: 1259.98px) {
  .wk-only-desktop { display: none !important; }
}
@media (min-width: 1260px) {
  .wk-only-narrow { display: none !important; }
  #menu-mobilne { display: none !important; }
}
@media (max-width: 639.98px) {
  .wk-only-wide { display: none !important; }
}

/* Przycisk Menu: ikona zamknięcia tylko przy otwartym menu */
[aria-expanded="false"] > .wk-ico-close, [aria-expanded="true"] > .wk-ico-open { display: none !important; }

/* FAQ na stronie głównej: w oryginale pytania miały 1rem (na pozostałych stronach <summary> dziedziczy rozmiar z body) */
.wk-faq-home .wk-det summary { font-size: 1rem; }

/* Zdjęcia: zwykłe <img> w miejscu dawnego <image-slot> (object-fit: cover, środek kadru) */
.wk-fill, .wk-slot-img { object-fit: cover; object-position: center; max-width: none; }
.wk-slot-img { display: block; position: relative; width: 100%; height: 100%; aspect-ratio: 3 / 2; }
img.wk-fill.wk-in-flow { position: relative !important; inset: auto; width: 100% !important; height: 100% !important; aspect-ratio: 3 / 2; display: block; }
.wk-tile.photo > .wk-slot-img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; z-index: 0; }
.wk-photo > .wk-slot-img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }

/* Podpis „Photo by … on Unsplash” w lewym dolnym rogu zdjęcia */
.wk-credit {
  position: absolute !important; left: 6px; bottom: 6px; z-index: 2; max-width: calc(100% - 12px);
  display: block; padding: 3px 7px; border-radius: 5px; background: rgba(0, 0, 0, .55); color: #fff;
  font: 10px/1.2 system-ui, -apple-system, sans-serif; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.wk-credit a { color: inherit; text-decoration: none; }
.wk-credit a:hover, .wk-credit a:focus-visible { text-decoration: underline; }
@media print { .wk-credit { display: none; } }

/* Pusty slot na zdjęcie (miejsce na portret, dopóki nie ma pliku) */
.wk-ph {
  display: block; position: relative; width: 100%; height: 100%; aspect-ratio: 3 / 2; box-sizing: border-box;
  border-radius: 50%; overflow: hidden; font: 13px/1.3 system-ui, -apple-system, sans-serif;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%231f2a33' stroke-opacity='.45' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center calc(50% - 23px) / 28px no-repeat,
    linear-gradient(rgba(127, 127, 127, .08), rgba(127, 127, 127, .08));
}
.wk-ph::before { content: ""; position: absolute; inset: 0; border: 1.5px dashed currentColor; border-radius: inherit; opacity: .35; pointer-events: none; }
.wk-ph::after {
  content: attr(data-caption); position: absolute; inset: 0; box-sizing: border-box; padding: 55px calc(12px + 3.9%) 12px;
  text-align: center; font-weight: 500; letter-spacing: .01em; opacity: .75; display: flex; align-items: flex-start; justify-content: center;
}
