/* === Dobry Piec — blog styles (shared by /blog and /blog/* pages) === */

/* ---- header (mirrors React Header in parts/header.jsx) ---- */
.blog-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.blog-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.blog-brand { display: flex; flex-direction: column; line-height: 1; gap: 2px; flex-shrink: 0; }
.blog-brand b { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-family: var(--font-display); }
.blog-brand span { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; }
.blog-nav { display: flex; align-items: center; gap: 22px; }
.blog-nav a { font-weight: 600; font-size: 14.5px; color: var(--text); white-space: nowrap; }
.blog-nav a.active { color: var(--ink); }
.blog-nav a.active::after { content: ""; display: block; height: 2px; background: var(--accent); margin-top: 4px; }
.blog-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.blog-cta-phone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.blog-cta-phone:hover { background: var(--bg-soft); border-color: var(--line-strong); color: var(--accent); }
.blog-cta .btn { white-space: nowrap; }

/* ---- mobile menu (CSS-only <details>, mirrors hamburger in parts/header.jsx) ---- */
.blog-menu { display: none; position: relative; flex-shrink: 0; }
.blog-menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink);
}
.blog-menu > summary::-webkit-details-marker { display: none; }
.blog-menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 210px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift); padding: 8px; z-index: 60;
  display: flex; flex-direction: column;
}
.blog-menu-panel a { padding: 12px 14px; font-weight: 600; font-size: 16px; color: var(--text); border-radius: 9px; }
.blog-menu-panel a:hover { background: var(--bg-soft); color: var(--ink); }

/* Tagline crowds the bar before the nav even collapses — hide it early (mirrors React). */
@media (max-width: 1180px) { .blog-brand span { display: none; } }
@media (max-width: 980px) {
  .blog-nav { display: none; }
  .blog-cta { display: none; }   /* CTAs move to the bottom sticky bar */
  .blog-menu { display: block; }
}

/* ---- index page ---- */
.blog-hero { padding: 64px 0 32px; }
.blog-hero h1 { font-size: clamp(36px, 5vw, 56px); color: var(--ink); margin-top: 14px; }
.blog-hero .lead { font-size: 19px; color: var(--text-soft); max-width: 640px; margin-top: 16px; line-height: 1.55; }
.blog-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.blog-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 1px; }

.blog-list { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 72px; }
@media (min-width: 720px) { .blog-list { grid-template-columns: repeat(2, 1fr); } }

.blog-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.blog-card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.blog-card .meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--muted); }
.blog-card h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -0.015em; }
.blog-card p { color: var(--text-soft); font-size: 15.5px; margin: 0; }
.blog-card .more { font-weight: 700; color: var(--accent); font-size: 14.5px; margin-top: auto; }

.blog-foot-cta {
  margin-top: 24px; margin-bottom: clamp(56px, 8vw, 96px); padding: 32px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.blog-foot-cta .txt { flex: 1; min-width: 240px; }
.blog-foot-cta h3 { font-size: 20px; color: var(--ink); margin: 0 0 6px; }
.blog-foot-cta p { color: var(--text-soft); margin: 0; font-size: 15px; }

/* ---- post page ---- */
.post-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.post-breadcrumbs {
  font-size: 13px; color: var(--muted); padding: 32px 0 0;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.post-breadcrumbs a { color: var(--muted); border-bottom: 1px dotted var(--line-strong); }
.post-breadcrumbs a:hover { color: var(--ink); }
.post-breadcrumbs .sep { color: var(--line-strong); }

.post-header { padding: 24px 0 32px; }
.post-meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--muted); }
.post-title { font-size: clamp(32px, 4.5vw, 48px); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
.post-intro { font-size: 19px; color: var(--text-soft); line-height: 1.55; }

/* featured header image */
.post-figure { margin: 4px 0 8px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: linear-gradient(135deg, var(--ink), var(--navy-700)); }
.post-figure img { display: block; width: 100%; height: auto; }

.post-content { padding: 8px 0 64px; }
.post-content h2 { font-size: 28px; color: var(--ink); margin: 40px 0 14px; letter-spacing: -0.015em; font-weight: 800; line-height: 1.25; }
.post-content h3 { font-size: 20px; color: var(--ink); margin: 28px 0 8px; font-weight: 700; }
.post-content p { font-size: 17px; line-height: 1.7; color: var(--text); margin: 0 0 16px; }
.post-content ul, .post-content ol { padding-left: 24px; margin: 0 0 16px; }
.post-content li { font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.post-content strong { color: var(--ink); font-weight: 700; }
.post-content blockquote {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 16px 20px; margin: 24px 0; border-radius: 0 12px 12px 0;
  color: var(--ink); font-weight: 600;
}
.post-content blockquote p { margin: 0; font-size: 17px; }
.post-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 15.5px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.post-content th, .post-content td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.post-content th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: 14px; }
.post-content tr:last-child td { border-bottom: none; }

.post-cta {
  margin-top: 40px; padding: 28px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.post-cta h3 { font-size: 22px; color: var(--ink); margin: 0 0 8px; }
.post-cta p { color: var(--text-soft); margin: 0 0 16px; font-size: 16px; }
.post-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.post-related { margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); }
.post-related h3 { font-size: 16px; color: var(--text-soft); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
.post-related .links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .post-related .links { grid-template-columns: 1fr; } }
.post-related a {
  display: block; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.4;
}
.post-related a:hover { border-color: var(--ink); }

/* Header + footer now use the shared .site-header / .foot-grid from styles.css
   (unified with the landing). The old .blog-header / .site-footer rules were
   removed when the blog markup was switched to those shared components. */
