/* ============================================================
   Long-read layout — built on the site's own variables
   ============================================================ */
@view-transition { navigation: auto; }

.lr-draft { background: var(--hs-dark); color: #fff; text-align: center; font-size: .85rem; padding: .55rem 1rem; }
.longread .lr-draft a { color: var(--hs-accent); text-decoration: underline; margin-left: .5rem; }

/* ---- Headers ---------------------------------------------- */
.lr-cover, .lr-head { background: var(--hs-bg-alt); position: relative; padding: 4.5rem 1.25rem 3.5rem; }
.lr-cover::after, .lr-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(to right, transparent, var(--hs-accent), transparent); opacity: .6; }
.lr-cover > *, .lr-head > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.lr-kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--hs-text-muted); margin-bottom: 1.25rem; }
.longread .lr-kicker a { color: var(--hs-accent-dark); }
.lr-cover h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 800; letter-spacing: -2px; line-height: 1.05; margin-bottom: 1.75rem; }
.lr-cover h1::after { content: ''; display: block; width: 72px; height: 6px; border-radius: 3px; background: var(--hs-accent); margin-top: 1.5rem; }
.lr-intro { font-size: 1.15rem; line-height: 1.7; color: var(--hs-text-2); }
.lr-intro p:first-child { font-size: 1.4rem; line-height: 1.5; color: var(--hs-blue); font-weight: 500; }
.lr-intro em { font-style: normal; }
.lr-cover > .lr-start { display: block; width: 820px; max-width: 100%; margin-top: 2rem; }
.lr-start span.lr-btn { display: inline-block; background: var(--hs-accent); color: var(--hs-dark); font-weight: 700; padding: .8rem 1.6rem; border-radius: var(--radius-sm); transition: transform var(--t), background var(--t); }
.lr-start:hover span.lr-btn { background: var(--hs-accent-dark); transform: translateY(-2px); }
.lr-head > * { max-width: 720px; }
.lr-bignum { font-size: clamp(4.5rem, 12vw, 8rem); font-weight: 800; letter-spacing: -5px; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--hs-accent); margin-bottom: 1rem; }
.lr-head h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -1px; line-height: 1.14; margin-bottom: 1rem; }
.lr-meta { font-size: .875rem; color: var(--hs-text-muted); margin-bottom: 0; }

/* ---- Cover: contents with summaries ------------------------ */
.lr-contents { max-width: 860px; margin: 0 auto; padding: 3.5rem 1.25rem 5rem; }
.lr-index { list-style: none; padding: 0; margin: 1rem 0 0; }
.lr-index li { border-bottom: 1px solid var(--hs-border); }
.longread .lr-index a { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.6rem .75rem; border-left: 4px solid transparent; color: var(--hs-text); transition: background var(--t), border-color var(--t), padding var(--t); }
.longread .lr-index a:hover { background: var(--hs-bg-alt); border-left-color: var(--hs-accent); padding-left: 1.25rem; }
.lr-num { font-size: 2rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: var(--hs-accent); }
.lr-name { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.3px; line-height: 1.35; margin-bottom: .4rem; }
.lr-sum { display: block; font-size: .94rem; line-height: 1.65; color: var(--hs-text-2); }

/* ---- Body text -------------------------------------------- */
.lr-page { animation: lr-rise .45s both; }
.lr-body { padding: 3.5rem 1.25rem 0; box-sizing: content-box; }
.longread .article-content { max-width: 720px; font-size: 1.08rem; }
.lr-body > p:first-child { font-size: 1.38rem; line-height: 1.6; color: var(--hs-blue); font-weight: 400; margin-bottom: 2rem; }
.lr-first > p:first-child::first-letter { float: left; font-size: 4.4rem; line-height: .9; font-weight: 800; color: var(--hs-accent); padding: .2rem .65rem 0 0; }
.longread .article-content h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.4px; margin: 3.25rem 0 1rem; }
.longread .article-content h3::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--hs-accent); margin-bottom: .9rem; }
.longread .article-content li::marker { color: var(--hs-accent-dark); font-weight: 800; }
.longread .article-content li { margin-bottom: .7rem; }
.longread .article-content li > strong:first-child { color: var(--hs-blue); }
.longread .article-content .callout { border: 0; border-radius: 0; background: none; padding: 0; }
.longread .article-content .callout p:last-child { margin-bottom: 0; }

/* ---- Pull quote ------------------------------------------- */
.longread .article-content .callout-pull { margin: 3.25rem 0; padding: 2rem 0; border-top: 4px solid var(--hs-accent); border-bottom: 1px solid var(--hs-border); }
.callout-pull p { font-size: clamp(1.5rem, 3.6vw, 2.15rem); font-weight: 800; letter-spacing: -.8px; line-height: 1.28; text-align: center; text-wrap: balance; }

/* ---- Attributed quote ------------------------------------- */
.longread .article-content .callout-voice { position: relative; margin: 2.75rem 0; padding: 2.5rem 2.25rem 1.75rem; background: var(--hs-bg-alt); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.callout-voice::before { content: '\201C'; position: absolute; top: -1.9rem; left: 1.5rem; width: 3.8rem; height: 3.8rem; border-radius: 50%; background: var(--hs-blue); color: #fff; font: 800 3.4rem/4.5rem var(--font-sans); text-align: center; }
.callout-voice p:first-child { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 600; letter-spacing: -.4px; line-height: 1.4; margin-bottom: 1.1rem; }
.callout-voice p + p { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--hs-text-muted); }
.callout-voice p + p::before { content: ''; display: inline-block; width: 28px; height: 3px; background: var(--hs-accent); vertical-align: middle; margin-right: .75rem; }

/* ---- The sentence that matters ---------------------------- */
.longread .article-content .callout-statement { margin: 2.5rem 0; padding: 1.6rem 1.8rem; background: var(--hs-accent-pale); border-left: 6px solid var(--hs-accent); border-radius: 0 var(--radius) var(--radius) 0; }
.callout-statement p { font-size: 1.18rem; line-height: 1.65; }
.callout-statement strong { color: var(--hs-blue); }

/* ---- The question ----------------------------------------- */
.longread .article-content .callout-question { margin: 3rem 0; padding: 2.75rem 2rem; background: var(--hs-blue); border-radius: var(--radius-lg); text-align: center; }
.callout-question p, .callout-question strong { color: #fff; font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -.6px; line-height: 1.3; text-wrap: balance; }

/* ---- Big number ------------------------------------------- */
.longread .article-content .callout-stat { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; margin: 3rem 0; padding: 1.75rem 0; border-top: 1px solid var(--hs-border); border-bottom: 1px solid var(--hs-border); }
.callout-stat p { margin: 0; color: var(--hs-text-2); }
.callout-stat p:first-child { font-size: clamp(4rem, 11vw, 6.5rem); font-weight: 800; letter-spacing: -4px; line-height: 1; color: var(--hs-accent); }

/* ---- Numbered cards --------------------------------------- */
.longread .callout-points ul { list-style: none; padding: 0; counter-reset: pt; }
.longread .callout-points li { counter-increment: pt; position: relative; padding: 1.2rem 1.4rem 1.2rem 4.2rem; margin-bottom: .9rem; border: 1px solid var(--hs-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.callout-points li::before { content: counter(pt); position: absolute; left: 1.35rem; top: .85rem; font-size: 1.9rem; font-weight: 800; color: var(--hs-accent); }

/* ---- Chapter summary -------------------------------------- */
.longread .article-content .callout-takeaway { margin: 4rem 0 0; padding: 2.25rem 2.25rem 2.4rem; background: var(--hs-dark); border-radius: var(--radius-lg); border-top: 6px solid var(--hs-accent); box-shadow: var(--shadow-lg); }
.callout-takeaway::before { content: 'In short'; display: inline-block; background: var(--hs-accent); color: var(--hs-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; padding: .3rem .75rem; border-radius: 40px; margin-bottom: 1.1rem; }
.callout-takeaway p { color: #fff; font-size: 1.28rem; font-weight: 500; line-height: 1.6; letter-spacing: -.2px; }

/* ---- Rule of thumb (blockquote) --------------------------- */
.longread .article-content blockquote { margin: 3rem 0; padding: 2rem 2.25rem; background: #fff; border: 3px solid var(--hs-blue); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--hs-accent); font-style: normal; font-size: 1.3rem; line-height: 1.55; color: var(--hs-text); }

/* ---- Tables, checklist, timeline, glossary ---------------- */
.lr-table { overflow-x: auto; margin: 2.5rem 0; border: 1px solid var(--hs-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.longread .article-content table { margin: 0; min-width: 480px; }
.longread .article-content th { background: var(--hs-dark); color: #fff; border-bottom: 3px solid var(--hs-accent); }
.longread .callout-checklist ol { list-style: none; padding: 0; }
.longread .callout-checklist li { position: relative; counter-increment: list-item; padding: 1rem 1.2rem 1rem 4rem; border: 1px solid var(--hs-border); border-radius: var(--radius); }
.longread .callout-checklist li::before { content: counter(list-item); position: absolute; left: 1rem; top: 1.05rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--hs-accent); color: var(--hs-dark); font: 800 .88rem/2rem var(--font-sans); text-align: center; }
.longread .callout-timeline ul { list-style: none; padding: 0 0 0 1.9rem; border-left: 3px solid var(--hs-border); }
.longread .callout-timeline li { position: relative; margin-bottom: 1.8rem; }
.callout-timeline li::before { content: ''; position: absolute; left: calc(-1.9rem - 10px); top: .35rem; width: 17px; height: 17px; border-radius: 50%; background: var(--hs-bg); border: 4px solid var(--hs-accent); }
.longread .callout-timeline li > strong:first-child { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.3px; }
.longread .callout-glossary p { margin: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--hs-border); font-size: .98rem; }
.longread .callout-glossary p > strong:first-child { display: block; font-size: 1.1rem; color: var(--hs-blue); }

/* ---- Page turning ----------------------------------------- */
.lr-turn { max-width: 720px; margin: 2.5rem auto 0; padding: 0 1.25rem 4rem; box-sizing: content-box; }
.lr-byline { color: var(--hs-text-muted); font-size: .92rem; }
.longread .lr-next { display: block; text-align: right; padding: 1.25rem 1.5rem; border: 2px solid var(--hs-accent); border-radius: var(--radius); color: var(--hs-text); transition: background var(--t); }
.lr-next span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--hs-text-muted); }
.lr-next strong { font-size: 1.15rem; line-height: 1.5; }
.longread .lr-next:hover { background: var(--hs-accent); color: var(--hs-dark); }
.lr-next:hover span { color: var(--hs-dark); }
.lr-bar { position: sticky; bottom: 0; z-index: 900; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; padding: .75rem 1.25rem; background: var(--hs-bg); border-top: 1px solid var(--hs-border); font-size: .88rem; font-weight: 600; }
.lr-progress { position: absolute; top: -3px; left: 0; right: 0; height: 4px; }
.lr-progress span { display: block; height: 100%; background: var(--hs-accent); view-transition-name: lr-progress; }
.lr-fwd { justify-self: end; }
.lr-menu summary { cursor: pointer; list-style: none; white-space: nowrap; padding: .35rem 1rem; border: 1px solid var(--hs-border); border-radius: 40px; }
.lr-menu summary::-webkit-details-marker { display: none; }
.lr-menu ol { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(480px, 94vw); max-height: 60vh; overflow-y: auto; list-style: none; margin: 0; padding: .5rem 0; background: var(--hs-bg); border: 1px solid var(--hs-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-weight: 400; }
.longread .lr-menu li a { display: block; padding: .45rem 1.1rem; color: var(--hs-text); }
.longread .lr-menu li a:hover, .longread .lr-menu a[aria-current] { background: var(--hs-accent-pale); }
.lr-menu b { color: var(--hs-accent-dark); margin-right: .5rem; }

@keyframes lr-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 767.98px) {
    .lr-bar span { display: none; }
    .longread .article-content { font-size: 1rem; }
    .lr-body > p:first-child { font-size: 1.18rem; }
    .longread .article-content .callout-stat { grid-template-columns: 1fr; gap: .5rem; text-align: center; }
    .longread .article-content .callout-voice, .longread .article-content .callout-takeaway { padding-left: 1.35rem; padding-right: 1.35rem; }
    .longread .lr-index a { grid-template-columns: 3rem 1fr; }
    .lr-num { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .lr-page { animation: none; }
}

/* ---- "Who the heck are you?" ------------------------------- */
.longread .lr-intro .callout-who { margin: 2.75rem 0 0; padding: 2rem 2.25rem; background: var(--hs-bg); border: 1px solid var(--hs-border); border-top: 6px solid var(--hs-blue); border-radius: var(--radius-lg); box-shadow: var(--shadow); font-size: 1.02rem; }
.callout-who h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; letter-spacing: -.8px; color: var(--hs-blue); margin-bottom: 1rem; }
.longread .lr-intro .callout-who p:first-of-type { font-size: 1.02rem; font-weight: 400; line-height: 1.7; color: var(--hs-text-2); }
.callout-who p:last-child { margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 3px solid var(--hs-accent); font-size: 1.25rem; color: var(--hs-text); }
.lr-intro .callout-who em { font-style: italic; }
