/* ============================================================
   Elev8d — Blog overview + article detail
   (loaded after styles.css)
   ============================================================ */

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; background: transparent; pointer-events: none; }
.progress__fill { height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }

/* ============================================================
   BLOG OVERVIEW — HERO + FILTER
   ============================================================ */
.blog-hero { position: relative; background: var(--black); padding-top: clamp(140px, 18vh, 200px); padding-bottom: clamp(40px, 5vw, 64px); overflow: hidden; }
.blog-hero__glow { position: absolute; top: -20%; right: -6%; width: 60vw; max-width: 720px; height: 60vw; max-height: 720px; background: radial-gradient(circle at 60% 40%, rgba(244,160,0,.26), transparent 62%); pointer-events: none; }
.blog-hero .wrap { position: relative; z-index: 1; }
.blog-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 20px; }
.blog-hero p { color: var(--grey-mid-2); font-size: 1.15rem; max-width: 60ch; }

.blog-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.blog-filter { display: flex; gap: 10px; flex-wrap: wrap; }
.blog-filter button {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: #cfcfcf;
  padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line-dark); background: transparent;
  transition: all .2s var(--ease);
}
.blog-filter button:hover { border-color: var(--accent); color: #fff; }
.blog-filter button.active { background: var(--accent); color: #000; border-color: var(--accent); }
.blog-search { position: relative; display: flex; align-items: center; }
.blog-search svg { position: absolute; left: 14px; width: 18px; height: 18px; stroke: var(--grey-mid); fill: none; stroke-width: 2; pointer-events: none; }
.blog-search input {
  background: var(--off-black); border: 1px solid var(--line-dark); border-radius: 100px;
  padding: 12px 18px 12px 42px; color: #fff; font-family: var(--font-body); font-size: .95rem; width: 260px; transition: border-color .2s, box-shadow .2s;
}
.blog-search input::placeholder { color: #666; }
.blog-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244,160,0,.16); }
@media (max-width: 620px) { .blog-search input { width: 100%; } .blog-search { width: 100%; } }

/* ============================================================
   BLOG OVERVIEW — FEATURED CARD
   ============================================================ */
.featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line-light); border-radius: var(--radius);
  overflow: hidden; background: var(--white); margin-bottom: 40px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.featured:hover { border-color: var(--accent); box-shadow: 0 30px 60px -32px rgba(0,0,0,.3); transform: translateY(-3px); }
.featured__img { position: relative; min-height: 320px; background: var(--grey-light); }
.featured__img image-slot { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.featured__img img { width: 100%; height: 100%; object-fit: contain; display: block; position: absolute; inset: 0; }
a.featured { text-decoration: none; color: inherit; }
.featured:hover .featured__img img { transform: scale(1.04); }
.featured__img img { transition: transform .5s var(--ease); }
.featured__badge { position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--accent); color: #000; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; font-weight: 700; }
.featured__body { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.featured__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.featured__body h2 { color: var(--black); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; margin-bottom: 16px; }
.featured__body p { color: #555; font-size: 1.02rem; margin-bottom: 24px; }
.featured__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } .featured__img { min-height: 220px; } }

/* ============================================================
   BLOG OVERVIEW — POST GRID
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.post-card.hide { display: none; }
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 50px -30px rgba(0,0,0,.24); }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--grey-light); position: relative; }
.post-card__img image-slot { width: 100%; height: 100%; display: block; transition: transform .5s var(--ease); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.post-card:hover .post-card__img image-slot { transform: scale(1.04); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; height: 100%; }
.post-card__body { padding: 22px clamp(18px,2vw,24px) 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.post-card__body h3 { color: var(--black); font-size: 1.18rem; line-height: 1.25; margin-bottom: 11px; }
.post-card__excerpt { color: #666; font-size: .94rem; margin-bottom: 20px; }
.post-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-light); }
.post-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .74rem; flex: 0 0 auto; }
.post-byline { font-size: .82rem; color: #555; font-weight: 500; }
.post-readtime { margin-left: auto; font-family: var(--font-mono); font-size: .74rem; color: var(--grey-mid); }
.post-date { font-family: var(--font-mono); font-size: .76rem; color: var(--grey-mid); }
.blog-empty { text-align: center; color: var(--grey-mid); padding: 60px 0; font-size: 1.05rem; display: none; }
.blog-empty.show { display: block; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 52px; }
.pagination button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-light); background: var(--white); font-family: var(--font-head); font-weight: 600; color: #444; transition: all .2s; }
.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.pagination button.active { background: var(--accent); border-color: var(--accent); color: #000; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .pg-arrow { width: auto; padding: 0 16px; }

/* category pill (light) */
.cat-pill { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; background: #FFF3DA; color: var(--accent-dark); padding: 5px 10px; border-radius: 100px; }

/* ============================================================
   ARTICLE DETAIL — HERO (dark)
   ============================================================ */
.article-hero { position: relative; background: var(--black); padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(34px, 4vw, 54px); overflow: hidden; }
.article-hero__glow { position: absolute; top: -16%; left: -6%; width: 56vw; max-width: 680px; height: 56vw; max-height: 680px; background: radial-gradient(circle at 40% 40%, rgba(244,160,0,.22), transparent 62%); pointer-events: none; }
.article-hero .wrap { position: relative; z-index: 1; max-width: 900px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .76rem; color: var(--grey-mid); margin-bottom: 26px; flex-wrap: wrap; }
.breadcrumb a { color: var(--grey-mid-2); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #444; }
.breadcrumb .current { color: var(--accent); }
.article-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.06; margin-bottom: 26px; max-width: 20ch; overflow-wrap: break-word; word-break: break-word; }
.article-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.article-meta__author { display: flex; align-items: center; gap: 11px; }
.article-meta__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.article-meta__name { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: .96rem; }
.article-meta__sub { font-size: .82rem; color: var(--grey-mid); }
.article-meta__item { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--grey-mid-2); }
.article-meta__item svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }
.article-hero__img { margin-top: 36px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2/1; background: var(--off-black); border: 1px solid var(--line-dark); max-width: 1000px; }
.article-hero__img image-slot { width: 100%; height: 100%; display: block; }
.article-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   ARTICLE DETAIL — LIGHT BODY + LAYOUT
   ============================================================ */
.article-wrap { background: var(--white); color: #1a1a1a; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(30px, 5vw, 64px); max-width: 1100px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter); }

/* TOC */
.toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 130px); overflow-y: auto; }
.toc__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-mid); margin-bottom: 16px; }
.toc ul { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line-light); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: #777; font-size: .9rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--black); }
.toc a.active { color: var(--accent-dark); border-left-color: var(--accent); font-weight: 600; }
.toc a.lvl-3 { padding-left: 28px; font-size: .85rem; }
.toc__toggle { display: none; }

/* Article body typography */
/* min-width:0 is required: as a grid child, the default min-width:auto stops
   it shrinking below its content's min-content width, so wide children (tables,
   pre, long words) would otherwise force horizontal overflow. */
.article-body { max-width: 760px; min-width: 0; font-size: 1.12rem; line-height: 1.78; color: #2a2a2a; }

/* ------------------------------------------------------------
   OVERFLOW GUARDS for user-generated (CKEditor / pasted) HTML.
   The body is raw {!! $article->body !!} — anything can land here.
   These rules keep arbitrary content inside the viewport on mobile.
   ------------------------------------------------------------ */
.article-body { overflow-wrap: break-word; word-wrap: break-word; }
/* Break long unbreakable strings (URLs, tokens) so they don't widen the page */
.article-body p,
.article-body li,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body blockquote,
.article-body a { overflow-wrap: break-word; word-break: break-word; }
/* Cells: only break genuinely long unbreakable strings (URLs). Do NOT force
   word-break — that crushes multi-column tables to one word per column on
   mobile. Columns keep natural width; the wrapper scrolls instead. */
.article-body td,
.article-body th { overflow-wrap: break-word; }
/* Media never exceeds its column */
.article-body img,
.article-body video,
.article-body iframe,
.article-body embed,
.article-body object,
.article-body svg { max-width: 100%; height: auto; }
/* Responsive video / map embeds keep their aspect ratio */
.article-body iframe { aspect-ratio: 16 / 9; width: 100%; }
/* Code / preformatted blocks scroll instead of stretching the layout */
.article-body pre { max-width: 100%; overflow-x: auto; white-space: pre; -webkit-overflow-scrolling: touch; }
.article-body code { overflow-wrap: break-word; word-break: break-word; }
/* ---- BASELINE table handling (fallback if smart-tables JS doesn't run) ----
   figure.table is the scroll container; the inner table sizes to its content
   so columns keep natural width and the wrapper scrolls. CKEditor stamps an
   inline width on the figure (style="width:823px") — override it. */
.article-body figure.table {
  display: block; width: 100% !important; max-width: 100%;
  margin: 28px 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.article-body figure.table > table { margin: 0; width: max-content; min-width: 100%; }
/* Bare tables (no figure wrapper): the table element IS the scroll container. */
.article-body > table:not(.a-table) {
  display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.article-body > p { margin-bottom: 24px; }
.article-body > h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--black); letter-spacing: -.02em; margin: 52px 0 20px; padding-top: 14px; scroll-margin-top: 90px; }
.article-body > h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 16px; }
.article-body > h3 { font-family: var(--font-head); font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--black); margin: 36px 0 14px; scroll-margin-top: 90px; }
.article-body a:not(.btn) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article-body a:not(.btn):hover { color: var(--accent); }
.article-body strong { color: #111; font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 4px; display: flex; flex-direction: column; gap: 10px; }
.article-body ul > li, .article-body ol > li { position: relative; padding-left: 30px; }
.article-body ul > li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.article-body ol { counter-reset: li; }
.article-body ol > li { counter-increment: li; }
.article-body ol {
    list-style: none;
    counter-reset: li;
    padding-left: 0;
}

.article-body ol > li {
    counter-increment: li;
    position: relative;
    padding-left: 36px;
}

.article-body ol > li::before {
    content: counter(li);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFF3DA;
    color: var(--accent-dark);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .8rem;
    display: grid;
    place-items: center;
}
.article-body img { border-radius: var(--radius-sm); border: 1px solid var(--line-light); margin: 28px 0; }
.article-body figcaption { font-size: .85rem; color: #888; text-align: center; margin-top: -16px; margin-bottom: 28px; }

/* Standard table */
.a-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .98rem; border: 1px solid var(--line-light); border-radius: var(--radius-sm); overflow: hidden; }
.a-table thead th { background: var(--off-black); color: #fff; font-family: var(--font-head); font-weight: 600; text-align: left; padding: 14px 18px; font-size: .92rem; }
.a-table td { padding: 13px 18px; border-top: 1px solid var(--line-light); color: #333; }
.a-table tbody tr:nth-child(even) { background: #faf9f7; }
.a-table tbody tr:hover { background: #FFF9EE; }
.a-table-wrap { overflow-x: auto; margin: 28px 0; }
.a-table-wrap .a-table { margin: 0; min-width: 480px; }

/* CKEditor / Google Docs pasted tables — bare <table>, no class, no <thead>.
   First row is treated as the header row. Scoped with :not(.a-table) so the
   design-template tables (which have a real <thead>) are left untouched.
   (figure.table layout/scroll is handled in the overflow-guard block above.) */
.article-body table:not(.a-table) { min-width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .98rem; border: 1px solid var(--line-light); border-radius: var(--radius-sm); overflow: hidden; }
.article-body table:not(.a-table) td,
.article-body table:not(.a-table) th { padding: 13px 18px; border: 1px solid var(--line-light); color: #333; text-align: left; vertical-align: top; line-height: 1.55; min-width: 8.5rem; }
.article-body table:not(.a-table) tr:first-child td,
.article-body table:not(.a-table) tr:first-child th { background: var(--off-black); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem; border-color: var(--off-black); }
.article-body table:not(.a-table) tr:first-child strong { color: #fff; }
.article-body table:not(.a-table) tbody tr:nth-child(even) { background: #faf9f7; }
.article-body table:not(.a-table) tbody tr:hover:not(:first-child) { background: #FFF9EE; }

/* ===== SMART TABLES (Option C) — START =================================
   Scoped under .js-smart-tables (added by blog.js). Fully reversible: delete
   this whole block (down to the END marker) plus the JS block in blog.js, and
   tables revert to the baseline horizontal-scroll behaviour above.
   blog.js tags each figure.table as .is-callout / .is-stack / .is-scroll. */

/* 1-column tables are really layout/callout boxes: wrap normally, no scroll. */
.js-smart-tables figure.table.is-callout { overflow-x: visible; }
.js-smart-tables figure.table.is-callout > table { width: 100%; min-width: 0; }
.js-smart-tables figure.table.is-callout td { min-width: 0; }

/* Wide data tables: scroll horizontally, with a swipe hint via a fade edge. */
.js-smart-tables figure.table.is-scroll { position: relative; }
.js-smart-tables figure.table.is-scroll::after {
  content: ""; position: sticky; right: 0; top: 0; float: right;
  width: 28px; height: 100%; margin-left: -28px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.06));
}

/* Stackable data tables (<=3 cols, short cells): cards on mobile only. */
@media (max-width: 600px) {
  .js-smart-tables figure.table.is-stack { overflow-x: visible; }
  .js-smart-tables figure.table.is-stack > table,
  .js-smart-tables figure.table.is-stack tbody,
  .js-smart-tables figure.table.is-stack tr { display: block; width: 100%; min-width: 0; }
  /* Hide the original header row — its labels are repeated per cell instead. */
  .js-smart-tables figure.table.is-stack tr:first-child { display: none; }
  .js-smart-tables figure.table.is-stack tr {
    border: 1px solid var(--line-light); border-radius: var(--radius-sm);
    margin: 0 0 14px; overflow: hidden;
  }
  .js-smart-tables figure.table.is-stack td {
    display: flex; gap: 12px; align-items: baseline; min-width: 0;
    border: 0; border-bottom: 1px solid var(--line-light); padding: 11px 16px;
    background: #fff !important;
  }
  .js-smart-tables figure.table.is-stack tr td:last-child { border-bottom: 0; }
  .js-smart-tables figure.table.is-stack td[data-label]::before {
    content: attr(data-label); flex: 0 0 40%;
    font-family: var(--font-head); font-weight: 600; color: var(--accent-dark);
    font-size: .82rem; line-height: 1.4;
  }
  /* Reset the dark "first cell = header" styling that the baseline applies. */
  .js-smart-tables figure.table.is-stack td:first-child {
    background: #fff !important; color: #333; font-family: var(--font-body); font-weight: 400;
  }
}
/* ===== SMART TABLES (Option C) — END =================================== */

/* Callout boxes */
.callout { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius-sm); margin: 28px 0; border-left: 4px solid; font-size: 1rem; line-height: 1.6; }
.callout__icon { flex: 0 0 auto; width: 26px; height: 26px; }
.callout__icon svg { width: 26px; height: 26px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout__body { flex: 1; }
.callout__body strong { display: block; font-family: var(--font-head); margin-bottom: 4px; font-size: .95rem; letter-spacing: .01em; }
.callout p { margin: 0; }
.callout--tip { background: #FFF8EA; border-color: var(--accent); }
.callout--tip .callout__icon svg { stroke: var(--accent-dark); }
.callout--tip strong { color: var(--accent-dark); }
.callout--warning { background: #FFF1E6; border-color: #E8852E; }
.callout--warning .callout__icon svg { stroke: #C9661A; }
.callout--warning strong { color: #C9661A; }
.callout--action { background: #EDF9F0; border-color: #1F8A5B; }
.callout--action .callout__icon svg { stroke: #1F8A5B; }
.callout--action strong { color: #1B7A50; }
.callout--formula { background: #EEF4FF; border-color: #2A6FDB; }
.callout--formula .callout__icon svg { stroke: #2A6FDB; }
.callout--formula strong { color: #2257B5; }
.callout--formula .formula { font-family: var(--font-mono); font-size: 1.05rem; color: #1c3c75; background: #fff; border: 1px solid #D5E2FA; border-radius: 8px; padding: 12px 16px; margin-top: 10px; display: inline-block; }

/* Good vs bad */
.goodbad { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.goodbad__col { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-light); }
.goodbad__head { padding: 12px 18px; font-family: var(--font-head); font-weight: 700; color: #fff; display: flex; align-items: center; gap: 9px; font-size: .98rem; }
.goodbad__head svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; }
.goodbad--good .goodbad__head { background: #1F8A5B; }
.goodbad--bad .goodbad__head { background: #C0392B; }
.goodbad__col ul { margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.goodbad__col li { padding-left: 26px; font-size: .94rem; color: #444; }
.goodbad--good li::before { content: "✓"; color: #1F8A5B; font-weight: 700; }
.goodbad--bad li::before { content: "✕"; color: #C0392B; font-weight: 700; }
.goodbad__col li::before { position: absolute; left: 18px; }
.goodbad__col li { position: relative; }
@media (max-width: 600px) { .goodbad { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { border: 1px solid var(--line-light); border-radius: var(--radius-sm); margin: 28px 0; overflow: hidden; }
.checklist__head { background: #FBFAF8; padding: 16px 20px; font-family: var(--font-head); font-weight: 700; color: var(--black); border-bottom: 1px solid var(--line-light); display: flex; align-items: center; gap: 10px; }
.checklist__head svg { width: 20px; height: 20px; stroke: var(--accent-dark); fill: none; stroke-width: 2.2; }
.checklist__items { display: flex; flex-direction: column; }
.checklist__item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-light); cursor: pointer; transition: background .2s; }
.checklist__item:hover { background: #FFFBF2; }
.checklist__box { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cbb88c; display: grid; place-items: center; transition: all .2s; }
.checklist__box svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; opacity: 0; }
.checklist__item.checked .checklist__box { background: var(--accent); border-color: var(--accent); }
.checklist__item.checked .checklist__box svg { opacity: 1; }
.checklist__item.checked .checklist__text { color: #999; text-decoration: line-through; }
.checklist__text { font-size: .98rem; color: #333; }
.checklist__score { padding: 14px 20px; background: #FBFAF8; font-size: .92rem; color: #555; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checklist__score b { font-family: var(--font-head); color: var(--accent-dark); }

/* Blockquote */
.article-body blockquote { border-left: 4px solid var(--accent); padding: 6px 0 6px 24px; margin: 30px 0; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.45; font-style: italic; color: #1a1a1a; font-weight: 500; }
.article-body blockquote cite { display: block; font-family: var(--font-body); font-size: .92rem; font-style: normal; color: #888; margin-top: 12px; font-weight: 400; }

/* Sources / disclaimer */
.a-sources { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: .85rem; color: #999; font-style: italic; line-height: 1.6; }

/* ============================================================
   SHARE BAR
   ============================================================ */
.share-bar { display: flex; align-items: center; gap: 12px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line-light); }
.share-bar__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-mid); margin-right: 4px; }
.share-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-light); display: grid; place-items: center; background: #fff; transition: all .25s var(--ease); position: relative; }
.share-btn svg { width: 18px; height: 18px; fill: #555; transition: fill .2s; }
.share-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.share-btn:hover svg { fill: var(--accent-dark); }
.share-btn__toast { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #000; color: #fff; font-size: .72rem; padding: 5px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; font-family: var(--font-body); }
.share-btn__toast.show { opacity: 1; }

/* ============================================================
   AUTHOR BIO
   ============================================================ */
.author-bio { display: flex; gap: 20px; align-items: center; margin-top: 40px; padding: 26px; background: #FBFAF8; border: 1px solid var(--line-light); border-radius: var(--radius); }
.author-bio__avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.author-bio__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-mid); margin-bottom: 5px; }
.author-bio h3 { color: var(--black); font-size: 1.15rem; margin-bottom: 6px; }
.author-bio p { color: #666; font-size: .94rem; margin: 0; }

/* ============================================================
   ARTICLE LAYOUT RESPONSIVE — TOC collapses
   ============================================================ */
@media (max-width: 900px) {
  /* minmax(0,1fr), not 1fr: a plain 1fr track has an implicit min of
     min-content, so a wide child (table/pre/flex row) widens the track past
     the viewport. minmax(0,…) lets the column shrink so children scroll. */
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; max-height: none; margin-bottom: 30px; border: 1px solid var(--line-light); border-radius: var(--radius-sm); padding: 16px 18px; background: #FBFAF8; }
  .toc__list { display: none; }
  .toc.open .toc__list { display: flex; }
  .toc__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: var(--font-head); font-weight: 600; color: var(--black); font-size: .95rem; }
  .toc__toggle svg { width: 18px; height: 18px; stroke: var(--accent-dark); fill: none; stroke-width: 2; transition: transform .3s; }
  .toc.open .toc__toggle svg { transform: rotate(180deg); }
  .toc__label { display: none; }
  .toc ul { margin-top: 14px; }
  .article-body { max-width: none; }
}
