/* ===== Blog / News / Security Alerts (content sections) ===== */
.sec-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.sec-hero .eyebrow { color: var(--royal); }
.sec-hero h1 { margin: 4px 0 10px; }
.sec-hero p { font-size: 18px; color: var(--text-dim); max-width: 720px; }
.sec-body { padding: 48px 0 64px; }

/* card grid (blog + news) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px){ .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background:#fff; border:1px solid var(--line-2); border-radius: var(--radius-lg); overflow:hidden; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-thumb { aspect-ratio: 16/9; background: var(--grad-soft); background-size: cover; background-position: center; }
.post-card-body { padding: 22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.post-meta { font-family: var(--mono); font-size: 16px; color: var(--text-dim); letter-spacing:.02em; margin-bottom: 8px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.post-cat { color: var(--royal); font-weight: 600; text-transform: uppercase; letter-spacing:.05em; }
.post-card h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--royal); }
.post-excerpt { font-size: 16px; color: var(--text-dim); flex:1; }
.post-readmore { margin-top: 14px; font-weight: 600; font-size: 16px; color: var(--royal); }
.sec-empty { text-align:center; color: var(--text-dim); font-size: 18px; padding: 40px 0; }

/* pagination */
.sec-pagination { display:flex; gap:8px; justify-content:center; margin-top: 40px; flex-wrap:wrap; }
.sec-pagination a, .sec-pagination span { padding: 8px 14px; border-radius: 10px; border:1px solid var(--line-2); font-size:16px; color: var(--ink); text-decoration:none; }
.sec-pagination .active { background: var(--grad); color:#fff; border-color: transparent; }

/* single article */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-head { margin-bottom: 26px; }
.article-meta { font-family: var(--mono); font-size: 16px; color: var(--text-dim); margin-bottom: 10px; display:flex; gap:12px; flex-wrap:wrap; }
.article-body { font-size: 18px; line-height: 1.7; color: var(--ink); }
.article-body h2 { font-size: 26px; margin: 32px 0 12px; }
.article-body h3 { font-size: 21px; margin: 26px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body a { color: var(--royal); }
.article-hero-img { width:100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 26px; }
.article-back { display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:16px; color: var(--text-dim); margin-top: 36px; text-decoration:none; }
.article-back:hover { color: var(--royal); }

/* ---- Security Alerts: severity + status ---- */
.alert-list { display: grid; gap: 16px; }
.alert-card { display:block; background:#fff; border:1px solid var(--line-2); border-left-width:5px; border-radius: 12px; padding: 20px 22px; text-decoration:none; transition: box-shadow .2s, transform .2s; }
.alert-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.alert-card-top { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom: 8px; }
.alert-title { font-family:'Sora',sans-serif; font-weight:700; font-size: 20px; color: var(--ink); margin:0; }
.alert-card:hover .alert-title { color: var(--royal); }
.alert-date { font-family: var(--mono); font-size: 16px; color: var(--text-dim); margin-left:auto; }
.alert-summary { font-size: 16px; color: var(--text-dim); margin: 4px 0 0; }
.alert-affected { font-size: 16px; color: var(--text-dim); margin-top: 8px; }
.alert-affected b { color: var(--ink); }

/* severity badge */
.sev { display:inline-flex; align-items:center; gap:6px; font-size:16px; font-weight:700; padding: 3px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing:.04em; }
.sev::before { content:''; width:8px; height:8px; border-radius:50%; background: currentColor; }
.sev-critical { color:#b91c1c; background:#fee2e2; }
.sev-high     { color:#c2410c; background:#ffedd5; }
.sev-medium   { color:#b45309; background:#fef3c7; }
.sev-low      { color:#1d4ed8; background:#dbeafe; }
.sev-info     { color:#475569; background:#e2e8f0; }
/* left border tint by severity */
.alert-card.sev-b-critical { border-left-color:#dc2626; }
.alert-card.sev-b-high     { border-left-color:#ea580c; }
.alert-card.sev-b-medium   { border-left-color:#d97706; }
.alert-card.sev-b-low      { border-left-color:#2b7fff; }
.alert-card.sev-b-info     { border-left-color:#94a3b8; }

.alert-status { display:inline-flex; align-items:center; gap:6px; font-size:16px; font-weight:600; padding: 3px 11px; border-radius:999px; }
.status-active   { color:#b91c1c; background:#fee2e2; }
.status-resolved { color:#15803d; background:#dcfce7; }
.status-monitoring { color:#b45309; background:#fef3c7; }

/* single alert */
.alert-detail-head { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin: 12px 0 16px; }
.alert-facts { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; background: var(--bg-soft); border:1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 6px 0 26px; }
@media (max-width:560px){ .alert-facts { grid-template-columns: 1fr; } }
.alert-fact .k { display:block; font-size:16px; color: var(--text-dim); margin-bottom: 2px; }
.alert-fact .v { font-size:16px; font-weight:600; color: var(--ink); }
.alert-refs { margin-top: 26px; border-top:1px solid var(--line); padding-top: 18px; }
.alert-refs h3 { font-size: 18px; margin-bottom: 10px; }
.alert-refs ul { margin: 0 0 0 20px; }
.alert-refs a { color: var(--royal); font-size: 16px; }

.feed-link { display:inline-flex; align-items:center; gap:7px; font-size:16px; font-weight:600; color: var(--royal); text-decoration:none; margin-top: 6px; }

/* category filter bar */
.blog-filter { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.blog-filter-pill { padding:7px 16px; border-radius:999px; border:1px solid var(--line-2); font-size:16px; font-weight:600; color:var(--text-dim); text-decoration:none; transition: color .15s, border-color .15s, background .15s; }
.blog-filter-pill:hover { color:var(--royal); border-color:var(--royal); }
.blog-filter-pill.is-active { background: var(--grad); color:#fff; border-color:transparent; }

/* card feature image + branded fallback */
.post-card-thumb { display:block; }
.post-card-thumb.is-placeholder { display:grid; place-items:center; background: var(--grad-soft); }
.post-card-thumb-mark { opacity:.55; }

/* article in the 2-column (sidebar) layout */
.article-wide { max-width:none; margin:0; }

/* ===== Editorial article layout (TOC + byline + author box) ===== */
.article-top { padding: 38px 0 6px; }
.article-top-inner { max-width: 820px; margin: 0 auto; }
.article-cat { display:inline-block; font-size:16px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--royal); text-decoration:none; margin-bottom:14px; }
.article-cat:hover { text-decoration:underline; }
.article-top h1 { font-size: clamp(30px, 4vw, 44px); line-height:1.15; margin:0 0 16px; }
.article-deck { font-size: 20px; line-height:1.55; color: var(--text-dim); margin: 0 0 24px; }
.article-byline { display:flex; align-items:center; gap:12px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding: 14px 0; flex-wrap:wrap; }
.byline-photo { width:44px; height:44px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.byline-meta { display:flex; flex-direction:column; }
.byline-name { font-weight:700; font-size:16px; color:var(--ink); }
.byline-sub { font-size:16px; color:var(--text-dim); }
.article-share { display:flex; gap:8px; margin-left:auto; }
.share-btn { width:38px; height:38px; border-radius:50%; border:1px solid var(--line-2); background:#fff; display:grid; place-items:center; color:var(--text-dim); cursor:pointer; text-decoration:none; transition: color .15s, border-color .15s; }
.share-btn:hover { color:var(--royal); border-color:var(--royal); }

.article-hero-wide { display:block; width:100%; max-width:980px; margin: 26px auto 0; aspect-ratio:16/7; object-fit:cover; border-radius: var(--radius-lg); }

.article-layout-sec { padding: 36px 0 56px; }
/* Wider blog body so the reading column is generous (default container is 1180px). */
.article-layout-sec .container { max-width: 1320px; }
/* 3-column: "On this page" TOC (left, sticky, scroll-spy) | wide article | Atika CTA (right, sticky).
   DOM order is toc-rail, main, cta-rail, so natural grid placement = left / center / right. */
/* align-items:stretch lets the side rails fill the row height so position:sticky
   inside them (TOC + CTA card) actually travels as you scroll. gap 64 adds the
   whitespace between the TOC and the body text. */
.article-layout { display:grid; grid-template-columns: 200px minmax(0,1fr) 290px; gap: 64px; align-items:stretch; }
.article-toc-rail { grid-area: auto; }
.article-main { grid-area: auto; min-width:0; max-width:none; }
.article-cta-rail { grid-area: auto; }
@media (max-width:1180px){ .article-layout-sec .container { max-width: var(--container); } .article-layout { grid-template-columns: 200px minmax(0,1fr); } .article-cta-rail { display:none; } }
@media (max-width:900px){ .article-layout { grid-template-columns: 1fr; } .article-toc-rail { display:none; } .article-main { max-width:none; } }

/* sticky rails */
.post-toc { position: sticky; top: 90px; }
.article-cta-rail .rv-sticky { position: sticky; top: 90px; }
.post-toc-title { font-size:16px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-dim); margin-bottom:12px; }
.toc-list { list-style:none; margin:0; padding:0; border-left:2px solid var(--line); }
.toc-li a { display:block; padding:6px 0 6px 14px; margin-left:-2px; border-left:2px solid transparent; font-size:16px; line-height:1.4; color:var(--text-dim); text-decoration:none; transition: color .15s, border-color .15s; }
.toc-li a:hover { color:var(--royal); }
.toc-l3 a { padding-left:26px; }
.toc-li a.is-active { color:var(--royal); border-left-color:var(--royal); font-weight:600; }

/* inline TOC (mobile only) */
.post-toc-inline { display:none; background:var(--bg-soft); border:1px solid var(--line); border-radius:14px; padding:18px 20px; margin-bottom:26px; }
.post-toc-inline .toc-list { border-left:none; }
.post-toc-inline .toc-li a { border-left:none; padding-left:0; }
.post-toc-inline .toc-l3 a { padding-left:16px; }
@media (max-width:900px){ .post-toc-inline { display:block; } }

/* author box (E-E-A-T) */
.author-box { display:flex; gap:18px; align-items:flex-start; margin-top:40px; padding:24px; background:var(--bg-soft); border:1px solid var(--line); border-radius: var(--radius-lg); }
.author-box-photo { width:76px; height:76px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.author-box-eyebrow { font-size:16px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-dim); }
.author-box-name { font-family:'Sora',sans-serif; font-weight:700; font-size:20px; color:var(--ink); }
.author-box-role { font-size:16px; color:var(--royal); font-weight:600; margin-bottom:8px; }
.author-box-bio { font-size:16px; color:var(--text-dim); margin:0 0 10px; }
.author-box-links a { font-size:16px; font-weight:600; color:var(--royal); margin-right:16px; text-decoration:none; }

/* ===== Magazine listing: featured post + card byline ===== */
.post-feature { display:grid; grid-template-columns:1.1fr 1fr; background:#fff; border:1px solid var(--line-2); border-radius:var(--radius-lg); overflow:hidden; text-decoration:none; margin-bottom:34px; transition:box-shadow .25s, transform .25s; }
.post-feature:hover { box-shadow:var(--shadow); transform:translateY(-3px); }
.post-feature-img { min-height:340px; background-size:cover; background-position:center; background:var(--grad-soft); display:grid; place-items:center; }
.post-feature-img.is-placeholder img { opacity:.55; }
.post-feature-body { padding:36px 38px; display:flex; flex-direction:column; justify-content:center; }
.post-feature-title { font-family:'Sora',sans-serif; font-weight:700; font-size:30px; line-height:1.18; margin:12px 0; color:var(--ink); }
.post-feature:hover .post-feature-title { color:var(--royal); }
.post-feature-deck { font-size:17px; line-height:1.6; color:var(--text-dim); margin-bottom:18px; }
@media (max-width:760px){ .post-feature { grid-template-columns:1fr; } .post-feature-img { min-height:210px; } .post-feature-body { padding:26px 22px; } }
.card-byline { display:flex; align-items:center; gap:9px; font-size:16px; color:var(--text-dim); }
.post-card .card-byline { margin-top:14px; }
.card-byline-photo { width:30px; height:30px; border-radius:50%; object-fit:cover; flex-shrink:0; }

/* ---- Mobile: collapsible "On this page" (collapsed by default, tap to open) ---- */
.post-toc-inline .toc-list { display:none; }
.post-toc-inline.open .toc-list { display:block; margin-top:12px; }
.post-toc-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; background:none; border:none; padding:0; margin:0; cursor:pointer; font:inherit; color:inherit; text-align:left; }
.post-toc-toggle::after { content:''; flex:none; width:9px; height:9px; border-right:2px solid var(--royal); border-bottom:2px solid var(--royal); transform:rotate(45deg); transition:transform .2s; margin-right:2px; }
.post-toc-inline.open .post-toc-toggle::after { transform:rotate(-135deg); }

/* ---- In-article CTA card / banner (lead generation) ---- */
.blog-cta { background:var(--grad); color:#fff; border-radius:16px; padding:24px 26px; margin:32px 0; display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; box-shadow:var(--shadow); }
.blog-cta-text { flex:1 1 260px; min-width:0; }
.blog-cta-text h3 { font-family:'Sora',sans-serif; font-size:21px; line-height:1.25; font-weight:700; color:#fff; margin:0 0 6px; }
.blog-cta-text p { font-size:16px; line-height:1.5; color:rgba(255,255,255,.92); margin:0; }
.blog-cta-btn { flex:none; background:#fff; color:var(--royal); font-weight:700; font-size:16px; padding:13px 22px; border-radius:11px; text-decoration:none; display:inline-flex; align-items:center; gap:8px; white-space:nowrap; transition:transform .15s, box-shadow .15s; }
.blog-cta-btn:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(0,0,0,.18); }

/* ---- Tables scroll inside their own box; a cue shows when there is more to the right ---- */
.tscroll-wrap { position:relative; margin:1.2em 0; }
.tscroll { overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:10px; }
.tscroll table { min-width:480px; margin:0; }
.tscroll::-webkit-scrollbar { height:9px; }
.tscroll::-webkit-scrollbar-thumb { background:var(--royal); border-radius:5px; }
.tscroll::-webkit-scrollbar-track { background:var(--line); border-radius:5px; }
/* right-edge fade + "Swipe" pill, visible only while more table remains to the right */
.tscroll-wrap::after { content:''; position:absolute; top:0; right:0; bottom:12px; width:50px; background:linear-gradient(to right, rgba(255,255,255,0), #ffffff 78%); border-radius:0 10px 10px 0; pointer-events:none; opacity:0; transition:opacity .2s; }
.tscroll-wrap.has-more::after { opacity:1; }
.tscroll-cue { position:absolute; right:12px; bottom:18px; background:var(--royal); color:#fff; font-family:'Inter',sans-serif; font-size:13px; font-weight:600; padding:5px 12px; border-radius:999px; pointer-events:none; opacity:0; transform:translateX(4px); transition:opacity .2s, transform .2s; box-shadow:0 4px 12px rgba(35,4,56,.28); }
.tscroll-wrap.has-more .tscroll-cue { opacity:1; transform:translateX(0); }
/* same "Swipe" pill at the TOP of the table, so it is visible the moment you reach it */
.tscroll-wrap::before { content:'Swipe \2192'; position:absolute; right:12px; top:14px; z-index:2; background:var(--royal); color:#fff; font-family:'Inter',sans-serif; font-size:13px; font-weight:600; padding:5px 12px; border-radius:999px; pointer-events:none; opacity:0; transform:translateX(4px); transition:opacity .2s, transform .2s; box-shadow:0 4px 12px rgba(35,4,56,.28); }
.tscroll-wrap.has-more::before { opacity:1; transform:translateX(0); }

/* ---- Lock the blog width on mobile: no horizontal page scroll ---- */
@media (max-width:900px){ .article-body { overflow-x:hidden; } }

/* ---- FAQ accordion (collapsed by default, tap a question to expand) ---- */
.faq-item { border:1px solid var(--line); border-radius:12px; margin:12px 0; background:#fff; }
.faq-q { width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:18px 22px; font-family:'Sora',sans-serif; font-size:18px; font-weight:700; line-height:1.35; color:var(--ink); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.faq-q:hover { color:var(--royal); }
.faq-q::after { content:''; flex:none; width:11px; height:11px; border-right:2.5px solid var(--royal); border-bottom:2.5px solid var(--royal); transform:rotate(45deg); transition:transform .2s; }
.faq-item.open .faq-q::after { transform:rotate(-135deg); }
.faq-a { display:none; padding:0 22px 18px; }
.faq-item.open .faq-a { display:block; }
.faq-a p { margin:0; }


/* Blog pagination */
.blog-pagination { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; align-items:center; margin:48px 0 8px; }
.blog-pagination .pg-link { display:inline-flex; align-items:center; justify-content:center; min-width:44px; height:44px; padding:0 14px; border:1px solid var(--line,#e3d8f0); border-radius:10px; font-size:16px; font-weight:600; text-decoration:none; color:var(--ink,#2a0c44); background:#fff; transition:border-color .15s, background .15s, color .15s; }
.blog-pagination .pg-link:hover { border-color:var(--violet,#7c3aed); }
.blog-pagination .pg-num.is-active { background:var(--violet,#7c3aed); border-color:var(--violet,#7c3aed); color:#fff; }
@media (max-width:560px){ .blog-pagination .pg-num:not(.is-active){ display:none; } }
