/* Część 2/4 arkusza main.css (ładowana zaraz po poprzedniej; kolejność kaskady bez zmian). */
/* v2.7 search page centering and pagination check */
body.search .dwg-search,
.search .dwg-search,
.search-results .dwg-search,
.search-no-results .dwg-search {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

body.search .dwg-archive-head .dwg-search,
.search .dwg-archive-head .dwg-search,
.search-results .dwg-archive-head .dwg-search,
.search-no-results .dwg-archive-head .dwg-search {
  max-width: 560px;
  width: min(100%, 560px);
}

body.search .dwg-search input,
.search .dwg-search input,
.search-results .dwg-search input,
.search-no-results .dwg-search input {
  min-width: 0;
}

body.search .navigation.pagination,
.search .navigation.pagination,
.search-results .navigation.pagination,
.search-no-results .navigation.pagination,
body.search .dwg-pagination,
.search .dwg-pagination,
.search-results .dwg-pagination,
.search-no-results .dwg-pagination {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 34px auto 0 !important;
}

body.search .navigation.pagination .nav-links,
.search .navigation.pagination .nav-links,
.search-results .navigation.pagination .nav-links,
.search-no-results .navigation.pagination .nav-links,
body.search .dwg-pagination ul.page-numbers,
.search .dwg-pagination ul.page-numbers,
.search-results .dwg-pagination ul.page-numbers,
.search-no-results .dwg-pagination ul.page-numbers {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 640px) {
  body.search .dwg-search,
  .search .dwg-search,
  .search-results .dwg-search,
  .search-no-results .dwg-search {
    width: 100%;
    max-width: none;
  }
}

/* v2.8 light/dark theme toggle */
:root,
html[data-dwg-theme="light"] {
  color-scheme: light;
  --dwg-bg: #f6f7f8;
  --dwg-surface: #ffffff;
  --dwg-soft: #eef1f4;
  --dwg-text: #15171a;
  --dwg-muted: #66707b;
  --dwg-border: #d8dde3;
  --dwg-border-strong: #bdc5cf;
  --dwg-navy: #172236;
  --dwg-blue: #2d4f73;
  --dwg-accent: #8a5a2b;
  --dwg-header-bg: rgba(255,255,255,0.94);
  --dwg-hero-bg: linear-gradient(180deg, #fff 0%, #f3f5f7 100%);
  --dwg-input-bg: #ffffff;
  --dwg-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

html[data-dwg-theme="dark"] {
  color-scheme: dark;
  --dwg-bg: #0f1318;
  --dwg-surface: #171d24;
  --dwg-soft: #212a34;
  --dwg-text: #edf1f5;
  --dwg-muted: #a7b0bb;
  --dwg-border: #303a46;
  --dwg-border-strong: #465260;
  --dwg-navy: #dce7f4;
  --dwg-blue: #8db6df;
  --dwg-accent: #d4a56f;
  --dwg-header-bg: rgba(18,23,30,0.94);
  --dwg-hero-bg: linear-gradient(180deg, #171d24 0%, #111720 100%);
  --dwg-input-bg: #10161d;
  --dwg-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

html[data-dwg-theme="dark"] body.dwg-site,
html[data-dwg-theme="dark"] .dwg-main {
  background: var(--dwg-bg);
  color: var(--dwg-text);
}

.dwg-header {
  background: var(--dwg-header-bg);
}

.dwg-home-hero,
.dwg-archive-head {
  background: var(--dwg-hero-bg);
}

.dwg-menu .sub-menu,
.dwg-menu-toggle,
.dwg-method article,
.dwg-source-note,
.dwg-card,
.dwg-featured,
.dwg-sidebar-block,
.dwg-comments,
.dwg-comment,
.dwg-author-box,
.dwg-post-footer,
.dwg-related,
.dwg-page,
.dwg-search input,
.dwg-header-search input,
.page-numbers,
.dwg-social-link,
.dwg-theme-toggle {
  background-color: var(--dwg-surface);
  color: var(--dwg-text);
}

.dwg-search input,
.dwg-header-search input {
  border-color: var(--dwg-border);
}

.dwg-theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dwg-border-strong);
  border-radius: 999px;
  padding: 0;
  color: var(--dwg-navy);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.dwg-theme-toggle:hover,
.dwg-theme-toggle:focus-visible {
  border-color: var(--dwg-navy);
  background: var(--dwg-navy);
  color: var(--dwg-bg);
  transform: translateY(-1px);
  outline: none;
}

.dwg-theme-toggle__icon {
  display: none;
  line-height: 0;
}

html[data-dwg-theme="light"] .dwg-theme-toggle__icon--moon,
html[data-dwg-theme="dark"] .dwg-theme-toggle__icon--sun {
  display: inline-flex;
}

html[data-dwg-theme="dark"] .dwg-social-link:hover,
html[data-dwg-theme="dark"] .dwg-social-link:focus-visible,
html[data-dwg-theme="dark"] .dwg-header-search button,
html[data-dwg-theme="dark"] .dwg-search button,
html[data-dwg-theme="dark"] .dwg-label--type,
html[data-dwg-theme="dark"] .page-numbers.current {
  background: var(--dwg-navy);
  color: var(--dwg-bg);
  border-color: var(--dwg-navy);
}

html[data-dwg-theme="dark"] .dwg-hero-note,
html[data-dwg-theme="dark"] .dwg-footer {
  background: #0b1118;
  color: var(--dwg-text);
}

html[data-dwg-theme="dark"] .dwg-footer p,
html[data-dwg-theme="dark"] .dwg-footer-menu a,
html[data-dwg-theme="dark"] .dwg-footer__bottom,
html[data-dwg-theme="dark"] .dwg-hero-note ol {
  color: rgba(237,241,245,0.72);
}

html[data-dwg-theme="dark"] .dwg-nav {
  background: var(--dwg-header-bg);
}

/* v2.9 dark theme contrast fixes */
html[data-dwg-theme="dark"] .dwg-pagination .page-numbers li .page-numbers,
html[data-dwg-theme="dark"] .navigation.pagination .nav-links .page-numbers {
  background: #171d24;
  color: #edf1f5;
  border-color: #4b5968;
}

html[data-dwg-theme="dark"] .dwg-pagination .page-numbers li a.page-numbers:hover,
html[data-dwg-theme="dark"] .dwg-pagination .page-numbers li a.page-numbers:focus-visible,
html[data-dwg-theme="dark"] .navigation.pagination .nav-links a.page-numbers:hover,
html[data-dwg-theme="dark"] .navigation.pagination .nav-links a.page-numbers:focus-visible {
  background: #dce7f4;
  color: #0f1318;
  border-color: #dce7f4;
  outline: none;
}

html[data-dwg-theme="dark"] .dwg-pagination .page-numbers li span.page-numbers.current,
html[data-dwg-theme="dark"] .navigation.pagination .nav-links span.page-numbers.current,
html[data-dwg-theme="dark"] .page-numbers.current {
  background: #d4a56f;
  color: #0f1318;
  border-color: #d4a56f;
}


html[data-dwg-theme="dark"] .comment-form textarea,
html[data-dwg-theme="dark"] .comment-form-comment textarea,
html[data-dwg-theme="dark"] .comment-form input[type="text"],
html[data-dwg-theme="dark"] .comment-form input[type="email"],
html[data-dwg-theme="dark"] .comment-form input[type="url"] {
  background: #10161d;
  color: #edf1f5;
  border-color: #4b5968;
  caret-color: #edf1f5;
}

html[data-dwg-theme="dark"] .comment-form textarea::placeholder,
html[data-dwg-theme="dark"] .comment-form-comment textarea::placeholder,
html[data-dwg-theme="dark"] .comment-form input[type="text"]::placeholder,
html[data-dwg-theme="dark"] .comment-form input[type="email"]::placeholder,
html[data-dwg-theme="dark"] .comment-form input[type="url"]::placeholder {
  color: #a7b0bb;
  opacity: 1;
}

html[data-dwg-theme="dark"] .comment-form textarea:focus,
html[data-dwg-theme="dark"] .comment-form-comment textarea:focus,
html[data-dwg-theme="dark"] .comment-form input[type="text"]:focus,
html[data-dwg-theme="dark"] .comment-form input[type="email"]:focus,
html[data-dwg-theme="dark"] .comment-form input[type="url"]:focus {
  border-color: #d4a56f;
  outline: 2px solid rgba(212, 165, 111, 0.32);
  outline-offset: 2px;
}

html[data-dwg-theme="dark"] .comment-form input[type="submit"] {
  background: #d4a56f;
  color: #0f1318;
  border: 1px solid #d4a56f;
  box-shadow: 0 10px 24px rgba(212, 165, 111, 0.22);
}

html[data-dwg-theme="dark"] .comment-body {
  background: #10161d;
  color: #edf1f5;
  border-color: #4b5968;
}

html[data-dwg-theme="dark"] .comment-form input[type="submit"]:hover,
html[data-dwg-theme="dark"] .comment-form input[type="submit"]:focus-visible {
  background: #f0c58d;
  color: #0b1118;
  border-color: #f0c58d;
  outline: none;
}

html[data-dwg-theme="dark"] .wpcf7-form input[type="text"],
html[data-dwg-theme="dark"] .wpcf7-form input[type="email"],
html[data-dwg-theme="dark"] .wpcf7-form input[type="tel"],
html[data-dwg-theme="dark"] .wpcf7-form input[type="url"],
html[data-dwg-theme="dark"] .wpcf7-form input[type="number"],
html[data-dwg-theme="dark"] .wpcf7-form input[type="date"],
html[data-dwg-theme="dark"] .wpcf7-form textarea,
html[data-dwg-theme="dark"] .wpcf7-form select {
  background: #10161d;
  color: #edf1f5;
  border-color: #4b5968;
  caret-color: #edf1f5;
}

html[data-dwg-theme="dark"] .wpcf7-form input::placeholder,
html[data-dwg-theme="dark"] .wpcf7-form textarea::placeholder {
  color: #a7b0bb;
  opacity: 1;
}

html[data-dwg-theme="dark"] .wpcf7-form input[type="text"]:focus,
html[data-dwg-theme="dark"] .wpcf7-form input[type="email"]:focus,
html[data-dwg-theme="dark"] .wpcf7-form input[type="tel"]:focus,
html[data-dwg-theme="dark"] .wpcf7-form input[type="url"]:focus,
html[data-dwg-theme="dark"] .wpcf7-form input[type="number"]:focus,
html[data-dwg-theme="dark"] .wpcf7-form input[type="date"]:focus,
html[data-dwg-theme="dark"] .wpcf7-form textarea:focus,
html[data-dwg-theme="dark"] .wpcf7-form select:focus {
  border-color: #d4a56f;
  outline: 2px solid rgba(212, 165, 111, 0.32);
  outline-offset: 2px;
}

html[data-dwg-theme="dark"] .wpcf7-form input[type="submit"],
html[data-dwg-theme="dark"] .wpcf7-form .wpcf7-submit {
  background: #d4a56f;
  color: #0f1318;
  border: 1px solid #d4a56f;
  box-shadow: 0 10px 24px rgba(212, 165, 111, 0.22);
}

html[data-dwg-theme="dark"] .wpcf7-form input[type="submit"]:hover,
html[data-dwg-theme="dark"] .wpcf7-form .wpcf7-submit:hover {
  background: #f0c58d;
  color: #0b1118;
  border-color: #f0c58d;
}

html[data-dwg-theme="dark"] .wpcf7-response-output {
  border-color: #4b5968;
  color: #edf1f5;
}

@media (max-width: 980px) {
  .dwg-theme-toggle,
  .dwg-social-link {
    width: 36px;
    height: 36px;
  }

  .dwg-mobile-social .dwg-theme-toggle,
  .dwg-mobile-social .dwg-social-link {
    width: 42px;
    height: 42px;
  }
}


/* v2.10 mobile theme toggle placement and open-menu icon */
.dwg-header-theme-toggle {
  display: none;
}

.dwg-menu-toggle__close {
  display: none !important;
}

.dwg-menu-toggle[aria-expanded="true"] .dwg-menu-toggle__bar {
  display: none !important;
}

.dwg-menu-toggle[aria-expanded="true"] .dwg-menu-toggle__close {
  display: block !important;
}

@media (max-width: 980px) {
  .dwg-header-theme-toggle {
    display: inline-flex;
    order: 1;
  }

  .dwg-menu-toggle {
    order: 2;
  }

  .dwg-mobile-social .dwg-theme-toggle {
    display: none;
  }
}


.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 0.15em;
    flex-shrink: 0;
}

.comment-form-cookies-consent label {
    font-size: 0.8125rem;
    line-height: 1.35;
    margin: 0;
}
/* v2.11 transparent tag and page content backgrounds */
.dwg-tags,
.dwg-tags a,
.dwg-post-footer,
.dwg-label,
.dwg-label--type,
.tag .dwg-archive-head,
.page .dwg-page,
.page .dwg-content,
.page .dwg-content--page {
  background: transparent !important;
  background-color: transparent !important;
}

.dwg-label,
.dwg-label--type {
  border-color: transparent !important;
  box-shadow: none !important;
}

.dwg-tags a {
  box-shadow: none !important;
}

.tag .dwg-archive-head {
  border-bottom-color: transparent !important;
}

.single-post .entry-content h3,
.single-post .post-content h3,
.single-post .dwg-content h3,
.single-post .wp-block-post-content h3 {
  font-style: italic;
}
/* v2.13 LAP cards: image fading into the content area */
.dwg-card--lap .dwg-card__body {
  min-height: 210px;
}

.dwg-card--lap.dwg-card--text-only {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 10 / 9;
  align-self: start;
}

.dwg-card--lap.dwg-card--text-only .dwg-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px;
}

.dwg-card--lap .dwg-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.14;
  min-height: 0;
  -webkit-line-clamp: 4;
}

.dwg-card--lap .dwg-label {
  max-width: 100%;
  white-space: normal;
  font-size: 0.84rem;
  line-height: 1.2;
  text-align: left;
  text-transform: lowercase;
  letter-spacing: 0;
}

.dwg-card--lap .dwg-meta {
  text-transform: lowercase;
  letter-spacing: 0;
}

/* Kafelek "Podsumowanie wydarzen z wczorajszego dnia" - odwzorowuje 1:1
   wyglad karty artykulu w trybie widoku "lista" (data zamiast miniaturki
   + ten sam gradient/szerokosci/typografia), niezaleznie od aktualnie
   wybranego trybu widoku siatki .dwg-grid (grid/lista). */
.dwg-card--summary {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  min-height: 0;
}

.dwg-card--summary::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 170px;
  width: 100px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 8%, rgba(255, 255, 255, 0.68) 16%, rgba(255, 255, 255, 0.9) 22%, var(--dwg-surface) 25.93%, var(--dwg-surface) 100%);
  pointer-events: none;
}

html[data-dwg-theme="dark"] .dwg-card--summary::after {
  background: linear-gradient(to right, rgba(23, 29, 36, 0) 0%, rgba(23, 29, 36, 0.35) 10%, rgba(23, 29, 36, 0.68) 20%, rgba(23, 29, 36, 0.9) 28%, var(--dwg-surface) 33.33%, var(--dwg-surface) 100%);
}

.dwg-card--summary__date {
  position: static;
  align-self: start;
  width: 100%;
  height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 6px;
  /* Na sztywno (nie var(--dwg-navy)) - w trybie ciemnym ta zmienna
     jest odwracana na jasny kolor, a to tlo ma zawsze pozostac
     ciemnogranatowe, tak jak stopka i inne plakietki na stronie. */
  background: #212A34;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.dwg-card--summary__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.dwg-card--summary__label-line {
  font-family: "Newsreader", Georgia, serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
}

.dwg-card--summary__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 86px;
  overflow: hidden;
  padding: 8px 18px;
  background: none;
  /* Dostepna wysokosc rzadko trafia idealnie w pelna wielokrotnosc
     wysokosci wiersza, wiec zamiast twardego uciecia (ktore czasem
     odslania sam wierzcholek kolejnej linii, wygladajac jak dodatkowy
     wiersz) dolna krawedz delikatnie zanika. */
  mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent 100%);
}

/* Blok normalny (nie flex/grid), BEZ wlasnego overflow/BFC - inaczej
   przegladarka zweza SZEROKOSC calego bloku wzgledem plywajacego nav
   (float) na wszystkich liniach naraz, zamiast tylko tej, ktora z nim
   faktycznie koliduje w pionie. Obcinanie do ~3 wierszy realizuje
   stala wysokosc + overflow:hidden na .dwg-card--summary__body powyzej. */
.dwg-card--summary__row {
  display: block;
  font-size: 1.2rem;
  line-height: 1.14;
}

.dwg-card--summary__nav {
  float: right;
  display: inline-flex;
  gap: 15px;
  margin: 44px 0 0 12px;
  /* Domyslnie strefa wykluczenia dla oplywajacego tekstu obejmuje
     margin-box (czyli TAKZE margin-top), przez co margines nie tworzy
     "wolnej" przestrzeni dla wczesniejszych linii - zawezal by je
     wszystkie, nie tylko te faktycznie kolidujace z ikonami. border-box
     ogranicza te strefe do rzeczywistego pudelka ikon. */
  shape-outside: border-box;
  shape-margin: 0;
}

.dwg-card--summary__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--dwg-border-strong);
  border-radius: 999px;
  background: var(--dwg-surface);
  color: var(--dwg-navy);
  cursor: pointer;
}

.dwg-card--summary__nav-btn svg {
  width: 12px;
  height: 12px;
}

.dwg-card--summary__nav-btn:hover,
.dwg-card--summary__nav-btn:focus-visible {
  border-color: var(--dwg-navy);
  background: var(--dwg-navy);
  color: var(--dwg-bg);
  outline: none;
}

.dwg-card--summary__slide {
  color: inherit;
  text-decoration: none;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-align: left;
}

.dwg-card--summary__slide[hidden] {
  display: none;
}

.dwg-card--summary__photo-icon {
  width: 15px;
  height: 15px;
  margin: 0 4px -2px 0;
  color: var(--dwg-muted);
  flex: 0 0 auto;
}

.dwg-card--summary__slide.is-active {
  animation: dwg-summary-slide-in .45s ease;
}

@keyframes dwg-summary-slide-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dwg-card--summary__slide:hover,
.dwg-card--summary__slide:focus-visible {
  color: var(--dwg-accent);
}

@media (max-width: 640px) {
  .dwg-card--summary {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .dwg-card--summary::after {
    left: 81px;
    width: 54px;
  }

  .dwg-card--summary__date {
    height: 64px;
  }

  /* Kolumna daty jest wezsza (108px) i gradient wchodzi w nia z prawej -
     napis pomniejszony i przesuniety lekko w lewo, zeby nie wchodzil
     pod gradient. */
  .dwg-card--summary__label {
    margin-left: -12px;
  }

  .dwg-card--summary__label-line {
    font-size: 0.72rem;
  }

  .dwg-card--summary__body {
    height: 64px;
    /* Lewy padding 1px (nie 14px) - tak samo jak prawdziwe karty listy
       na mobile (.dwg-card--lap .dwg-card__body), zeby tekst zaczynal
       sie w tym samym miejscu co tytuly sasiednich kart. */
    padding: 5px 14px 5px 1px;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 10px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 10px), transparent 100%);
  }

  .dwg-card--summary__row {
    font-size: 0.92rem;
  }

  .dwg-card--summary__slide {
    font-size: 0.88rem;
    font-weight: 400;
  }

  .dwg-card--summary__nav {
    margin: 34px 0 0 10px;
    gap: 15px;
  }

  .dwg-card--summary__nav-btn {
    width: 17px;
    height: 17px;
  }

  .dwg-card--summary__nav-btn svg {
    width: 10px;
    height: 10px;
  }
}

.dwg-card--lap.dwg-card--text-only .dwg-label {
  position: static;
  align-self: center;
  max-width: 100%;
  margin: 0 0 12px;
  color: #0000FF;
  font-family: "Albert Sans", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: lowercase;
  transform: none;
}

.dwg-card--lap.dwg-card--text-only .dwg-card__title {
  position: static;
  align-self: center;
  width: 100%;
  margin: 0;
  color: var(--dwg-text);
  text-align: center;
  transform: none;
}

.dwg-card--lap.dwg-card--text-only .dwg-meta {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  width: auto;
  margin: 0;
  justify-content: space-between;
  color: var(--dwg-muted);
  font-size: 0.72rem;
}

.dwg-card--lap.dwg-card--text-only .dwg-meta time {
  margin-left: auto;
}
.dwg-card--lap:not(.dwg-card--text-only) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 50% minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  aspect-ratio: 10 / 9;
  align-self: start;
  background: var(--dwg-surface);
  isolation: isolate;
}

.dwg-card--lap:not(.dwg-card--text-only)::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 32.5% 0 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 8%, rgba(255, 255, 255, 0.68) 16%, rgba(255, 255, 255, 0.9) 22%, var(--dwg-surface) 25.93%, var(--dwg-surface) 100%);
  pointer-events: none;
}

.dwg-card--lap:not(.dwg-card--text-only) .dwg-card__image--lap {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dwg-soft);
}

.dwg-card--lap:not(.dwg-card--text-only) .dwg-card__image--lap img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.dwg-card__admin-delete {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 6;
  margin: 0;
  transform: translateX(-50%);
}

.dwg-card__admin-delete button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  color: #fff;
  background: rgba(150, 25, 35, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dwg-card__admin-delete button:hover,
.dwg-card__admin-delete button:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(190, 28, 40, 0.98);
}

.dwg-card__admin-delete button:active {
  transform: scale(0.95);
}

.dwg-card__admin-delete .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}
.dwg-card__opens {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 8px;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: #fff;
  background: rgba(13, 18, 24, 0.78);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-family: "Albert Sans", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
}

.dwg-card__opens svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dwg-card__like {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 8px;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: #fff;
  background: rgba(13, 18, 24, 0.78);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-family: "Albert Sans", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dwg-card__like:hover,
.dwg-card__like:focus-visible {
  background: rgba(25, 32, 40, 0.92);
  border-color: rgba(255, 255, 255, 0.5);
}

.dwg-card__like:active {
  transform: scale(0.96);
}

.dwg-card__like[aria-pressed="true"] {
  color: #ff6b81;
  background: rgba(46, 15, 23, 0.9);
  border-color: rgba(255, 107, 129, 0.55);
}

.dwg-card__like:disabled {
  cursor: wait;
  opacity: 0.72;
}

.dwg-card__like svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 160ms ease;
}

.dwg-card__like[aria-pressed="true"] svg {
  fill: currentColor;
}

.dwg-ranking__select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 190px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  margin: 0;
  padding: 0 26px 0 10px;
  border: 1px solid var(--dwg-border);
  border-radius: 5px;
  background: var(--dwg-soft) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 12px;
  color: var(--dwg-muted);
  font-family: "Albert Sans", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 32px;
  max-width: 100%;
}

html[data-dwg-theme="light"] .dwg-ranking__select,
:root:not([data-dwg-theme]) .dwg-ranking__select {
  color: var(--dwg-text);
}

/* Jedna wspolna siatka na caly pasek: kolumna 1 - lewa strona (H1 / Dodaj
   link), kolumna 2 - elastyczny odstep, kolumna 3 - tylko przelacznik
   widoku, kolumna 4 - kategoria/sortowanie. Dzieki wspolnym wierszom H1 i
   kategoria zawsze zaczynaja sie na tej samej wysokosci (wiersz 1), a
   "Dodaj link" i sortowanie na tej samej wysokosci (wiersz 2) - niezaleznie
   od roznic w wysokosci ich zawartosci. .dwg-ranking__left i .dwg-ranking
   sa "rozpuszczone" (display:contents), zeby ich dzieci byly bezposrednimi
   elementami tej wspolnej siatki.
 */
.dwg-ranking-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  column-gap: 12px;
  row-gap: 10px;
  align-items: start;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--dwg-border);
}

.dwg-ranking__left {
  display: contents;
}

.dwg-home-h1 {
  grid-column: 1;
  grid-row: 1;
}

.dwg-ranking__add {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  justify-self: start;
}

/* "Dodaj link" i "Dodaj zgloszenie" to dwa osobne przyciski (nie segmenty
   jednego przelacznika jak okres/sortowanie), wiec dostaja wlasny odstep i
   wlasne obwodki zamiast wspolnego, plaskiego tla .dwg-ranking__segments.
   Podwojna klasa (.dwg-ranking__add.dwg-ranking__segments / .dwg-ranking__add
   .dwg-ranking__segments a) daje wyzszy priorytet niz ogolne reguly
   .dwg-ranking__segments ponizej, wiec wygrywa niezaleznie od kolejnosci w
   pliku (ten sam problem co przy [hidden] - remis w sile selektora rozstrzyga
   kolejnosc, a tu nie chcemy na niej polegac). */
.dwg-ranking__add.dwg-ranking__segments {
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.dwg-ranking__add.dwg-ranking__segments a {
  border: 1px solid var(--dwg-border);
  border-radius: 5px;
  background: var(--dwg-soft);
}

.dwg-ranking__add.dwg-ranking__segments a:hover,
.dwg-ranking__add.dwg-ranking__segments a:focus-visible {
  border-color: var(--dwg-navy);
}

@media (min-width: 641px) {
  body.paged .dwg-ranking-wrap {
    padding-top: 0;
    border-top: 0;
  }
}

.dwg-ranking {
  display: contents;
}

.dwg-ranking__group--category {
  grid-column: 4;
  grid-row: 1;
}

.dwg-ranking > .dwg-layout-toggle {
  grid-column: 3;
  grid-row: 2;
  align-self: end;
}

.dwg-ranking__sort-row {
  grid-column: 4;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 18px;
}

.dwg-ranking__group--category .dwg-ranking__label {
  text-align: left;
}

.dwg-ranking__group--category .dwg-ranking__select {
  width: 100%;
}

.dwg-ranking__add {
  flex: 0 0 auto;
}

.dwg-ranking__add a {
  white-space: nowrap;
}

.dwg-ranking__group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dwg-ranking__label {
  color: var(--dwg-muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.dwg-ranking__segments {
  --dwg-ranking-inactive-bg: var(--dwg-soft);
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
  padding: 2px;
  border: 1px solid var(--dwg-border);
  border-radius: 7px;
  background: var(--dwg-ranking-inactive-bg);
}

.dwg-ranking__segments a,
.dwg-ranking__segments button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--dwg-muted);
  font-family: "Albert Sans", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.dwg-ranking__segments a svg {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dwg-ranking__segments a:hover,
.dwg-ranking__segments a:focus-visible,
.dwg-ranking__segments button:hover,
.dwg-ranking__segments button:focus-visible {
  color: var(--dwg-text);
}

.dwg-ranking__segments a.is-active,
.dwg-ranking__segments button.is-active {
  color: var(--dwg-surface);
  background: var(--dwg-text);
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.18);
}

.dwg-layout-toggle {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dwg-border-strong);
  border-radius: 999px;
  padding: 0;
  background: var(--dwg-surface);
  color: var(--dwg-navy);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.dwg-layout-toggle:hover,
.dwg-layout-toggle:focus-visible {
  border-color: var(--dwg-navy);
  background: var(--dwg-navy);
  color: var(--dwg-bg);
  transform: translateY(-1px);
  outline: none;
}

.dwg-layout-toggle__icon {
  display: none;
  line-height: 0;
}

html[data-dwg-lap-layout="grid"] .dwg-layout-toggle__icon--list,
html[data-dwg-lap-layout="list"] .dwg-layout-toggle__icon--grid {
  display: inline-flex;
}

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* List view swaps the magazine-style overlay card for a plain image-left/text-right row. */
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap {
    aspect-ratio: auto;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only) {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-rows: none;
    align-items: start;
    min-height: 0;
  }

  /* Same fade as the grid view's overlay, just turned to fade rightward (image into text) instead of downward. */
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only)::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 170px;
    width: 100px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 8%, rgba(255, 255, 255, 0.68) 16%, rgba(255, 255, 255, 0.9) 22%, var(--dwg-surface) 25.93%, var(--dwg-surface) 100%);
    pointer-events: none;
  }

  html[data-dwg-lap-layout="list"][data-dwg-theme="dark"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only)::after {
    background: linear-gradient(to right, rgba(23, 29, 36, 0) 0%, rgba(23, 29, 36, 0.35) 10%, rgba(23, 29, 36, 0.68) 20%, rgba(23, 29, 36, 0.9) 28%, var(--dwg-surface) 33.33%, var(--dwg-surface) 100%);
  }

  /* Fixed-size rectangular thumbnail, independent of the row's (text-driven) height. */
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only) .dwg-card__image--lap {
    position: static;
    align-self: start;
    width: 100%;
    height: 140px;
    aspect-ratio: auto;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only) .dwg-card__image--lap img {
    width: 100%;
    height: 100%;
  }

  /* Likes stays top-right (unchanged); opens moves to bottom-right of the row. */
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only) .dwg-card__opens {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 10px;
  }

  /* Same bottom-right spot when the thumbnail is missing or failed to load
     (the opens badge gets moved into the body via the img onerror handler). */
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap.dwg-card--text-only .dwg-card__opens {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 10px;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap.dwg-card--text-only {
    display: block;
    min-height: 0;
    padding: 16px 18px;
  }

  /* When at least one card in the grid has a thumbnail, missing-thumbnail cards keep the
     image column blank instead of collapsing to full width (so text doesn't jump left).
     If every card in the grid lacks a thumbnail, the block layout above is kept as-is. */
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-grid:has(.dwg-card--lap:not(.dwg-card--text-only)) .dwg-card--lap.dwg-card--text-only {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    padding: 0;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-grid:has(.dwg-card--lap:not(.dwg-card--text-only)) .dwg-card--lap.dwg-card--text-only .dwg-card__body {
    grid-column: 2;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap .dwg-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 140px;
    padding: 14px 18px;
    background: none;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap .dwg-label {
    align-self: flex-start;
    justify-self: auto;
    margin: 0 0 8px;
    text-align: left;
    transform: none;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap .dwg-card__title {
    align-self: auto;
    width: auto;
    margin: 0 0 8px;
    text-align: left;
    transform: none;
    min-height: 0;
    -webkit-line-clamp: 3;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap .dwg-meta {
    position: static;
    align-self: auto;
    width: auto;
    inset: auto;
    justify-content: flex-start;
  }

/* Same list layout on mobile, just with a smaller thumbnail matching the site's
   existing mobile row-card width, plus proportionally rescaled gradient/spacing. */
@media (max-width: 640px) {
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only),
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-grid:has(.dwg-card--lap:not(.dwg-card--text-only)) .dwg-card--lap.dwg-card--text-only {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only) .dwg-card__image--lap {
    height: 132px;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only)::after {
    left: 81px;
    width: 54px;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap .dwg-card__body {
    min-height: 132px;
    padding: 10px 14px 10px 1px;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap .dwg-card__title {
    font-size: 0.92rem;
    font-weight: 400;
    -webkit-line-clamp: 4;
  }

  /* Smaller, lighter opens/likes badges - the fixed row layout has less room for them. */
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card__opens,
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card__like {
    min-width: 30px;
    height: 20px;
    padding: 0 5px;
    gap: 3px;
    font-size: 0.6rem;
    background: rgba(13, 18, 24, 0.55);
    border-color: rgba(255, 255, 255, 0.22);
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card__opens svg,
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card__like svg {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
  }

  /* Opens badge moves next to (left of) the likes button, both at top-right,
     instead of stacking top/bottom - frees up the bottom of the row for the title. */
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap:not(.dwg-card--text-only) .dwg-card__opens,
  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap.dwg-card--text-only .dwg-card__opens {
    top: 8px;
    bottom: auto;
    left: auto;
    right: 42px;
  }

  html[data-dwg-lap-layout="list"] .dwg-articles-browser .dwg-card--lap .dwg-card__like {
    top: 8px;
    right: 8px;
  }
}

.dwg-card--lap:not(.dwg-card--text-only) .dwg-card__body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-content: flex-start;
  min-height: 0;
  padding: 0 16px 14px;
  color: var(--dwg-text);
  background: transparent;
  pointer-events: auto;
}

.dwg-card--lap:not(.dwg-card--text-only) .dwg-label {
  display: inline-flex;
  align-self: center;
  justify-self: center;
  margin-bottom: -38px;
  color: #0000FF;
  font-family: "Albert Sans", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: lowercase;
  transform: translateY(-38px);
}

.dwg-card--lap:not(.dwg-card--text-only) .dwg-card__title {
  align-self: center;
  width: 100%;
  margin: 0;
  text-align: center;
  transform: translateY(-10px);
  color: var(--dwg-text);
}

.dwg-card--lap:not(.dwg-card--text-only) .dwg-card__title a {
  color: inherit;
}

.dwg-card--lap:not(.dwg-card--text-only) .dwg-meta {
  width: 100%;
  align-self: end;
  margin: 0;
  justify-content: space-between;
  color: var(--dwg-muted);
  font-size: 0.72rem;
}

.dwg-card--lap:not(.dwg-card--text-only) .dwg-meta time {
  display: inline;
  margin-left: auto;
}

html[data-dwg-theme="dark"] .dwg-card--lap:not(.dwg-card--text-only) .dwg-label,
html[data-dwg-theme="dark"] .dwg-card--lap.dwg-card--text-only .dwg-label {
  color: #1E90FF;
}
html[data-dwg-theme="dark"] .dwg-card--lap:not(.dwg-card--text-only)::after {
  inset: 25% 0 0;
  background: linear-gradient(to bottom, rgba(23, 29, 36, 0) 0%, rgba(23, 29, 36, 0.35) 10%, rgba(23, 29, 36, 0.68) 20%, rgba(23, 29, 36, 0.9) 28%, var(--dwg-surface) 33.33%, var(--dwg-surface) 100%);
}

@media (max-width: 640px) {
  .dwg-card__opens {
    top: 8px;
    left: 8px;
    min-width: 39px;
    height: 24px;
    padding: 0 7px;
    font-size: 0.66rem;
  }

  .dwg-card__like {
    top: 8px;
    right: 8px;
    min-width: 39px;
    height: 24px;
    padding: 0 7px;
    font-size: 0.66rem;
  }

  /* Wrap collapses on mobile: "Dodaj link" and the sorting card become plain
     stacked siblings instead of one flex row, so the button can sit right
     under the H1 instead of inside the same bordered block as sorting. */
  .dwg-ranking-wrap {
    display: contents;
  }

  .dwg-ranking__left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .dwg-ranking {
    display: flex;
    position: relative;
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 58px;
    padding: 7px;
    border: 1px solid var(--dwg-border);
    border-radius: 7px;
    background: var(--dwg-soft);
  }

  /* "Dodaj link" siedzi w tym samym plywajacym wierszu co przelacznik
     widoku, pod bordowana karta kategorii/sortowania - po lewej, tak jak
     przelacznik jest po prawej. Szerokosc dopasowana do tresci (jak na
     PC), bez rozciagania na cala szerokosc. */
  .dwg-ranking > .dwg-ranking__add {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    bottom: auto;
    margin: 10px 0 0;
    background: var(--dwg-surface);
  }

  .dwg-ranking .dwg-ranking__group {
    gap: 5px;
  }

  .dwg-ranking > .dwg-ranking__group--category .dwg-ranking__label {
    text-align: center;
  }

  .dwg-ranking > .dwg-ranking__group--category .dwg-ranking__select {
    width: 100%;
    min-width: 0;
    background-color: var(--dwg-surface);
  }

  /* Odstęp między polem kategorii a wierszem sortowania. */
  .dwg-ranking__sort-row {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    margin-top: 14px;
  }

  .dwg-ranking__sort-row .dwg-ranking__group--metric .dwg-ranking__label {
    text-align: center;
  }

  .dwg-ranking__sort-row .dwg-ranking__group--period .dwg-ranking__label {
    display: none;
  }

  /* Layout toggle sits outside/below the bordered sorting box, aligned to the right. */
  .dwg-ranking > .dwg-layout-toggle {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    bottom: auto;
    margin-top: 10px;
  }

  .dwg-ranking .dwg-ranking__group .dwg-ranking__segments {
    --dwg-ranking-inactive-bg: var(--dwg-surface);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: 100%;
    padding: 2px;
    border: 0;
    background: var(--dwg-ranking-inactive-bg);
  }

  .dwg-ranking__segments a,
  .dwg-ranking__segments button {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.7rem;
  }


  .dwg-card--lap:not(.dwg-card--text-only) .dwg-card__body {
    padding: 0 14px 12px;
  }

  .dwg-card--lap:not(.dwg-card--text-only) .dwg-card__title,
  .dwg-card--lap.dwg-card--text-only .dwg-card__title {
    font-size: 1.08rem;
  }

  .dwg-card--lap.dwg-card--text-only .dwg-card__body {
    min-height: 0;
    padding: 14px;
  }

  .dwg-card--lap.dwg-card--text-only .dwg-meta {
    right: 14px;
    bottom: 12px;
    left: 14px;
  }
}
/* Text-only LAP rows use a compact rectangular card. */
.dwg-card--lap.dwg-card--text-only.dwg-card--text-row {
  aspect-ratio: 16 / 9;
}

#artykuly {
  scroll-margin-top: 50px;
}

.dwg-home-h1 {
  font-family: "Albert Sans", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--dwg-muted);
  margin: 0;
}
/* Podhale weather widget */
.dwg-weather {
  width: min(var(--dwg-container, 1200px), calc(100% - 40px));
  margin: 18px auto 0;
  color: var(--dwg-text);
}

.dwg-weather[hidden],
.dwg-weather [hidden] {
  display: none !important;
}

.dwg-weather__panel {
  overflow: hidden;
  border: 1px solid var(--dwg-border);
  border-radius: 10px;
  background: var(--dwg-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 5px 16px rgba(0, 0, 0, 0.035);
}

.dwg-weather__astro {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--dwg-border);
  background: var(--dwg-surface);
}

.dwg-weather.is-expanded .dwg-weather__astro {
  display: grid;
}

.dwg-weather__astro-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 7px;
  padding: 8px 10px;
  text-align: center;
}

.dwg-weather__astro-item + .dwg-weather__astro-item {
  border-left: 1px solid var(--dwg-border);
}

.dwg-weather__astro-item span {
  color: var(--dwg-muted);
  font-size: 0.64rem;
  line-height: 1;
}

.dwg-weather__astro-item strong {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.dwg-weather__astro-item [data-weather-moon] {
  font-size: 1rem;
  line-height: 1;
}

.dwg-weather__expand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  border-top: 1px solid var(--dwg-border);
  color: var(--dwg-muted);
  background: var(--dwg-surface);
}

.dwg-weather__expand-source {
  display: none;
}

.dwg-weather__expand-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  width: 42px;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.dwg-weather__expand-button:hover,
.dwg-weather__expand-button:focus-visible {
  color: var(--dwg-text);
  background: var(--dwg-soft);
}

.dwg-weather__expand-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.dwg-weather__expand-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.dwg-weather.is-expanded .dwg-weather__expand-icon {
  transform: translateY(2px) rotate(225deg);
}

.dwg-weather__corner-toggle {
  display: none;
}

@media (min-width: 981px) {
  .dwg-weather__expand {
    display: none;
  }

  .dwg-weather__date,
  .dwg-weather__astro-item--moon {
    position: relative;
  }

  .dwg-weather__corner-toggle {
    position: absolute;
    right: 3px;
    bottom: 3px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--dwg-border);
    border-radius: 5px;
    color: var(--dwg-muted);
    background: var(--dwg-soft);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    cursor: pointer;
  }

  .dwg-weather__corner-toggle:hover,
  .dwg-weather__corner-toggle:focus-visible {
    color: var(--dwg-text);
    background: var(--dwg-soft);
  }

  .dwg-weather__corner-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
  }

  .dwg-weather__corner-toggle--open {
    display: flex;
  }

  .dwg-weather.is-expanded .dwg-weather__corner-toggle--open {
    display: none;
  }

  .dwg-weather__corner-toggle--close {
    display: none;
  }

  .dwg-weather.is-expanded .dwg-weather__corner-toggle--close {
    display: flex;
  }

  .dwg-weather__astro-item--moon {
    padding-right: 32px;
  }
}

.dwg-weather__inner {
  display: grid;
  grid-template-columns: minmax(360px, 2.2fr) minmax(0, 3fr) minmax(145px, 0.95fr);
  min-height: 82px;
}

.dwg-weather__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 14px;
  padding: 12px 18px;
  text-align: center;
}

.dwg-weather__icon,
.dwg-weather__icon svg {
  display: block;
  width: 52px;
  height: 52px;
}

.dwg-weather__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dwg-weather__icon svg,
.dwg-weather-day__icon svg {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.08));
}

.dwg-weather__main-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.dwg-weather__place {
  margin-bottom: 4px;
  color: var(--dwg-muted);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.dwg-weather__main-text strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.15;
}

.dwg-weather__source {
  margin-top: 4px;
  color: var(--dwg-muted);
  font-size: 0.48rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.55;
}

.dwg-weather__source:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.dwg-weather__temperature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  text-align: center;
}

.dwg-weather__temperature span,
.dwg-weather__item-label,
.dwg-weather__date-number {
  font-size: 0.7rem;
}

.dwg-weather__temperature span {
  margin-bottom: 5px;
  color: var(--dwg-muted);
  line-height: 1;
  white-space: nowrap;
}

.dwg-weather__temperature strong {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.dwg-weather__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  border-left: 1px solid var(--dwg-border);
}

.dwg-weather__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px;
  text-align: center;
}

.dwg-weather__item + .dwg-weather__item {
  border-left: 1px solid var(--dwg-border);
}

.dwg-weather__item-label,
.dwg-weather__date-number {
  color: var(--dwg-muted);
  font-weight: 500;
  line-height: 1.1;
}

.dwg-weather__item strong {
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
}

.dwg-weather__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px 15px;
  border-left: 1px solid var(--dwg-border);
  text-align: center;
}

.dwg-weather__day {
  margin-top: 5px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.05;
}

.dwg-weather__controls {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 5px 6px 5px 14px;
  border-bottom: 1px solid var(--dwg-border);
  background: var(--dwg-soft);
}

.dwg-weather__control-source {
  justify-self: start;
  color: var(--dwg-muted);
  font-family: "Albert Sans", Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-decoration: none;
}

.dwg-weather__control-source:hover,
.dwg-weather__control-source:focus-visible {
  color: var(--dwg-text);
}

.dwg-weather__control-titles {
  min-width: 150px;
  text-align: center;
}

.dwg-weather__control-titles span,
.dwg-weather__control-titles strong,
