/* ===================================================================
   Clear Eyesight - Editorial advertorial (Publisher B)
   Single-column long-form article. Audience 60+, ~50% mobile.
   Distinct look from sister site: green palette, centered masthead,
   different type stack, pill CTAs, underlined subheads.
=================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #1b7f5a;          /* primary brand */
    --green-dark: #145f43;
    --green-deep: #0e4631;
    --ink: #1a1d1b;            /* near-black, slight warm-green cast */
    --ink-soft: #4d534f;
    --rule: #e3e8e4;
    --paper: #ffffff;
    --pull-bg: #eef6f1;        /* soft green tint */
    --accent-warm: #b9622f;    /* sparing terracotta accent */
    --measure: 700px;
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "Charter", "Georgia", "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.78;
    color: var(--ink);
    background: var(--paper);
}

/* sans-serif chrome */
.topbar, .kicker, .article-byline, .cta-button, .subhead,
.site-footer, .quote-meta, .quote-name, figcaption, .sticky-button,
.brand-name, .topbar-strip {
    font-family: "Avenir Next", "Segoe UI", -apple-system, system-ui, Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

/* ===== Centered masthead with tagline strip (distinct structure) ===== */
.topbar {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}
.topbar-inner {
    text-align: center;
    padding: 8px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}
.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.brand-accent { color: var(--green); }
.topbar-strip {
    background: var(--green-deep);
    color: #d8ece2;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 7px 12px;
}

/* ===== Article column ===== */
.article {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 30px 22px 64px;
}

.kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 14px;
}

.article-headline {
    font-size: 39px;
    line-height: 1.18;
    font-weight: 700;             /* lighter than sister site's 800 */
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 20px;
}

.article-dek {
    font-size: 23px;
    line-height: 1.55;
    color: var(--ink);
    font-weight: 400;
    font-style: normal;
    background: var(--pull-bg);   /* tinted band instead of left rule */
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 26px;
}

/* Byline */
.article-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    margin-bottom: 26px;
}
.byline-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #d6ddd8;
    flex-shrink: 0;
}
.byline-meta { display: flex; flex-direction: column; line-height: 1.3; }
.byline-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.byline-date { font-size: 13px; color: var(--ink-soft); }

/* Hero figure */
.article-figure { margin: 0 0 6px; }
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;          /* softer corners than sister site */
}
figcaption {
    font-size: 13px;
    color: var(--ink-soft);
    padding: 8px 2px 0;
    line-height: 1.45;
    text-align: center;            /* centered caption = different feel */
}

/* Body */
.article p { margin-bottom: 20px; }
.first-para { font-size: 22px; }   /* NO drop cap - different texture */
em { font-style: italic; }
strong { font-weight: 700; }

/* Subheads: underline accent instead of plain bold */
.subhead {
    font-size: 27px;
    line-height: 1.28;
    font-weight: 700;
    color: var(--ink);
    margin: 38px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--green);
    display: inline-block;
}

/* Checklist (if used) */
.checklist { list-style: none; margin: 0 0 22px; }
.checklist li { position: relative; padding: 0 0 12px 34px; line-height: 1.6; }
.checklist li::before {
    content: "\2713";
    position: absolute; left: 0; top: 1px;
    color: var(--green); font-weight: 800;
    font-family: "Avenir Next", system-ui, sans-serif;
}

/* Pull-quote */
.pullbox {
    font-size: 21px;
    line-height: 1.6;
    background: var(--pull-bg);
    border-left: 5px solid var(--green);
    border-radius: 8px;
    padding: 20px 22px;
    margin: 28px 0;
    color: var(--ink);
}

/* ===== CTA: pill shape, green (distinct from sister site's squarer blue) ===== */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    margin: 30px 0 34px;
    padding: 14px 24px;
    background: linear-gradient(180deg, #21956a 0%, #1b7f5a 55%, #145f43 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 999px;          /* pill */
    font-size: 21px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 4px 14px rgba(20, 95, 67, 0.30);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(20, 95, 67, 0.40);
    color: #fff;
}
.cta-button:active { transform: translateY(0); }
.cta-play-icon { width: 26px; height: 26px; flex-shrink: 0; }
.cta-play-icon circle { fill: none; stroke: #fff; stroke-width: 1.5; }
.cta-play-icon path { fill: #fff; }

/* Visible focus */
.cta-button:focus-visible,
a:focus-visible {
    outline: 3px solid #f0a500;
    outline-offset: 3px;
    border-radius: 999px;
}
a:focus-visible { border-radius: 4px; }

/* ===== Quote cards: boxed/tinted (different from sister site's top-rule style) ===== */
.quote-card {
    background: var(--pull-bg);
    border-radius: 10px;
    padding: 20px 22px;
    margin: 0 0 22px;
}
.quote-card-head {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.quote-avatar {
    width: 54px; height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: #d6ddd8;
    flex-shrink: 0;
}
.quote-name { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.quote-meta { display: block; font-size: 14px; color: var(--ink-soft); }
.quote-card blockquote {
    font-size: 21px;
    line-height: 1.6;
    font-style: normal;
    color: #23302a;
    margin: 0;
}
.quote-card blockquote::before { content: "\201C"; color: var(--green); font-weight: 700; }
.quote-card blockquote::after { content: "\201D"; color: var(--green); font-weight: 700; }

.article-note {
    font-family: "Avenir Next", system-ui, sans-serif;
    font-size: 13px;
    color: var(--ink-soft);
    border-top: 1px solid var(--rule);
    padding-top: 18px;
    margin-top: 36px;
}

.sticky-button { display: none; }

/* ===== Footer ===== */
.site-footer {
    background: var(--green-deep);
    color: #cfe3d8;
    padding: 32px 22px 28px;
    text-align: center;
}
.footer-copy { font-family: "Avenir Next", system-ui, sans-serif; font-size: 13px; color: #b6d2c4; margin-bottom: 16px; }
.footer-disclaimer {
    font-family: "Avenir Next", system-ui, sans-serif;
    font-size: 11px;
    line-height: 1.6;
    color: #8fb0a1;
    max-width: 760px;
    margin: 0 auto 20px;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-links a {
    font-family: "Avenir Next", system-ui, sans-serif;
    font-size: 12px; color: #b6d2c4; text-decoration: none;
}
.footer-links a:hover { color: #fff; }

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 600px) {
    body { font-size: 20px; line-height: 1.72; }

    .topbar-inner { padding: 8px; }
    .brand-name { font-size: 21px; }

    .article { padding: 22px 18px 84px; }

    .article-headline { font-size: 28px; line-height: 1.22; }
    .article-dek { font-size: 20px; }
    .subhead { font-size: 23px; margin-top: 32px; }
    .first-para { font-size: 21px; }

    .pullbox { font-size: 20px; padding: 18px; }
    .quote-card blockquote { font-size: 20px; }

    .cta-button { font-size: 19px; min-height: 62px; }

    .sticky-button {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        margin: 0;
        border-radius: 0;          /* full-width bar on mobile */
        min-height: 58px;
        font-size: 18px;
        z-index: 9999;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.22);
    }
}

/* Accessibility */
@media (prefers-contrast: more) {
    :root { --ink: #000; --ink-soft: #2a2a2a; }
    .pullbox, .quote-card { background: #fff; border: 2px solid #000; }
    .pullbox { border-left: 6px solid var(--green); }
    .cta-button { background: var(--green-deep); border: 2px solid #fff; }
    .quote-card blockquote { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
    .cta-button { transition: none; }
}