/* ==========================================================================
   LKS Ładna — dopasowania WordPressa (nakładka na assets/css/style.css)
   ========================================================================== */

/* ---------- Dostępność: klasy rdzenia WP ---------- */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0;
}

/* ---------- Nawigacja: podświetlenie bieżącej strony (WP nie daje aria-current) ---------- */
.site-nav li.current-menu-item > a,
.site-nav li.current_page_item > a,
.site-nav li.current-menu-ancestor > a,
.site-nav li.current_page_ancestor > a { color: var(--yellow); }
.site-nav li.current-menu-item > a:hover,
.site-nav li.current_page_item > a:hover { background: rgba(255,255,255,.06); }

/* CTA w menu: styl przycisku nadawany przez klasę CSS elementu menu „nav-cta” */
.site-nav li.nav-cta { margin-left: 8px; }
.site-nav li.nav-cta a {
  display: inline-flex; align-items: center;
  background: var(--yellow); color: var(--black) !important;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.site-nav li.nav-cta a:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (max-width: 940px) {
  .site-nav li.nav-cta { margin: 10px 0 0; }
  .site-nav li.nav-cta a { display: flex; justify-content: center; }
}

/* ---------- Treść z edytora (wpisy i strony) ---------- */
.entry-content {
  font-size: 1.02rem; line-height: 1.72; max-width: 780px;
}
.entry-content p { line-height: 1.72; margin-bottom: 1.15em; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content h1, .entry-content h2 {
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em;
  margin: 1.6em 0 .7em; padding-left: 16px; position: relative; line-height: 1.15;
}
.entry-content h2::before, .entry-content h3::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 7px; height: .55em;
  background: linear-gradient(180deg, var(--green), var(--yellow));
  border-radius: 2px; transform: skewX(-12deg);
}
.entry-content h3 {
  font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em;
  margin: 1.9em 0 .7em; padding-left: 16px; position: relative; line-height: 1.15;
}
.entry-content h4, .entry-content h5, .entry-content h6 { margin: 1.4em 0 .6em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.4em; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .35em; }
.entry-content a { text-decoration: underline; }
.entry-content blockquote {
  margin: 1.4em 0; padding: 10px 20px; border-left: 4px solid var(--green);
  background: var(--cream); border-radius: 0 10px 10px 0; color: var(--ink);
}
.entry-content img { height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption, .wp-caption-text {
  font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px;
}
.entry-content .wp-block-image .alignleft,
.entry-content .alignleft { float: left; margin: .4em 1.4em 1em 0; }
.entry-content .wp-block-image .alignright,
.entry-content .alignright { float: right; margin: .4em 0 1em 1.4em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignwide { max-width: 960px; margin-left: auto; margin-right: auto; }
.entry-content .alignfull { max-width: none; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.entry-content table td, .entry-content table th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content code, .entry-content pre { background: #F1EFE6; border-radius: 8px; font-size: .9em; }
.entry-content pre { padding: 14px 16px; overflow: auto; }

/* Porządek w starych wpisach: wykrzyknikowe nagłówki z *** i wielokrotne wykrzykniki */
.entry-content h1, .entry-content h2, .entry-content h3 { hyphens: auto; }

/* ---------- Artykuł (single) ---------- */
.article { margin-bottom: 34px; }
.article-meta { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.75); font-size: .88rem; margin-top: 10px; }
.article-thumb { margin: 0 0 28px; }
.article-thumb img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.article-nav { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 10px 0 26px; font-size: .92rem; }
.article-nav a { font-weight: 600; text-decoration: none; }
.article-nav a:hover { text-decoration: underline; }

/* ---------- Paginacja ---------- */
.pagination, .page-links { margin: 30px 0 6px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: .88rem; text-decoration: none; color: var(--ink);
}
.page-numbers:hover { border-color: var(--green); color: var(--green-700); }
.page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

/* ---------- Formularz kontaktowy ---------- */
.form-notice { padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 18px; }
.form-notice.form-ok { background: rgba(18,147,59,.1); color: var(--green-700); border: 1px solid rgba(18,147,59,.35); }
.form-notice.form-err { background: rgba(192,57,43,.08); color: var(--danger); border: 1px solid rgba(192,57,43,.4); }
.field-checkbox label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .85rem; color: var(--muted); }
.field-checkbox input { width: auto; margin-top: 4px; }
/* honeypot — poza ekranem (nie display:none, część botów to wykrywa) */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 1px; width: 1px; overflow: hidden; }

/* ---------- Mapa dojazdu ---------- */
.map-embed {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line); margin-top: 22px; background: #EAF2E4;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed-cap { font-size: .85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.map-embed-cap b { font-family: var(--font-display); text-transform: uppercase; color: var(--ink); }

/* ---------- Przycisk obramowany (wróć do listy) ---------- */
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
