/* ═══════════════════════════════════════════════
   Villa Toscana Nowy Targ — blog
   Ładowany PO style.css i korzysta z jego zmiennych (papier, szałwia, oliwka, złoto,
   Newsreader + Manrope). Ten sam język co reszta strony: ostre narożniki, cienkie linie,
   złote „eyebrow”, kursywa w oliwce. Ciemna oliwka zostaje tylko w stopce.
   ═══════════════════════════════════════════════ */

.bp-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: var(--olive); transform-origin: 0 50%; transform: scaleX(0);
}

/* ─── NAGŁÓWEK WPISU ─── */
.bp-hero { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px)); background: var(--paper); }
.bp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-faint); }
.bp-crumbs a { color: var(--ink-faint); text-decoration: none; }
.bp-crumbs a:hover { color: var(--olive-deep); }
.bp-crumbs span[aria-hidden] { opacity: .5; }
.bp-hero-text { max-width: 900px; margin-top: clamp(26px, 4vw, 44px); }
.bp-hero-text .eyebrow { margin-bottom: 18px; text-decoration: none; }
.bp-hero h1 {
  font-size: clamp(36px, 5.2vw, 68px); line-height: 1.06; margin-bottom: 22px;
  text-wrap: balance;
}
.bp-dek { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--ink-soft); max-width: 720px; margin: 0; text-wrap: pretty; }
.bp-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin-top: 26px; font-size: 13.5px; color: var(--ink-faint);
}
.bp-meta .bp-author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.bp-meta .bp-author img { width: 46px; height: auto; }
.bp-meta .bp-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.bp-hero-fig { margin: clamp(30px, 4vw, 48px) 0 0; }
.bp-hero-fig img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--sand);
}
@media (min-width: 1000px) { .bp-hero-fig img { aspect-ratio: 21 / 9; } }

/* ─── UKŁAD ─── */
.bp-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px;
  padding-block: clamp(44px, 6vw, 80px) clamp(64px, 8vw, 110px);
}
@media (min-width: 1040px) {
  .bp-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; }
  .bp-aside-inner { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 22px; }
}
.bp-aside { display: grid; gap: 22px; align-content: start; }

/* ─── TREŚĆ ─── */
.bp-article { max-width: 720px; font-size: 18px; line-height: 1.8; color: var(--ink-soft); text-wrap: pretty; }
.bp-article p { margin: 0 0 1.3em; }
.bp-article .bp-lead { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.7; color: var(--ink); }
.bp-article h2 {
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; margin: 1.9em 0 .55em;
  scroll-margin-top: calc(var(--nav-h) + 24px); text-wrap: balance;
}
.bp-article h2::before {
  content: ""; display: block; width: 34px; height: 1px; margin-bottom: 20px;
  background: var(--gold-deep); opacity: .7;
}
.bp-article h3 {
  font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0;
  margin: 1.8em 0 .45em; color: var(--ink);
}
.bp-article a {
  color: var(--olive-deep); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; text-decoration-color: var(--line-gold);
  transition: text-decoration-color .3s;
}
.bp-article a:hover { text-decoration-color: var(--olive-deep); }
.bp-article strong { color: var(--ink); font-weight: 700; }
.bp-article ul, .bp-article ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.bp-article li { margin: .45em 0; padding-left: .3em; }
.bp-article li::marker { color: var(--olive); }

/* zdjęcia w treści */
.bp-fig { margin: 2.4em 0; }
.bp-fig.is-narrow { max-width: 400px; margin-inline: auto; }
.bp-fig.is-square { max-width: 560px; margin-inline: auto; }
.bp-fig img { width: 100%; height: auto; background: var(--sand); }
.bp-fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-faint); text-align: center; font-style: italic; font-family: var(--serif); }

/* „W skrócie” */
.bp-summary {
  margin: 0 0 2.4em; padding: 28px 30px 24px;
  background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--olive);
}
.bp-summary-title {
  margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold-deep);
}
.bp-summary ul { list-style: none; margin: 0; padding: 0; }
.bp-summary li { position: relative; margin: .6em 0; padding-left: 30px; font-size: 16.5px; line-height: 1.6; }
.bp-summary li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345522a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ramki */
.bp-callout { margin: 2em 0; padding: 22px 26px; background: var(--alt); border-left: 2px solid var(--olive); font-size: 16.5px; line-height: 1.7; }
.bp-callout p:last-child { margin-bottom: 0; }
.bp-callout-title { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--olive-deep); }
.bp-callout.is-red { background: #f6ebe9; border-left-color: var(--wine); }
.bp-callout.is-red .bp-callout-title { color: var(--wine); }
.bp-quote { margin: 2.2em 0; padding-left: 26px; border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--ink); }

/* tabele */
.bp-table { margin: 2em 0; overflow-x: auto; background: var(--card); border: 1px solid var(--line); }
.bp-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.bp-table th, .bp-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bp-table thead th { background: var(--alt); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.bp-table tbody tr:last-child td { border-bottom: 0; }
.bp-table td:first-child { color: var(--ink); font-weight: 600; }
.bp-table .num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.bp-table caption { caption-side: bottom; padding: 10px 16px 12px; font-size: 13px; color: var(--ink-faint); text-align: left; }
@media (max-width: 600px) {
  .bp-table { overflow: visible; }
  .bp-table tbody, .bp-table tr, .bp-table td, .bp-table caption { display: block; width: 100%; }
  .bp-table table { display: flex; flex-direction: column; }
  .bp-table thead { display: none; }
  .bp-table caption { order: 2; border-top: 1px solid var(--line); padding-top: 12px; }
  .bp-table tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .bp-table tbody tr:last-child { border-bottom: 0; }
  .bp-table td { padding: 2px 0; border: 0; }
  .bp-table td:first-child { margin-bottom: 4px; font-size: 16px; }
  .bp-table td.num { text-align: left; font-weight: 700; color: var(--olive-deep); }
  .bp-table td[data-label]:not(:first-child)::before {
    content: attr(data-label) ": "; font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink-faint);
  }
}

/* słowniczek, kroki */
.bp-glossary { margin: 1.4em 0 2em; display: grid; gap: 10px; }
.bp-glossary div { padding: 16px 20px; background: var(--card); border: 1px solid var(--line); }
.bp-glossary dt { font-weight: 700; color: var(--ink); }
.bp-glossary dt em { font-weight: 500; font-style: normal; color: var(--ink-faint); }
.bp-glossary dd { margin: 4px 0 0; font-size: 16px; line-height: 1.65; }
.bp-steps { counter-reset: step; list-style: none; padding: 0 !important; }
.bp-steps li {
  counter-increment: step; position: relative; margin: 0 0 12px !important;
  padding: 16px 20px 16px 66px !important; background: var(--card); border: 1px solid var(--line);
}
.bp-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 14px;
  font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--olive);
}

/* ─── SPIS TREŚCI ─── */
.bp-toc { padding: 24px 24px 18px; background: var(--card); border: 1px solid var(--line); }
.bp-toc-title { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.bp-toc ol { list-style: none; margin: 0; padding: 0; }
.bp-toc a {
  display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); text-decoration: none;
  transition: color .3s, border-color .3s;
}
.bp-toc a:hover { color: var(--olive-deep); }
.bp-toc a.is-active { color: var(--olive-deep); border-left: 2px solid var(--olive); padding-left: 13px; font-weight: 600; }
.bp-toc-mobile { margin: 0 0 2.2em; }
.bp-toc-mobile summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); font-size: 15px; }
.bp-toc-mobile summary::-webkit-details-marker { display: none; }
.bp-toc-mobile summary svg { transition: transform .3s; }
.bp-toc-mobile[open] summary svg { transform: rotate(180deg); }
.bp-toc-mobile[open] summary { margin-bottom: 10px; }
@media (min-width: 1040px) { .bp-toc-mobile { display: none; } }
@media (max-width: 1039px) { .bp-aside .bp-toc { display: none; } }

/* ─── KARTA Z INFORMACJAMI ─── */
.bp-facts { padding: 28px 26px; background: var(--card); border: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.bp-facts h2 { font-size: 26px; margin-bottom: 4px; }
.bp-facts > p { margin: 0; color: var(--ink-faint); font-size: 14px; }
.bp-facts dl { margin: 18px 0 0; display: grid; gap: 12px; }
.bp-facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.bp-facts dd { margin: 2px 0 0; color: var(--ink); }
.bp-facts dd a { color: var(--ink); text-decoration: none; font-weight: 600; }
.bp-facts dd a:hover { color: var(--olive-deep); }
.bp-facts .btn { width: 100%; margin-top: 20px; padding: 0 14px; letter-spacing: .1em; }
.bp-facts .btn + .btn { margin-top: 10px; }

/* ─── FAQ ─── */
.bp-narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.bp-faq { margin-top: 36px; border-top: 1px solid var(--line); }
.bp-faq details { border-bottom: 1px solid var(--line); }
.bp-faq summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; }
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
.bp-faq summary span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-gold); color: var(--olive-deep); transition: transform .3s var(--ease); }
.bp-faq details[open] summary span { transform: rotate(45deg); }
.bp-faq .bp-faq-a { padding: 0 50px 24px 0; font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }

/* ─── O AUTORZE ─── */
.bp-about { display: flex; gap: 20px; align-items: flex-start; margin-top: 3em; padding: 26px; background: var(--alt); font-size: 15.5px; line-height: 1.65; }
.bp-about img { width: 64px; height: auto; flex: none; }
.bp-about strong { display: block; margin-bottom: 2px; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 500; }
.bp-about p { margin: 0; }

/* ─── ZAPROSZENIE ─── */
.bp-cta { display: grid; gap: 28px; align-items: center; padding: clamp(32px, 5vw, 56px); background: var(--card); border: 1px solid var(--line-gold); }
@media (min-width: 860px) { .bp-cta { grid-template-columns: minmax(0, 1fr) auto; } }
.bp-cta h2 { font-size: clamp(30px, 3.6vw, 46px); }
.bp-cta p { margin: 12px 0 0; color: var(--ink-soft); max-width: 560px; }
.bp-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
@media (max-width: 600px) { .bp-cta-actions .btn { width: 100%; } }

/* ─── KARTY WPISÓW ─── */
.bp-cards { display: grid; gap: clamp(22px, 3vw, 36px); margin-top: 36px; }
@media (min-width: 640px) { .bp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bp-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bp-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .3s, transform .4s var(--ease); }
.bp-card:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.bp-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.bp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bp-card:hover .bp-card-img img { transform: scale(1.04); }
.bp-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.bp-card-tag { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.bp-card h2, .bp-card h3 { margin-top: 10px; font-size: 25px; line-height: 1.18; transition: color .3s; }
.bp-card:hover h2, .bp-card:hover h3 { color: var(--olive-deep); }
.bp-card p { margin: 10px 0 0; flex: 1; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.bp-card-meta { margin-top: 16px; font-size: 13px; color: var(--ink-faint); }

/* ─── LISTA WPISÓW ─── */
.bi-hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); }
.bi-hero h1 { font-size: clamp(42px, 6vw, 84px); max-width: 15ch; margin-bottom: 22px; }
.bi-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.bi-filter {
  padding: 10px 18px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  transition: all .3s;
}
.bi-filter:hover { border-color: var(--olive-deep); color: var(--olive-deep); }
.bi-filter[aria-pressed="true"] { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--ivory); }
.bi-featured { display: grid; margin-top: clamp(32px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .3s; }
.bi-featured:hover { border-color: var(--line-gold); }
@media (min-width: 900px) { .bi-featured { grid-template-columns: 1.3fr 1fr; } }
.bi-featured-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
@media (min-width: 900px) { .bi-featured-img { aspect-ratio: auto; min-height: 400px; } }
.bi-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.bi-featured-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); }
.bi-featured h2 { margin-top: 12px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; }
.bi-featured p { margin: 16px 0 0; color: var(--ink-soft); }
.bi-featured .link-arrow { margin-top: 24px; align-self: flex-start; }
.bi-list { padding-bottom: clamp(70px, 9vw, 120px); }
.bi-empty { display: none; margin-top: 28px; color: var(--ink-faint); }

@media (prefers-reduced-motion: reduce) {
  .bp-card, .bp-card-img img, .bp-faq summary span { transition: none; }
}
@media print {
  .bp-progress, .bp-aside, .bp-cta, .nav, footer { display: none !important; }
  .bp-layout { display: block; }
}
