/* Only the newsletter and the explicit Instagram profile fallback are restyled. */
.davenport-subscribe-block:has(.bonapartis-newsletter-card) {
    padding: 0;
    background: transparent;
}
.davenport-subscribe-block:has(.bonapartis-newsletter-card) > .davenport-subscribe-block-icon {
    display: none;
}
.bonapartis-newsletter-card,
.bonapartis-instagram-card {
    --bonapartis-blog-ink: #29232d;
    --bonapartis-blog-muted: #594d60;
    --bonapartis-blog-accent: #6b368b;
    --bonapartis-blog-accent-hover: #522568;
    --bonapartis-blog-surface: #faf7fc;
    box-sizing: border-box;
    color: var(--bonapartis-blog-ink);
    background: var(--bonapartis-blog-surface);
    border: 1px solid #dfd0e7;
    border-radius: 16px;
    text-align: left;
}
.bonapartis-newsletter-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 36px;
    align-items: center;
    padding: 36px;
    margin: 0 auto;
    max-width: 1140px;
}
.bonapartis-newsletter-card > div,
.bonapartis-instagram-card > div {
    min-width: 0;
}
.bonapartis-newsletter-card .bonapartis-newsletter-kicker {
    color: var(--bonapartis-blog-accent);
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0 0 10px;
}
.bonapartis-newsletter-card h2 {
    color: var(--bonapartis-blog-ink);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    margin: 0 0 14px;
}
.bonapartis-newsletter-card p,
.bonapartis-instagram-card p {
    color: var(--bonapartis-blog-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}
.bonapartis-newsletter-card .tnp-subscription {
    width: 100%;
    max-width: none;
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: left;
}
.bonapartis-newsletter-card .tnp-field {
    padding: 0;
    margin: 0 0 16px;
}
.bonapartis-newsletter-card .tnp-field:last-child {
    margin-bottom: 0;
}
.bonapartis-newsletter-card .tnp-field > label {
    color: var(--bonapartis-blog-ink);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    margin: 0 0 8px;
}
.bonapartis-newsletter-card input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #8a788c;
    border-radius: 8px;
    background: #fff;
    color: #29232d;
    font-size: 16px;
    line-height: 1.4;
}
.bonapartis-newsletter-card input[type="email"]::placeholder {
    color: #66596d;
    opacity: 1;
}
.bonapartis-newsletter-card .tnp-privacy-field > label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 13px;
    line-height: 1.55;
}
.bonapartis-newsletter-card .tnp-privacy {
    appearance: auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--bonapartis-blog-accent);
}
.bonapartis-newsletter-card .tnp-privacy-field a,
.bonapartis-newsletter-card .tnp-privacy-field a:visited {
    color: #543378;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}
.bonapartis-newsletter-card .tnp-privacy-field a:hover {
    color: #3c2058;
}
.bonapartis-newsletter-card input[type="submit"],
.bonapartis-instagram-card .bonapartis-instagram-link,
.bonapartis-instagram-card .bonapartis-instagram-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--bonapartis-blog-accent);
    border-radius: 8px;
    background: var(--bonapartis-blog-accent);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
    letter-spacing: .02em;
    white-space: normal;
    cursor: pointer;
}
.bonapartis-newsletter-card input[type="submit"]:hover,
.bonapartis-instagram-card .bonapartis-instagram-link:hover {
    background: var(--bonapartis-blog-accent-hover);
    border-color: var(--bonapartis-blog-accent-hover);
    color: #fff;
}
.bonapartis-newsletter-card :is(input, a):focus-visible,
.bonapartis-instagram-card a:focus-visible {
    outline: 2px solid var(--bonapartis-blog-accent);
    outline-offset: 3px;
}
.bonapartis-instagram-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
}
.bonapartis-instagram-card .bonapartis-instagram-account {
    color: var(--bonapartis-blog-ink);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.bonapartis-instagram-card .bonapartis-instagram-link {
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .bonapartis-newsletter-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 24px 20px;
    }
    .bonapartis-instagram-card {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px 20px;
    }
    .bonapartis-newsletter-card input[type="submit"] {
        width: 100%;
    }
}
@media (forced-colors: active) {
    .bonapartis-newsletter-card,
    .bonapartis-instagram-card {
        border-color: CanvasText;
    }
    .bonapartis-newsletter-card :is(input, a):focus-visible,
    .bonapartis-instagram-card a:focus-visible {
        outline-color: Highlight;
    }
}

/* Keep the photo untouched; provide a stable surface only behind grid2 titles. */
.davenport-postsgrid2-block-wrapper .davenport-overlay-post.davenport-post-invert .post-title {
    line-height: 1.55;
}
.davenport-postsgrid2-block-wrapper .davenport-overlay-post.davenport-post-invert .post-title > a,
.davenport-postsgrid2-block-wrapper .davenport-overlay-post.davenport-post-invert .post-title > a:visited {
    background: #29232d;
    color: #fff;
    padding: .12em .35em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: none;
}
.davenport-postsgrid2-block-wrapper .davenport-overlay-post.davenport-post-invert .post-title > a:hover {
    background: #522568;
    color: #fff;
}
.davenport-postsgrid2-block-wrapper .davenport-overlay-post.davenport-post-invert .post-title > a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #29232d;
}
@media (forced-colors: active) {
    .davenport-postsgrid2-block-wrapper .davenport-overlay-post.davenport-post-invert .post-title > a,
    .davenport-postsgrid2-block-wrapper .davenport-overlay-post.davenport-post-invert .post-title > a:visited,
    .davenport-postsgrid2-block-wrapper .davenport-overlay-post.davenport-post-invert .post-title > a:hover {
        background: Canvas;
        color: LinkText;
    }
    .davenport-postsgrid2-block-wrapper .davenport-overlay-post.davenport-post-invert .post-title > a:focus-visible {
        outline-color: Highlight;
        box-shadow: none;
    }
}

/* Enlarge the existing credit without changing its text, link or footer layout. */
.footer-wrapper footer .footer-copyright {
    font-size: 17px;
    line-height: 1.6;
}
.footer-wrapper footer .footer-copyright a {
    font-size: inherit;
    line-height: inherit;
}
.footer-wrapper footer.footer-white .footer-copyright {
    color: #594d60;
}
.footer-wrapper footer.footer-white .footer-copyright a,
.footer-wrapper footer.footer-white .footer-copyright a:visited {
    color: #543378;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-wrapper footer.footer-white .footer-copyright a:hover {
    color: #3c2058;
}
.footer-wrapper footer .footer-copyright a:focus-visible {
    outline: 2px solid #543378;
    outline-offset: 3px;
}
@media (forced-colors: active) {
    .footer-wrapper footer .footer-copyright {
        color: CanvasText;
    }
    .footer-wrapper footer .footer-copyright a,
    .footer-wrapper footer .footer-copyright a:visited,
    .footer-wrapper footer .footer-copyright a:hover {
        color: LinkText;
    }
    .footer-wrapper footer .footer-copyright a:focus-visible {
        outline-color: Highlight;
    }
}
