/* ========================================================================
   SOS BOLLETTE — Blog frontend (lista + articolo)
   Allineato con home.css: Cabinet Grotesk + Geist, accento giallo brand.
   ======================================================================== */

.bp {
    --bp-ink:      #111111;
    --bp-mute:     #6B6B6B;
    --bp-line:     #ECEAE3;
    --bp-soft:     #F8F7F2;
    --bp-yellow:   var(--sb-yellow);
    --bp-yellow-d: var(--sb-yellow-600);
    --bp-ease:     cubic-bezier(.22, 1, .36, 1);
    color: var(--bp-ink);
}

/* Wrap forte ovunque dentro .bp per evitare URL/parole infinite che fanno overflow orizzontale */
.bp, .bp * {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
}
.bp img, .bp svg, .bp video, .bp iframe { max-width: 100%; height: auto; }

.bp h1, .bp h2, .bp h3, .bp h4 {
    font-family: var(--sb-font-display);
    color: var(--bp-ink);
    letter-spacing: -0.025em;
    font-weight: 700;
}

.bp p { color: var(--bp-mute); }

.bp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sb-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--bp-yellow-d);
    font-weight: 500;
    margin-bottom: 18px;
}
.bp-eyebrow > span:first-child {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--bp-yellow);
    box-shadow: 0 0 0 4px rgba(255,255,102,.16);
}

/* ============================================================
   HERO LIST
   ============================================================ */
.bp-hero {
    padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
    background: #fff;
}
.bp-hero__inner {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}
.bp-hero__title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}
.bp-hero__title em {
    color: var(--bp-yellow-d);
    font-style: italic;
    font-weight: 500;
}
.bp-hero__lead {
    font-size: 17px;
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 auto 32px;
    color: var(--bp-mute);
}

/* Categorie filtro */
.bp-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
.bp-cat {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--bp-line);
    background: #fff;
    color: var(--bp-mute);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s var(--bp-ease);
}
.bp-cat:hover {
    background: var(--bp-soft);
    color: var(--bp-ink);
    border-color: var(--bp-line);
}
.bp-cat.is-active {
    background: var(--bp-ink);
    color: #fff;
    border-color: var(--bp-ink);
}

/* Search */
.bp-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 999px;
    padding: 6px 6px 6px 16px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}
.bp-search:focus-within {
    border-color: var(--bp-yellow);
    box-shadow: 0 0 0 4px rgba(255,255,102,.15);
}
.bp-search .material-symbols-rounded {
    color: var(--bp-mute);
    font-size: 20px;
}
.bp-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 0;
    font: inherit;
    font-size: 14px;
    color: var(--bp-ink);
    min-width: 0;
}
.bp-search__clear {
    font-size: 12px;
    color: var(--bp-mute);
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
}
.bp-search__clear:hover { background: var(--bp-soft); }

/* Pill categoria */
.bp-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--sb-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    background: rgba(255,255,255,.95);
    color: var(--cat, var(--bp-yellow-d));
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    text-decoration: none;
}
.bp-pill--link:hover { transform: translateY(-1px); }

/* Meta line */
.bp-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--sb-font-mono);
    font-size: 12px;
    color: var(--bp-mute);
}
.bp-meta__dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #C9C5B8;
}
.bp-meta strong { color: var(--bp-ink); font-weight: 600; }

/* ============================================================
   FEATURED
   ============================================================ */
.bp-featured {
    padding: 0 0 clamp(48px, 7vw, 80px);
    background: #fff;
}
.bp-featured__card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .35s var(--bp-ease), box-shadow .35s var(--bp-ease);
}
.bp-featured__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -28px rgba(15,23,42,.18);
}
.bp-featured__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
}
.bp-featured__cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--bp-ease);
}
.bp-featured__card:hover .bp-featured__cover img { transform: scale(1.04); }
.bp-featured__badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--bp-yellow);
    color: var(--bp-ink);
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--sb-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.bp-featured__body {
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bp-featured__body h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    line-height: 1.1;
    margin: 16px 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-featured__sub {
    font-size: 16px;
    color: var(--bp-mute);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-featured__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--bp-mute);
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 900px) {
    .bp-featured__card { grid-template-columns: 1fr; }
}

/* ============================================================
   GRID LIST
   ============================================================ */
.bp-list {
    padding: 0 0 clamp(72px, 9vw, 120px);
    background: #fff;
}
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.bp-grid > * { min-width: 0; }
@media (max-width: 900px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bp-grid { grid-template-columns: minmax(0, 1fr); } }

.bp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.bp-card__cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bp-ink);
    margin-bottom: 18px;
    transition: transform .35s var(--bp-ease);
}
.bp-card__cover:hover { transform: translateY(-3px); }
.bp-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--bp-ease);
    display: block;
}
.bp-card__cover:hover img { transform: scale(1.04); }
.bp-card__cover .bp-pill {
    position: absolute;
    top: 14px; left: 14px;
}

/* Cover fallback se nessuna immagine */
.bp-cover-fallback {
    position: absolute; inset: 0;
}
.bp-cover-fallback--0 { background: linear-gradient(135deg, #111 0%, #2A2A2A 100%); }
.bp-cover-fallback--1 { background: linear-gradient(135deg, #FDF6DE 0%, var(--bp-yellow) 100%); }
.bp-cover-fallback--2 { background: linear-gradient(135deg, #F1EFE6 0%, #C9C5B8 100%); }

.bp-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.bp-card__body h3 {
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
    /* Limita titolo a 2 righe */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-card__body h3 a {
    color: var(--bp-ink);
    text-decoration: none;
    transition: color .25s ease;
}
.bp-card__body h3 a:hover { color: var(--bp-yellow-d); }
.bp-card__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--bp-mute);
    /* Excerpt troncato a 2 righe */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.bp-card__read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--bp-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: gap .25s var(--bp-ease), color .25s ease;
}
.bp-card__read:hover {
    gap: 10px;
    color: var(--bp-yellow-d);
}
.bp-card__read .material-symbols-rounded {
    font-size: 16px;
    transition: transform .25s var(--bp-ease);
}
.bp-card__read:hover .material-symbols-rounded { transform: translateX(2px); }

/* Pagination */
.bp-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: clamp(40px, 6vw, 72px);
    padding-top: 24px;
    border-top: 1px solid var(--bp-line);
}
.bp-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--bp-line);
    border-radius: 12px;
    color: var(--bp-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    transition: all .25s var(--bp-ease);
}
.bp-pagination__btn:hover { background: var(--bp-soft); }
.bp-pagination__btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    background: var(--bp-soft);
}
.bp-pagination__info {
    font-family: var(--sb-font-mono);
    font-size: 12px;
    color: var(--bp-mute);
}

.bp-empty {
    text-align: center;
    padding: 80px 20px;
}
.bp-empty .material-symbols-rounded {
    font-size: 64px;
    color: #D9D5C7;
}
.bp-empty h3 { font-size: 1.5rem; margin: 16px 0 8px; }
.bp-empty p { color: var(--bp-mute); margin-bottom: 24px; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.bp--single { background: #fff; }

.bp-article__cover {
    margin: 0;
    overflow: hidden;
}
.bp-article__cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    object-position: center;
    background: #F5F2E8;
}

.bp-article__head {
    padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 48px);
    text-align: center;
}
.bp-article__title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1;
    letter-spacing: -0.04em;
    max-width: 22ch;
    margin: 18px auto 18px;
}
.bp-article__sub {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.5;
    color: var(--bp-mute);
    max-width: 60ch;
    margin: 0 auto 24px;
}
.bp-article__meta {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.bp-article__layout {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 40px;
    padding-bottom: clamp(64px, 9vw, 120px);
}
.bp-article__layout > * { min-width: 0; }
.bp-article__content {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 900px) {
    .bp-article__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* Share rail (desktop sticky) */
.bp-share-rail {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
/* Nascondi il rail sticky su mobile — DEVE stare dopo la definizione base
   del rail, altrimenti il `display: flex` sopra vince nella cascata e il
   rail resta fisso/centrato mentre si scorre. */
@media (max-width: 900px) {
    .bp-share-rail { display: none; }
}
.bp-share-rail__lbl {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--sb-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--bp-mute);
    margin-bottom: 8px;
}
.bp-share-rail .bp-share { flex-direction: column; gap: 8px; }
.bp-share-rail .bp-share__btn .bp-share__lbl { display: none; }
.bp-share-rail .bp-share__btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}
.bp-share-rail .bp-share__icon { width: 22px; height: 22px; }

/* Share buttons — WhatsApp / Facebook / Telegram con loghi ufficiali SVG */
.bp-share {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.bp-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 999px;
    color: var(--bp-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .25s var(--bp-ease), box-shadow .25s var(--bp-ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.bp-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15,23,42,.12);
    border-color: transparent;
    color: #fff;
}
.bp-share__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}
.bp-share__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
/* Colore brand di ogni piattaforma sull'icona */
.bp-share__btn--whatsapp .bp-share__icon { color: #25D366; }
.bp-share__btn--facebook .bp-share__icon { color: #1877F2; }
.bp-share__btn--telegram .bp-share__icon { color: #229ED9; }

/* Hover: il bottone si tinge del colore brand della piattaforma */
.bp-share__btn--whatsapp:hover { background: #25D366; }
.bp-share__btn--facebook:hover { background: #1877F2; }
.bp-share__btn--telegram:hover { background: #229ED9; }
.bp-share__btn:hover .bp-share__icon { color: #fff; }

/* ============================================================
   PROSE (contenuto Quill)
   ============================================================ */
.bp-prose {
    font-family: var(--sb-font-sans);
    font-size: 18px;
    line-height: 1.75;
    color: #2A2A2A;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}
.bp-prose > * + * { margin-top: 1.4em; }
.bp-prose p { color: #2A2A2A; line-height: 1.75; max-width: 100%; }
.bp-prose * { max-width: 100%; }
.bp-prose pre { white-space: pre-wrap; word-break: break-all; max-width: 100%; overflow-x: auto; }
.bp-prose code { word-break: break-all; }
.bp-prose a { word-break: break-all; }
.bp-prose h2 {
    font-family: var(--sb-font-display);
    font-size: 1.875rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: var(--bp-ink);
}
.bp-prose h3 {
    font-family: var(--sb-font-display);
    font-size: 1.4rem;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
    color: var(--bp-ink);
}
.bp-prose h4 {
    font-family: var(--sb-font-display);
    font-size: 1.15rem;
    margin-top: 1.4em;
    color: var(--bp-ink);
}
.bp-prose a {
    color: var(--bp-yellow-d);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease;
}
.bp-prose a:hover { color: var(--bp-ink); }
.bp-prose strong { color: var(--bp-ink); font-weight: 700; }
.bp-prose em { font-style: italic; }
.bp-prose ul, .bp-prose ol {
    padding-left: 1.4em;
    color: #2A2A2A;
}
.bp-prose ul { list-style: disc; }
.bp-prose ol { list-style: decimal; }
.bp-prose li + li { margin-top: 0.4em; }
.bp-prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 24px;
    border-left: 4px solid var(--bp-yellow);
    font-family: var(--sb-font-display);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--bp-ink);
}
.bp-prose code {
    background: var(--bp-soft);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: var(--sb-font-mono);
    font-size: 0.9em;
    color: var(--bp-yellow-d);
}
.bp-prose pre {
    background: var(--bp-ink);
    color: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: var(--sb-font-mono);
    font-size: 13px;
    line-height: 1.6;
}
.bp-prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}
.bp-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}
.bp-prose hr {
    border: none;
    border-top: 1px solid var(--bp-line);
    margin: 2em 0;
}

/* Tags fine articolo */
.bp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--bp-line);
    align-items: center;
}
.bp-tags__lbl {
    font-family: var(--sb-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--bp-mute);
    margin-right: 8px;
}
.bp-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bp-soft);
    font-size: 12px;
    color: var(--bp-ink);
    font-weight: 500;
}

/* Allegati */
.bp-attachments {
    margin-top: 48px;
    padding: 28px;
    background: var(--bp-soft);
    border: 1px solid var(--bp-line);
    border-radius: 18px;
}
.bp-attachments__head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.bp-attachments__head .material-symbols-rounded {
    width: 38px; height: 38px;
    background: var(--bp-yellow);
    color: var(--bp-ink);
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.bp-attachments__head h2 {
    font-size: 1.25rem;
    margin: 0;
}
.bp-attachments__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.bp-att {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--bp-ink);
    transition: all .25s var(--bp-ease);
}
.bp-att:hover {
    border-color: var(--bp-yellow);
    transform: translateX(4px);
}
.bp-att__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--bp-soft);
    color: var(--bp-yellow-d);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.bp-att__info { flex: 1; min-width: 0; }
.bp-att__name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--bp-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bp-att__meta {
    font-family: var(--sb-font-mono);
    font-size: 11px;
    color: var(--bp-mute);
}
.bp-att__cta {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--bp-ink);
    color: var(--bp-yellow);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Share footer (mobile-friendly + always visible) */
.bp-share-foot {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--bp-line);
    text-align: center;
}
.bp-share-foot__lbl {
    font-family: var(--sb-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--bp-mute);
}
.bp-share-foot h2 {
    font-size: 1.5rem;
    margin: 8px 0 18px;
}
.bp-share-foot .bp-share { justify-content: center; }

/* ============================================================
   RELATED + CTA FINAL
   ============================================================ */
.bp-related {
    padding: clamp(64px, 8vw, 100px) 0;
    background: var(--bp-soft);
}
.bp-related__head {
    text-align: center;
    margin-bottom: 40px;
}
.bp-related__head h2 {
    font-size: clamp(1.875rem, 3.4vw, 2.5rem);
    margin-top: 14px;
}

/* ============================================================
   NEWSLETTER (versione minimal)
   ============================================================ */
.bp-newsletter {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #fff;
}
.bp-newsletter__panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 28px 32px;
    border-top: 1px solid var(--bp-line);
    border-bottom: 1px solid var(--bp-line);
}
.bp-newsletter__text h2 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bp-ink);
    margin: 0 0 4px;
    letter-spacing: -0.015em;
}
.bp-newsletter__text p {
    font-size: 14px;
    color: var(--bp-mute);
    margin: 0;
}

.bp-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bp-newsletter__row {
    display: flex;
    gap: 8px;
}
.bp-newsletter__input {
    flex: 1;
    min-width: 240px;
    padding: 12px 16px;
    border: 1px solid var(--bp-line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: var(--bp-ink);
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.bp-newsletter__input:focus {
    border-color: var(--bp-yellow);
    box-shadow: 0 0 0 3px rgba(255,255,102,.18);
}
.bp-newsletter__input::placeholder { color: var(--bp-mute); }

.bp-newsletter__btn {
    padding: 12px 24px;
    background: var(--bp-ink);
    color: #fff;
    border: none;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease, transform .25s var(--bp-ease);
}
.bp-newsletter__btn:hover {
    background: var(--bp-yellow-d);
}
.bp-newsletter__btn:active { transform: translateY(1px); }
.bp-newsletter__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.bp-newsletter__feedback {
    min-height: 18px;
    font-size: 12px;
    font-weight: 500;
    padding-left: 16px;
}
.bp-newsletter__feedback.is-success { color: #047857; }
.bp-newsletter__feedback.is-error   { color: #B91C1C; }

@media (max-width: 720px) {
    .bp-newsletter__panel { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
    .bp-newsletter__row { flex-direction: column; }
    .bp-newsletter__input, .bp-newsletter__btn { width: 100%; min-height: 48px; }
    .bp-newsletter__input { font-size: 16px; }
}

@media (max-width: 600px) {
    .bp-hero { padding: 56px 0 32px; }
    .bp-hero__title { font-size: clamp(1.875rem, 8vw, 2.5rem); }
    .bp-hero__lead { font-size: 16px; }
    .bp-cats { gap: 6px; padding: 0 4px; }
    .bp-cat { font-size: 12.5px; padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center; }

    .bp-article__head { padding: 32px 0 16px; }
    .bp-article__title { font-size: clamp(1.75rem, 7vw, 2.25rem); margin: 12px auto 14px; }
    .bp-article__sub { font-size: 1rem; }
    .bp-article__layout { gap: 0; }

    /* Make share buttons readable & tappable on mobile */
    .bp-share { gap: 8px; justify-content: center; }
    .bp-share__btn { padding: 10px 14px; font-size: 13px; min-height: 44px; }

    .bp-prose { font-size: 17px; line-height: 1.7; }
    .bp-prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
    .bp-prose h3 { font-size: 1.2rem; }

    .bp-pagination { gap: 12px; }
    .bp-pagination__btn { padding: 10px 14px; font-size: 13px; min-height: 44px; }

    /* Featured card readable on small phones */
    .bp-featured__body { padding: 22px; }
    .bp-featured__body h2 { font-size: 1.4rem; }
    .bp-featured__excerpt { font-size: 14px; }

    /* Search input — anti iOS zoom */
    .bp-search input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .bp *, .bp *::before, .bp *::after { transition-duration: .01ms !important; }
}
