/*
 * Blog Archive + Single Post — kairospatra.com
 * BBC-style blog design
 */

/* ═══════════════════════════════
   ROOT VARIABLES
═══════════════════════════════ */
:root {
  --blue:       #0D5BAA;
  --blue-dark:  #063668;
  --blue-light: #1a74c8;
  --red:        #D22B2B;
  --foam:       #d0e6f8;
  --text:       #0d1f33;
  --subtle:     #5a7fa8;
  --muted:      #f0f5fb;
  --border:     #dbe8f5;
  --card:       #ffffff;
}

/* Cover image utility */
.blog-img-cover {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}

/* ═══════════════════════════════
   ██████  TOP RED STRIPE
═══════════════════════════════ */
.blog-top-stripe {
  height: 4px;
  background: var(--red);
}

.blog-archive-h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

/* ═══════════════════════════════
   ██████  SECTION NAV (BBC style)
═══════════════════════════════ */
.blog-section-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px; /* below site header */
  z-index: 100;
}
.blog-section-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-section-nav-inner::-webkit-scrollbar { display: none; }
.blog-sn-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 20px;
  border-right: 1px solid var(--border);
  margin-right: 8px;
  flex-shrink: 0;
}
.blog-sn-brand-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: .04em;
}
.blog-sn-brand-sub {
  font-size: 9px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.blog-sn-link {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--subtle);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
.blog-sn-link:hover { color: var(--text); }
.blog-sn-link.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ═══════════════════════════════
   ██████  HERO (BBC lead story)
═══════════════════════════════ */
.blog-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.blog-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--card);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.blog-hero-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0c2545, #1a3f6e, #0D5BAA);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.blog-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.65));
}
.blog-hero-img-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  z-index: 1;
}
.blog-hero-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-hero-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-hero-cat::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--red);
}
.blog-hero-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -.01em;
  transition: color .15s;
}
.blog-hero-grid:hover .blog-hero-title { color: var(--blue); }
.blog-hero-excerpt {
  font-size: 15px;
  color: var(--subtle);
  line-height: 1.65;
  margin-bottom: 20px;
}
.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--subtle);
}
.blog-hero-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--subtle);
  flex-shrink: 0;
}
.blog-hero-author {
  font-weight: 700;
  color: var(--text);
}
.blog-hero-time {
  color: var(--subtle);
}

/* ═══════════════════════════════
   ██████  CONTENT AREA
═══════════════════════════════ */
.blog-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-top: 28px;
}

/* ═══════════════════════════════
   ██████  SECTION HEADERS
═══════════════════════════════ */
.blog-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
}
.blog-sec-head h2 {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.01em;
}
.blog-sec-head-line {
  flex: 1;
  height: 0;
}

/* ═══════════════════════════════
   ██████  TOP STORIES (3-column)
═══════════════════════════════ */
.blog-top-stories {
  margin-bottom: 32px;
}
.blog-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.blog-top-card {
  border-right: 1px solid var(--border);
  padding: 0 18px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-top-card:first-child { padding-left: 0; }
.blog-top-card:last-child { border-right: none; padding-right: 0; }
.blog-top-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a3f6e, #0D5BAA);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}
.blog-top-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 20px 20px;
}
.blog-top-card-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.blog-top-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
  transition: color .15s;
}
.blog-top-card:hover .blog-top-card-title { color: var(--blue); }
.blog-top-card-excerpt {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-top-card-meta {
  font-size: 11px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-top-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #94A3B8;
}

/* ═══════════════════════════════
   ██████  NEWS LIST (vertical)
═══════════════════════════════ */
.blog-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.blog-news-item {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.blog-news-item:first-child { padding-top: 0; }
.blog-news-item:last-child { border-bottom: none; }
.blog-news-item:hover {
  background: rgba(13,91,170,.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 4px;
}
.blog-ni-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.blog-ni-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
  transition: color .15s;
}
.blog-news-item:hover .blog-ni-title { color: var(--blue); }
.blog-ni-excerpt {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-ni-meta {
  font-size: 11px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-ni-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #94A3B8;
}
.blog-ni-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a3f6e, #0D5BAA);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.blog-ni-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 16px 16px;
}
.blog-ni-number {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,.25);
  font-family: 'IBM Plex Sans', sans-serif;
}

/* ═══════════════════════════════
   ██████  SIDEBAR
═══════════════════════════════ */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Weather widget */
.blog-sb-weather {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 12px;
  padding: 20px;
  color: #fff;
}
.blog-sb-w-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 12px;
}
.blog-sb-w-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.blog-sb-w-temp {
  font-size: 42px;
  font-weight: 200;
  line-height: 1;
}
.blog-sb-w-icon svg { width: 44px; height: 44px; }
.blog-sb-w-desc {
  font-size: 14px;
  opacity: .8;
  margin-bottom: 4px;
}
.blog-sb-w-feels {
  font-size: 12px;
  opacity: .5;
}
.blog-sb-w-divider {
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 14px 0;
}
.blog-sb-w-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
}
.blog-sb-w-row-label { opacity: .5; }
.blog-sb-w-row-val { font-weight: 700; }
.blog-sb-w-btn {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  transition: background .15s;
  text-decoration: none;
}
.blog-sb-w-btn:hover { background: rgba(255,255,255,.2); }

/* Sidebar block */
.blog-sb-block {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.blog-sb-block-head {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--subtle);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-sb-block-head a {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
}

/* Forecast mini rows */
.blog-fc-row {
  display: grid;
  grid-template-columns: 56px 1fr 32px 32px;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-bottom: 1px solid #f0f5fb;
  font-size: 12px;
}
.blog-fc-row:last-child { border-bottom: none; }
.blog-fc-day {
  font-weight: 700;
  font-size: 12px;
}
.blog-fc-cond {
  color: var(--subtle);
  font-size: 11px;
}
.blog-fc-hi {
  font-weight: 700;
  text-align: right;
}
.blog-fc-lo {
  color: var(--subtle);
  text-align: right;
}

/* Topics tags */
.blog-sb-topics {
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-sb-topic {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--muted);
  color: var(--blue);
  border: 1px solid var(--border);
  transition: all .15s;
  text-decoration: none;
}
.blog-sb-topic:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Newsletter */
.blog-sb-nl {
  background: linear-gradient(135deg, #0c2545, #1a3f6e);
  border-radius: 12px;
  padding: 22px;
  color: #fff;
}
.blog-sb-nl-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.blog-sb-nl-desc {
  font-size: 12px;
  opacity: .6;
  line-height: 1.55;
  margin-bottom: 14px;
}
.blog-sb-nl input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
}
.blog-sb-nl input::placeholder { color: rgba(255,255,255,.35); }
.blog-sb-nl input:focus { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.15); }
.blog-sb-nl button {
  width: 100%;
  padding: 10px;
  background: var(--red);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.blog-sb-nl button:hover { background: #b82525; }

/* ═══════════════════════════════
   ██████  RESPONSIVE
═══════════════════════════════ */
@media (max-width: 900px) {
  .blog-hero-grid { grid-template-columns: 1fr; }
  .blog-hero-img { aspect-ratio: 16/8; }
  .blog-content { grid-template-columns: 1fr; gap: 24px; }
  .blog-sidebar { order: -1; }
  .blog-top-grid { grid-template-columns: 1fr; }
  .blog-top-card {
    border-right: none;
    padding: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 18px;
  }
  .blog-top-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 600px) {
  .blog-hero-body { padding: 18px 16px; }
  .blog-hero-title { font-size: 22px; }
  .blog-news-item { grid-template-columns: 1fr 100px; gap: 12px; }
  .blog-sn-brand { display: none; }
}

/* ═══════════════════════════════
   ██████  SINGLE POST
═══════════════════════════════ */

/* Progress bar */
.read-bar {
  position: fixed; top: 60px; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  z-index: 9998; width: 0%; transition: width .1s linear;
  box-shadow: 0 0 8px rgba(210,43,43,.5);
}

/* Post hero */
.post-hero {
  background: linear-gradient(160deg, #0c2545 0%, #142e56 40%, #1a3a66 100%);
  padding: 36px 0 40px; border-bottom: 3px solid var(--red);
  position: relative; overflow: hidden;
}
.post-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 100%, rgba(210,43,43,.12), transparent 50%),
              radial-gradient(ellipse at 80% 0%, rgba(26,116,200,.2), transparent 50%);
  pointer-events: none;
}
.post-hero-inner {
  max-width: 800px; margin: 0 auto; padding: 0 32px; position: relative;
}
.post-cat-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.post-cat-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
}
.post-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 38px; font-weight: 800; color: #fff;
  line-height: 1.18; margin-bottom: 20px; letter-spacing: -.01em;
}
.post-byline {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.post-byline-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.post-byline-item a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .15s; }
.post-byline-item a:hover { color: #fff; }
.post-byline-sep { color: rgba(255,255,255,.18); font-size: 16px; }

/* Post layout */
.post-layout {
  max-width: 1200px; margin: 0 auto; padding: 36px 32px 72px;
  display: grid; grid-template-columns: 1fr 296px; gap: 40px; align-items: start;
  background: var(--muted);
}

/* Featured image area */
.post-feat-img {
  width: 100%; aspect-ratio: 21/9;
  background: linear-gradient(155deg, #1a3f6e 0%, #0D5BAA 50%, #1a74c8 100%);
  border-radius: 14px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.post-feat-img::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.post-feat-img svg { position: relative; z-index: 1; }
.photo-credit { font-size: 11px; color: var(--subtle); text-align: right; margin-bottom: 28px; }

/* Post content */
.post-content {
  font-size: 17px; line-height: 1.85; color: var(--text);
  max-width: 680px;
}
.post-content p { margin-bottom: 22px; }
.post-content h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 26px; font-weight: 700; color: var(--text);
  line-height: 1.25; margin: 44px 0 16px; letter-spacing: -.01em;
}
.post-content h3 {
  font-size: 18px; font-weight: 700; color: var(--text); margin: 32px 0 12px;
}
.post-content strong { color: var(--blue-dark); font-weight: 700; }
.post-content a { color: var(--blue); border-bottom: 1px solid rgba(13,91,170,.3); text-decoration: none; transition: border-color .15s; }
.post-content a:hover { border-color: var(--blue); }
.post-content blockquote {
  border-left: 4px solid var(--blue);
  margin: 30px 0; padding: 18px 22px;
  background: linear-gradient(135deg, #f0f6ff, #eaf2fc);
  border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--subtle); font-size: 18px; line-height: 1.7;
}
.post-content ul, .post-content ol { padding-left: 22px; margin-bottom: 22px; }
.post-content li { margin-bottom: 8px; }

/* Inline callout box */
.callout {
  background: linear-gradient(135deg, #eef4fc, #e4eefc);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0; padding: 20px 22px; margin: 28px 0;
}
.callout-label {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; color: var(--blue); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.callout-label::before { content: ''; width: 14px; height: 2px; background: var(--blue); }
.callout-body { font-size: 14px; color: var(--text); line-height: 1.7; }
.callout-body strong { color: var(--blue-dark); }

/* Data comparison table */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px; border-radius: 12px; overflow: hidden;
}
.compare-table th {
  background: var(--blue); color: #fff; font-weight: 700;
  padding: 11px 14px; text-align: left; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em;
}
.compare-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--card);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: #f8fafd; }
.badge-green { color: #16a34a; font-weight: 700; }
.badge-orange { color: #ea580c; font-weight: 700; }
.badge-red { color: var(--red); font-weight: 700; }

/* Tags row */
.post-tags-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 36px 0; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.post-tags-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--subtle);
}

/* Share bar */
.share-bar {
  display: flex; align-items: center; gap: 10px; margin: 28px 0;
  padding: 18px 22px; background: #f8faff;
  border: 1px solid var(--border); border-radius: 12px;
}
.share-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--subtle); margin-right: 4px;
}
.share-btn {
  display: inline-flex; align-items: center; padding: 7px 15px;
  border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none;
  transition: all .18s; border: none; cursor: pointer; font-family: inherit;
}
.share-fb { background: #1877F2; color: #fff; }
.share-fb:hover { background: #1466d0; }
.share-x { background: #0f0f0f; color: #fff; }
.share-x:hover { background: #333; }
.share-copy { background: var(--muted); color: var(--blue); border: 1px solid var(--border); }
.share-copy:hover { background: var(--foam); }

/* Author box */
.author-box {
  display: flex; align-items: flex-start; gap: 18px;
  background: linear-gradient(135deg, #f8faff, #f0f5fb);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; margin: 36px 0;
}
.author-av {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Sans', sans-serif;
}
.author-role {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; color: var(--subtle); margin-bottom: 5px;
}
.author-name { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.author-name a { color: var(--blue); text-decoration: none; }
.author-bio { font-size: 13px; color: var(--subtle); line-height: 1.65; }

/* Prev/Next */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0;
}
.post-nav-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text); transition: all .2s;
}
.post-nav-item:hover { border-color: var(--blue); background: #f5f9ff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(13,94,175,.1); }
.post-nav-item.next { text-align: right; }
.post-nav-dir { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); }
.post-nav-title { font-size: 14px; font-weight: 700; line-height: 1.35; }

/* Related */
.related-section { margin-top: 40px; }
.related-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px;
  background: var(--border); border-radius: 14px; overflow: hidden;
}
.related-card { background: var(--card); text-decoration: none; color: inherit; transition: background .15s; }
.related-card:hover { background: #f5f9ff; }
.related-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a3f6e, #0D5BAA);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.related-thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 20px 20px;
}
.related-thumb svg { position: relative; z-index: 1; opacity: .6; }
.related-body { padding: 14px 16px; }
.related-date { font-size: 11px; color: var(--subtle); margin-bottom: 5px; }
.related-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35; }
.related-card:hover .related-title { color: var(--blue); }

/* Sidebar TOC */
.toc-item {
  display: block; font-size: 13px; color: var(--blue);
  text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid #f0f5fb; line-height: 1.4;
  transition: color .15s;
}
.toc-item:last-child { border-bottom: none; }
.toc-item:hover { color: var(--blue-dark); }
.toc-item.active { font-weight: 700; color: var(--blue-dark); }

/* Tag pill (shared) */
.tag-pill {
  padding: 5px 12px; border-radius: 20px;
  background: var(--muted); color: var(--subtle);
  font-size: 12px; font-weight: 600; text-decoration: none;
  transition: all .15s;
}
.tag-pill:hover { background: var(--foam); color: var(--blue); }

/* Prevent CLS: content images without explicit dimensions */
.post-content img { width: 100%; height: auto; aspect-ratio: 3/2; display: block; }
