/* ═══════════════════════════════════════════════
   OPA OPA! — blog
   Ładowany PO style.css; korzysta z jego kolorów (ink, bone, sun, olive, saffron, sea).
   Granatowy pasek nagłówka i stopka jak na reszcie strony, treść na jasnym tle (sea),
   nagłówki szablonowe (Saira Stencil One), podtytuły kursywą (Cormorant Garamond),
   akcent grecki — meander pod nagłówkiem.
   Celowo bez klasy .section: main.js animuje każdą .section (opacity 0 do przewinięcia),
   a treść wpisu ma być widoczna od razu.
   ═══════════════════════════════════════════════ */

.ob-body { background: var(--sea); }
/* na blogu pasek nawigacji jest zawsze granatowy - main.js zdejmuje .scrolled na górze strony */
.ob-body .nav { background: var(--ink-90); box-shadow: 0 2px 20px rgba(20, 40, 72, .25); }

.ob-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.ob-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001;
  background: var(--sun); transform-origin: 0 50%; transform: scaleX(0);
}

/* ─── NAGŁÓWEK WPISU ─── */
.ob-hero {
  position: relative; background: var(--ink); color: var(--bone);
  padding: 130px 0 clamp(90px, 13vw, 170px); overflow: hidden;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40'%3E%3Cpath d='M0 20 Q20 8 40 20 T80 20 T120 20 T160 20' fill='none' stroke='%23F1E6CF' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E");
}
.ob-hero::after {
  /* meander - grecki wzór na dole granatowego pasa */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: var(--sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13h4V5h8v4H8V7H6v6h12V1H2' fill='none' stroke='%23C95A3C' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x left center;
  opacity: .85;
}
.ob-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(241, 230, 207, .65); }
.ob-crumbs a:hover { color: var(--saffron); }
.ob-crumbs span[aria-hidden] { opacity: .5; }
.ob-hero-text { max-width: 900px; margin-top: 30px; }
.ob-kicker {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .32em;
  text-transform: uppercase; color: var(--saffron); margin-bottom: 18px;
}
.ob-hero h1 {
  font-family: 'Saira Stencil One', sans-serif; text-transform: uppercase; font-weight: 400;
  font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; letter-spacing: .01em; color: var(--bone);
  text-wrap: balance;
}
.ob-dek {
  margin-top: 20px; max-width: 720px; font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(20px, 2vw, 25px); line-height: 1.4; color: rgba(241, 230, 207, .86);
}
.ob-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px;
  font-size: 13px; color: rgba(241, 230, 207, .7);
}
.ob-meta .ob-author { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); font-weight: 700; }
.ob-meta .ob-author img { width: 44px; height: auto; }
.ob-meta .ob-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sun); }
.ob-hero-fig { position: relative; z-index: 2; margin: calc(-1 * clamp(70px, 11vw, 150px)) 0 0; }
.ob-hero-fig img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px;
  background: #22385c; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
@media (min-width: 1000px) { .ob-hero-fig img { aspect-ratio: 21 / 9; } }
/* zdjęcie „wchodzi” na granatowy pas nagłówka */
.ob-after-hero { background: var(--sea); }

/* ─── UKŁAD ─── */
.ob-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px;
  padding: 56px 0 90px;
}
@media (min-width: 1040px) {
  .ob-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
  .ob-aside-inner { position: sticky; top: 100px; display: grid; gap: 22px; }
}
.ob-aside { display: grid; gap: 22px; align-content: start; }

/* ─── TREŚĆ ─── */
.ob-article { max-width: 720px; font-size: 18px; line-height: 1.8; color: var(--ink); }
.ob-article p { margin: 0 0 1.3em; }
.ob-article .ob-lead { font-size: 20px; line-height: 1.7; font-weight: 500; }
.ob-article .ob-lead::first-letter {
  float: left; font-family: 'Saira Stencil One', sans-serif; font-size: 64px; line-height: .9;
  margin: 6px 12px 0 0; color: var(--sun);
}
.ob-article h2 {
  font-family: 'Saira Stencil One', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: .01em;
  margin: 2em 0 .6em; scroll-margin-top: 96px; text-wrap: balance;
}
.ob-article h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 18px; background: var(--sun); }
.ob-article h3 { font-size: 18px; font-weight: 800; margin: 1.7em 0 .4em; }
.ob-article a { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ob-article a:hover { color: var(--ink); }
.ob-article strong { font-weight: 800; }
.ob-article ul, .ob-article ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.ob-article li { margin: .45em 0; padding-left: .3em; }
.ob-article li::marker { color: var(--sun); }

/* zdjęcia w treści (na razie wpisy mają tylko nagłówki - zostawione na przyszłe zdjęcia z sesji) */
.ob-fig { margin: 2.4em 0; }
.ob-fig img { width: 100%; height: auto; border-radius: 2px; }
.ob-fig figcaption { margin-top: 10px; text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; opacity: .75; }

/* „W skrócie” - jak karty wartości na stronie głównej */
.ob-summary { position: relative; margin: 0 0 2.4em; padding: 26px 28px 22px 32px; background: var(--bone); }
.ob-summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sun); }
.ob-summary-title { margin: 0 0 10px !important; font-size: 11px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--sun); }
.ob-summary ul { list-style: none; margin: 0; padding: 0; }
.ob-summary li { position: relative; margin: .55em 0; padding-left: 26px; font-size: 16.5px; line-height: 1.6; }
.ob-summary li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 11V1h10v8H4V4h4v2' fill='none' stroke='%235C6B3F' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ramki, cytat */
.ob-callout { position: relative; margin: 2em 0; padding: 22px 26px 22px 30px; background: rgba(92, 107, 63, .1); font-size: 16.5px; line-height: 1.7; }
.ob-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--olive); }
.ob-callout p:last-child { margin-bottom: 0; }
.ob-callout-title { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--olive); }
.ob-callout.is-red { background: rgba(201, 90, 60, .1); }
.ob-callout.is-red::before { background: var(--sun); }
.ob-callout.is-red .ob-callout-title { color: var(--sun); }
.ob-quote { margin: 2.2em 0; padding-left: 26px; border-left: 3px solid var(--saffron); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 28px; line-height: 1.35; }

/* tabele */
.ob-table { margin: 2em 0; overflow-x: auto; background: #fffdf8; border: 1px solid var(--ink-20); }
.ob-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.ob-table th, .ob-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(20, 40, 72, .12); }
.ob-table thead th { background: var(--ink); color: var(--bone); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.ob-table tbody tr:last-child td { border-bottom: 0; }
.ob-table td:first-child { font-weight: 700; }
.ob-table .num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sun); }
.ob-table caption { caption-side: bottom; padding: 10px 16px 12px; font-size: 13px; text-align: left; opacity: .7; }
@media (max-width: 600px) {
  .ob-table { overflow: visible; }
  .ob-table tbody, .ob-table tr, .ob-table td, .ob-table caption { display: block; width: 100%; }
  .ob-table table { display: flex; flex-direction: column; }
  .ob-table thead { display: none; }
  .ob-table caption { order: 2; border-top: 1px solid rgba(20, 40, 72, .12); padding-top: 12px; }
  .ob-table tr { padding: 14px 18px; border-bottom: 1px solid rgba(20, 40, 72, .12); }
  .ob-table tbody tr:last-child { border-bottom: 0; }
  .ob-table td { padding: 2px 0; border: 0; }
  .ob-table td:first-child { margin-bottom: 4px; font-size: 16px; }
  .ob-table td.num { text-align: left; }
  .ob-table td[data-label]:not(:first-child)::before {
    content: attr(data-label) ": "; font-size: 10.5px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-50);
  }
}

/* słowniczek, kroki */
.ob-glossary { margin: 1.4em 0 2em; display: grid; gap: 10px; }
.ob-glossary div { position: relative; padding: 16px 20px 16px 24px; background: #fffdf8; border: 1px solid rgba(20, 40, 72, .12); }
.ob-glossary div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--saffron); }
.ob-glossary dt { font-weight: 800; }
.ob-glossary dt em { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; opacity: .75; }
.ob-glossary dd { margin: 4px 0 0; font-size: 16px; line-height: 1.65; }
.ob-steps { counter-reset: step; list-style: none; padding: 0 !important; }
.ob-steps li { counter-increment: step; position: relative; margin: 0 0 12px !important; padding: 16px 20px 16px 70px !important; background: #fffdf8; border: 1px solid rgba(20, 40, 72, .12); }
.ob-steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 13px; width: 34px; height: 34px;
  display: grid; place-items: center; background: var(--ink); color: var(--bone);
  font-family: 'Saira Stencil One', sans-serif; font-size: 18px;
}

/* ─── SPIS TREŚCI ─── */
.ob-toc { padding: 24px 24px 18px; background: #fffdf8; border: 1px solid rgba(20, 40, 72, .12); }
.ob-toc-title { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--sun); }
.ob-toc ol { list-style: none; margin: 0; padding: 0; }
.ob-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid rgba(20, 40, 72, .12); font-size: 14.5px; line-height: 1.45; transition: color .3s, border-color .3s; }
.ob-toc a:hover { color: var(--sun); }
.ob-toc a.is-active { color: var(--sun); border-left-color: var(--sun); font-weight: 700; }
.ob-toc-mobile { margin: 0 0 2.2em; }
.ob-toc-mobile summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-weight: 800; font-size: 15px; }
.ob-toc-mobile summary::-webkit-details-marker { display: none; }
.ob-toc-mobile summary svg { transition: transform .3s; }
.ob-toc-mobile[open] summary svg { transform: rotate(180deg); }
.ob-toc-mobile[open] summary { margin-bottom: 10px; }
@media (min-width: 1040px) { .ob-toc-mobile { display: none; } }
@media (max-width: 1039px) { .ob-aside .ob-toc { display: none; } }

/* ─── KARTA Z INFORMACJAMI ─── */
.ob-facts { padding: 28px 26px; background: var(--ink); color: var(--bone); font-size: 15px; line-height: 1.55; }
.ob-facts img { width: 92px; height: auto; margin-bottom: 14px; }
.ob-facts > p { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; opacity: .85; }
.ob-facts dl { margin: 18px 0 0; display: grid; gap: 12px; }
.ob-facts dt { font-size: 10.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--saffron); }
.ob-facts dd { margin: 2px 0 0; }
.ob-facts dd a { font-weight: 700; }
.ob-facts dd a:hover { color: var(--saffron); }
.ob-facts .btn { display: block; width: 100%; text-align: center; margin-top: 20px; padding: 14px 16px; }
.ob-facts .btn + .btn { margin-top: 10px; }

/* przyciski na jasnym tle */
.ob-btn-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.ob-btn-ink:hover { background: var(--ink); color: var(--bone); }

/* ─── FAQ ─── */
.ob-faq-section { padding: 90px 0; background: var(--bone); }
.ob-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.ob-eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: .36em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
.ob-title { font-family: 'Saira Stencil One', sans-serif; text-transform: uppercase; font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: .98; }
.ob-faq { margin-top: 34px; border-top: 1px solid rgba(20, 40, 72, .2); }
.ob-faq details { border-bottom: 1px solid rgba(20, 40, 72, .2); }
.ob-faq summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; }
.ob-faq summary::-webkit-details-marker { display: none; }
.ob-faq summary h3 { font-size: 18px; font-weight: 800; line-height: 1.4; }
.ob-faq summary span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--bone); transition: transform .3s ease, background .3s; }
.ob-faq details[open] summary span { transform: rotate(45deg); background: var(--sun); }
.ob-faq .ob-faq-a { padding: 0 50px 22px 0; font-size: 16.5px; line-height: 1.75; }

/* ─── O AUTORZE ─── */
.ob-about { display: flex; gap: 20px; align-items: center; margin-top: 3em; padding: 24px 26px; background: var(--ink); color: var(--bone); font-size: 15.5px; line-height: 1.6; }
.ob-about img { width: 70px; height: auto; flex: none; }
.ob-about strong { display: block; margin-bottom: 2px; font-family: 'Saira Stencil One', sans-serif; font-weight: 400; font-size: 18px; letter-spacing: .04em; }
.ob-about p { margin: 0; opacity: .85; }

/* ─── ZAPROSZENIE (granatowy pas) ─── */
.ob-cta-band { position: relative; padding: 90px 0; background: var(--ink); color: var(--bone); text-align: center; }
.ob-cta-band::before, .ob-cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13h4V5h8v4H8V7H6v6h12V1H2' fill='none' stroke='%23E8B341' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x left center;
  opacity: .5;
}
.ob-cta-band::before { top: 18px; }
.ob-cta-band::after { bottom: 18px; }
.ob-cta-band .ob-eyebrow { color: var(--saffron); }
.ob-cta-band .ob-title { color: var(--bone); }
.ob-cta-band p { max-width: 560px; margin: 18px auto 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; opacity: .88; }
.ob-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
@media (max-width: 600px) { .ob-cta-actions .btn { width: 100%; text-align: center; } }

/* ─── KARTY WPISÓW ─── */
.ob-related { padding: 90px 0; background: var(--sea); }
.ob-cards { display: grid; gap: 28px; margin-top: 34px; }
@media (min-width: 640px) { .ob-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ob-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ob-card { display: flex; flex-direction: column; background: var(--bone); transition: transform .35s ease, box-shadow .35s ease; }
.ob-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(20, 40, 72, .6); }
.ob-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #22385c; }
.ob-card-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sun); }
.ob-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ob-card:hover .ob-card-img img { transform: scale(1.04); }
.ob-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ob-card-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--sun); }
.ob-card h2, .ob-card h3 { margin-top: 10px; font-family: 'Saira Stencil One', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 22px; line-height: 1.08; }
.ob-card p { margin-top: 10px; flex: 1; font-size: 15px; line-height: 1.6; opacity: .85; }
.ob-card-meta { margin-top: 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; opacity: .6; }

/* ─── LISTA WPISÓW ─── */
.oi-hero { padding-bottom: 120px; }
.oi-hero h1 { font-size: clamp(44px, 7vw, 92px); }
.oi-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.oi-filter {
  padding: 11px 18px; border: 1px solid rgba(241, 230, 207, .4); background: transparent; color: var(--bone); cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; transition: all .3s;
}
.oi-filter:hover { border-color: var(--saffron); color: var(--saffron); }
.oi-filter[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--bone); }
.oi-featured { display: grid; margin-top: -80px; position: relative; z-index: 2; background: var(--bone); transition: box-shadow .35s; }
.oi-featured:hover { box-shadow: 0 26px 50px -30px rgba(20, 40, 72, .6); }
@media (min-width: 900px) { .oi-featured { grid-template-columns: 1.3fr 1fr; } }
.oi-featured-img { aspect-ratio: 16 / 10; overflow: hidden; background: #22385c; }
@media (min-width: 900px) { .oi-featured-img { aspect-ratio: auto; min-height: 400px; } }
.oi-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.oi-featured-body { display: flex; flex-direction: column; justify-content: center; padding: 34px 32px 38px; }
.oi-featured h2 { margin-top: 12px; font-family: 'Saira Stencil One', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3vw, 40px); line-height: 1.02; }
.oi-featured p { margin-top: 14px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 21px; line-height: 1.4; }
.oi-more { margin-top: 22px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); }
.oi-list { padding: 50px 0 100px; }
.oi-empty { display: none; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .ob-card, .ob-card-img img, .ob-faq summary span { transition: none; }
}
@media print {
  .ob-progress, .ob-aside, .ob-cta-band, .nav, footer { display: none !important; }
  .ob-layout { display: block; }
}
