/* CODALE BLOG — blog.css */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:        #9c1d1f;
    --red-dark:   #7a1416;
    --red-light:  #fef2f2;
    --red-mid:    #fca5a5;
    --ink:        #111827;
    --ink-80:     #1f2937;
    --ink-50:     #6b7280;
    --ink-20:     #d1d5db;
    --green:      #15803D;
    --green-light:#f0fdf4;
    --green-mid:  #bbf7d0;
    --border:     #e5e7eb;
    --bg:         #f9fafb;
    --bg-2:       #f3f4f6;
    --surface:    #ffffff;
    --radius-sm:  8px;
    --radius-lg:  16px;
    --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.09);
    --shadow-lg:  0 12px 48px rgba(0,0,0,0.13);
    --font-head:  'Montserrat', 'Montserrat Fallback', Arial, sans-serif;
    --font-body:  'Nunito', 'Nunito Fallback', Arial, sans-serif;
    --navbar-h:   68px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 18px; color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* SITE CHROME — navbar + footer sunt cele ale site-ului (css/style.min.css).
   Variabilele site-ului sunt scoped aici ca să nu schimbe stilul articolelor. */
.nav, footer, .back-to-top {
    --red:#9c1d1f;
    --red-dark:#741416;
    --red-light:#f7ece9;
    --red-mid:#ead1c9;
    --green:#168451;
    --green-light:#eaf6ef;
    --teal:#4A6E63;
    --teal-light:#E9EFE8;
    --ochre:#B8843A;
    --ochre-light:#F7EEDD;
    --ink:#181614;
    --ink-80:#3f3934;
    --ink-70:#544c45;
    --ink-60:#6d6259;
    --ink-50:#756b62;
    --ink-40:#9b9088;
    --ink-20:#d8d0c6;
    --surface:#fff;
    --paper:#fafafa;
    --bg:#f5f5f5;
    --bg-2:#efefef;
    --border:#e2e2e2;
    --radius-sm:4px;
    --radius-md:6px;
    --radius-lg:8px;
    --shadow-sm:0 1px 2px rgba(24,22,20,.04);
    --shadow-md:0 10px 30px rgba(24,22,20,.07);
    --shadow-lg:0 22px 60px rgba(24,22,20,.09);
    --font-body:'Nunito','Nunito Fallback',Arial,sans-serif;
    --font-display:'Montserrat','Montserrat Fallback',Arial,sans-serif;
    --step--2:clamp(.72rem,.69rem + .12vw,.78rem);
    --step--1:clamp(.82rem,.78rem + .18vw,.92rem);
    --step-0:clamp(.95rem,.9rem + .22vw,1.05rem);
    --step-1:clamp(1.12rem,1.02rem + .4vw,1.32rem);
    --step-2:clamp(1.38rem,1.18rem + .78vw,1.78rem);
    --step-3:clamp(1.8rem,1.42rem + 1.45vw,2.55rem);
    --step-4:clamp(2.35rem,1.72rem + 2.35vw,3.7rem)
}
body { padding-top: var(--navbar-h); overflow-x: clip; }
.nav .wrap, footer .wrap { max-width: 1200px; padding: 0 32px; }
@media (max-width: 980px) { .nav .wrap, footer .wrap { padding: 0 24px; } }
.nav__logo-img   { height: 36px; width: auto; display: block; }
.footer-logo-img { height: 32px; width: auto; display: block; margin-bottom: 14px; }
.nav__links a.nav-active { color: var(--red) !important; }
.footer-bottom .cc-reopen-btn { margin-left: 12px; }

/* EYEBROW & BTN */
.eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); margin-bottom: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 800; text-decoration: none; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.18s; border: none; }
.btn--primary { background: var(--red); color: #fff; padding: 12px 22px; font-size: 0.9rem; }
.btn--primary:hover { background: var(--red-dark); }

/* BLOG HERO */
.blog-hero { padding: 64px 0 56px; background: var(--surface); border-bottom: 1px solid var(--border); text-align: center; position: relative; overflow: hidden; }
.blog-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 110%, rgba(156,29,31,0.04) 0%, transparent 70%); pointer-events: none; }
.blog-hero .wrap { position: relative; z-index: 2; }
.blog-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; color: var(--ink); letter-spacing: -0.02em; max-width: 700px; margin: 0 auto 14px; line-height: 1.2; }
.blog-hero .lead { font-size: 1.05rem; color: var(--ink-50); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* BLOG LAYOUT */
.blog-layout { display: grid; grid-template-columns: 1fr 288px; gap: 48px; padding: 52px 0 80px; align-items: start; }

/* FEATURED POST */
.featured-post { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); margin-bottom: 44px; text-decoration: none; background: var(--surface); transition: box-shadow 0.25s, transform 0.25s; }
.featured-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.featured-post__img { overflow: hidden; background: var(--bg-2); aspect-ratio: 16/7; width: 100%; }
.featured-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.featured-post:hover .featured-post__img img { transform: scale(1.05); }
.featured-post__img-placeholder { width: 100%; height: 100%; min-height: 260px; background: linear-gradient(135deg, var(--red-light) 0%, var(--bg-2) 100%); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.featured-post__body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.featured-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; padding: 4px 12px; border-radius: 20px; width: fit-content; }
.featured-post__title { font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; color: var(--ink); line-height: 1.3; }
.featured-post__excerpt { color: var(--ink-50); font-size: 0.9rem; line-height: 1.7; }
.featured-post__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; color: var(--ink-50); font-weight: 600; }
.featured-post__meta span { display: flex; align-items: center; gap: 5px; }
.featured-post__cta { display: flex; align-items: center; gap: 6px; color: var(--red); font-weight: 800; font-size: 0.875rem; margin-top: 4px; }

/* CAT FILTER */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-filter a { padding: 6px 16px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; text-decoration: none; border: 1.5px solid var(--border); color: var(--ink-50); background: var(--surface); transition: all 0.2s; }
.cat-filter a:hover, .cat-filter a.active { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* POSTS GRID */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: all 0.22s; }
.post-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); position: relative; flex-shrink: 0; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--red-light) 0%, var(--bg-2) 100%); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.post-card__cat { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 20px; text-decoration: none; }
.post-card__body { padding: 20px 20px 16px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.post-card__title { margin: 0; font-family: var(--font-head); font-size: 0.93rem; font-weight: 800; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__excerpt { font-size: 0.82rem; color: var(--ink-50); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { display: flex; justify-content: space-between; font-size: 0.71rem; color: var(--ink-50); font-weight: 600; padding-top: 10px; border-top: 1px solid var(--bg-2); }
.post-card__meta span { display: flex; align-items: center; gap: 4px; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 700; text-decoration: none; border: 1.5px solid var(--border); color: var(--ink); background: var(--surface); transition: all 0.18s; }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .dots { border-color: transparent; background: none; pointer-events: none; }

/* SIDEBAR */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--navbar-h) + 20px); }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.sidebar-card__title { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-50); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--bg-2); }
.sidebar-cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bg-2); text-decoration: none; color: var(--ink-80); font-size: 0.875rem; font-weight: 600; transition: color 0.18s; }
.sidebar-cats a:last-child { border-bottom: none; }
.sidebar-cats a:hover { color: var(--red); }
.sidebar-cats .cnt { background: var(--bg-2); border-radius: 10px; padding: 2px 8px; font-size: 0.68rem; font-weight: 700; color: var(--ink-50); }
.sidebar-recent a { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--bg-2); text-decoration: none; transition: opacity 0.18s; }
.sidebar-recent a:last-child { border-bottom: none; }
.sidebar-recent a:hover { opacity: 0.72; }
.sidebar-recent__thumb { width: 58px; height: 42px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bg-2); }
.sidebar-recent__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent__placeholder { width: 100%; height: 100%; background: var(--red-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.sidebar-recent__title { font-size: 0.78rem; font-weight: 700; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-recent__date { font-size: 0.68rem; color: var(--ink-50); margin-top: 4px; }
.sidebar-cta { background: var(--ink); border-color: var(--ink); }
.sidebar-cta .sidebar-card__title { color: rgba(255,255,255,0.45); border-color: rgba(255,255,255,0.1); }
.sidebar-cta p { font-size: 0.855rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 18px; }
.sidebar-cta .btn--primary { width: 100%; justify-content: center; font-size: 0.855rem; background: var(--red); }
.sidebar-cta .sidebar-cta__alt { color: rgba(255,255,255,0.85) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4); font-weight: 600; transition: color .15s, text-decoration-color .15s; }
.sidebar-cta .sidebar-cta__alt:hover, .sidebar-cta .sidebar-cta__alt:focus-visible { color: #fff !important; text-decoration-color: #fff; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 72px 20px; color: var(--ink-50); }
.empty-state i { font-size: 3rem; color: var(--border); display: block; margin-bottom: 14px; }


/* READING PROGRESS */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform-origin: left; transform: scaleX(0); z-index: 9999; transition: transform 0.08s linear; }

/* ── POST HERO ── */
.post-hero { position: relative; min-height: 500px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); overflow: hidden; }
.post-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0.38; }
.post-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(17,24,39,0.05) 0%, rgba(17,24,39,0.5) 35%, rgba(17,24,39,0.96) 100%); }
.post-hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 110px 24px 52px; width: 100%; }
.post-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.85); font-weight: 600; margin-bottom: 20px; flex-wrap: wrap; }
/* !important: regula globală din style.min.css (a:not(.btn)…{color:var(--red)}) are specificitate mai mare și făcea linkurile din hero roșii */
.post-breadcrumb a { color: rgba(255,255,255,0.85) !important; text-decoration: none !important; transition: color 0.18s; }
.post-breadcrumb a:hover { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.7) !important; }
.post-breadcrumb .sep { color: rgba(255,255,255,0.5); font-size: 0.65rem; }
.post-cat-badge { display: inline-flex; align-items: center; background: var(--red); color: #fff !important; border: 1px solid var(--red); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; text-decoration: none !important; transition: background 0.18s, border-color 0.18s; }
.post-cat-badge:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff !important; }
.post-hero ::selection { background: rgba(255,255,255,0.3); color: #fff; }
.post-hero h1 { font-family: var(--font-head); font-size: clamp(1.75rem, 3.2vw, 2.7rem); font-weight: 900; color: #fff; line-height: 1.17; letter-spacing: -0.025em; margin-bottom: 16px; }
.post-summary { font-size: 1.02rem; line-height: 1.72; color: rgba(255,255,255,0.65); margin-bottom: 26px; }
.post-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 0.78rem; color: rgba(255,255,255,0.48); font-weight: 600; }
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 0.62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── PAGE WRAP + LAYOUT 2 COLOANE: articol | sidebar ── */
.post-page-wrap { background: var(--bg); }
.post-layout { display: grid; grid-template-columns: 240px 1fr; gap: 52px; max-width: 1100px; margin: 0 auto; padding: 56px 24px 100px; align-items: start; }
.post-article { order: 2; }
.post-sidebar { transition: opacity 0.3s, visibility 0.3s; order: 1; position: sticky; top: calc(var(--navbar-h) + 28px); display: flex; flex-direction: column; gap: 20px; }

/* ── ARTICOL ── */
.post-article { min-width: 0; overflow: hidden; display: flow-root; }
.post-content { display: flow-root; overflow: hidden; }
.post-content p { font-size: 1.125rem; line-height: 1.85; color: var(--ink-80); margin-bottom: 18px; }
.post-content h2 { font-family: var(--font-head); font-size: 1.65rem; font-weight: 800; color: var(--ink); margin: 44px 0 14px; letter-spacing: -0.015em; line-height: 1.22; }
.post-content h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 32px 0 12px; line-height: 1.3; }
.post-content h4 { font-size: 1.075rem; font-weight: 800; color: var(--ink); margin: 24px 0 8px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 18px; }
.post-content strong { font-weight: 800; color: var(--ink); }
.post-content em { font-style: italic; }
.post-content a { color: var(--red); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--red-light); transition: border-color 0.2s; }
.post-content a:hover { border-color: var(--red); }
.post-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 32px 0; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: block; }
.post-content blockquote { border-left: 4px solid var(--red); margin: 36px 0; padding: 20px 26px; background: var(--red-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--ink-80); font-size: 1.15rem; line-height: 1.75; }
.post-content blockquote p { margin: 0; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.post-content table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 28px; font-size: 0.9rem; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.post-content th { background: var(--bg-2); padding: 11px 16px; text-align: left; font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-50); border-bottom: 2px solid var(--border); }
.post-content td { padding: 11px 16px; border-bottom: 1px solid var(--bg-2); color: var(--ink-80); }
.post-content tr:last-child td { border-bottom: none; }
.post-content code { background: var(--bg-2); padding: 2px 7px; border-radius: 4px; font-family: monospace; font-size: 0.88em; color: var(--red-dark); }
.post-content pre { background: var(--ink); color: #e5e7eb; padding: 20px 24px; border-radius: var(--radius-sm); overflow-x: auto; margin-bottom: 24px; font-size: 0.88rem; line-height: 1.6; }
.post-content pre code { background: none; color: inherit; padding: 0; }

/* ── CTA BANNER ── */
.post-cta-banner { background: var(--ink); border-radius: var(--radius-lg); padding: 40px 44px; text-align: center; margin: 56px 0; }
.post-cta-banner h3 { font-family: var(--font-head); color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.post-cta-banner p { color: rgba(255,255,255,0.6) !important; font-size: 0.9rem !important; margin-bottom: 22px !important; line-height: 1.65 !important; }
.post-cta-banner .btn--primary { background: var(--red); font-size: 0.95rem; padding: 13px 28px; }

/* ── POST FOOTER ── */
.post-footer { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.post-cat-link { display: inline-flex; align-items: center; gap: 6px; background: var(--red-light); color: var(--red); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 16px; border-radius: 20px; text-decoration: none; transition: background 0.18s; }
.post-cat-link:hover, .post-cat-link:focus-visible { background: var(--red) !important; color: #fff !important; }
.post-cat-link:hover i, .post-cat-link:focus-visible i { color: #fff !important; }
.share-row { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; color: var(--ink-50); }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1rem; border: 1.5px solid var(--border); color: var(--ink-50); background: var(--surface); cursor: pointer; transition: all 0.18s; }
.share-btn:hover { border-color: var(--red); color: var(--red); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-50); font-weight: 700; font-size: 0.875rem; text-decoration: none; transition: color 0.18s; }
.back-link:hover { color: var(--red); }

/* ── ARTICOLE SIMILARE ── */
.related-section { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--border); }
.related-section h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; background: var(--surface); display: flex; flex-direction: column; transition: all 0.22s; }
.related-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.related-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); flex-shrink: 0; }
.related-card__img img { width:100%; height:100%; object-fit:cover; transition: transform 0.35s; }
.related-card:hover .related-card__img img { transform: scale(1.06); }
.related-card__placeholder { width:100%; height:100%; background: var(--red-light); display:flex; align-items:center; justify-content:center; font-size:2rem; }
.related-card__body { padding: 14px 16px; flex:1; display:flex; flex-direction:column; gap:6px; }
.related-card__cat { font-size: 0.63rem; font-weight:800; text-transform:uppercase; letter-spacing:0.08em; color:var(--red); }
.related-card__title { margin: 0; font-size: 0.855rem; font-weight:800; color:var(--ink); line-height:1.4; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.related-card__date { font-size:0.68rem; color:var(--ink-50); font-weight:600; margin-top:auto; }

/* ── SIDEBAR DREAPTA ── */


/* ── TOC — stilat ca kitchen.co ── */
.toc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 0; }
.toc-card__title { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.13em; color: var(--ink-50); padding: 0 20px 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.toc-list { list-style: none; display: flex; flex-direction: column; }
.toc-list li { }
.toc-list li a {
    display: block;
    padding: 7px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-50);
    text-decoration: none;
    line-height: 1.45;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.toc-list li a:hover { color: var(--ink); background: var(--bg); }
.toc-list li a.active { color: var(--red); border-left-color: var(--red); background: var(--red-light); font-weight: 700; }

/* sidebar CTA */
.post-sidebar .sidebar-card { padding: 20px; }

/* ── FOOTER ── */

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .post-layout { grid-template-columns: 1fr 210px; gap: 36px; }
}
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .featured-post__img { aspect-ratio: 16/9; }
    .post-layout { grid-template-columns: 1fr; padding: 40px 20px 60px; }
    .post-sidebar { display: none; }
    .post-hero { min-height: 420px; }
    .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .posts-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .post-hero { min-height: 360px; }
    .post-hero__inner { padding: 80px 20px 40px; }
    .post-hero h1 { font-size: 1.6rem; }
    .post-content p, .post-content li { font-size: 1.0625rem; }
    .post-cta-banner { padding: 28px 22px; }
    .post-footer { flex-direction: column; align-items: flex-start; }
    }
