/* Blog: index + article reading layout — builds on site.css and pages.css */
.post-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(140px, 18vh, 200px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.post-hero__glow { position: absolute; z-index: -1; right: -12%; top: -30%; width: 70vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,3,3,.34), rgba(255,159,33,.14) 48%, transparent 72%); filter: blur(12px); }
.post-hero h1 { margin-top: 24px; max-width: 22ch; font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em; }
.post-hero--index h1 { max-width: 14em; font-size: clamp(2.5rem, 5.6vw, 5rem); }
.post-hero--index h1 .serif { display: block; font-size: 1.1em; letter-spacing: -0.015em; }
.post-hero__lead { margin-top: 20px; max-width: 52ch; color: var(--text-2); font-size: var(--fs-lead); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline p { font-size: .875rem; color: var(--text-3); line-height: 1.4; }
.byline strong { display: block; color: var(--text); font-weight: 500; font-size: .9375rem; }

/* layout: sticky TOC + reading column */
.post { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(88px, 11vw, 152px); align-items: start; }
.toc { position: sticky; top: 100px; }
.toc__label, .answer__label, .sources__label, .related__label, .post-cta__label { font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin-top: 14px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: .875rem; line-height: 1.4; color: var(--text-3); transition: color .2s ease, border-color .2s ease; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--ember); }
.post__body { max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }
.post__body strong { color: var(--text); font-weight: 500; }
.post__body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.post__body p + p, .post__body p + .tbl, .post__body .tbl + p, .post__body p + ul, .post__body p + ol, .post__body ul + p, .post__body ol + p, .post__body .opts + p, .post__body .small + p { margin-top: 18px; }
.post__sec { padding-top: clamp(48px, 6vw, 72px); scroll-margin-top: 90px; }
.post__sec h2 { margin-bottom: 20px; font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.035em; color: var(--text); scroll-margin-top: 100px; }
.post__sec h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }

.answer { padding: 24px 26px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.answer p:last-child { margin-top: 10px; color: var(--text); font-size: 1.125rem; line-height: 1.65; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl thead th { font-size: var(--fs-micro); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--bg-2); }
.tbl tbody th { font-weight: 500; color: var(--text); }
.tbl td:nth-child(2) { white-space: nowrap; color: var(--text); font-variant-numeric: tabular-nums; }
.small { margin-top: 12px; font-size: .875rem; color: var(--text-3); line-height: 1.6; }

.factors { counter-reset: f; display: grid; gap: 14px; margin-top: 18px; }
.factors li { counter-increment: f; position: relative; padding-left: 40px; }
.factors li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: .1em; font-size: .8125rem; color: var(--ember); font-variant-numeric: tabular-nums; }
.flags, .checks { display: grid; gap: 12px; margin-top: 18px; }
.flags li, .checks li { position: relative; padding-left: 28px; }
.flags li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 12px; height: 1.5px; background: var(--ember); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 1.5px solid var(--ember); border-bottom: 1.5px solid var(--ember); transform: rotate(-45deg); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { padding: 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.opt p { margin-top: 8px; font-size: .9375rem; line-height: 1.6; }
.post__faq { border-top: 1px solid var(--line); }
.post__faq .faq__item summary { font-size: 1.0625rem; }

.post-cta { position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(56px, 7vw, 88px); padding: clamp(28px, 4vw, 44px); border-radius: 22px;
  background: radial-gradient(120% 140% at 100% 0%, #FF9F21 0%, #FF3B03 36%, #7A0F00 68%, #150402 100%); color: #fff; }
.post-cta__label { color: rgba(255,255,255,.75); }
.post-cta__title { margin-top: 14px; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; color: #fff; }
.post-cta__title .serif { font-size: 1.1em; }
.post-cta p:not([class]) { margin-top: 14px; max-width: 46ch; color: rgba(255,255,255,.88); }
.post-cta .cta-btn { margin-top: 24px; }

.author { display: flex; gap: 18px; align-items: center; margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author p { font-size: .9375rem; line-height: 1.55; }
.author__name { color: var(--text); font-weight: 500; }
.sources { margin-top: 32px; }
.sources ul { margin-top: 12px; display: grid; gap: 6px; font-size: .875rem; }
.related { margin-top: 32px; display: grid; gap: 8px; }
.related__label { margin-bottom: 4px; }
.post__body .related__item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color .2s ease; }
.related__item:hover { border-color: var(--text-3); }
.related__item svg { color: var(--ember); flex: none; }

/* blog index */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: clamp(48px, 6vw, 80px) clamp(88px, 11vw, 152px); }
.post-card { display: flex; flex-direction: column; height: 100%; padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .25s ease; }
.post-card:hover { border-color: var(--text-3); }
.post-card__meta { font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.post-card h2 { margin-top: 20px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; }
.post-card p { margin-top: 12px; color: var(--text-2); font-size: .9375rem; line-height: 1.6; }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; font-size: .875rem; color: var(--text); }
.post-card__more svg { color: var(--ember); transition: transform .25s ease; }
.post-card:hover .post-card__more svg { transform: translateX(3px); }

@media (max-width: 960px) {
  .post { grid-template-columns: 1fr; }
  .toc { position: static; padding: 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
  .toc ol { border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
  .opts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-list { grid-template-columns: 1fr; }
  .post-cta .cta-btn { width: 100%; justify-content: space-between; }
}
.post__body .cta-btn { color: #101010; text-decoration: none; }
