/* DialFox blog
   Loaded only on posts, archives, search and 404.
   Restrained by design: one image per article, everything else is typography. */

/* ---------- Shared dark hero for blog views ---------- */
.blog-hero{background:var(--dark);color:#fff;padding:150px 0 64px;position:relative}
.blog-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(253,98,1,.5),transparent)}
.blog-hero .wrap{max-width:900px}
.blog-hero h1{font-size:clamp(30px,4.6vw,50px);margin-bottom:20px}
.blog-hero .lead{color:var(--text-light);font-size:19px;max-width:680px}
.blog-hero-wide .wrap{max-width:var(--maxw)}

/* ---------- Category chips ---------- */
.cat-chips{display:flex;flex-wrap:wrap;gap:10px;margin:34px 0 0}
.cat-chips a{display:inline-flex;align-items:center;padding:8px 16px;border-radius:100px;font-size:14px;font-weight:600;color:var(--text-muted);background:var(--card);border:1px solid var(--border);transition:.18s}
.cat-chips a:hover{border-color:var(--orange);color:var(--text)}
.cat-chips a.is-active{background:var(--dark);color:#fff;border-color:var(--dark)}

/* ---------- Archive listing ---------- */
.blog-list{padding:64px 0 88px}

.blog-feature{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:center;padding-bottom:52px;margin-bottom:52px;border-bottom:1px solid var(--border)}
.blog-feature .bf-media{border-radius:14px;overflow:hidden;background:var(--dark-soft);aspect-ratio:16/10}
.blog-feature .bf-media img{width:100%;height:100%;object-fit:cover}
.blog-feature h2{font-size:clamp(24px,3vw,34px);margin:14px 0 14px;letter-spacing:-.02em}
.blog-feature h2 a:hover{color:var(--orange-dark)}
.blog-feature p{color:var(--text-muted);font-size:17px;margin-bottom:18px}

.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.post-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:28px;display:flex;flex-direction:column;transition:.2s}
.post-card:hover{border-color:var(--orange);box-shadow:0 12px 30px rgba(18,20,22,.06);transform:translateY(-3px)}
.post-card h3{font-size:20px;line-height:1.3;margin:12px 0 12px}
.post-card h3 a:hover{color:var(--orange-dark)}
.post-card p{color:var(--text-muted);font-size:15px;flex:1 1 auto;margin-bottom:18px}

.pc-cat{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--orange-dark)}
.pc-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:var(--text-muted);font-weight:500;margin-top:auto;padding-top:14px;border-top:1px solid var(--border)}
.pc-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--border)}
.blog-feature .pc-meta{border-top:0;padding-top:0;margin-top:0}

/* ---------- Empty state ---------- */
.blog-empty{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:56px 40px;text-align:center;max-width:680px;margin:0 auto}
.blog-empty h2{font-size:24px;margin-bottom:12px}
.blog-empty p{color:var(--text-muted);font-size:17px;margin-bottom:26px}

/* ---------- Pagination ---------- */
.dfx-pagination{margin-top:56px;display:flex;justify-content:center}
.dfx-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;margin:0 4px;border-radius:8px;border:1px solid var(--border);background:var(--card);color:var(--text-muted);font-weight:600;font-size:15px;transition:.18s}
.dfx-pagination .page-numbers:hover{border-color:var(--orange);color:var(--text)}
.dfx-pagination .page-numbers.current{background:var(--dark);border-color:var(--dark);color:#fff}
.dfx-pagination .dots{border:0;background:none}

/* ---------- Single post ---------- */
.post-hero{background:var(--dark);color:#fff;padding:132px 0 56px}
.post-hero .wrap{max-width:820px}
.post-hero .ph-cat{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--orange);margin-bottom:16px}
.post-hero h1{font-size:clamp(30px,4.4vw,48px);margin-bottom:20px}
.post-hero .ph-lead{color:var(--text-light);font-size:19px;font-weight:500;max-width:720px}

.byline{display:flex;align-items:center;gap:14px;margin-top:32px;padding-top:26px;border-top:1px solid rgba(255,255,255,.1)}
.byline-av{width:46px;height:46px;border-radius:50%;flex:0 0 46px;object-fit:cover;background:var(--orange-strong);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;letter-spacing:.02em}
.byline-txt{font-size:14px;line-height:1.45}
.byline-name{color:#fff;font-weight:700;font-size:15px}
.byline-sub{color:rgba(255,255,255,.62);display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px}
.byline-sub .dot{width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.35)}

.post-figure{max-width:900px;margin:-36px auto 0;padding:0 24px;position:relative;z-index:2}
.post-figure img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:14px;box-shadow:0 24px 60px rgba(18,20,22,.16)}
.post-figure figcaption{font-size:13px;color:var(--text-muted);margin-top:12px;text-align:center}

.post-layout{max-width:var(--maxw);margin:0 auto;padding:64px 24px 20px;display:grid;grid-template-columns:250px minmax(0,1fr);gap:56px;align-items:start}
.post-layout.no-toc{grid-template-columns:minmax(0,1fr);max-width:820px}

/* ---------- Table of contents ---------- */
.toc{position:sticky;top:104px}
.toc-h{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-bottom:14px}
.toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--border)}
.toc li{margin:0}
.toc a{display:block;padding:8px 0 8px 16px;margin-left:-2px;border-left:2px solid transparent;font-size:14px;font-weight:500;color:var(--text-muted);line-height:1.4;transition:.18s}
.toc a:hover{color:var(--text)}
.toc a.is-active{color:var(--text);border-left-color:var(--orange-strong);font-weight:600}

/* ---------- Post body typography ---------- */
.post-body{font-size:18px;line-height:1.75;color:#23272B;max-width:760px}
.post-body > *{margin-bottom:26px}
.post-body > *:last-child{margin-bottom:0}
.post-body h2{font-size:clamp(24px,2.6vw,31px);margin:52px 0 18px;scroll-margin-top:104px}
.post-body h3{font-size:21px;margin:36px 0 14px;scroll-margin-top:104px}
.post-body h2:first-child,.post-body h3:first-child{margin-top:0}
.post-body a{color:var(--orange-dark);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.post-body a:hover{color:var(--orange-strong)}
.post-body ul,.post-body ol{padding-left:22px}
.post-body li{margin-bottom:10px}
.post-body li::marker{color:var(--orange-strong)}
.post-body strong{font-weight:700;color:var(--text)}
.post-body img{width:auto;height:auto;max-width:100%;border-radius:12px}
.post-body figure figcaption{font-size:13px;color:var(--text-muted);margin-top:10px}
.post-body blockquote{border-left:3px solid var(--orange-strong);padding:6px 0 6px 24px;font-size:20px;font-weight:600;color:var(--text);font-style:normal}
.post-body blockquote p:last-child{margin-bottom:0}
.post-body hr{border:0;border-top:1px solid var(--border);margin:44px 0}
.post-body table{width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.post-body th,.post-body td{text-align:left;padding:13px 16px;border:1px solid var(--border);vertical-align:top}
.post-body th{background:var(--dark);color:#fff;font-weight:700;font-size:14px;letter-spacing:.01em}
.post-body tbody tr:nth-child(even){background:var(--card)}
.post-body code{background:var(--orange-tint);padding:2px 6px;border-radius:4px;font-size:.9em}

/* Key takeaway / note box: <div class="dfx-note"> in the editor */
.dfx-note{background:var(--orange-tint);border:1px solid #F6D9BC;border-left:3px solid var(--orange-strong);border-radius:10px;padding:24px 26px;font-size:16.5px}
.dfx-note p:last-child{margin-bottom:0}
.dfx-note strong:first-child{display:block;margin-bottom:6px;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--orange-dark)}

/* Legal disclaimer box */
.dfx-disclaimer{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:20px 24px;font-size:15px;color:var(--text-muted)}
.dfx-disclaimer p:last-child{margin-bottom:0}

/* ---------- Article footer bits ---------- */
.post-tail{max-width:760px;margin:0 auto}
.post-share{display:flex;align-items:center;gap:14px;margin-top:52px;padding-top:26px;border-top:1px solid var(--border);font-size:14px;color:var(--text-muted);font-weight:500}
.post-share a{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid var(--border);border-radius:8px;background:var(--card);font-weight:600;color:var(--text-muted);transition:.18s}
.post-share a:hover{border-color:var(--orange);color:var(--text)}
.post-share svg{width:16px;height:16px}

.author-box{display:flex;gap:22px;align-items:flex-start;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:30px;margin-top:36px}
.author-box .ab-av{width:72px;height:72px;flex:0 0 72px;border-radius:50%;object-fit:cover;background:var(--orange-strong);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:22px}
.author-box .ab-name{font-size:18px;font-weight:800;letter-spacing:-.01em}
.author-box .ab-role{font-size:14px;color:var(--orange-dark);font-weight:600;margin-top:2px}
.author-box .ab-bio{color:var(--text-muted);font-size:15.5px;margin-top:12px}
.author-box .ab-li{display:inline-flex;align-items:center;gap:7px;margin-top:14px;font-size:14px;font-weight:600;color:var(--text-muted);transition:.18s}
.author-box .ab-li:hover{color:var(--orange-dark)}
.author-box .ab-li svg{width:16px;height:16px}

/* ---------- Related posts ---------- */
.related{background:var(--card);border-top:1px solid var(--border);padding:72px 0}
.related h2{font-size:26px;margin-bottom:32px}
.related .post-grid .post-card{background:var(--bg)}

/* ---------- 404 and search ---------- */
.err-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px}
.err-links{margin-top:56px;padding-top:34px;border-top:1px solid rgba(255,255,255,.12)}
.err-links .el-h{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.5);margin-bottom:16px}
.err-links ul{list-style:none;display:flex;flex-wrap:wrap;gap:10px 26px;margin:0;padding:0}
.err-links a{color:rgba(255,255,255,.82);font-size:15px;font-weight:500;transition:.18s}
.err-links a:hover{color:var(--orange)}

.search-form-inline{display:flex;gap:10px;margin-top:30px;max-width:520px}
.search-form-inline input[type=search]{flex:1 1 auto;padding:14px 16px;border-radius:8px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;font-size:16px;font-family:inherit}
.search-form-inline input[type=search]::placeholder{color:rgba(255,255,255,.45)}
.search-form-inline input[type=search]:focus{outline:none;border-color:var(--orange)}

/* ---------- Responsive ---------- */
@media(max-width:1040px){
  .post-layout{grid-template-columns:minmax(0,1fr);max-width:820px;gap:0}
  .toc{position:static;margin-bottom:40px;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:22px 24px}
  .toc ol{border-left:0}
  .toc a{padding:7px 0;border-left:0}
  .toc a.is-active{border-left:0}
}
@media(max-width:900px){
  .post-grid{grid-template-columns:repeat(2,1fr)}
  .blog-feature{grid-template-columns:1fr;gap:26px}
  .blog-feature .bf-media{order:-1}
}
@media(max-width:640px){
  .blog-hero,.post-hero{padding-top:116px}
  .post-grid{grid-template-columns:1fr}
  .post-body{font-size:17px}
  .post-figure{margin-top:-22px}
  .author-box{flex-direction:column;gap:16px}
  .post-share{flex-wrap:wrap}
}
