:root {
    --tf-primary: #0b7285;
    --tf-primary-dark: #085f70;
    --tf-primary-mid: #0d8fa6;
    --tf-primary-sub: #e2f3f7;
    --tf-primary-xl: #f0f9fb;
    --tf-accent: #b91c1c;
    --tf-bg: #f3f7fa;
    --tf-bg-2: #edf4f8;
    --tf-surface: #ffffff;
    --tf-surface-soft: #f8fbfd;
    --tf-border: #d8e3ea;
    --tf-border-light: #e9f0f5;
    --tf-text-1: #0f222e;
    --tf-text-2: #476272;
    --tf-text-3: #8298a5;
    --tf-text-inv: #ffffff;
    --tf-success: #16a34a;
    --tf-warning: #b96e00;
    --tf-error: #b91c1c;
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 9999px;
    --sh-xs: 0 1px 2px rgba(8, 20, 28, 0.07);
    --sh-sm: 0 3px 10px rgba(8, 20, 28, 0.09), 0 1px 3px rgba(8, 20, 28, 0.05);
    --sh-md: 0 10px 26px rgba(8, 20, 28, 0.12), 0 2px 8px rgba(8, 20, 28, 0.06);
    --t-fast: 140ms ease;
    --t-base: 220ms ease;
    --site-header-h: 62px;
    --tf-bg-image-classic: url("./bg-taxfriend.svg");
    --tf-bg-image-minimal: url("./bg-taxfriend-minimal.svg");
    --tf-bg-image-premium: url("./bg-taxfriend-premium.svg");
    --tf-bg-image: var(--tf-bg-image-classic);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "Trebuchet MS", "Avenir Next", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--tf-text-1);
    background:
        var(--tf-bg-image),
        linear-gradient(180deg, rgba(243, 247, 250, 0.72), rgba(237, 244, 248, 0.88));
    background-size: cover, auto;
    background-position: center top, center;
    background-repeat: no-repeat, no-repeat;
}

body.bg-classic {
    --tf-bg-image: var(--tf-bg-image-classic);
}

body.bg-minimal {
    --tf-bg-image: var(--tf-bg-image-minimal);
}

body.bg-premium {
    --tf-bg-image: var(--tf-bg-image-premium);
}

.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.site-header {
    height: var(--site-header-h);
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-dark) 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16), var(--sh-sm);
    position: sticky;
    top: 0;
    z-index: 15;
}

.site-header__inner {
    max-width: 1120px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--sp-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.site-header__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--r-md);
    color: var(--tf-text-inv);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.site-header__title {
    display: block;
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 900;
    color: var(--tf-text-inv);
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.site-header__tagline {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.35;
}

.site-header__link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 13px;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    white-space: nowrap;
}

.site-header__link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.site-header__link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.86);
    outline-offset: 2px;
}

.main {
    min-height: calc(100vh - var(--site-header-h));
    padding: 22px 0 34px;
}

.simple-main {
    display: block;
}

.simple-container {
    max-width: 1120px;
    margin: 0 auto;
    background: color-mix(in srgb, var(--tf-surface) 88%, #f8fcff 12%);
    border: 1px solid var(--tf-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    overflow: hidden;
}

.status-bar {
    background: linear-gradient(180deg, #f6fbfd, #eff8fb);
    border-bottom: 1px solid var(--tf-border);
    padding: 10px 18px;
    font-size: 13px;
}

#status-label {
    color: var(--tf-text-2);
    margin-right: 7px;
    font-weight: 500;
}

#status-amount {
    color: var(--tf-warning);
    font-size: clamp(20px, 3.6vw, 25px);
    font-weight: 800;
    letter-spacing: -0.018em;
}

.page-header {
    padding: 22px 24px 14px;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 760;
    color: var(--tf-text-1);
    line-height: 1.1;
    letter-spacing: -0.022em;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--tf-text-2);
    font-size: clamp(13px, 1.9vw, 14px);
}

.form-card {
    margin: 0 22px 20px;
    border: 1px solid var(--tf-border-light);
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbfd 100%);
    border-radius: var(--r-md);
    padding: 12px;
}

.form-section {
    border: 1px solid var(--tf-border);
    border-radius: var(--r-md);
    background: var(--tf-surface);
    margin-bottom: 12px;
    overflow: clip;
}

.form-card details summary {
    background: linear-gradient(180deg, var(--tf-primary-xl), #ebf6fa);
    border-bottom: 1px solid transparent;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tf-text-1);
    cursor: pointer;
    list-style: none;
    transition: background var(--t-fast);
}

.form-card details summary::-webkit-details-marker {
    display: none;
}

.form-card details summary::before {
    content: ">";
    display: inline-block;
    font-size: 11px;
    color: var(--tf-primary);
    margin-right: 8px;
    transform: translateY(-1px);
    transition: transform var(--t-fast);
}

.form-card details[open] summary::before {
    transform: rotate(90deg);
}

.form-card details[open] summary {
    border-bottom-color: var(--tf-border);
}

.form-card details summary:hover {
    background: linear-gradient(180deg, #e8f4f9, #e2f1f6);
}

.form-card details summary:focus-visible {
    outline: 2px solid var(--tf-primary);
    outline-offset: -2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 13px;
}

.grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: var(--tf-text-2);
}

.dependent-group {
    padding-top: 0;
}

.field-hint {
    font-size: 11px;
    color: var(--tf-text-3);
}

input,
select {
    border: 1px solid #c8d6df;
    border-radius: var(--r-sm);
    font-size: 13px;
    line-height: 1.35;
    color: var(--tf-text-1);
    background: #fff;
    padding: 8px 10px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

input:hover,
select:hover {
    border-color: #9eb6c3;
}

input:focus-visible,
select:focus-visible {
    outline: none;
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 3px rgba(11, 114, 133, 0.14);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 13px 13px;
}

.check-grid label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: var(--tf-text-2);
    line-height: 1.4;
    cursor: pointer;
}

input[type="checkbox"] {
    accent-color: var(--tf-primary);
    width: 15px;
    height: 15px;
    margin-top: 1px;
    cursor: pointer;
    flex-shrink: 0;
}

button#calc-btn {
    width: 100%;
    border: 0;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-primary-mid));
    color: var(--tf-text-inv);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.01em;
    padding: 12px;
    cursor: pointer;
    transition: transform var(--t-fast), filter var(--t-fast), box-shadow var(--t-fast);
}

button#calc-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: 0 8px 18px rgba(11, 114, 133, 0.25);
}

button#calc-btn:focus-visible {
    outline: 2px solid var(--tf-primary);
    outline-offset: 2px;
}

button#calc-btn:disabled {
    background: #99adba;
    cursor: not-allowed;
}

.results {
    margin: 0 22px;
}

.summary-section {
    margin-bottom: 18px;
    border: 1px solid var(--tf-border-light);
    border-radius: var(--r-md);
    overflow: hidden;
    background: #fff;
}

.summary-section h2 {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tf-text-1);
    background: linear-gradient(180deg, #f8fbfd, #eef5f9);
    border-bottom: 1px solid var(--tf-border-light);
}

.line-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.line-table tr td {
    padding: 5px 9px;
}

.line-table tr td:first-child {
    color: var(--tf-text-2);
}

.line-table tr td:last-child {
    text-align: right;
    min-width: 140px;
    font-variant-numeric: tabular-nums;
    color: var(--tf-text-1);
}

.summary-section {
    overflow-x: auto;
}

.line-table tr:nth-child(odd) {
    background: #fbfdff;
}

.line-table tr:nth-child(even) {
    background: #f4f9fc;
}

.line-table tr.line-total td {
    background: #ebf6fb;
    border-top: 1px solid #d3e8f3;
    color: var(--tf-text-1);
    font-weight: 750;
}

.line-table tr.line-final td {
    background: #e8f9ee;
    border-top: 1px solid #caecd7;
    color: #0e7a35;
    font-weight: 780;
}

.error {
    margin: 14px 22px 0;
    border: 1px solid #f5c7c7;
    border-radius: var(--r-sm);
    padding: 11px 13px;
    background: #fff4f4;
    color: var(--tf-error);
    font-size: 13px;
}

.hidden {
    display: none;
}

/* Screen-reader-only utility — hides visually, readable by AT and crawlers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Site footer ─────────────────────────────────────────────── */
.site-footer {
    max-width: 1120px;
    margin: 10px auto 18px;
    padding: 0 14px;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
    text-align: center;
}

/* ── Methodology panel ───────────────────────────────────────── */
.methodology-panel {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--tf-border-light);
    border-radius: var(--r-md);
    background: linear-gradient(180deg, #f8fbfd, #f2f8fb);
    text-align: left;
}

.methodology-panel__title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--tf-text-3);
    margin-bottom: 12px;
}

.methodology-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 20px;
}

.methodology-panel__grid dt {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tf-text-3);
    margin-bottom: 2px;
}

.methodology-panel__grid dd {
    font-size: 11.5px;
    color: var(--tf-text-2);
    line-height: 1.48;
    margin: 0;
}

/* ── Footer nav + meta ───────────────────────────────────────── */
.site-footer__links {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer__link {
    color: var(--tf-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.site-footer__link:hover {
    text-decoration: underline;
}

.site-footer__link:focus-visible {
    outline: 2px solid var(--tf-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.site-footer__sep {
    color: var(--tf-text-3);
    font-size: 12px;
    user-select: none;
}

.site-footer__disclaimer {
    max-width: 560px;
    color: var(--tf-text-3);
    font-size: 11px;
    line-height: 1.55;
}

.site-footer__meta {
    color: var(--tf-text-3);
    font-size: 11px;
}

/* ── Branding pill ───────────────────────────────────────────── */
.made-in-canada {
    width: fit-content;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(11, 114, 133, 0.18);
    background: rgba(255, 255, 255, 0.74);
    color: var(--tf-text-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 6px 12px;
    backdrop-filter: blur(2px);
}

.made-in-canada__flag {
    font-size: 13px;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 980px) {
    .simple-container {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .grid,
    .check-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header__tagline {
        display: none;
    }

    .site-header__inner {
        padding-inline: 12px;
    }

    .site-header__logo-wrap {
        width: 32px;
        height: 32px;
    }

    .site-header__title {
        font-size: clamp(17px, 5.2vw, 22px);
    }

    .site-header__link {
        min-height: 30px;
        font-size: 11px;
        padding: 5px 10px;
    }

    .page-header {
        padding: 16px 14px 10px;
    }

    .form-card,
    .results,
    .error {
        margin-inline: 12px;
    }

    .site-footer {
        margin: 8px auto 14px;
    }

    .made-in-canada {
        font-size: 11px;
        padding: 5px 10px;
    }

    .main {
        padding: 12px 0 calc(20px + env(safe-area-inset-bottom));
    }

    input,
    select {
        min-height: 44px;
        font-size: 16px;
    }

    button#calc-btn {
        min-height: 48px;
        font-size: 16px;
    }

    .line-table {
        min-width: 640px;
    }

    .summary-section {
        -webkit-overflow-scrolling: touch;
    }

    .methodology-panel {
        padding: 12px 14px;
    }

    .methodology-panel__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .site-header__logo-wrap {
        display: none;
    }

    .site-header__title {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 24px;
    }
}

/* ── Header nav group ─────────────────────────────────────────── */
.site-header__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
}

/* ── Blog layout ──────────────────────────────────────────────── */
.blog-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.blog-hero {
    margin-bottom: 36px;
}

.blog-hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tf-primary);
    background: var(--tf-primary-sub);
    border: 1px solid rgba(11, 114, 133, 0.2);
    border-radius: var(--r-pill);
    padding: 3px 11px;
    margin-bottom: 14px;
}

.blog-hero__title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 860;
    color: var(--tf-text-1);
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin-bottom: 14px;
}

.blog-hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--tf-text-3);
    flex-wrap: wrap;
}

.blog-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-hero__desc {
    margin-top: 16px;
    font-size: clamp(16px, 2.2vw, 18px);
    color: var(--tf-text-2);
    line-height: 1.65;
    max-width: 680px;
}

/* Blog article body */
.blog-article {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: clamp(24px, 5vw, 52px);
    margin-bottom: 48px;
}

.blog-article h2 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 760;
    color: var(--tf-text-1);
    letter-spacing: -0.018em;
    line-height: 1.25;
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tf-border-light);
}

.blog-article h2:first-child {
    margin-top: 0;
}

.blog-article h3 {
    font-size: clamp(16px, 2.2vw, 19px);
    font-weight: 700;
    color: var(--tf-text-1);
    letter-spacing: -0.012em;
    margin: 26px 0 8px;
}

.blog-article p {
    font-size: clamp(15px, 1.8vw, 16.5px);
    color: var(--tf-text-2);
    line-height: 1.75;
    margin-bottom: 16px;
}

.blog-article ul,
.blog-article ol {
    margin: 8px 0 18px 22px;
}

.blog-article li {
    font-size: clamp(15px, 1.8vw, 16.5px);
    color: var(--tf-text-2);
    line-height: 1.7;
    margin-bottom: 7px;
}

.blog-article a {
    color: var(--tf-primary);
    text-underline-offset: 3px;
}

.blog-article a:hover {
    color: var(--tf-primary-dark);
}

/* Callout box */
.blog-callout {
    background: var(--tf-primary-sub);
    border-left: 4px solid var(--tf-primary);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.blog-callout--warn {
    background: #fff8e6;
    border-left-color: var(--tf-warning);
}

.blog-callout--success {
    background: #f0fdf4;
    border-left-color: var(--tf-success);
}

.blog-callout__title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tf-primary);
    margin-bottom: 6px;
}

.blog-callout--warn .blog-callout__title { color: var(--tf-warning); }
.blog-callout--success .blog-callout__title { color: var(--tf-success); }

.blog-callout p {
    font-size: 14.5px !important;
    color: var(--tf-text-1) !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}

/* Comparison table */
.blog-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 14px;
}

.blog-compare th {
    background: var(--tf-primary);
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
}

.blog-compare th:first-child { border-radius: var(--r-xs) 0 0 0; }
.blog-compare th:last-child  { border-radius: 0 var(--r-xs) 0 0; }

.blog-compare td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--tf-border-light);
    color: var(--tf-text-2);
    vertical-align: top;
}

.blog-compare tr:nth-child(even) td {
    background: var(--tf-bg-2);
}

.blog-compare tr:last-child td {
    border-bottom: none;
}

.blog-compare .highlight {
    color: var(--tf-success);
    font-weight: 700;
}

/* CTA block */
.blog-cta {
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-dark) 100%);
    border-radius: var(--r-lg);
    padding: 28px 32px;
    margin: 36px 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-cta__text h3 {
    font-size: 18px;
    font-weight: 760;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.015em;
}

.blog-cta__text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.5;
}

.blog-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--tf-primary-dark);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: var(--r-pill);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.blog-cta__btn:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
    transform: translateY(-1px);
}

/* Blog listing page */
.blog-listing-header {
    margin-bottom: 32px;
}

.blog-listing-header h1 {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 860;
    color: var(--tf-text-1);
    letter-spacing: -0.025em;
    margin-bottom: 10px;
}

.blog-listing-header p {
    font-size: 16px;
    color: var(--tf-text-2);
    line-height: 1.6;
}

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

.blog-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--t-base), transform var(--t-base);
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
}

.blog-card__tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tf-primary);
    background: var(--tf-primary-sub);
    border-radius: var(--r-pill);
    padding: 3px 10px;
    margin-bottom: 14px;
    width: fit-content;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 760;
    color: var(--tf-text-1);
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card__excerpt {
    font-size: 14px;
    color: var(--tf-text-2);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 18px;
}

.blog-card__meta {
    font-size: 12px;
    color: var(--tf-text-3);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tf-primary);
    margin-top: 14px;
}

.blog-card__read-more svg {
    transition: transform var(--t-fast);
}

.blog-card:hover .blog-card__read-more svg {
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .blog-main {
        padding: 20px 12px 36px;
    }

    .blog-article {
        padding: 20px 16px;
    }

    .blog-cta {
        padding: 22px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-compare {
        font-size: 13px;
    }

    .blog-compare th,
    .blog-compare td {
        padding: 8px 10px;
    }

    .site-header__nav {
        gap: 6px;
    }
}

/* ---- Newsletter subscription widget ---- */
.newsletter-widget {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-5);
    background: var(--tf-primary-sub);
    border-left: 4px solid var(--tf-primary);
    border-radius: var(--r-md);
    padding: var(--sp-6) var(--sp-7);
    margin-bottom: var(--sp-7);
}

.newsletter-widget__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--tf-primary);
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.newsletter-widget__body {
    flex: 1;
    min-width: 0;
}

.newsletter-widget__heading {
    font-size: 16px;
    font-weight: 760;
    color: var(--tf-text-1);
    margin: 0 0 4px;
}

.newsletter-widget__sub {
    font-size: 13.5px;
    color: var(--tf-text-2);
    margin: 0 0 var(--sp-4);
}

.newsletter-widget__row {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.newsletter-widget__input {
    flex: 1;
    min-width: 200px;
    padding: 9px 12px;
    border: 1px solid var(--tf-border);
    border-radius: var(--r-sm);
    font-size: 14px;
    color: var(--tf-text-1);
    background: #fff;
    transition: border-color var(--t-base);
}

.newsletter-widget__input:focus-visible {
    outline: 2px solid var(--tf-primary);
    outline-offset: 1px;
    border-color: transparent;
}

.newsletter-widget__btn {
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.newsletter-widget__btn:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

.newsletter-widget__btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.newsletter-widget__msg {
    margin: var(--sp-3) 0 0;
    font-size: 13px;
    min-height: 18px;
}

.newsletter-widget__msg--success { color: var(--tf-success); font-weight: 600; }
.newsletter-widget__msg--error   { color: var(--tf-accent);  font-weight: 600; }

/* ---- Blog listing page subscription banner ---- */
.blog-subscribe-banner {
    background: var(--tf-primary-sub);
    border: 1px solid rgba(11, 114, 133, 0.18);
    border-radius: var(--r-lg);
    padding: var(--sp-7) var(--sp-8);
    margin: var(--sp-7) 0;
    text-align: center;
}

.blog-subscribe-banner h2 {
    font-size: 20px;
    font-weight: 760;
    color: var(--tf-text-1);
    margin: 0 0 6px;
}

.blog-subscribe-banner p {
    font-size: 14.5px;
    color: var(--tf-text-2);
    margin: 0 0 var(--sp-5);
}

.blog-subscribe-banner__form {
    display: flex;
    justify-content: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.blog-subscribe-banner__input {
    width: 280px;
    padding: 10px 14px;
    border: 1px solid var(--tf-border);
    border-radius: var(--r-sm);
    font-size: 14.5px;
    color: var(--tf-text-1);
    background: #fff;
    transition: border-color var(--t-base);
}

.blog-subscribe-banner__input:focus-visible {
    outline: 2px solid var(--tf-primary);
    outline-offset: 1px;
    border-color: transparent;
}

.blog-subscribe-banner__btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.blog-subscribe-banner__btn:hover {
    box-shadow: 0 3px 14px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

.blog-subscribe-banner__btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.blog-subscribe-banner__msg {
    margin: var(--sp-3) 0 0;
    font-size: 13px;
    min-height: 18px;
}

.blog-subscribe-banner__msg--success { color: var(--tf-success); font-weight: 600; }
.blog-subscribe-banner__msg--error   { color: var(--tf-accent);  font-weight: 600; }

@media (max-width: 600px) {
    .newsletter-widget {
        flex-direction: column;
        padding: var(--sp-5);
    }

    .newsletter-widget__row {
        flex-direction: column;
    }

    .newsletter-widget__input {
        min-width: 0;
        width: 100%;
    }

    .blog-subscribe-banner {
        padding: var(--sp-6) var(--sp-5);
    }

    .blog-subscribe-banner__input {
        width: 100%;
    }
}
