/*
Theme Name: Blog Poster
Theme URI: https://blog-poster.com
Author: S&H Software Solution
Description: Theme for Blog Poster. Write once, publish on schedule. Classic PHP theme, no plugins, system fonts.
Version: 1.0.1
Requires PHP: 8.1
License: Proprietary
Text Domain: blogposter
*/

:root {
  --bp-indigo: #2B2D7C;
  --bp-indigo-dark: #1E2060;
  --bp-indigo-soft: #ECEDFA;
  --bp-coral: #FF6B4A;
  --bp-coral-soft: #FFE9E3;
  --bp-paper: #FAF8F5;
  --bp-sand: #EFEAE3;
  --bp-ink: #1B1C2E;
  --bp-muted: #5E6072;
  --bp-white: #FFFFFF;
  --bp-radius: 22px;
  --bp-radius-sm: 14px;
  --bp-shadow: 0 22px 50px -28px rgba(43, 45, 124, .45);
  --bp-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bp-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bp-paper); color: var(--bp-ink); font: 17px/1.65 var(--bp-font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bp-indigo); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-family: var(--bp-serif); font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); font-weight: 700; }
h2 { font-family: var(--bp-serif); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.bp-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.bp-wrap--text { width: min(740px, 100% - 32px); }
.bp-wrap--wide { width: min(1000px, 100% - 32px); }
.bp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bp-skip { position: absolute; left: -999px; top: 8px; background: var(--bp-white); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.bp-skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--bp-coral); outline-offset: 3px; border-radius: 6px; }

/* Buttons and links */
.bp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; background: var(--bp-indigo); color: var(--bp-white);
  border: 2px solid var(--bp-indigo); border-radius: 999px; padding: .62em 1.3em; font: 600 1rem/1.2 var(--bp-font); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s; }
.bp-btn:hover { background: var(--bp-indigo-dark); border-color: var(--bp-indigo-dark); transform: translateY(-1px); box-shadow: var(--bp-shadow); }
.bp-btn--ghost { background: transparent; color: var(--bp-indigo); }
.bp-btn--ghost:hover { background: var(--bp-indigo-soft); border-color: var(--bp-indigo); }
.bp-btn--light { background: var(--bp-white); color: var(--bp-indigo); border-color: var(--bp-white); }
.bp-btn--light:hover { background: var(--bp-coral-soft); border-color: var(--bp-coral-soft); }
.bp-btn--big { padding: .85em 1.6em; font-size: 1.05rem; }
.bp-link { color: var(--bp-ink); text-decoration: none; font-weight: 600; }
.bp-link:hover { color: var(--bp-indigo); }
.bp-link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.bp-link-arrow::after { content: " →"; transition: margin .2s; }
.bp-link-arrow:hover::after { margin-left: 4px; }

/* Header */
.bp-header { position: sticky; top: 0; z-index: 30; background: rgba(250, 248, 245, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--bp-sand); }
.bp-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.bp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bp-indigo); }
.bp-brand__name { font: 700 1.3rem/1 var(--bp-serif); letter-spacing: -.01em; }
.bp-brand__name span { color: var(--bp-coral); }
.bp-brand--light { color: var(--bp-white); }
.bp-nav { display: flex; align-items: center; gap: 26px; }
.bp-nav > a { color: var(--bp-ink); text-decoration: none; font-weight: 500; }
.bp-nav > a:hover { color: var(--bp-indigo); }
.bp-nav__account { display: inline-flex; align-items: center; gap: 18px; margin-left: 6px; }
.bp-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.bp-burger span { display: block; height: 2px; background: var(--bp-ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 900px) {
  .bp-burger { display: block; }
  .bp-nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bp-paper);
    border-bottom: 1px solid var(--bp-sand); padding: 8px 16px 18px; display: none; }
  .bp-nav.is-open { display: flex; }
  .bp-nav > a { padding: 12px 4px; border-bottom: 1px solid var(--bp-sand); }
  .bp-nav__account { margin: 14px 0 0; justify-content: space-between; }
  .bp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .bp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.bp-hero { padding: clamp(40px, 6vw, 84px) 0 clamp(30px, 4vw, 56px); position: relative; overflow: hidden; }
.bp-hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--bp-coral-soft), transparent); z-index: -1; }
.bp-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.bp-hero h1 span { color: var(--bp-indigo); }
.bp-lead { font-size: 1.15rem; color: var(--bp-muted); max-width: 36em; }
.bp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.bp-hero__note { font-size: .92rem; color: var(--bp-muted); }
@media (max-width: 900px) { .bp-hero__grid { grid-template-columns: 1fr; } }

/* Hero visual: publishing queue built in CSS */
.bp-queue { background: var(--bp-white); border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); padding: 22px; border: 1px solid var(--bp-sand); transform: rotate(-1.2deg); }
.bp-queue__head, .bp-queue__foot { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.bp-queue__head { margin-bottom: 14px; }
.bp-queue__title { font-weight: 700; color: var(--bp-indigo); }
.bp-queue__live { display: inline-flex; align-items: center; gap: 6px; color: var(--bp-muted); }
.bp-queue__live i { width: 8px; height: 8px; border-radius: 50%; background: #2DBE8C; box-shadow: 0 0 0 0 rgba(45, 190, 140, .6); animation: bp-pulse 2s infinite; }
@keyframes bp-pulse { 70% { box-shadow: 0 0 0 8px rgba(45, 190, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 190, 140, 0); } }
.bp-queue__row { display: grid; grid-template-columns: 84px 1fr 22px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bp-paper); margin-bottom: 8px; }
.bp-queue__when { font-size: .82rem; color: var(--bp-muted); font-variant-numeric: tabular-nums; }
.bp-queue__title-row { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-queue__state { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--bp-sand); }
.bp-queue__row.is-done { opacity: .6; }
.bp-queue__row.is-done .bp-queue__state { border-color: #2DBE8C; background: #2DBE8C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.bp-queue__row.is-next { background: var(--bp-coral-soft); }
.bp-queue__row.is-next .bp-queue__state { border-color: var(--bp-coral); border-right-color: transparent; animation: bp-spin 1.6s linear infinite; }
@keyframes bp-spin { to { transform: rotate(360deg); } }
.bp-queue__foot { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--bp-sand); color: var(--bp-muted); }
.bp-queue__foot b { color: var(--bp-ink); }

/* Sections */
.bp-section { padding: clamp(48px, 7vw, 96px) 0; }
.bp-section--tight { padding-top: 24px; }
.bp-section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.bp-section__head h2 { margin: 0; }
.bp-section__head--center { flex-direction: column; align-items: center; text-align: center; }
.bp-section__head--center p { color: var(--bp-muted); max-width: 38em; margin: 6px 0 0; }

/* Latest posts */
.bp-latest { padding-top: 24px; }
.bp-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bp-card { background: var(--bp-white); border-radius: var(--bp-radius); overflow: hidden; border: 1px solid var(--bp-sand); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; }
.bp-card:hover { transform: translateY(-3px); box-shadow: var(--bp-shadow); }
.bp-card__cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bp-indigo-soft); }
.bp-cover__img { width: 100%; height: 100%; object-fit: cover; }
.bp-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.bp-card__title { font-family: var(--bp-serif); font-size: 1.28rem; margin: 6px 0 8px; }
.bp-card__title a { color: var(--bp-ink); text-decoration: none; }
.bp-card__title a:hover { color: var(--bp-indigo); }
.bp-card__excerpt { color: var(--bp-muted); font-size: .97rem; flex: 1; }
.bp-card__author { font-size: .88rem; color: var(--bp-muted); }
.bp-card--lead { grid-column: span 2; grid-row: span 2; }
.bp-card--lead .bp-card__cover { aspect-ratio: auto; flex: 1; min-height: 320px; }
.bp-card--lead .bp-card__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.bp-posts--grid .bp-card--lead { grid-column: auto; grid-row: auto; }
@media (max-width: 980px) { .bp-posts { grid-template-columns: repeat(2, 1fr); } .bp-card--lead { grid-row: auto; } }
@media (max-width: 640px) { .bp-posts { grid-template-columns: 1fr; } .bp-card--lead { grid-column: auto; } }

.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .86rem; color: var(--bp-muted); }
.bp-badge { display: inline-block; background: var(--bp-coral-soft); color: #B23A1E; font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 999px; text-decoration: none; }

/* Generated covers (no image needed) */
.bp-cover__gen { position: relative; display: flex; align-items: end; justify-content: space-between; width: 100%; height: 100%; padding: 18px 20px; overflow: hidden; color: var(--bp-white); }
.bp-cover__gen::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: -30%; background: rgba(255, 255, 255, .14); }
.bp-cover__gen::after { content: ""; position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; left: -10%; bottom: -25%; border: 18px solid rgba(255, 255, 255, .1); }
.bp-cover__letter { font: 700 clamp(3rem, 6vw, 5.4rem)/1 var(--bp-serif); position: relative; }
.bp-cover__tag { position: relative; background: rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.bp-tone-0 { background: linear-gradient(135deg, #2B2D7C, #4B4FC4); }
.bp-tone-1 { background: linear-gradient(135deg, #FF6B4A, #FF9A6B); }
.bp-tone-2 { background: linear-gradient(135deg, #1F6F6A, #38A89D); }
.bp-tone-3 { background: linear-gradient(135deg, #5A2D82, #9255C7); }
.bp-tone-4 { background: linear-gradient(135deg, #C2410C, #F59E0B); }
.bp-tone-5 { background: linear-gradient(135deg, #1E3A5F, #3B82C4); }

.bp-upcoming { margin-top: 30px; background: var(--bp-indigo-soft); border-radius: var(--bp-radius); padding: 20px 24px; }
.bp-upcoming h3 { margin: 0 0 10px; color: var(--bp-indigo); }
.bp-upcoming ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; }
.bp-upcoming li { display: flex; gap: 12px; align-items: baseline; }
.bp-upcoming time { font-weight: 700; color: var(--bp-coral); min-width: 52px; }
.bp-empty { background: var(--bp-white); border: 1px dashed var(--bp-sand); border-radius: var(--bp-radius); padding: 32px; text-align: center; }

/* How it works: flow with arrows */
.bp-how { background: var(--bp-white); border-block: 1px solid var(--bp-sand); }
.bp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; counter-reset: none; }
.bp-flow__step { position: relative; background: var(--bp-paper); border-radius: var(--bp-radius); padding: 24px 22px; }
.bp-flow__step:not(:last-child)::after { content: ""; position: absolute; right: -27px; top: 42px; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h12M10 4l6 6-6 6' fill='none' stroke='%23FF6B4A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.bp-flow__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bp-indigo); color: var(--bp-white); font-weight: 700; margin-bottom: 12px; }
.bp-flow__step p { color: var(--bp-muted); font-size: .97rem; margin: 0; }
.bp-flow__step--auto { background: var(--bp-indigo); color: var(--bp-white); }
.bp-flow__step--auto p { color: rgba(255, 255, 255, .8); }
.bp-flow__step--auto .bp-flow__num { background: var(--bp-coral); }
@media (max-width: 980px) {
  .bp-flow { grid-template-columns: 1fr 1fr; }
  .bp-flow__step:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .bp-flow { grid-template-columns: 1fr; gap: 30px; }
  .bp-flow__step:not(:last-child)::after { display: block; right: 50%; top: auto; bottom: -26px; transform: translateX(50%) rotate(90deg); }
}

/* Features */
.bp-features__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.bp-features__intro p { color: var(--bp-muted); font-size: 1.08rem; }
.bp-features__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bp-feature { background: var(--bp-white); border: 1px solid var(--bp-sand); border-radius: var(--bp-radius); padding: 22px; }
.bp-feature p { color: var(--bp-muted); font-size: .97rem; margin: 0; }
.bp-feature__icon { display: block; width: 46px; height: 46px; border-radius: 14px; background: var(--bp-coral-soft) center/24px no-repeat; margin-bottom: 14px; }
.bp-ico-batch { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2D7C' stroke-width='2' stroke-linecap='round'%3E%3Crect x='7' y='3' width='13' height='15' rx='2'/%3E%3Cpath d='M4 7v12a2 2 0 0 0 2 2h10M10 8h7M10 12h7'/%3E%3C/svg%3E"); }
.bp-ico-calendar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2D7C' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M8 14h2M14 14h2M8 17h2'/%3E%3C/svg%3E"); }
.bp-ico-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2D7C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.bp-ico-edit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2D7C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16v4zM13 7l4 4'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .bp-features__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bp-features__list { grid-template-columns: 1fr; } }

/* Sign-up band */
.bp-band { padding-top: 0; }
.bp-band__inner { background: var(--bp-indigo); color: var(--bp-white); border-radius: calc(var(--bp-radius) + 8px); padding: clamp(28px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.bp-band__inner::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -80px; bottom: -160px; background: rgba(255, 107, 74, .35); }
.bp-band__inner > * { position: relative; z-index: 1; }
.bp-band h2 { color: var(--bp-white); margin: 0 0 6px; }
.bp-band p { margin: 0; color: rgba(255, 255, 255, .82); }
@media (max-width: 760px) { .bp-band__inner { flex-direction: column; align-items: flex-start; } }

/* Page head, search, pager */
.bp-page-head { padding: clamp(40px, 6vw, 72px) 0 16px; }
.bp-page-head p { color: var(--bp-muted); font-size: 1.1rem; max-width: 40em; }
.bp-search { display: flex; gap: 10px; margin-top: 18px; max-width: 520px; }
.bp-search input { flex: 1; min-width: 0; font: inherit; padding: .62em 1.1em; border-radius: 999px; border: 2px solid var(--bp-sand); background: var(--bp-white); }
.bp-search input:focus { border-color: var(--bp-indigo); outline: none; }
.bp-pager { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.bp-pager .page-numbers { padding: 8px 14px; border-radius: 999px; background: var(--bp-white); border: 1px solid var(--bp-sand); text-decoration: none; }
.bp-pager .current { background: var(--bp-indigo); color: var(--bp-white); border-color: var(--bp-indigo); }

/* Article */
.bp-article__head { padding: clamp(40px, 6vw, 72px) 0 26px; }
.bp-article__head h1 { margin: 14px 0 12px; }
.bp-byline { display: flex; align-items: center; gap: 12px; color: var(--bp-muted); margin-top: 18px; }
.bp-byline__avatar { border-radius: 50%; }
.bp-article__cover { border-radius: var(--bp-radius); overflow: hidden; aspect-ratio: 16 / 7; margin-bottom: 40px; }
.bp-article__cover .bp-cover__gen { padding: 28px 34px; }
.bp-prose { font-size: 1.12rem; line-height: 1.8; }
.bp-prose h2 { margin: 1.8em 0 .5em; font-size: 1.7rem; }
.bp-prose h3 { margin: 1.5em 0 .4em; font-size: 1.3rem; }
.bp-prose ul, .bp-prose ol { padding-left: 1.3em; }
.bp-prose li { margin-bottom: .4em; }
.bp-prose blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--bp-indigo-soft); border-radius: var(--bp-radius-sm); font-family: var(--bp-serif); font-size: 1.2rem; }
.bp-prose img { border-radius: var(--bp-radius-sm); }
.bp-prose a { text-underline-offset: 3px; }
.bp-article__foot { padding: 30px 0 60px; }
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.bp-tags a { background: var(--bp-white); border: 1px solid var(--bp-sand); border-radius: 999px; padding: 4px 12px; font-size: .88rem; text-decoration: none; }
.bp-cta-card { display: flex; align-items: center; gap: 18px; background: var(--bp-white); border: 1px solid var(--bp-sand); border-radius: var(--bp-radius); padding: 22px; box-shadow: var(--bp-shadow); }
.bp-cta-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.bp-cta-card p { margin: 0; color: var(--bp-muted); font-size: .97rem; }
.bp-cta-card .bp-btn { margin-left: auto; flex-shrink: 0; }
@media (max-width: 640px) { .bp-cta-card { flex-direction: column; align-items: flex-start; } .bp-cta-card .bp-btn { margin-left: 0; } }
.bp-nextprev { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; font-weight: 600; }
.bp-nextprev a { text-decoration: none; }
.bp-404 { text-align: center; padding-bottom: 100px; }

/* Footer */
.bp-footer { background: var(--bp-ink); color: rgba(255, 255, 255, .78); padding: 56px 0 24px; margin-top: 40px; }
.bp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.bp-footer__grid a, .bp-footer__cookie { display: block; color: rgba(255, 255, 255, .78); text-decoration: none; margin-bottom: 8px; }
.bp-footer__grid a:hover, .bp-footer__cookie:hover { color: var(--bp-white); }
.bp-footer__brand p { margin-top: 12px; }
.bp-footer__title { font: 700 .95rem/1.4 var(--bp-font); color: var(--bp-white); margin-bottom: 12px; }
.bp-footer__cookie { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.bp-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; font-size: .88rem; }
@media (max-width: 800px) { .bp-footer__grid { grid-template-columns: 1fr 1fr; } }

/* Cookie notice and back to top */
.bp-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 620px; margin-inline: auto; background: var(--bp-white);
  border-radius: var(--bp-radius); box-shadow: 0 24px 60px -20px rgba(27, 28, 46, .45); padding: 18px 20px; display: flex; gap: 16px; align-items: center; border: 1px solid var(--bp-sand); }
.bp-cookie[hidden] { display: none; }
.bp-cookie p { margin: 0; font-size: .95rem; }
@media (max-width: 560px) { .bp-cookie { flex-direction: column; align-items: stretch; } }
.bp-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bp-sand);
  background: var(--bp-white); color: var(--bp-indigo); font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 24px -14px rgba(27, 28, 46, .5); }
.bp-top[hidden] { display: none; }

/* Phones: blog first. Hide the decorative queue and keep the lead card compact. */
@media (max-width: 640px) {
  .bp-hero__visual { display: none; }
  .bp-hero { padding-bottom: 8px; }
  .bp-card--lead .bp-card__cover { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
}

/* Fixes 1.0.1 */
.bp-card__cover, .bp-article__cover a { text-decoration: none; }
.bp-card--lead .bp-card__body { flex: none; }
section[id] { scroll-margin-top: 84px; }
