/* ==========================================================================
   Spexo — Blog System
   Shared styles for the blog listing/portal page and individual post pages.
   Builds entirely on the existing design tokens (css/variables.css) so it
   automatically supports the light/dark theme switcher with no extra work.
   ========================================================================== */

/* ---------- Breadcrumbs (listing + single post + authors) ---------- */
.breadcrumbs{
  display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-family:'JetBrains Mono',monospace;
  font-size:12px; color:var(--text-low); margin-bottom:18px;
}
.breadcrumbs a{ color:var(--text-low); text-decoration:none; }
@media (hover:hover) and (pointer:fine){ .breadcrumbs a:hover{ color:var(--cyan); } }
.breadcrumbs .sep{ opacity:0.5; }
.breadcrumbs .current{ color:var(--text-mid); }

/* ---------- Blog portal hero + toolbar ---------- */
.blog-toolbar{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between;
  margin:28px 0 22px;
}
.blog-search{
  flex:1; min-width:220px; position:relative;
}
.blog-search input{
  width:100%; background:var(--surface-hover-soft); border:1px solid var(--panel-border); color:var(--text-hi);
  border-radius:100px; padding:12px 16px 12px 40px; font-family:'Inter',sans-serif; font-size:14px; outline:none;
  min-height:44px;
}
.blog-search input:focus{ border-color:var(--panel-border-hi); }
.blog-search svg{ position:absolute; left:14px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--text-low); pointer-events:none; }

.blog-filters{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-pill{
  font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--text-mid);
  background:var(--panel); border:1px solid var(--panel-border); padding:9px 16px; border-radius:100px;
  cursor:pointer; transition:color .2s, border-color .2s, background .2s; white-space:nowrap; min-height:40px;
}
.filter-pill.active{ color:var(--cyan); border-color:rgba(45,217,232,0.4); background:rgba(45,217,232,0.08); }
@media (hover:hover) and (pointer:fine){
  .filter-pill:hover{ border-color:var(--panel-border-hi); color:var(--text-hi); }
  .filter-pill.active:hover{ color:var(--cyan); }
}

.blog-results-meta{ font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--text-low); margin-bottom:16px; }

/* ---------- Featured post (large hero card) ---------- */
.featured-post{
  display:grid; grid-template-columns:1.1fr 1fr; gap:0; overflow:hidden;
  background:var(--panel); border:1px solid var(--panel-border); border-radius:var(--radius-lg);
  backdrop-filter:blur(18px); margin-bottom:36px; text-decoration:none; color:inherit;
  transition:border-color .2s;
}
@media (hover:hover) and (pointer:fine){ .featured-post:hover{ border-color:var(--panel-border-hi); } }
.featured-post-media{ position:relative; aspect-ratio:auto; overflow:hidden; background:#04060b; display:flex; align-items:center; justify-content:center; }
.featured-post-media img{ width:100%; height:auto; max-height: min(72vh, 760px); object-fit:contain; object-position:center; display:block; }
.featured-badge{
  position:absolute; top:16px; left:16px; font-family:'JetBrains Mono',monospace; font-size:10.5px; letter-spacing:0.08em;
  text-transform:uppercase; color:#03151a; background:linear-gradient(135deg, var(--grad-cyan), var(--grad-blue));
  padding:6px 12px; border-radius:100px; font-weight:600;
}
.featured-post-body{ padding:clamp(20px,3vw,36px); display:flex; flex-direction:column; justify-content:center; gap:12px; }
.featured-post-body .post-category{ align-self:flex-start; }
.featured-post-body h2{ font-family:'Space Grotesk',sans-serif; font-size:clamp(20px,2.4vw,28px); margin:0; line-height:1.25; color:var(--text-hi); }
.featured-post-body p{ color:var(--text-mid); font-size:14.5px; line-height:1.65; margin:0; }
@media (max-width:800px){
  .featured-post{ grid-template-columns:1fr; }
  .featured-post-media{ aspect-ratio:16/9; }
}

/* ---------- Blog card grid ---------- */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:1020px){ .blog-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:680px){ .blog-grid{ grid-template-columns:1fr; } }

.post-card{
  display:flex; flex-direction:column; background:var(--panel); border:1px solid var(--panel-border);
  border-radius:var(--radius-md); overflow:hidden; text-decoration:none; color:inherit;
  transition:border-color .2s, transform .2s;
}
@media (hover:hover) and (pointer:fine){
  .post-card:hover{ border-color:var(--panel-border-hi); transform:translateY(-3px); }
}
.post-card-media{ aspect-ratio:16/9; overflow:hidden; background:#04060b; display:flex; align-items:center; justify-content:center; }
.post-card-media img{ width:100%; height:100%; object-fit:contain; object-position:center; display:block; }
.post-card-body{ padding:18px 18px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
.post-category{
  align-self:flex-start; font-family:'JetBrains Mono',monospace; font-size:10.5px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--cyan); background:rgba(45,217,232,0.1); padding:5px 11px; border-radius:100px;
}
.post-card-body h3{ font-family:'Space Grotesk',sans-serif; font-size:16.5px; margin:0; line-height:1.35; color:var(--text-hi); }
.post-card-body p{ color:var(--text-mid); font-size:13.5px; line-height:1.6; margin:0; flex:1; }
.post-meta{ display:flex; align-items:center; gap:8px; margin-top:2px; }
.post-meta img.author-avatar{ width:24px; height:24px; border-radius:50%; flex-shrink:0; }
.post-meta-text{ font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--text-low); line-height:1.4; }
.post-meta-text b{ color:var(--text-mid); font-weight:500; }

.no-results{ text-align:center; padding:60px 20px; color:var(--text-low); font-family:'JetBrains Mono',monospace; font-size:13px; display:none; }
.no-results.show{ display:block; }

/* ---------- Pagination / Load more ---------- */
.blog-pagination{ display:flex; justify-content:center; margin-top:36px; }
.load-more-btn{
  font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:14px; color:var(--text-hi);
  background:var(--panel); border:1px solid var(--panel-border-hi); padding:13px 30px; border-radius:100px;
  cursor:pointer; transition:background .2s; min-height:44px;
}
@media (hover:hover) and (pointer:fine){ .load-more-btn:hover{ background:var(--surface-hover); } }
.load-more-btn:disabled{ opacity:0.5; cursor:default; }

/* ---------- Single post layout ---------- */
.post-hero-media{
  border-radius:var(--radius-lg); overflow:hidden; margin:22px 0 28px; background:#04060b; display:flex; align-items:center; justify-content:center;
}
.post-hero-media img{ width:100%; height:auto; max-height: min(78vh, 900px); object-fit:contain; object-position:center; display:block; }

.post-header{ text-align:center; max-width:760px; margin:0 auto; }
.post-header .post-category{ margin-bottom:14px; }
.post-header h1{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:clamp(26px,4vw,40px); line-height:1.2; margin:0 0 16px; color:var(--text-hi); }
.post-byline{ display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; margin-top:18px; }
.post-byline img.author-avatar{ width:44px; height:44px; border-radius:50%; }
.post-byline-text{ text-align:left; font-size:13px; }
.post-byline-text a{ color:var(--text-hi); text-decoration:none; font-weight:600; }
@media (hover:hover) and (pointer:fine){ .post-byline-text a:hover{ color:var(--cyan); } }
.post-byline-meta{ color:var(--text-low); font-family:'JetBrains Mono',monospace; font-size:11.5px; margin-top:2px; }

.post-body{
  max-width:760px; margin:0 auto; font-size:16px; line-height:1.8; color:var(--text-mid);
}
.post-body h2{ font-family:'Space Grotesk',sans-serif; color:var(--text-hi); font-size:22px; margin:36px 0 14px; }
.post-body h3{ font-family:'Space Grotesk',sans-serif; color:var(--text-hi); font-size:18px; margin:26px 0 10px; }
.post-body p{ margin:0 0 18px; }
.post-body ul, .post-body ol{ margin:0 0 18px; padding-left:24px; }
.post-body li{ margin-bottom:8px; }
.post-body a{ color:var(--cyan); text-decoration:underline; text-underline-offset:2px; }
.post-body strong{ color:var(--text-hi); }
.post-body blockquote{
  margin:24px 0; padding:16px 22px; border-left:3px solid var(--cyan); background:var(--surface-hover-soft);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0; font-style:italic; color:var(--text-hi);
}
.post-body table{ width:100%; border-collapse:collapse; margin:20px 0; font-size:14px; border:1px solid var(--panel-border); border-radius:var(--radius-sm); overflow:hidden; }
.post-body th, .post-body td{ padding:10px 14px; text-align:left; border-bottom:1px solid var(--hairline); }
.post-body thead th{ background:var(--surface-hover-soft); color:var(--text-hi); font-family:'JetBrains Mono',monospace; font-size:11px; text-transform:uppercase; }

/* Tags */
.post-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:28px auto 0; max-width:760px; }
.tag-pill{
  font-family:'JetBrains Mono',monospace; font-size:11.5px; color:var(--text-mid); background:var(--surface-hover-soft);
  border:1px solid var(--panel-border); padding:6px 13px; border-radius:100px; text-decoration:none; transition:color .2s, border-color .2s;
}
@media (hover:hover) and (pointer:fine){ .tag-pill:hover{ color:var(--cyan); border-color:var(--panel-border-hi); } }

/* Social sharing */
.share-row{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; max-width:760px; margin:32px auto; padding:20px 0;
  border-top:1px solid var(--panel-border); border-bottom:1px solid var(--panel-border);
}
.share-label{ font-family:'JetBrains Mono',monospace; font-size:11.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-low); margin-right:4px; }
.share-btn{
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--surface-hover-soft); border:1px solid var(--panel-border); color:var(--text-mid); text-decoration:none;
  transition:color .2s, border-color .2s; cursor:pointer;
}
.share-btn svg{ width:17px; height:17px; }
@media (hover:hover) and (pointer:fine){ .share-btn:hover{ color:var(--cyan); border-color:var(--panel-border-hi); } }
.share-btn.copied{ color:var(--ok); border-color:var(--ok); }

/* Author bio card (bottom of single post) */
.author-card{
  max-width:760px; margin:32px auto; padding:24px; display:flex; gap:18px; align-items:flex-start;
  background:var(--panel); border:1px solid var(--panel-border); border-radius:var(--radius-lg); backdrop-filter:blur(18px);
}
.author-card img.author-avatar{ width:64px; height:64px; border-radius:50%; flex-shrink:0; }
.author-card-body h3{ font-family:'Space Grotesk',sans-serif; font-size:15px; margin:0 0 4px; }
.author-card-body h3 a{ color:var(--text-hi); text-decoration:none; }
@media (hover:hover) and (pointer:fine){ .author-card-body h3 a:hover{ color:var(--cyan); } }
.author-card-body p{ color:var(--text-mid); font-size:13.5px; line-height:1.6; margin:0 0 10px; }
.author-card-body a.author-link{ color:var(--cyan); font-family:'JetBrains Mono',monospace; font-size:12px; text-decoration:none; }
@media (max-width:560px){ .author-card{ flex-direction:column; align-items:center; text-align:center; } }

/* Related posts */
.related-posts{ max-width:1040px; margin:52px auto 0; }
.related-posts h2{ font-family:'Space Grotesk',sans-serif; font-size:20px; text-align:center; margin:0 0 22px; color:var(--text-hi); }

/* Prev/next navigation */
.post-nav{
  max-width:1040px; margin:40px auto 0; display:grid; grid-template-columns:1fr 1fr; gap:16px;
}
@media (max-width:640px){ .post-nav{ grid-template-columns:1fr; } }
.post-nav a{
  display:flex; flex-direction:column; gap:6px; padding:18px 20px; background:var(--panel); border:1px solid var(--panel-border);
  border-radius:var(--radius-md); text-decoration:none; color:inherit; transition:border-color .2s;
}
@media (hover:hover) and (pointer:fine){ .post-nav a:hover{ border-color:var(--panel-border-hi); } }
.post-nav .nav-dir{ font-family:'JetBrains Mono',monospace; font-size:10.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-low); display:flex; align-items:center; gap:6px; }
.post-nav .nav-title{ font-family:'Space Grotesk',sans-serif; font-size:14.5px; color:var(--text-hi); line-height:1.4; }
.post-nav.nav-next{ text-align:right; }
.post-nav .nav-next .nav-dir{ justify-content:flex-end; }

/* Comments */
.comments-section{ max-width:760px; margin:52px auto 0; }
.comments-section h2{ font-family:'Space Grotesk',sans-serif; font-size:20px; margin:0 0 6px; color:var(--text-hi); }
.comments-note{ font-size:12.5px; color:var(--text-low); margin:0 0 22px; line-height:1.6; }
.comment-form{ display:flex; flex-direction:column; gap:12px; margin-bottom:32px; }
.comment-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:520px){ .comment-form-row{ grid-template-columns:1fr; } }
.comment-form input, .comment-form textarea{
  background:var(--surface-hover-soft); border:1px solid var(--panel-border); color:var(--text-hi);
  border-radius:var(--radius-sm); padding:12px 14px; font-family:'Inter',sans-serif; font-size:14px; outline:none; resize:vertical;
  min-height:44px;
}
.comment-form textarea{ min-height:100px; }
.comment-form input:focus, .comment-form textarea:focus{ border-color:var(--panel-border-hi); }
.comment-submit{
  align-self:flex-start; font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:14px; color:#03151a;
  background:linear-gradient(135deg, var(--grad-cyan), var(--grad-blue)); border:none; padding:12px 26px; border-radius:100px;
  cursor:pointer; min-height:44px;
}
.comment-list{ display:flex; flex-direction:column; gap:18px; }
.comment{ display:flex; gap:14px; padding-bottom:18px; border-bottom:1px solid var(--hairline); }
.comment:last-child{ border-bottom:none; }
.comment-avatar{
  width:38px; height:38px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--grad-cyan), var(--grad-blue)); color:#03151a; font-family:'Space Grotesk',sans-serif;
  font-weight:700; font-size:14px;
}
.comment-body{ flex:1; }
.comment-head{ display:flex; align-items:center; gap:10px; margin-bottom:4px; flex-wrap:wrap; }
.comment-author{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13.5px; color:var(--text-hi); }
.comment-date{ font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--text-low); }
.comment-text{ font-size:14px; color:var(--text-mid); line-height:1.6; }
.comments-empty{ color:var(--text-low); font-size:13px; font-family:'JetBrains Mono',monospace; padding:12px 0; }

/* Reading progress bar (single post) */
.reading-progress{
  position:fixed; top:var(--header-h); left:0; height:3px; width:0%; z-index:49;
  background:linear-gradient(90deg, var(--grad-cyan), var(--grad-blue)); transition:width .1s linear;
}

@media (min-width:1600px){
  .blog-grid{ grid-template-columns:repeat(4,1fr); }
  .post-body{ font-size:17px; }
}
/* ---------- Single-post sidebar ---------- */
.post-content-layout{
  display:grid; grid-template-columns:minmax(0,760px) minmax(260px,320px);
  align-items:start; justify-content:center; gap:34px; margin-top:4px;
}
.post-content-layout > article{ min-width:0; }
.blog-sidebar{ min-width:0; display:flex; flex-direction:column; gap:18px; }
.sidebar-card{
  background:var(--panel); border:1px solid var(--panel-border); border-radius:var(--radius-md);
  padding:18px; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.sidebar-title{
  margin:0 0 14px; font-family:'Space Grotesk',sans-serif; font-size:16px;
  color:var(--text-hi);
}
.sidebar-search{ position:relative; display:flex; align-items:center; }
.sidebar-search input{
  width:100%; min-height:44px; padding:10px 44px 10px 14px; border-radius:12px;
  border:1px solid var(--panel-border); background:var(--surface-hover-soft); color:var(--text-hi);
  font:13px 'Inter',sans-serif; outline:none;
}
.sidebar-search input:focus{ border-color:var(--panel-border-hi); }
.sidebar-search button{
  position:absolute; right:5px; top:5px; width:34px; height:34px; border:0; border-radius:9px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  background:transparent; color:var(--text-mid);
}
.sidebar-search button svg{ width:16px; height:16px; }
.sidebar-categories{ display:flex; flex-direction:column; gap:4px; }
.sidebar-categories a{
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px;
  border-radius:9px; text-decoration:none; color:var(--text-mid); font-size:13px;
  border:1px solid transparent;
}
@media (hover:hover) and (pointer:fine){
  .sidebar-categories a:hover{ color:var(--text-hi); border-color:var(--panel-border); background:var(--surface-hover-soft); }
}
.sidebar-categories a span:last-child{ color:var(--text-low); }
.sidebar-ad-slot{
  width:100%; min-height:250px; margin:0; border-radius:var(--radius-md);
}
.recent-posts{ display:flex; flex-direction:column; gap:12px; }
.recent-post{
  display:grid; grid-template-columns:88px minmax(0,1fr); gap:10px; align-items:center;
  text-decoration:none; padding-bottom:12px; border-bottom:1px solid var(--hairline);
}
.recent-post:last-child{ padding-bottom:0; border-bottom:0; }
.recent-post img{ width:88px; height:60px; object-fit:cover; border-radius:8px; background:#04060b; }
.recent-post-body{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.recent-post-body strong{ color:var(--text-hi); font:500 12.5px/1.35 'Space Grotesk',sans-serif; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.recent-post-body small{ color:var(--text-low); font:10px 'JetBrains Mono',monospace; }
@media (max-width:1040px){
  .post-content-layout{ grid-template-columns:minmax(0,760px) minmax(240px,300px); gap:22px; }
}
@media (max-width:820px){
  .post-content-layout{ grid-template-columns:1fr; }
  .blog-sidebar{ width:100%; max-width:760px; margin:0 auto; }
  .sidebar-ad-slot{ min-height:180px; }
}



/* V51 — Modern public blog archive */
.blog-archive-page{background:linear-gradient(180deg,#f7fbff 0%,#fff 42%,#f8fbff 100%);min-height:100vh}
.blog-archive-page .wrap{max-width:1240px}
.blog-archive-page .breadcrumbs{padding-top:22px;color:#6b83a5}
.blog-archive-page .breadcrumbs a{color:#58749d}
.blog-archive-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);gap:30px;align-items:center;overflow:hidden;margin:10px 0 28px;padding:42px 48px;border:1px solid #dce9f7;border-radius:28px;background:linear-gradient(135deg,#f5faff 0%,#fff 56%,#edf5ff 100%);box-shadow:0 18px 45px rgba(38,78,129,.08)}
.blog-archive-hero:before{content:"";position:absolute;inset:auto auto -120px -100px;width:360px;height:260px;border-radius:50%;background:rgba(53,133,242,.10);filter:blur(4px)}
.blog-hero-copy{position:relative;z-index:2}.blog-hero-eyebrow{display:inline-flex;align-items:center;gap:9px;padding:8px 13px;border-radius:999px;background:#e7f1ff;color:#1468df;font:700 11px 'Inter',sans-serif;letter-spacing:.1em}.blog-hero-eyebrow i{font-size:14px}.blog-hero-copy h1{margin:17px 0 12px;color:#10254b;font:700 clamp(34px,4.4vw,56px)/1.04 'Space Grotesk',sans-serif;letter-spacing:-.045em}.blog-hero-copy h1 strong{color:#2679ed}.blog-hero-copy p{max-width:690px;margin:0;color:#60799f;font:400 15px/1.7 'Inter',sans-serif}.blog-hero-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.blog-hero-stats span{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dce8f6;border-radius:999px;background:rgba(255,255,255,.75);color:#57719a;font:600 10.5px 'Inter',sans-serif}.blog-hero-stats i{color:#16ae78}.blog-hero-art{position:relative;min-height:280px;display:grid;place-items:center}.blog-globe{position:relative;z-index:3;width:172px;height:172px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#2d82ef,#1762d2);box-shadow:0 18px 40px rgba(39,119,235,.25),inset 0 1px rgba(255,255,255,.55);color:#fff}.blog-globe i{font-size:92px}.blog-orbit{position:absolute;border:2px solid rgba(49,128,236,.20);border-radius:50%;transform:rotate(-18deg)}.blog-orbit-a{width:290px;height:150px}.blog-orbit-b{width:230px;height:230px;transform:rotate(32deg)}.blog-art-node{position:absolute;z-index:4;width:54px;height:54px;display:grid;place-items:center;border-radius:15px;background:#fff;border:1px solid #dce9f7;box-shadow:0 12px 28px rgba(37,82,139,.12);font-size:21px}.blog-art-node-a{top:22px;right:12%;color:#1fb88f}.blog-art-node-b{bottom:18px;right:6%;color:#7746e7}.blog-art-node-c{top:44%;left:8%;color:#2879eb}.blog-archive-controls{margin:0 0 22px;padding:18px 20px;border:1px solid #dfeaf6;border-radius:20px;background:rgba(255,255,255,.84);box-shadow:0 10px 28px rgba(38,78,129,.05)}
.blog-archive-controls .blog-toolbar{margin:0}.blog-archive-controls .blog-search{max-width:700px}.blog-archive-controls .blog-search input{min-height:48px;background:#f7fbff;border-color:#d9e7f5;color:#17325c;padding-left:45px}.blog-archive-controls .blog-search i{color:#276fd5}.blog-filters{margin-top:13px}.blog-archive-controls .filter-pill{background:#f5f9fe;border-color:#dce8f5;color:#5d7598}.blog-archive-controls .filter-pill.active{background:#eaf3ff;border-color:#a9cdf9;color:#1768db}.blog-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}.blog-results-head .blog-results-meta{margin:0;color:#6b83a3}.blog-results-head .blog-results-meta i{color:#2377e8;margin-right:4px}.blog-results-label{color:#7390b4;font:700 10px 'Inter',sans-serif;letter-spacing:.12em}.blog-archive-page .featured-post{border-color:#dce8f6;background:rgba(255,255,255,.92);box-shadow:0 14px 34px rgba(38,78,129,.08);border-radius:22px}.blog-archive-page .featured-post-media{background:#edf4fb}.blog-archive-page .featured-post-body h2{color:#10254b}.blog-archive-page .featured-post-body p{color:#627b9f}.blog-archive-page .post-category{color:#1768db;background:#eaf3ff}.blog-archive-page .blog-grid{gap:18px}.blog-archive-page .post-card{position:relative;border-color:#dce8f5;background:rgba(255,255,255,.92);border-radius:18px;box-shadow:0 8px 24px rgba(38,78,129,.055);transition:transform .2s,box-shadow .2s,border-color .2s}.blog-archive-page .post-card:hover{border-color:#bcd6f5;box-shadow:0 18px 35px rgba(38,78,129,.11);transform:translateY(-5px)}.blog-archive-page .post-card-media{position:relative;background:#edf4fb}.blog-archive-page .post-card-media img{transition:transform .35s}.blog-archive-page .post-card:hover .post-card-media img{transform:scale(1.035)}.post-card-overlay{position:absolute;z-index:2;right:12px;top:12px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.90);color:#216fd8;box-shadow:0 8px 18px rgba(38,78,129,.12)}.blog-archive-page .post-card-body{padding:19px 19px 20px}.blog-archive-page .post-card-body h3{font-size:18px;color:#10254b}.blog-archive-page .post-card-body p{color:#647d9f}.blog-archive-page .post-meta-text{color:#7890ae}.blog-archive-page .post-meta-text b{color:#536f96}.blog-archive-page .load-more-btn{background:#fff;border-color:#cfe0f3;color:#1b5fbf;box-shadow:0 6px 15px rgba(38,78,129,.05)}
@media(max-width:820px){.blog-archive-hero{grid-template-columns:1fr;padding:34px 28px}.blog-hero-art{min-height:220px}.blog-globe{width:140px;height:140px}.blog-globe i{font-size:75px}.blog-orbit-a{width:245px;height:125px}.blog-orbit-b{width:190px;height:190px}}
@media(max-width:560px){.blog-archive-hero{padding:28px 20px;border-radius:22px}.blog-hero-copy h1{font-size:38px}.blog-hero-copy p{font-size:13.5px}.blog-hero-art{min-height:190px}.blog-art-node{width:44px;height:44px}.blog-globe{width:120px;height:120px}.blog-globe i{font-size:63px}.blog-archive-controls{padding:14px;border-radius:16px}.blog-results-head{align-items:flex-start;flex-direction:column}.blog-results-label{display:none}}

/* V51 — Tool catalogue number sits on the right side of the card header */
.catalog-tool-card-top{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;width:100%!important;gap:12px!important}.catalog-tool-card .catalog-tool-icon{flex:none}.catalog-tool-card .tool-card-index{margin-left:auto!important;flex:none!important;align-self:flex-start!important}

/* ========================================================================
   BLOG ARCHIVE MICRO-FIX V52 — modern filters/tags treatment
   Keeps the existing archive design/content; improves only filter controls.
   ======================================================================== */
.blog-archive-page .blog-archive-controls{
  position:relative;
  padding:16px 18px 17px;
  border-radius:20px;
  border:1px solid #d7e6f7;
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(247,251,255,.96));
  box-shadow:0 12px 30px rgba(38,78,129,.06);
}
.blog-archive-page .blog-archive-controls .blog-toolbar{
  display:flex;
  align-items:center;
  margin:0;
}
.blog-archive-page .blog-archive-controls .blog-search{
  width:100%;
  max-width:none;
}
.blog-archive-page .blog-archive-controls .blog-search input{
  min-height:50px;
  border-radius:14px;
  box-shadow:inset 0 1px 2px rgba(37,82,139,.03);
}
.blog-archive-page .blog-filters{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #e5eef8;
}
.blog-archive-page .blog-filters:before{
  content:'FILTER';
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 9px;
  margin-right:2px;
  border-radius:9px;
  background:#eef5fd;
  color:#6c86a7;
  font:700 9px/1 'Inter',sans-serif;
  letter-spacing:.12em;
}
.blog-archive-page .blog-filters .filter-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 13px;
  border-radius:10px;
  background:#fff;
  border:1px solid #dbe8f5;
  color:#5c7597;
  font:600 11px/1.1 'Inter',sans-serif;
  box-shadow:0 2px 8px rgba(38,78,129,.025);
  transition:all .18s ease;
}
.blog-archive-page .blog-filters .filter-pill:hover{
  color:#1768db;
  border-color:#b9d4f3;
  background:#f6faff;
  transform:translateY(-1px);
}
.blog-archive-page .blog-filters .filter-pill.active{
  color:#fff;
  border-color:#176ee0;
  background:linear-gradient(135deg,#287ff0,#1764d2);
  box-shadow:0 7px 16px rgba(39,119,235,.18);
}
.blog-archive-page .blog-results-head{
  padding:2px 2px 0;
}
@media(max-width:560px){
  .blog-archive-page .blog-archive-controls{padding:13px;border-radius:16px;}
  .blog-archive-page .blog-filters{gap:6px;margin-top:10px;padding-top:10px;}
  .blog-archive-page .blog-filters:before{width:100%;justify-content:flex-start;min-height:28px;background:transparent;padding:0;color:#7890ae;}
  .blog-archive-page .blog-filters .filter-pill{min-height:32px;padding:7px 11px;}
}


/* ========================================================================
   Single Blog Post — modern reading experience. Content and functionality
   remain unchanged; only presentation is upgraded and theme-aware.
   ======================================================================== */
.blog-post-page .post-hero-media,
body:has(.post-content-layout) .post-hero-media{
  border:1px solid var(--panel-border);
  box-shadow:0 20px 50px rgba(20,50,100,.10);
}
body:has(.post-content-layout) .post-content-layout{
  max-width:1120px;
  margin:0 auto;
  align-items:start;
  gap:28px;
}
body:has(.post-content-layout) .post-content-layout>article{
  padding:clamp(22px,3.2vw,42px);
  border:1px solid var(--panel-border);
  border-radius:var(--radius-lg);
  background:var(--panel);
  box-shadow:0 14px 36px rgba(20,50,100,.07);
  backdrop-filter:blur(14px);
}
body:has(.post-content-layout) .post-header{
  padding-bottom:22px;
  border-bottom:1px solid var(--hairline);
}
body:has(.post-content-layout) .post-header h1{letter-spacing:-.035em;}
body:has(.post-content-layout) .post-body{
  max-width:760px;
  margin:30px auto 0;
  font-size:16px;
  line-height:1.82;
}
body:has(.post-content-layout) .post-body h2{font-size:26px;letter-spacing:-.02em;}
body:has(.post-content-layout) .post-body h3{font-size:20px;}
body:has(.post-content-layout) .post-body blockquote{
  border-left:4px solid var(--cyan);
  background:var(--surface-hover-soft);
  border-radius:0 14px 14px 0;
  padding:18px 20px;
  margin:24px 0;
}
body:has(.post-content-layout) .post-tags{max-width:760px;}
body:has(.post-content-layout) .tag-pill{
  border:1px solid var(--panel-border);
  background:var(--surface-hover-soft);
  color:var(--text-mid);
  transition:background .2s,border-color .2s,color .2s,transform .2s;
}
body:has(.post-content-layout) .tag-pill:hover{border-color:var(--panel-border-hi);color:var(--cyan);transform:translateY(-1px);}
body:has(.post-content-layout) .share-row{
  max-width:760px;
  margin:22px auto 0;
  padding-top:18px;
  border-top:1px solid var(--hairline);
}
body:has(.post-content-layout) .author-card{
  max-width:760px;
  margin:28px auto 0;
  border:1px solid var(--panel-border);
  background:var(--surface-hover-soft);
  box-shadow:none;
}
body:has(.post-content-layout) .sidebar-card{
  border:1px solid var(--panel-border);
  background:var(--panel);
  box-shadow:0 10px 28px rgba(20,50,100,.06);
  backdrop-filter:blur(12px);
}
body:has(.post-content-layout) .post-nav a,
body:has(.post-content-layout) .related-posts .post-card{
  border:1px solid var(--panel-border);
  background:var(--panel);
  box-shadow:0 8px 24px rgba(20,50,100,.05);
}
body:has(.post-content-layout) .post-nav a:hover,
body:has(.post-content-layout) .related-posts .post-card:hover{box-shadow:0 16px 34px rgba(20,50,100,.10);}

/* The archive was originally authored as a light-only visual. Keep that
   appearance in light mode, but make every surface respond to the global
   theme switch in dark mode too. */
:root[data-theme="dark"] .blog-archive-page{background:linear-gradient(180deg,var(--bg-0) 0%,var(--bg-0) 42%,#07101f 100%);}
:root[data-theme="dark"] .blog-archive-hero{border-color:var(--panel-border);background:linear-gradient(135deg,var(--panel),var(--panel-solid));box-shadow:0 18px 45px rgba(0,0,0,.18);}
:root[data-theme="dark"] .blog-hero-copy h1{color:var(--text-hi);}
:root[data-theme="dark"] .blog-hero-copy p{color:var(--text-mid);}
:root[data-theme="dark"] .blog-hero-eyebrow{background:rgba(63,123,255,.12);color:#73a8ff;}
:root[data-theme="dark"] .blog-hero-stats span{border-color:var(--panel-border);background:var(--surface-hover-soft);color:var(--text-mid);}
:root[data-theme="dark"] .blog-archive-controls{border-color:var(--panel-border);background:var(--panel);box-shadow:0 10px 28px rgba(0,0,0,.16);}
:root[data-theme="dark"] .blog-archive-controls .blog-search input{background:var(--surface-hover-soft);border-color:var(--panel-border);color:var(--text-hi);}
:root[data-theme="dark"] .blog-archive-controls .filter-pill{background:var(--surface-hover-soft);border-color:var(--panel-border);color:var(--text-mid);}
:root[data-theme="dark"] .blog-archive-controls .filter-pill.active{background:rgba(45,217,232,.10);border-color:var(--panel-border-hi);color:var(--cyan);}
:root[data-theme="dark"] .blog-archive-page .featured-post,
:root[data-theme="dark"] .blog-archive-page .post-card{border-color:var(--panel-border);background:var(--panel);box-shadow:0 10px 28px rgba(0,0,0,.15);}
:root[data-theme="dark"] .blog-archive-page .featured-post-body h2,
:root[data-theme="dark"] .blog-archive-page .post-card-body h3{color:var(--text-hi);}
:root[data-theme="dark"] .blog-archive-page .featured-post-body p,
:root[data-theme="dark"] .blog-archive-page .post-card-body p{color:var(--text-mid);}
:root[data-theme="dark"] .blog-archive-page .post-card-media,
:root[data-theme="dark"] .blog-archive-page .featured-post-media{background:var(--panel-solid);}
:root[data-theme="dark"] .post-card-overlay{background:rgba(11,17,32,.88);color:#72a8ff;border:1px solid var(--panel-border);}
:root[data-theme="dark"] .blog-archive-page .load-more-btn{background:var(--panel);border-color:var(--panel-border-hi);color:var(--text-hi);}

@media(max-width:800px){
  body:has(.post-content-layout) .post-content-layout>article{padding:20px 16px;}
  body:has(.post-content-layout) .post-body{font-size:15px;line-height:1.75;}
}

/* V53 — Blog archive filters: cleaner modern segmented control. */
.blog-archive-page .blog-archive-controls .blog-filters{
  position:relative;display:flex;align-items:center;gap:7px;flex-wrap:nowrap;
  overflow-x:auto;margin-top:13px;padding:10px 2px 2px;
  border-top:1px solid #e4edf7;scrollbar-width:thin;
}
.blog-archive-page .blog-archive-controls .blog-filters:before{
  content:'CATEGORIES';flex:0 0 auto;min-height:32px;padding:0 10px;
  display:inline-flex;align-items:center;border-radius:9px;
  background:#eef5fd;color:#6b84a5;border:1px solid #dce8f5;
  font:700 9px/1 'Inter',sans-serif;letter-spacing:.11em;
}
.blog-archive-page .blog-archive-controls .filter-pill{
  flex:0 0 auto;min-height:34px;padding:7px 13px;border-radius:999px;
  border:1px solid #d9e6f4;background:#fff;color:#5d7597;
  box-shadow:0 2px 7px rgba(38,78,129,.035);
}
.blog-archive-page .blog-archive-controls .filter-pill:hover{
  transform:translateY(-1px);border-color:#b8d3f2;background:#f7fbff;color:#1768db;
}
.blog-archive-page .blog-archive-controls .filter-pill.active{
  color:#fff;border-color:#176ee0;background:linear-gradient(135deg,#287ff0,#1764d2);
  box-shadow:0 7px 16px rgba(39,119,235,.18);
}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls .blog-filters{border-top-color:var(--panel-border);}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls .blog-filters:before{
  background:var(--surface-hover-soft);border-color:var(--panel-border);color:var(--text-low);
}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls .filter-pill{
  background:var(--surface-hover-soft);border-color:var(--panel-border);color:var(--text-mid);
}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls .filter-pill:hover{background:rgba(63,123,255,.08);border-color:var(--panel-border-hi);color:#9cc8ff;}
@media(max-width:560px){
  .blog-archive-page .blog-archive-controls .blog-filters{margin-top:10px;padding-top:9px;}
  .blog-archive-page .blog-archive-controls .blog-filters:before{min-height:30px;padding:0 9px;}
  .blog-archive-page .blog-archive-controls .filter-pill{min-height:32px;padding:7px 11px;}
}

/* V54 — Global blog image frame consistency and rendering quality.
   Cover-crop featured/card/hero frames without tiling or hover enlargement.
   Editorial images keep their natural ratio so article content is not cropped. */
.blog-post-page .post-hero-media,
.blog-archive-page .featured-post-media,
.blog-archive-page .post-card-media,
.blog-author-page .post-card-media,
.post-card-media,
.featured-post-media {
  position: relative;
  overflow: hidden;
  background-color: var(--panel-solid, #0b1220);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.blog-post-page .post-hero-media img,
.blog-archive-page .featured-post-media img,
.blog-archive-page .post-card-media img,
.blog-author-page .post-card-media img,
.post-card-media img,
.featured-post-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  background-repeat: no-repeat;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: none;
  filter: saturate(1.035) contrast(1.015);
}
/* Disable the old zoom-on-hover effect: it can make low-resolution uploads look softer. */
.blog-archive-page .post-card:hover .post-card-media img {
  transform: none;
}
/* Images embedded inside article content should remain fully visible and responsive. */
.blog-post-page .post-body img,
body:has(.post-content-layout) .post-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  border-radius: 12px;
}
/* Gallery thumbnails and the featured-image preview in the admin editor. */
.post-media-option img,
.featured-image-preview img,
.media-grid img,
.media-card img {
  display: block;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  background-repeat: no-repeat;
  image-rendering: auto;
}
.post-media-option img { width: 100%; height: 112px; }
.featured-image-preview { overflow: hidden; }
.featured-image-preview img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .blog-post-page .post-hero-media { aspect-ratio: 16 / 9; }
  .blog-post-page .post-body img,
  body:has(.post-content-layout) .post-body img { margin: 18px auto; border-radius: 9px; }
}

/* Global image safeguards: preserve the complete uploaded image, never tile or stretch it. */
.blog-content img,.post-content img,.post-body img,.article-content img,.post-hero-media img,.featured-post-media img,.post-card-media img{background:#0b1220; image-rendering:auto;}
.blog-content img,.post-content img,.post-body img,.article-content img{max-width:100%; height:auto; object-fit:contain; object-position:center; display:block; margin-inline:auto;}
.post-hero-media,.featured-post-media,.post-card-media{background:var(--panel); background-image:none;}


/* Automatically generated, contextual in-content internal links. */
.post-body .auto-internal-link{color:var(--blue,#2677ed);font-weight:650;text-decoration:underline;text-decoration-color:rgba(38,119,237,.38);text-decoration-thickness:1px;text-underline-offset:3px;transition:color .15s,text-decoration-color .15s}.post-body .auto-internal-link:hover{color:var(--cyan,#16a9bd);text-decoration-color:currentColor}.post-body .auto-internal-link:focus-visible{outline:2px solid var(--blue,#2677ed);outline-offset:3px;border-radius:2px}

/* BLOG ARCHIVE V53 — reference-inspired search and category dashboard */
.blog-archive-page .blog-archive-controls{
  padding:22px 24px 18px;
  border:1px solid #dce8f8;
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(248,251,255,.97));
  box-shadow:0 16px 38px rgba(32,83,150,.09);
}
.blog-archive-page .blog-search-form{margin:0;}
.blog-archive-page .blog-search{
  display:flex;align-items:center;gap:14px;max-width:none;min-width:0;
  padding:8px 10px 8px 16px;border:1px solid #d6e5fa;border-radius:18px;
  background:rgba(255,255,255,.96);box-shadow:0 5px 16px rgba(35,103,192,.07);
}
.blog-archive-page .blog-search>i{position:static;transform:none;flex:none;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#f0f6ff;color:#2177e8;font-size:21px;}
.blog-archive-page .blog-search input{
  flex:1;min-width:0;min-height:48px;padding:8px 0;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;
  color:#1b3154;font:500 17px/1.4 'Inter',sans-serif;
}
.blog-archive-page .blog-search input::placeholder{color:#8b9bb3;opacity:1;}
.blog-archive-page .blog-search input:focus{border:0;box-shadow:none;}
.blog-archive-page .blog-search-divider{height:38px;width:1px;background:#dce6f5;flex:none;}
.blog-archive-page .blog-filter-toggle{width:44px;height:44px;display:grid;place-items:center;flex:none;border:0;border-radius:50%;background:#f2f6fc;color:#7b8ca6;font-size:20px;cursor:pointer;transition:background .18s,color .18s,transform .18s;}
.blog-archive-page .blog-filter-toggle:hover,.blog-archive-page .blog-filter-toggle[aria-expanded="false"]{background:#e7f1ff;color:#176ee0;}
.blog-archive-page .blog-filter-toggle:focus-visible{outline:3px solid rgba(35,119,232,.35);outline-offset:2px;}
.blog-archive-page .blog-filters{
  display:flex;align-items:center;gap:9px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;
  margin:18px 0 0;padding:2px 0 16px;border-top:0;border-bottom:1px solid #e3edf9;
  scrollbar-width:thin;scrollbar-color:#d4e3f6 transparent;
}
.blog-archive-page .blog-filters:before{content:none;}
.blog-archive-page .blog-filters .filter-pill{
  display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;flex:0 0 auto;min-height:56px;padding:8px 15px;
  border:1px solid #dce8f8;border-radius:24px;background:rgba(255,255,255,.78);color:#3e5273;
  font:650 13px/1.2 'Inter',sans-serif;box-shadow:0 2px 7px rgba(38,78,129,.025);transition:background .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s;
}
.blog-archive-page .filter-pill-icon{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:50%;background:#f1f6fd;color:#176bd5;font-size:17px;}
.blog-archive-page .blog-filters .filter-pill:hover{transform:translateY(-1px);background:#f8fbff;border-color:#b9d4f6;color:#1768db;box-shadow:0 6px 15px rgba(38,103,190,.08);}
.blog-archive-page .blog-filters .filter-pill.active{background:linear-gradient(135deg,#237cf0,#1263d8);border-color:#2375e6;color:#fff;box-shadow:0 9px 20px rgba(35,119,232,.22);}
.blog-archive-page .blog-filters .filter-pill.active .filter-pill-icon{background:rgba(255,255,255,.17);color:#fff;}
.blog-archive-page .blog-results-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:17px 2px 0;padding:0;}
.blog-archive-page .blog-results-head .blog-results-meta{display:flex;align-items:center;gap:8px;margin:0;color:#657b9a;font:500 15px/1.4 'Inter',sans-serif;}
.blog-archive-page .blog-results-head .blog-results-meta>i{font-size:20px;color:#2377e8;}
.blog-archive-page .blog-results-head .blog-results-meta strong{color:#18345e;font-weight:750;}
.blog-archive-page .blog-results-label{display:inline-flex;align-items:center;gap:13px;color:#176ee0;text-decoration:none;font:750 13px/1.2 'Inter',sans-serif;letter-spacing:.035em;white-space:nowrap;}
.blog-archive-page .blog-results-label i{font-size:18px;transition:transform .18s;}
.blog-archive-page .blog-results-label:hover i{transform:translateX(4px);}
.blog-archive-page .blog-filters[hidden]{display:none!important;}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls{border-color:var(--panel-border);background:var(--panel);box-shadow:0 16px 38px rgba(0,0,0,.2);}
:root[data-theme="dark"] .blog-archive-page .blog-search{background:var(--surface-hover-soft);border-color:var(--panel-border);box-shadow:none;}
:root[data-theme="dark"] .blog-archive-page .blog-search>i,:root[data-theme="dark"] .blog-archive-page .blog-filter-toggle{background:rgba(63,123,255,.12);color:#9cc8ff;}
:root[data-theme="dark"] .blog-archive-page .blog-search input{color:var(--text-hi);}
:root[data-theme="dark"] .blog-archive-page .blog-search-divider{background:var(--panel-border);}
:root[data-theme="dark"] .blog-archive-page .blog-filters{border-bottom-color:var(--panel-border);}
:root[data-theme="dark"] .blog-archive-page .blog-filters .filter-pill{background:var(--surface-hover-soft);border-color:var(--panel-border);color:var(--text-mid);}
:root[data-theme="dark"] .blog-archive-page .filter-pill-icon{background:rgba(63,123,255,.12);color:#9cc8ff;}
:root[data-theme="dark"] .blog-archive-page .blog-filters .filter-pill.active{background:linear-gradient(135deg,#237cf0,#1263d8);border-color:#2375e6;color:#fff;}
:root[data-theme="dark"] .blog-archive-page .blog-results-head .blog-results-meta strong{color:var(--text-hi);}
:root[data-theme="dark"] .blog-archive-page .blog-results-label{color:#9cc8ff;}
@media(max-width:700px){
 .blog-archive-page .blog-archive-controls{padding:14px;border-radius:18px;}
 .blog-archive-page .blog-search{gap:9px;padding:6px 7px 6px 10px;border-radius:15px;}
 .blog-archive-page .blog-search>i{width:35px;height:35px;font-size:17px;}
 .blog-archive-page .blog-search input{min-height:40px;font-size:14px;}
 .blog-archive-page .blog-search-divider{height:30px;}
 .blog-archive-page .blog-filter-toggle{width:37px;height:37px;font-size:17px;}
 .blog-archive-page .blog-filters{gap:7px;margin-top:12px;padding-bottom:12px;}
 .blog-archive-page .blog-filters .filter-pill{min-height:46px;padding:6px 11px;gap:7px;border-radius:18px;font-size:12px;}
 .blog-archive-page .filter-pill-icon{width:31px;height:31px;font-size:14px;}
 .blog-archive-page .blog-results-head{align-items:flex-start;flex-direction:row;gap:10px;margin-top:13px;}
 .blog-archive-page .blog-results-head .blog-results-meta{font-size:12px;}
 .blog-archive-page .blog-results-head .blog-results-meta>i{font-size:16px;}
 .blog-archive-page .blog-results-label{font-size:10px;gap:6px;}
 .blog-archive-page .blog-results-label i{font-size:14px;}
}
@media(prefers-reduced-motion:reduce){.blog-archive-page .blog-filters .filter-pill,.blog-archive-page .blog-filter-toggle,.blog-archive-page .blog-results-label i{transition:none;}}

/* V55 — Compact, mobile-friendly blog category filters.
   Wrap pills naturally instead of horizontal scrolling; remove inherited link
   underlines from both icon and label for a cleaner, intentional control. */
.blog-archive-page .blog-archive-controls .blog-filters{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  overflow:visible;
  overflow-x:visible;
  overscroll-behavior:initial;
  margin-top:14px;
  padding:14px 0 0;
  border-top:1px solid #e5edf7;
  border-bottom:0;
  scrollbar-width:none;
  scrollbar-color:transparent transparent;
}
.blog-archive-page .blog-archive-controls .blog-filters::-webkit-scrollbar{display:none;width:0;height:0;}
.blog-archive-page .blog-archive-controls .blog-filters:before{content:none!important;display:none!important;}
.blog-archive-page .blog-archive-controls .filter-pill,
.blog-archive-page .blog-archive-controls .filter-pill:link,
.blog-archive-page .blog-archive-controls .filter-pill:visited,
.blog-archive-page .blog-archive-controls .filter-pill:hover,
.blog-archive-page .blog-archive-controls .filter-pill:focus,
.blog-archive-page .blog-archive-controls .filter-pill:active{
  position:relative;
  display:inline-flex;
  flex:0 1 auto;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  min-width:0;
  min-height:39px;
  max-width:100%;
  padding:5px 11px 5px 6px;
  border:1px solid #dce7f5;
  border-radius:13px;
  background:#fff;
  color:#425a7b;
  font:600 12px/1.25 'Inter',sans-serif;
  text-decoration:none!important;
  text-decoration-line:none!important;
  box-shadow:0 2px 7px rgba(38,78,129,.035);
}
.blog-archive-page .blog-archive-controls .filter-pill::before,
.blog-archive-page .blog-archive-controls .filter-pill::after,
.blog-archive-page .blog-archive-controls .filter-pill span::before,
.blog-archive-page .blog-archive-controls .filter-pill span::after,
.blog-archive-page .blog-archive-controls .filter-pill-icon::before,
.blog-archive-page .blog-archive-controls .filter-pill-icon::after{
  text-decoration:none!important;
  border-bottom:0!important;
  box-shadow:none;
}
.blog-archive-page .blog-archive-controls .filter-pill-icon{
  display:grid;
  place-items:center;
  flex:0 0 27px;
  width:27px;
  height:27px;
  border:0;
  border-radius:9px;
  background:#f0f6ff;
  color:#176bd5;
  font-size:13px;
  line-height:1;
  text-decoration:none!important;
}
.blog-archive-page .blog-archive-controls .filter-pill>span:last-child{
  min-width:0;
  text-decoration:none!important;
  overflow-wrap:anywhere;
}
.blog-archive-page .blog-archive-controls .filter-pill:hover{
  transform:translateY(-1px);
  background:#f7fbff;
  border-color:#b9d4f6;
  color:#1768db;
  text-decoration:none!important;
  box-shadow:0 5px 12px rgba(38,103,190,.07);
}
.blog-archive-page .blog-archive-controls .filter-pill.active{
  color:#fff;
  background:linear-gradient(135deg,#237cf0,#1263d8);
  border-color:#2375e6;
  text-decoration:none!important;
  box-shadow:0 5px 13px rgba(35,119,232,.17);
}
.blog-archive-page .blog-archive-controls .filter-pill.active .filter-pill-icon{
  background:rgba(255,255,255,.17);
  color:#fff;
}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls .blog-filters{border-top-color:var(--panel-border);}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls .filter-pill{
  background:var(--surface-hover-soft);
  border-color:var(--panel-border);
  color:var(--text-mid);
}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls .filter-pill-icon{
  background:rgba(63,123,255,.12);
  color:#9cc8ff;
}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls .filter-pill.active{
  background:linear-gradient(135deg,#237cf0,#1263d8);
  border-color:#2375e6;
  color:#fff;
}
:root[data-theme="dark"] .blog-archive-page .blog-archive-controls .filter-pill.active .filter-pill-icon{background:rgba(255,255,255,.17);color:#fff;}
@media(max-width:700px){
  .blog-archive-page .blog-archive-controls{padding:13px;border-radius:17px;}
  .blog-archive-page .blog-archive-controls .blog-filters{gap:6px;margin-top:11px;padding-top:11px;}
  .blog-archive-page .blog-archive-controls .filter-pill,
  .blog-archive-page .blog-archive-controls .filter-pill:link,
  .blog-archive-page .blog-archive-controls .filter-pill:visited,
  .blog-archive-page .blog-archive-controls .filter-pill:hover,
  .blog-archive-page .blog-archive-controls .filter-pill:focus,
  .blog-archive-page .blog-archive-controls .filter-pill:active{
    flex:0 1 auto;
    min-height:34px;
    gap:6px;
    padding:4px 9px 4px 5px;
    border-radius:11px;
    font-size:11px;
  }
  .blog-archive-page .blog-archive-controls .filter-pill-icon{flex-basis:23px;width:23px;height:23px;border-radius:7px;font-size:11px;}
  .blog-archive-page .blog-search input{font-size:14px;}
  .blog-archive-page .blog-results-head{flex-wrap:wrap;}
}
@media(max-width:380px){
  .blog-archive-page .blog-archive-controls{padding:10px;}
  .blog-archive-page .blog-archive-controls .blog-filters{gap:5px;}
  .blog-archive-page .blog-archive-controls .filter-pill,
  .blog-archive-page .blog-archive-controls .filter-pill:link,
  .blog-archive-page .blog-archive-controls .filter-pill:visited,
  .blog-archive-page .blog-archive-controls .filter-pill:hover,
  .blog-archive-page .blog-archive-controls .filter-pill:focus,
  .blog-archive-page .blog-archive-controls .filter-pill:active{font-size:10.5px;padding-right:7px;}
}

/* SEO refresh: refined related-article and reader-engagement panels */
body.blog-post-page .related-posts,
body.blog-post-page .comments-section{
  position:relative; isolation:isolate; padding:clamp(20px,3vw,32px);
  border:1px solid var(--panel-border); border-radius:24px;
  background:linear-gradient(145deg,var(--panel),var(--surface-hover-soft));
  box-shadow:0 14px 36px rgba(15,35,70,.055);
}
body.blog-post-page .related-posts{max-width:1100px;margin:52px auto 0}
body.blog-post-page .related-posts h2,
body.blog-post-page .comments-section h2{
  text-align:left; font-size:clamp(22px,2.2vw,28px); letter-spacing:-.025em;
  margin:0 0 8px; line-height:1.2;
}
body.blog-post-page .related-posts h2:after,
body.blog-post-page .comments-section h2:after{
  content:"";display:block;width:54px;height:3px;border-radius:9px;margin-top:13px;
  background:linear-gradient(90deg,var(--grad-cyan),var(--grad-blue));
}
body.blog-post-page .related-posts .blog-grid{margin-top:22px;gap:18px}
body.blog-post-page .related-posts .post-card{
  overflow:hidden;border:1px solid var(--panel-border);border-radius:18px;
  background:var(--surface, var(--panel)); box-shadow:0 5px 18px rgba(15,35,70,.04);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
body.blog-post-page .related-posts .post-card:hover{transform:translateY(-4px);border-color:var(--panel-border-hi);box-shadow:0 16px 34px rgba(20,50,100,.11)}
body.blog-post-page .related-posts .post-card-body{padding:20px}
body.blog-post-page .related-posts .post-card h3{font-size:clamp(16px,1.4vw,19px);line-height:1.4;margin:10px 0}
body.blog-post-page .related-posts .post-card p{font-size:14px;line-height:1.65}
body.blog-post-page .comments-section{max-width:850px;margin:42px auto 0}
body.blog-post-page .comments-note{padding:13px 15px;border-radius:12px;background:var(--surface-hover-soft);border:1px solid var(--panel-border);font-size:13px;line-height:1.65}
body.blog-post-page .comment-form{padding:20px;border:1px solid var(--panel-border);border-radius:18px;background:var(--surface-hover-soft);margin-top:20px}
body.blog-post-page .comment-form input,body.blog-post-page .comment-form textarea{background:var(--panel);border-radius:12px;padding:14px 15px}
body.blog-post-page .comment-submit{box-shadow:0 7px 18px rgba(38,119,237,.18);transition:transform .18s ease,box-shadow .18s ease}
body.blog-post-page .comment-submit:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(38,119,237,.24)}
body.blog-post-page .share-row{padding:15px 17px;border:1px solid var(--panel-border);border-radius:16px;background:var(--surface-hover-soft)}
body.blog-post-page .post-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
body.blog-post-page .post-tags .tag-pill{border:1px solid var(--panel-border);border-radius:999px;padding:7px 12px;text-decoration:none;line-height:1.2;transition:background .18s,border-color .18s}
body.blog-post-page .post-tags .tag-pill:hover{background:rgba(38,119,237,.08);border-color:var(--panel-border-hi)}
body.blog-post-page .post-body .auto-internal-link{font-weight:650;text-decoration-thickness:1px;text-underline-offset:3px}
@media(max-width:640px){
 body.blog-post-page .related-posts,body.blog-post-page .comments-section{padding:17px;border-radius:18px;margin-top:30px}
 body.blog-post-page .related-posts .blog-grid{grid-template-columns:1fr}
 body.blog-post-page .comments-section .comment-form{padding:14px}
 body.blog-post-page .share-row{flex-wrap:wrap;gap:10px}
}

/* Refined previous / next article navigation */
body:has(.post-content-layout) .post-nav{max-width:1040px;margin:34px auto 0;gap:14px;}
body:has(.post-content-layout) .post-nav>a{position:relative;min-height:132px;justify-content:center;gap:9px;padding:20px 22px;border:1px solid var(--panel-border);border-radius:16px;background:linear-gradient(145deg,var(--panel),var(--surface-hover-soft));box-shadow:0 10px 28px rgba(20,50,100,.07);overflow:hidden;transition:transform .2s,border-color .2s,box-shadow .2s;}
body:has(.post-content-layout) .post-nav>a:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--cyan);opacity:.75;}
body:has(.post-content-layout) .post-nav>a.nav-next:before{inset:0 0 0 auto;}
body:has(.post-content-layout) .post-nav>a:hover{transform:translateY(-3px);border-color:var(--panel-border-hi);box-shadow:0 16px 34px rgba(20,50,100,.12);}
body:has(.post-content-layout) .post-nav .nav-dir{width:max-content;max-width:100%;padding:6px 10px;border:1px solid var(--panel-border);border-radius:999px;background:var(--surface-hover-soft);color:var(--cyan);font:700 10px Inter,sans-serif;letter-spacing:.08em;}
body:has(.post-content-layout) .post-nav .nav-title{font:700 16px 'Space Grotesk',sans-serif;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body:has(.post-content-layout) .post-nav .nav-hint{font-size:11px;color:var(--text-low);}
body:has(.post-content-layout) .post-nav .nav-next{text-align:right;align-items:flex-end;}
@media(max-width:640px){body:has(.post-content-layout) .post-nav>a{min-height:112px;padding:17px 18px;}}
