/* Vetted Blog - Article Stylesheet
   ================================
   Article-only components (layout, hero, TOC, tables, callouts, podcast player, related cards...).
   Linked ONLY by blog article pages, after /static/base.css (the site-wide font, palette, reset and
   shared components). Served by the API at /static/article.css?v=<content hash>
   (routes/ssr/core/sharedAssets.ts). Do NOT duplicate these styles inline - link to this file instead. */

.article-body a {
    color: var(--text-bright);
    text-decoration: none;
    background-image: linear-gradient(90deg, #60a5fa, #3b82f6);
    background-size: 100% 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    padding-bottom: 2px;
    transition: background-size 0.2s ease;
}
.article-body a:hover {
    background-size: 100% 3.5px;
}
.article-body .breadcrumb a,
.article-body a:has(img),
.article-body .references-list a {
    color: var(--link);
    background-image: none;
    padding-bottom: 0;
}
.article-body a.insurance-compare-banner,
.article-body a.provider-card,
.article-body a.provider-callout {
    color: inherit;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.article-body a.insurance-compare-banner {
    background: linear-gradient(135deg, #1a1708 0%, #2a2210 50%, #1f2937 100%);
    background-size: auto;
    background-position: initial;
    background-repeat: repeat;
    padding-bottom: 1.5rem;
}
.article-body a.provider-card {
    background: var(--surface);
    background-image: none;
    background-size: auto;
    background-position: initial;
    background-repeat: repeat;
    padding: 1rem 1.25rem;
}
.article-body a.provider-callout {
    background: linear-gradient(135deg, #1a2535 0%, #1f2937 100%);
    background-size: auto;
    background-position: initial;
    background-repeat: repeat;
    padding: 1.25rem 1.75rem;
}

/* ── Layout ─────────────────────────────── */

/* Same padding as the blog LISTING page wrapper (`.bp-page`: `2rem 1.5rem 4rem`, and
   `1.5rem 1rem 3rem` under 600px) so both blog surfaces line up edge to edge. The 50rem measure
   stays narrower on purpose: that is the article's reading width, not its page width. */
.article-body {
    max-width: 50rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Meta row ───────────────────────────── */

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.article-category {
    background-color: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

/* ── Title row + logo ───────────────────── */

.article-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.article-title-row h1 {
    margin: 0;
    flex: 1;
}

.site-header-logo {
    height: 6rem;
    width: auto;
    flex-shrink: 0;
}

.article-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-author-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.85rem;
}

.article-author-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ── Reviewed-by badge ──────────────────── */

.reviewed-by {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.reviewed-by-pic {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent);
    flex-shrink: 0;
}

.reviewed-by-link {
    display: inline-flex;
    flex-shrink: 0;
}

.reviewed-by-link:hover .reviewed-by-pic,
.reviewed-by-link:focus-visible .reviewed-by-pic {
    border-color: var(--text-bright);
    box-shadow: 0 0 0 2px var(--accent);
}

.reviewed-by-label {
    color: var(--accent);
    font-weight: 700;
    width: 100%;
    order: -1;
}

.reviewed-by-name {
    font-weight: 700;
    color: var(--text-bright);
}

.reviewed-by-title {
    color: #9ca3af;
}

/* ── Lead paragraph ─────────────────────── */

.article-lead {
    font-size: 1.05rem;
    color: var(--text-bright);
    line-height: 1.9;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* ── Hero image ─────────────────────────── */

.article-hero-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--surface);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-hero-image.loaded {
    opacity: 1;
}

.article-hero-credit {
    text-align: left;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: -0.85rem;
    margin-bottom: 1rem;
}

/* ── Inline section image ───────────────── */

.article-section-image {
    width: auto;
    max-width: 20rem;
    height: 16rem;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
    margin: 1.5rem auto;
}

/* ── Campaign banner between article sections ─────────────
   The wrapper for the `blog.article.inline_banner` slot: the creative is spliced into the article
   by the SSR route (campaigns/articleCampaign.ts) above the table of contents and before every
   second section. The band (12rem desktop, 3:2 under 600px) comes from the SHARED campaign CSS,
   which that route inlines into the head with the copies - this file only spaces the band, so a
   band change happens in one place (packages/api/src/routes/ssr/styles/campaign.css). */

.ba-campaign-banner {
    margin: 2rem 0;
}

.ba-campaign-banner .campaign-image-banner {
    display: block;
    width: 100%;
}

.article-section-image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

/* ── Embedded YouTube Video ─────────────── */

.article-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--surface);
}

.article-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-video-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ── Spotify Embed ──────────────────────── */

.article-spotify-container {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.article-spotify-container iframe {
    width: 100%;
    border: 0;
}

/* ── Table of Contents ──────────────────── */

.toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.toc-title {
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.toc ol {
    margin: 0;
    padding-right: 1.25rem;
}

.toc li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.toc a {
    color: var(--link);
    background-image: none;
    padding-bottom: 0;
}
.toc a:hover {
    background-size: 0;
}

/* ── Data table ─────────────────────────── */

/* A wide table must scroll INSIDE this box. Without it the table's min-content
   width pushes the whole article page into a horizontal scroll. */
.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.25rem 0 1.75rem;
}

.table-scroll > .data-table {
    margin: 0;
    min-width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.75rem;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--surface);
    color: var(--text-bright);
    padding: 0.6rem 0.85rem;
    text-align: right;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

.data-table td {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) td {
    background: #191a1f;
}

/* ── Callout ────────────────────────────── */

.callout {
    background-color: #1a2535;
    border: 1px solid #2d4a6e;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.callout-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.callout p {
    margin: 0;
    font-size: 0.95rem;
}

.callout.warning {
    border-color: #ef4444;
    background-color: #1f0f0f;
}

/* ── CTA callout ────────────────────────── */

.callout-cta {
    background: linear-gradient(135deg, #1a2535 0%, #1f2937 100%);
    border: 1.5px solid var(--accent);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 2.5rem;
}

.callout-cta .callout-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.callout-cta p {
    margin: 0 0 0.4rem;
}

.callout-cta p:last-child {
    margin-bottom: 0;
}

/* ── Provider callout ───────────────────── */

.provider-callout {
    background: linear-gradient(135deg, #1a2535 0%, #1f2937 100%);
    border: 1.5px solid var(--accent);
    border-radius: 1rem;
    padding: 1.25rem 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.provider-callout:hover {
    border-color: var(--accent-hover, #60a5fa);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.15);
}

.provider-callout .provider-callout-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.provider-callout .provider-callout-body {
    flex: 1;
}

.provider-callout .provider-callout-body p {
    margin: 0;
}

.provider-callout .provider-callout-arrow {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── References list ────────────────────── */

.references-list {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.6;
    padding-right: 1.25rem;
    margin: 1rem 0 1.5rem;
}

.references-list li {
    margin-bottom: 0.4rem;
}

.references-list a {
    color: var(--link);
    word-break: break-all;
}

/* ── Checklist ──────────────────────────── */

.checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.checklist li {
    padding-right: 1.75rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: 700;
}

.negative-checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.negative-checklist li {
    padding-right: 1.75rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.negative-checklist li::before {
    content: "✗";
    position: absolute;
    right: 0;
    color: #d9534f;
    font-weight: 700;
}

/* ── Timeline ───────────────────────────── */

.timeline {
    border-right: 3px solid var(--accent);
    padding-right: 1.25rem;
    margin: 1.5rem 0;
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    right: -1.55rem;
    top: 0.45rem;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-label {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* ── Disclaimer ─────────────────────────── */

.disclaimer {
    margin-top: 3rem;
    padding: 1.25rem 1.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.6;
}

.disclaimer strong {
    color: #9ca3af;
}

/* ── Navigation buttons ─────────────────── */

.article-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-home-logo {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.article-home-logo img {
    height: 4rem;
    width: auto;
}

.article-home-logo:hover {
    opacity: 0.8;
}

/* ── Podcast player ─────────────────────────
   Episode attached to the article (`metadata.podcast`), right after the lead. Progressive
   enhancement: with no JS only the native <audio controls> shows; `podcastPlayer.client.ts` adds
   `.is-ready`, which hides it and reveals the custom controls. `.is-playing` swaps the play/pause
   icon and animates the equalizer. The controls row is `dir="ltr"` (media timelines are never
   mirrored), the text block stays RTL. */

.article-podcast {
    position: relative;
    overflow: hidden;
    margin: -0.5rem 0 2rem;
    padding: 1.1rem 1.25rem 1rem;
    border-radius: 1.1rem;
    /* Same purple wash as the hero (`.ssr-hero-glow` static base in ssr-common.css: colours, origin
       outside the top-right corner, dark tint), without the animated beams. */
    background-color: #242d3d;
    background-image:
        radial-gradient(
            ellipse 140% 140% at 110% -8%,
            rgba(167, 139, 250, 0.18) 0%,
            rgba(139, 92, 246, 0.075) 40%,
            transparent 70%
        ),
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14));
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.article-podcast-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Big round play button - the one thing the eye should land on. */
.article-podcast-toggle {
    position: relative;
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #1a1708;
    background: linear-gradient(135deg, #fbbf24 0%, #f9a61d 55%, #e8950a 100%);
    box-shadow:
        0 6px 18px rgba(249, 166, 29, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.article-podcast-toggle:hover {
    transform: scale(1.05);
    box-shadow:
        0 8px 24px rgba(249, 166, 29, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.article-podcast-toggle:active {
    transform: scale(0.96);
}

.article-podcast-toggle:focus-visible,
.article-podcast-back:focus-visible,
.article-podcast-speed:focus-visible {
    outline: 2px solid var(--text-bright);
    outline-offset: 3px;
}

.article-podcast-toggle svg {
    width: 1.55rem;
    height: 1.55rem;
}

/* Play glyph centring lives in its viewBox (`1.3 0 24 24` in article-converter.ts): the triangle's
   box sits slightly right of centre, the standard optical correction. No margin nudge here. */

.article-podcast-icon-pause {
    display: none;
}

.article-podcast.is-playing .article-podcast-icon-play {
    display: none;
}

.article-podcast.is-playing .article-podcast-icon-pause {
    display: block;
}

/* Soft pulse ring while idle, to invite the first tap. Stops once playback starts. */
.article-podcast.is-ready:not(.is-playing) .article-podcast-toggle::after {
    content: "";
    position: absolute;
    inset: -0.3rem;
    border-radius: 50%;
    border: 2px solid rgba(249, 166, 29, 0.5);
    animation: article-podcast-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes article-podcast-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.9;
    }
    70%,
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

.article-podcast-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.article-podcast-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
}

/* Three-bar equalizer: still while paused, bouncing while playing. */
.article-podcast-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 0.75rem;
}

.article-podcast-eq i {
    display: block;
    width: 3px;
    height: 40%;
    border-radius: 2px;
    background: currentColor;
}

.article-podcast-eq i:nth-child(2) {
    height: 100%;
}

.article-podcast-eq i:nth-child(3) {
    height: 65%;
}

.article-podcast.is-playing .article-podcast-eq i {
    animation: article-podcast-eq 0.9s ease-in-out infinite alternate;
}

.article-podcast.is-playing .article-podcast-eq i:nth-child(2) {
    animation-delay: -0.3s;
}

.article-podcast.is-playing .article-podcast-eq i:nth-child(3) {
    animation-delay: -0.6s;
}

@keyframes article-podcast-eq {
    from {
        height: 25%;
    }
    to {
        height: 100%;
    }
}

.article-podcast-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-bright);
}

.article-podcast-meta {
    font-size: 0.78rem;
    color: #9ca3af;
}

/* ── Controls row (custom UI, shown once the script is ready) ── */

.article-podcast-controls {
    display: none;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.article-podcast.is-ready .article-podcast-toggle {
    display: inline-flex;
}

.article-podcast.is-ready .article-podcast-controls {
    display: flex;
}

.article-podcast.is-ready .article-podcast-audio {
    display: none;
}

.article-podcast-back,
.article-podcast-speed {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    height: 2rem;
    padding: 0 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-bright);
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.article-podcast-back:hover,
.article-podcast-speed:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
}

.article-podcast-back svg {
    width: 0.95rem;
    height: 0.95rem;
}

.article-podcast-speed {
    min-width: 3rem;
}

.article-podcast.is-fast .article-podcast-speed {
    color: var(--accent);
    border-color: rgba(249, 166, 29, 0.45);
}

.article-podcast-time {
    flex-shrink: 0;
    min-width: 2.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #9ca3af;
    text-align: center;
}

/* Seek bar: a thin track filled up to `--progress` (set by the script), with a thumb that grows
   on hover. Styled per engine because range inputs share no cross-browser pseudo-element. */
.article-podcast-seek {
    --progress: 0%;
    flex: 1;
    min-width: 0;
    height: 1.25rem;
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.article-podcast-seek:focus {
    outline: none;
}

.article-podcast-seek::-webkit-slider-runnable-track {
    height: 0.32rem;
    border-radius: 1rem;
    background: linear-gradient(
        to right,
        var(--accent) 0%,
        var(--accent) var(--progress),
        rgba(255, 255, 255, 0.14) var(--progress),
        rgba(255, 255, 255, 0.14) 100%
    );
}

.article-podcast-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0.9rem;
    height: 0.9rem;
    margin-top: -0.29rem;
    border: 0;
    border-radius: 50%;
    background: var(--text-bright);
    box-shadow: 0 0 0 3px rgba(249, 166, 29, 0.35);
    transition: transform 0.15s ease;
}

.article-podcast-seek:hover::-webkit-slider-thumb,
.article-podcast-seek:focus-visible::-webkit-slider-thumb {
    transform: scale(1.2);
}

.article-podcast-seek::-moz-range-track {
    height: 0.32rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
}

.article-podcast-seek::-moz-range-progress {
    height: 0.32rem;
    border-radius: 1rem;
    background: var(--accent);
}

.article-podcast-seek::-moz-range-thumb {
    width: 0.9rem;
    height: 0.9rem;
    border: 0;
    border-radius: 50%;
    background: var(--text-bright);
    box-shadow: 0 0 0 3px rgba(249, 166, 29, 0.35);
}

/* No-JS fallback: the native control, kept dark on WebKit/Blink. */
.article-podcast-audio {
    display: block;
    width: 100%;
    height: 2.6rem;
    margin-top: 0.9rem;
    border-radius: 2rem;
}

.article-podcast-audio::-webkit-media-controls-panel {
    background-color: #101a29;
}

@media (prefers-reduced-motion: reduce) {
    .article-podcast.is-ready:not(.is-playing) .article-podcast-toggle::after,
    .article-podcast.is-playing .article-podcast-eq i {
        animation: none;
    }
}

@media (max-width: 600px) {
    .article-podcast {
        padding: 1rem 1rem 0.9rem;
        border-radius: 0.9rem;
        /* Hero's mobile wash: origin pushed further out for the narrow card. */
        background-image:
            radial-gradient(
                ellipse 180% 160% at 110% -5%,
                rgba(167, 139, 250, 0.21) 0%,
                rgba(139, 92, 246, 0.09) 40%,
                transparent 70%
            ),
            linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14));
    }

    .article-podcast-main {
        gap: 0.85rem;
    }

    .article-podcast-toggle {
        width: 3.25rem;
        height: 3.25rem;
    }

    .article-podcast-title {
        font-size: 0.98rem;
    }

    .article-podcast-controls {
        gap: 0.5rem;
    }

    .article-podcast-time {
        min-width: 2.3rem;
        font-size: 0.7rem;
    }

    .article-podcast-back,
    .article-podcast-speed {
        padding: 0 0.5rem;
    }
}

/* ── Follow Banner ────────────────────────── */

.follow-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.follow-banner-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.follow-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.follow-banner a {
    color: #1877f2;
    font-weight: 700;
    text-decoration: none;
}

.follow-banner-fb {
    width: 1rem;
    height: 1rem;
    vertical-align: -0.15em;
    margin-inline-start: 0.2rem;
    margin-inline-end: 0.2rem;
}

.follow-banner a:hover {
    text-decoration: underline;
}

/* ── Related Articles ────────────────────── */

.related-articles {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.related-articles h2 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    margin-top: 1.5rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.related-article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.related-article-card:hover {
    border-color: var(--accent);
}

.related-article-card-image {
    position: relative;
}

.related-article-card-image img {
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    display: block;
}

.related-article-card-image .article-category {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
}

/* Stats chips (views + reading time): top-LEFT of the image, opposite the category chip, the same
   layout and look as the /blog listing cards (`.bc-meta-left` / `.bc-view-chip`). */
.related-article-stats {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    pointer-events: none;
}

.related-article-stat {
    background: rgba(0, 0, 0, 0.65);
    color: #e5e7eb;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.related-article-stat svg {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 601px) {
    .related-article-stat {
        font-size: 0.65rem;
    }
}

.related-article-card-body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-article-card-body h3 {
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
    color: var(--text-bright);
    line-height: 1.4;
}

.related-article-card-body p {
    font-size: 0.82rem;
    color: var(--text);
    margin: 0 0 0.75rem;
    line-height: 1.6;
    flex: 1;
}

.related-article-cta {
    /* Pinned to the card's LEFT edge (flex-end in the RTL column). */
    align-self: flex-end;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
}

/* ── Mobile ─────────────────────────────── */

@media (max-width: 600px) {
    /* A touch more side padding than the listing page on phones: paragraph text needs the extra
       breathing room. The hero card opts out (negative inline margin in styles/article-chrome.css)
       so the image keeps its full width. */
    .article-body {
        padding: 1.5rem 1.25rem 3rem;
    }

    .article-title-row h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .site-header-logo {
        height: 4.5rem;
    }

    .article-hero-wrap {
        aspect-ratio: 16 / 9;
        border-radius: 0.5rem;
    }

    .article-section-image {
        max-width: 100%;
        height: 12rem;
    }

    /* Same 3:2 crop the other full-width campaign banners use on mobile. */
    .ba-campaign-banner {
        margin: 1.5rem 0;
    }

    .toc {
        font-size: 0.9rem;
    }

    .data-table {
        font-size: 0.82rem;
    }

    .callout-cta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .provider-callout {
        padding: 1rem 1.25rem;
    }

    .related-article-card-image img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        display: block;
    }
}

/* ─── Insurance Compare Banner ─── */
.insurance-compare-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1708 0%, #2a2210 50%, #1f2937 100%);
    border: 1.5px solid var(--accent);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    box-shadow: 0 4px 20px rgba(249, 166, 29, 0.08);
}

.insurance-compare-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(249, 166, 29, 0.04) 10%, transparent 20%);
    animation: bannerRotate 8s linear infinite;
    pointer-events: none;
}

@keyframes bannerRotate {
    to {
        transform: rotate(360deg);
    }
}

.insurance-compare-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 166, 29, 0.18);
    border-color: #fbbf24;
}

.insurance-compare-banner-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    align-self: flex-start;
    filter: drop-shadow(0 0 8px rgba(249, 166, 29, 0.4));
}

.insurance-compare-banner-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.insurance-compare-banner-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
}

.insurance-compare-banner-desc {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
}

.insurance-compare-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #f9a61d 0%, #e8950a 100%);
    color: #1a1708;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.5rem 1.1rem;
    border-radius: 2rem;
    margin-top: 0.5rem;
    width: fit-content;
    transition:
        background 0.2s,
        transform 0.15s;
    box-shadow: 0 2px 10px rgba(249, 166, 29, 0.25);
    position: absolute;
    left: 1.75rem;
    bottom: 1.5rem;
    transform: none;
}

.insurance-compare-banner:hover .insurance-compare-banner-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f9a61d 100%);
    transform: scale(1.03);
}

@media (max-width: 600px) {
    .article-body a.insurance-compare-banner {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.25rem 1rem;
        padding-bottom: 1.5rem;
    }

    .insurance-compare-banner-btn {
        position: static;
        transform: none;
        margin: 0.5rem auto 0;
    }

    .insurance-compare-banner:hover .insurance-compare-banner-btn {
        transform: scale(1.03);
    }

    .insurance-compare-banner-icon {
        align-self: center;
    }
}
