/* ==========================================================================
   Bourbon 26 — blog
   Loaded AFTER css/bourbon26.css, which supplies the tokens, the shared atoms
   (.b26-btn, .b26-eyebrow, .b26-section) and the dark nav/footer overrides.
   ========================================================================== */

/* --- index hero ----------------------------------------------------------- */

.blog-hero {
    position: relative;
    padding: clamp(130px, 15vw, 180px) 0 clamp(40px, 5vw, 64px);
    overflow: hidden;
    isolation: isolate;
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 130%;
    z-index: -2;
    background:
        radial-gradient(circle at 26% 28%, rgba(232, 118, 60, 0.42), transparent 58%),
        radial-gradient(circle at 76% 16%, rgba(10, 132, 255, 0.26), transparent 56%);
    filter: blur(80px);
    opacity: 0.65;
    pointer-events: none;
}

.blog-hero h1 {
    font-size: clamp(2.3rem, 5.6vw, 4rem);
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}

.blog-hero__lead {
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.65;
    color: var(--dim);
    max-width: 640px;
}

/* --- filters -------------------------------------------------------------- */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.blog-filter {
    padding: 9px 18px;
    border-radius: 980px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--dim);
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, transform 0.25s var(--ease);
}

.blog-filter:hover {
    background: var(--surface-2);
    color: var(--text);
    transform: translateY(-2px);
}

.blog-filter.is-active {
    background: linear-gradient(135deg, var(--amber-lit), var(--amber));
    border-color: transparent;
    color: #2a1206;
    font-weight: 600;
}

/* --- article cards -------------------------------------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.017));
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: inherit;
    transition: transform 0.45s var(--ease), border-color 0.35s ease,
                box-shadow 0.45s var(--ease);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 118, 60, 0.45);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55);
}

.blog-card[hidden] { display: none; }

.blog-card__art {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0d0f;
}

.blog-card__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease);
}

.blog-card:hover .blog-card__art img { transform: scale(1.05); }

.blog-card__kind {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 980px;
    background: rgba(8, 8, 10, 0.84);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--amber-lit);
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 18px 20px 20px;
}

.blog-card__body h2 {
    font-size: 1.15rem;
    line-height: 1.3;
}

.blog-card__body p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.blog-card__meta {
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.8rem;
    color: var(--dimmer);
}

/* --- article layout ------------------------------------------------------- */

.article {
    padding: clamp(120px, 14vw, 165px) 0 clamp(60px, 8vw, 100px);
}

.article__shell {
    width: min(760px, 100% - 48px);
    margin-inline: auto;
}

.article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--dim);
    text-decoration: none;
    margin-bottom: 26px;
    transition: color 0.25s ease;
}

.article__back:hover { color: var(--amber-lit); }

.article h1 {
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.article__standfirst {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.6;
    color: var(--dim);
    margin-bottom: 22px;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-bottom: 26px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.85rem;
    color: var(--dimmer);
}

.article__meta strong {
    color: var(--amber-lit);
    font-weight: 600;
}

/* body copy */

.article__body { font-size: 1.03rem; line-height: 1.75; }

.article__body p { margin-bottom: 22px; color: var(--dim); }

.article__body h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    margin: 44px 0 16px;
    letter-spacing: -0.02em;
}

.article__body h3 {
    font-size: 1.16rem;
    margin: 32px 0 12px;
}

/* :not(.b26-btn) matters. This selector is (0,1,1) and .b26-btn--primary is
   only (0,1,0), so without the exclusion it repainted every in-article button
   amber-on-amber — invisible text at a 1.00:1 contrast ratio. */
.article__body a:not(.b26-btn) {
    color: var(--amber-lit);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 161, 92, 0.35);
    transition: border-color 0.25s ease;
}

.article__body a:not(.b26-btn):hover { border-bottom-color: var(--amber-lit); }

/* belt and braces: restate the button colours at a specificity that wins */
.article__body .b26-btn--primary { color: #2a1206; }
.article__body .b26-btn--ghost { color: var(--text); }

.article__body strong { color: var(--text); font-weight: 600; }

.article__body ul,
.article__body ol {
    margin: 0 0 24px;
    padding-left: 22px;
    color: var(--dim);
}

.article__body li { margin-bottom: 10px; }

.article__body code {
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.075);
    font-size: 0.88em;
    color: var(--text);
}

.article__body pre {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

.article__body pre code { background: none; padding: 0; }

/* callouts */

.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    margin: 0 0 26px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--tone, var(--amber));
}

.callout i { color: var(--tone, var(--amber)); margin-top: 3px; }
.callout p { margin: 0; font-size: 0.95rem; }
.callout--warn { --tone: #ffd60a; }
.callout--good { --tone: #32d74b; }
.callout--info { --tone: #0a84ff; }

/* figures */

.figure {
    margin: 0 0 28px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: var(--bg-panel);
}

.figure img { display: block; width: 100%; height: auto; }

.figure figcaption {
    padding: 12px 16px;
    font-size: 0.84rem;
    color: var(--dimmer);
    border-top: 1px solid var(--border-soft);
}


/* comparison table inside an article */

.article__body .cmp {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 28px;
    font-size: 0.93rem;
}

.article__body .cmp th,
.article__body .cmp td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

.article__body .cmp thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dim);
    background: rgba(255, 255, 255, 0.03);
}

.article__body .cmp td { color: var(--dim); }
.article__body .cmp .ours { background: rgba(232, 118, 60, 0.09); color: var(--text); font-weight: 600; }
.article__body .cmp .yes { color: #32d74b; }
.article__body .cmp .no  { color: #ff453a; }

.table-scroll { overflow-x: auto; margin-bottom: 28px; }
.table-scroll .cmp { min-width: 560px; margin-bottom: 0; }

/* verdict block */

.verdict {
    padding: 26px 26px 24px;
    margin: 36px 0 28px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(232, 118, 60, 0.14), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(232, 118, 60, 0.28);
}

.verdict h3 { margin: 0 0 10px; font-size: 1.15rem; }
.verdict p { margin: 0 0 16px; font-size: 0.97rem; }
.verdict .b26-btn { margin-right: 10px; }

/* affiliate disclosure */

.article__disclosure {
    display: flex;
    gap: 12px;
    margin: 34px 0 0;
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid var(--border-soft);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--dimmer);
}

.article__disclosure i {
    color: var(--dimmer);
    margin-top: 3px;
}

/* article footer nav */

.article__more {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border-soft);
}

.article__more h3 { font-size: 1.1rem; margin-bottom: 18px; }

.article__more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.article__more-grid a {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}

.article__more-grid a:hover {
    background: var(--surface-2);
    border-color: rgba(232, 118, 60, 0.4);
    transform: translateY(-3px);
}

.article__more-grid strong { display: block; color: var(--text); font-size: 0.96rem; margin-bottom: 4px; }
.article__more-grid span { font-size: 0.82rem; color: var(--dimmer); }

@media (max-width: 640px) {
    .article__shell { width: min(760px, 100% - 32px); }
    .article__body { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card, .blog-card__art img, .blog-filter, .article__more-grid a {
        transition-duration: 0.001ms !important;
    }
}
