/* Beata Meble Poradnik – style uzupełniające theme.json */
:root { --bmp-accent: var(--wp--preset--color--accent, #2f5d50); --bmp-radius-l: 28px; --bmp-radius-m: 24px; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Nagłówek */
.bmp-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid #e8e8ed; }
.admin-bar .bmp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bmp-header { top: 0; } }
.bmp-header__inner { max-width: 1120px; margin: 0 auto; min-height: 52px; gap: 8px 28px; font-size: 13px; }
.bmp-logo { font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin: 0; }
.bmp-logo a { color: var(--wp--preset--color--ink); text-decoration: none !important; }
.bmp-logo span { font-weight: 400; color: var(--wp--preset--color--muted); }
.bmp-menu { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.bmp-menu a { color: var(--wp--preset--color--ink); }
.bmp-pill a, a.bmp-pill { display: inline-block; background: var(--bmp-accent); color: #fff !important; padding: 8px 16px; border-radius: 980px; font-weight: 500; font-size: 13px; text-decoration: none !important; }
.bmp-pill a:hover, a.bmp-pill:hover { background: var(--wp--preset--color--accent-dark); }
@media (max-width: 720px) {
  .bmp-header__inner { padding-top: 8px; padding-bottom: 8px; }
  .bmp-menu { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; gap: 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bmp-menu::-webkit-scrollbar { display: none; }
  .bmp-menu li { white-space: nowrap; }
}

/* Typografia sekcji */
.bmp-eyebrow { font-size: 17px; font-weight: 600; color: var(--bmp-accent); margin: 0 0 12px; }
.bmp-lead { font-size: var(--wp--preset--font-size--l); line-height: 1.45; color: var(--wp--preset--color--muted); }
.bmp-hero { text-align: center; padding-top: 88px; }
.bmp-hero h1 { font-size: var(--wp--preset--font-size--hero); line-height: 1.05; letter-spacing: -.03em; max-width: 900px; margin: 0 auto; }
.bmp-hero .bmp-lead { max-width: 640px; margin: 20px auto 0; }
.bmp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 17px; margin-top: 28px; align-items: center; }
.bmp-link-more { font-size: 17px; }
.bmp-big-img img, .bmp-big-img { border-radius: var(--bmp-radius-l); }
.bmp-big-img img { width: 100%; height: 560px; object-fit: cover; background: var(--wp--preset--color--soft); display: block; }
@media (max-width: 720px) { .bmp-big-img img { height: 340px; } .bmp-hero { padding-top: 56px; } }
.bmp-section { padding-top: var(--wp--preset--spacing--70); }
@media (max-width: 720px) { .bmp-section { padding-top: 80px; } }
.bmp-h2 { font-size: var(--wp--preset--font-size--xxl) !important; letter-spacing: -.02em; line-height: 1.1; font-weight: 700 !important; margin: 0; }

/* Karty tematów */
.bmp-topics { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
@media (max-width: 360px) { .bmp-topics, .bmp-posts .wp-block-post-template { grid-template-columns: 1fr !important; } }
.bmp-topic { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--wp--preset--color--soft); border-radius: var(--bmp-radius-m); padding: 32px; min-height: 320px; transition: transform .25s ease, box-shadow .25s ease; margin: 0 !important; }
.bmp-topic:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.bmp-topic p { margin: 0; }
.bmp-topic .bmp-topic__tag { font-size: 13px; font-weight: 600; color: var(--bmp-accent); }
.bmp-topic .bmp-topic__title { font-size: 28px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.bmp-topic .bmp-topic__title a { color: var(--wp--preset--color--ink); text-decoration: none !important; }
.bmp-topic .bmp-topic__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bmp-topic .bmp-topic__text { font-size: 17px; color: var(--wp--preset--color--muted); line-height: 1.45; }
.bmp-topic figure { margin: auto 0 0 !important; }
.bmp-topic img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; display: block; }
.bmp-topic .is-contain img { object-fit: contain; background: #fff; }

/* Sekcja ciemna */
.bmp-dark { background: #000; color: #f5f5f7; text-align: center; padding: 112px 24px; margin-top: var(--wp--preset--spacing--70); }
.bmp-dark .bmp-eyebrow { color: var(--wp--preset--color--accent-light); }
.bmp-dark h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.07; letter-spacing: -.025em; max-width: 820px; margin: 0 auto; color: #f5f5f7; }
.bmp-dark .bmp-lead { color: #a1a1a6; max-width: 620px; margin: 20px auto 0; }
.bmp-dark .bmp-big-img { max-width: 1120px; margin: 48px auto 0; }
.bmp-dark .bmp-big-img img { height: 520px; }
@media (max-width: 720px) { .bmp-dark { padding: 72px 20px; } .bmp-dark .bmp-big-img img { height: 320px; } }

/* Lista wpisów */
.bmp-row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.bmp-posts .wp-block-post-template { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; gap: 32px; margin-top: 36px; list-style: none; padding: 0; }
.bmp-posts .wp-block-post-template.is-flex-container > li { width: auto !important; margin: 0 !important; }
.bmp-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.bmp-card > * { margin: 0 !important; }
.bmp-card .wp-block-post-featured-image img { width: 100%; height: 240px; object-fit: cover; border-radius: 20px; display: block; background: var(--wp--preset--color--soft); }
.bmp-card .wp-block-post-featured-image a::after { display: none; }
.bmp-card .bmp-card__meta { font-size: 13px; color: var(--wp--preset--color--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.bmp-card .bmp-card__meta a { color: var(--wp--preset--color--muted); }
.bmp-card .wp-block-post-title { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.bmp-card .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none !important; }
.bmp-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.bmp-card .bmp-card__meta a { position: relative; z-index: 1; }
.bmp-card:hover .wp-block-post-title a { color: var(--bmp-accent); }

/* Box salony */
.bmp-promo { background: var(--wp--preset--color--soft); border-radius: var(--bmp-radius-l); padding: 64px 32px; text-align: center; }
.bmp-promo h2 { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.02em; margin: 0; }
.bmp-promo p { max-width: 560px; margin: 14px auto 0; font-size: 19px; line-height: 1.45; color: var(--wp--preset--color--muted); }

/* Stopka */
.bmp-footer { max-width: 1120px; margin: 96px auto 0; padding: 24px 24px 48px; border-top: 1px solid var(--wp--preset--color--line); font-size: 12px; color: var(--wp--preset--color--muted); }
.bmp-footer p { margin: 0; font-size: 12px; }
.bmp-footer a { color: var(--wp--preset--color--muted); }
.bmp-footer .bmp-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* Wpis */
.bmp-article-head { padding-top: 72px; }
.bmp-crumbs { font-size: 13px; color: var(--wp--preset--color--muted); margin: 0; }
.bmp-article-head .wp-block-post-title { margin-top: 16px; }
.bmp-article-head .wp-block-post-excerpt__excerpt { font-size: var(--wp--preset--font-size--l); line-height: 1.5; color: var(--wp--preset--color--muted); margin: 20px 0 0; }
.bmp-article-meta { font-size: 13px; color: var(--wp--preset--color--muted); gap: 6px; margin-top: 24px; }
.bmp-article-meta > * { margin: 0 !important; font-size: 13px; }
.bmp-article-hero { margin-top: 48px !important; }
.bmp-article-hero img { width: 100%; height: 560px; object-fit: cover; border-radius: var(--bmp-radius-l); display: block; }
@media (max-width: 720px) { .bmp-article-hero img { height: 300px; } .bmp-article-head { padding-top: 48px; } }
.bmp-content { padding-top: 56px; font-size: 19px; line-height: 1.65; }
.bmp-content h2 { margin-top: 56px; }
.bmp-content h3 { margin-top: 36px; }
.bmp-content table { border-collapse: collapse; width: 100%; }
.bmp-content .wp-block-table { border: 1px solid var(--wp--preset--color--line); border-radius: 16px; overflow-x: auto; }
.bmp-content .wp-block-table table { min-width: 480px; }
.bmp-content .wp-block-table th { background: var(--wp--preset--color--soft); text-align: left; }
.bmp-content .wp-block-table th, .bmp-content .wp-block-table td { padding: 12px 16px; border: 0; border-top: 1px solid #e8e8ed; }
.bmp-content .wp-block-table thead th { border-top: 0; border-bottom: 0; }
.bmp-content .wp-block-table thead { border-bottom: 0; }
.bmp-content .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 18px 0; margin: 0; }
.bmp-content .wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 19px; }
.bmp-content .wp-block-details p { font-size: 17px; color: #424245; margin-top: 10px; }
.bmp-faq { border-top: 1px solid var(--wp--preset--color--line); margin-top: 16px; }
.bmp-faq > * { margin: 0 !important; }

/* W skrócie */
.bmp-tldr { background: var(--wp--preset--color--soft); border-radius: 20px; padding: 24px 28px; }
.bmp-tldr > p:first-child { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--bmp-accent); }
.bmp-tldr ul { margin: 0; padding-left: 20px; font-size: 17px; display: flex; flex-direction: column; gap: 6px; }

/* CTA do sklepu */
.bmp-cta { background: #000; color: #f5f5f7; border-radius: var(--bmp-radius-m); padding: 36px 32px; gap: 20px; margin-top: 48px !important; }
.bmp-cta > .wp-block-group { flex: 1 1 320px; }
.bmp-cta p { margin: 0; }
.bmp-cta .bmp-cta__title { font-size: 24px; font-weight: 600; line-height: 1.25; }
.bmp-cta .bmp-cta__text { font-size: 17px; color: #a1a1a6; margin-top: 8px; }
.bmp-cta .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--ink) !important; }
.bmp-cta .wp-block-button__link:hover { background: #e8e8ed !important; }

/* Archiwum */
.bmp-archive-head { padding-top: 88px; }
.bmp-archive-head .wp-block-term-description { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--l); max-width: 640px; }
.bmp-pagination { margin-top: 56px; gap: 16px; font-size: 17px; }

:focus-visible { outline: 2px solid var(--bmp-accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .bmp-topic { transition: none; } .bmp-topic:hover { transform: none; } }

/* Źródła pod artykułem */
.bmp-sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--wp--preset--color--line); font-size: 15px; color: var(--wp--preset--color--muted); }
.bmp-sources h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: var(--wp--preset--color--ink); letter-spacing: 0; }
.bmp-sources ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.bmp-sources a { color: var(--wp--preset--color--muted); text-decoration: underline; text-underline-offset: 2px; }
.bmp-content ol, .bmp-content ul { padding-left: 22px; }
.bmp-content li + li { margin-top: 6px; }
