/* ============ SINGLE POST — page-specific ============ */

/* Post hero (variant) */
.post-hero { background: var(--brand-primary); color: #fff; padding: 60px 0 70px; position: relative; overflow: hidden; isolation: isolate; }
.post-hero::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(70% 60% at 80% 30%, rgba(176,122,58,.22), transparent 70%), linear-gradient(135deg, #20304c 0%, #14213a 100%); }
.post-hero::after { content:""; position:absolute; inset:0; z-index:-1; background: repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 24px, transparent 24px 48px); }
.post-hero .breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 20px; flex-wrap: wrap; }
.post-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.post-hero .breadcrumb a:hover { color: var(--brand-accent-2); }
.post-hero .breadcrumb .sep { color: rgba(255,255,255,.35); }
.post-hero .cat-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--brand-accent); color: #fff; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; border-radius: 999px; margin-bottom: 22px; }
.post-hero h1 { color: #fff; font-size: clamp(32px, 3.8vw, 50px); max-width: 880px; }
.post-hero .post-meta { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; align-items: center; color: rgba(255,255,255,.75); font-size: 14px; }
.post-hero .post-meta .author { display: flex; gap: 12px; align-items: center; }
.post-hero .post-meta .author .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Spectral',serif; font-weight: 700; font-size: 18px; }
.post-hero .post-meta .author .name { color: #fff; font-weight: 700; font-size: 15px; }
.post-hero .post-meta .author .role { font-size: 12px; color: rgba(255,255,255,.6); }
.post-hero .post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); }

/* Featured image overlapping hero */
.post-featured-img { aspect-ratio: 21/9; background: var(--bg-soft); background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(27,42,68,.06) 16px 32px); border-radius: 6px; border: 1px solid var(--line); position: relative; display: flex; align-items: center; justify-content: center; max-width: var(--max); margin: -40px auto 0; overflow: hidden; }
.post-featured-img::before { content: ""; position: absolute; inset: 18px; border: 1px solid var(--line); z-index: 2; pointer-events: none; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 1; }
.post-featured-img .ph-label { font-family: ui-monospace, monospace; font-size: 11px; color: var(--text-mute); letter-spacing: .18em; text-transform: uppercase; background: var(--bg); padding: 8px 14px; border: 1px solid var(--line); }
.post-featured-wrap { padding: 0 28px; margin-top: -40px; }

/* Layout: article + sidebar */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 70px; padding: 80px 0 60px; }

/* Article body */
.post-body { max-width: 720px; }
.post-body .lead { font-family: 'Spectral', serif; font-size: 22px; line-height: 1.55; color: var(--brand-primary); font-weight: 400; margin: 0 0 36px; font-style: italic; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-body h2 { font-size: 30px; margin: 48px 0 18px; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 22px; margin: 36px 0 14px; color: var(--brand-primary); }
.post-body p { font-size: 17px; line-height: 1.75; color: var(--text); margin: 0 0 22px; }
.post-body p strong { color: var(--brand-primary); }
.post-body a { color: var(--brand-accent); border-bottom: 1px solid var(--brand-accent); transition: color .15s; }
.post-body a:hover { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 22px; }
.post-body ul li, .post-body ol li { font-size: 17px; line-height: 1.75; color: var(--text); margin-bottom: 10px; }
.post-body ul li::marker { color: var(--brand-accent); }
.post-body ol li::marker { color: var(--brand-accent); font-weight: 700; font-family: 'Spectral',serif; }
.post-body blockquote { margin: 36px 0; padding: 28px 32px; border-left: 4px solid var(--brand-accent); background: var(--bg-soft); border-radius: 0 4px 4px 0; font-family: 'Spectral', serif; font-size: 22px; line-height: 1.5; color: var(--brand-primary); font-style: italic; }
.post-body blockquote footer { margin-top: 14px; font-family: 'Manrope',sans-serif; font-style: normal; font-size: 13px; color: var(--text-mute); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

/* Inline highlight callout */
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand-primary); padding: 22px 26px; margin: 28px 0; border-radius: 0 4px 4px 0; }
.callout .h { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-accent); font-weight: 700; margin-bottom: 10px; }
.callout p { margin: 0; font-size: 16px; color: var(--text-soft); }

/* Table */
.post-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14.5px; }
.post-body th, .post-body td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body th { background: var(--bg-soft); color: var(--brand-primary); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.post-body tr:hover td { background: var(--bg); }

/* Share + tags row */
.post-share { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; margin: 48px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.post-share .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-share .tag { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--text-soft); background: #fff; }
.post-share .tag:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.post-share .share { display: flex; gap: 8px; align-items: center; }
.post-share .share .label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; margin-right: 4px; }
.post-share .share a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-primary); background: #fff; transition: all .15s; }
.post-share .share a:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* Author bio card */
.author-bio { margin-top: 48px; padding: 36px 32px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.author-bio .avatar-big { width: 96px; height: 96px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Spectral',serif; font-size: 36px; font-weight: 700; }
.author-bio .kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-accent); font-weight: 700; margin-bottom: 8px; }
.author-bio h3 { font-size: 22px; margin: 0 0 4px; }
.author-bio .role { font-size: 13px; color: var(--text-mute); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.author-bio p { font-size: 14.5px; color: var(--text-soft); margin: 0 0 14px; }

/* Sidebar */
.post-sidebar { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 26px; }

/* TOC */
.toc { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px 26px; }
.toc .kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-accent); font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.toc .kicker::before { content: ""; width: 18px; height: 1px; background: var(--brand-accent); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc ol li { counter-increment: toc; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; line-height: 1.4; }
.toc ol li:last-child { border-bottom: none; }
.toc ol li::before { content: counter(toc, decimal-leading-zero); font-family: 'Spectral',serif; font-style: italic; color: var(--brand-accent); font-size: 12px; margin-right: 10px; font-weight: 500; }
.toc ol li a { color: var(--text); font-weight: 500; transition: color .15s; }
.toc ol li a:hover { color: var(--brand-accent); }

/* Sidebar CTA */
.side-cta { background: var(--brand-primary); color: #fff; padding: 32px 28px; border-radius: 6px; position: relative; overflow: hidden; }
.side-cta::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 50% at 80% 20%, rgba(176,122,58,.25), transparent 70%); pointer-events: none; }
.side-cta .kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-accent-2); font-weight: 700; margin-bottom: 12px; position: relative; }
.side-cta h3 { color: #fff; font-size: 22px; margin: 0 0 12px; position: relative; line-height: 1.25; }
.side-cta p { color: rgba(255,255,255,.78); font-size: 14px; margin: 0 0 20px; position: relative; }
.side-cta .btn { width: 100%; justify-content: center; position: relative; }

/* Sidebar phone card */
.side-phone { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 22px; }
.side-phone .label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; margin-bottom: 10px; }
.side-phone .num { font-family: 'Spectral',serif; font-size: 28px; color: var(--brand-primary); margin-bottom: 4px; }
.side-phone .small { font-size: 13px; color: var(--text-mute); }

/* Reading progress bar */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand-accent); z-index: 200; transition: width .1s; width: 0%; }

/* Related posts */
.related { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 80px 0; }
.related .section-head { text-align: left; margin-bottom: 36px; }
.related .section-head h2 { font-size: 28px; }
.related .articles-grid { grid-template-columns: repeat(3, 1fr); }

/* Responsive */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}
@media (max-width: 980px) {
  .post-hero { padding: 44px 0 56px; }
  .post-featured-img { aspect-ratio: 16/9; margin-top: -30px; }
  .post-featured-wrap { margin-top: -30px; }
  .post-layout { grid-template-columns: 1fr; gap: 40px; padding: 50px 0 40px; }
  .post-sidebar { position: static; order: -1; flex-direction: column; }
  .toc { padding: 20px 22px; }
  .post-hero .post-meta { gap: 14px; }
  .author-bio { grid-template-columns: 72px 1fr; gap: 18px; padding: 26px 22px; }
  .author-bio .avatar-big { width: 72px; height: 72px; font-size: 28px; }
  .related { padding: 56px 0; }
  .related .articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-body { max-width: 100%; }
  .post-body .lead { font-size: 18px; }
  .post-body h2 { font-size: 24px; margin: 36px 0 14px; }
  .post-body h3 { font-size: 19px; }
  .post-body p, .post-body ul li, .post-body ol li { font-size: 16px; }
  .post-body blockquote { padding: 22px 22px; font-size: 18px; margin: 28px 0; }
  .post-share { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 0; }
  .post-featured-img { aspect-ratio: 4/3; }
  .post-hero h1 { font-size: 28px; }
  .post-hero .post-meta { font-size: 13px; }
}
