/* ============================================================
   JUNIPER LIGHT — Ghost Theme  v3.0
   ============================================================ */

/* ── 1. Variables ─────────────────────────────────────────── */
:root {
  --bg:             #ffffff;
  --bg-alt:         #f9fafb;
  --bg-surface:     #f3f4f6;
  --text:           #111827;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;
  --border:         #e5e7eb;
  --border-hover:   #d1d5db;
  --accent:         #47BEEE;
  --accent-hover:   #2ba8d8;
  --accent-bg:      #e8f8fe;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Menlo, monospace;

  --max-width:    1200px;
  --narrow-width: 680px;
  --gap:          24px;
  --header-h:     64px;

  --r-sm:   5px;
  --r:      10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.container-narrow { max-width: var(--narrow-width); margin-inline: auto; padding-inline: var(--gap); }

/* ── 4. Site Header ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 20px;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 34px; width: auto; }
.logo-text { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.logo-dot { color: var(--accent); }

.header-nav { flex: 1; }
.header-nav .nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.header-nav .nav li a {
  display: block; padding: 6px 12px; font-size: .875rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--r-sm);
  transition: color .15s, background .15s; white-space: nowrap;
}
.header-nav .nav li a:hover, .header-nav .nav li.nav-current a { color: var(--text); background: var(--bg-surface); }

.secondary-nav-bar { border-top: 1px solid var(--border); background: var(--bg-alt); }
.secondary-nav .nav { display: flex; align-items: center; gap: 2px; list-style: none; padding: 6px 0; }
.secondary-nav .nav:empty, .secondary-nav-bar:has(.nav:empty) { display: none; }
.secondary-nav .nav li a {
  display: block; padding: 5px 12px; font-size: .8rem; font-weight: 500;
  color: var(--text-muted); border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.secondary-nav .nav li a:hover { color: var(--text); background: var(--bg-surface); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-full);
  color: var(--text-secondary); transition: color .15s, background .15s;
}
.search-toggle:hover { color: var(--text); background: var(--bg-surface); }

.mobile-menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm); color: var(--text-secondary);
}
.mobile-menu-toggle:hover { background: var(--bg-surface); }
.mobile-nav { border-top: 1px solid var(--border); padding: 12px 0 16px; }
.mobile-nav .nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav .nav li a {
  display: block; padding: 9px 12px; font-size: .9rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--r-sm); transition: background .15s, color .15s;
}
.mobile-nav .nav li a:hover { background: var(--bg-surface); color: var(--text); }

/* ── 5. Button ────────────────────────────────────────────── */
.btn-accent {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; background: var(--accent); color: #fff;
  font-size: .875rem; font-weight: 600; border-radius: var(--r-full);
  transition: background .15s; white-space: nowrap;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-full { width: 100%; }

/* ── 6. Tag Badges — transparent with coloured border (set by JS) ── */
.tag-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;        /* never stretch inside a flex column */
  padding: 4px 13px;
  background: transparent;
  color: var(--text-secondary);  /* JS overrides this with palette colour */
  border: 1.5px solid var(--border-hover); /* JS overrides with palette colour */
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  transition: opacity .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag-badge:hover { opacity: .75; }
.tag-badge-sm { padding: 3px 10px; font-size: .62rem; }

/* ── 7. Post Meta ─────────────────────────────────────────── */
.post-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.author-avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--bg-surface); flex-shrink: 0;
}
.author-avatar-wrap { display: flex; flex-shrink: 0; }
.author-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700;
}
.meta-text {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; color: var(--text-muted); flex-wrap: wrap;
}
.author-name { color: var(--text-secondary); font-weight: 500; transition: color .15s; }
.author-name:hover { color: var(--accent); }
.meta-sep { opacity: .4; }

/* ── 8. Post Card ─────────────────────────────────────────── */
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow); border-color: var(--border-hover); transform: translateY(-2px); }
.post-card-image-wrap { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-surface); }
.post-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-image { transform: scale(1.04); }
.post-card-content {
  display: flex; flex-direction: column; flex: 1;
  padding: 18px 20px 20px; gap: 7px;
}
.post-card-title { font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; margin-top: 4px; }
.post-card-title a { transition: color .15s; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
  font-size: .85rem; color: var(--text-secondary); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── 9. Posts Grid ────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ── 10. Hero Section (NO dividing lines) ─────────────────── */
.hero-section { padding: 36px 0 40px; } /* no border-bottom */
.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.hero-image-wrap {
  display: block; overflow: hidden; border-radius: var(--r-xl);
  aspect-ratio: 16/10; background: var(--bg-surface); margin-bottom: 18px;
}
.hero-image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-main:hover .hero-image { transform: scale(1.03); }
.hero-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-title { font-size: 1.7rem; font-weight: 800; line-height: 1.22; letter-spacing: -.025em; }
.hero-title a { transition: color .15s; }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt { font-size: .9rem; color: var(--text-secondary); line-height: 1.55; }

/* Hero sidebar — no left border (cleaner) */
.hero-sidebar { display: flex; flex-direction: column; padding-left: 28px; }
.hero-mini { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; }
.hero-mini:first-child { padding-top: 0; }
.hero-mini:last-child { padding-bottom: 0; }
.mini-image-wrap {
  flex-shrink: 0; width: 84px; height: 66px;
  border-radius: var(--r); overflow: hidden; background: var(--bg-surface);
}
.mini-image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-mini:hover .mini-image { transform: scale(1.06); }
.mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.mini-title { font-size: .875rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-title a { transition: color .15s; }
.mini-title a:hover { color: var(--accent); }

/* ── 11. Homepage: posts + sidebar layout ─────────────────── */
.posts-section { padding: 0 0 64px; }
.home-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
  padding-top: 40px;
}
.home-main {}
.home-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ── 12. Pagination ──────────────────────────────────────── */
.pagination-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 44px; }
.pagination-info { font-size: .82rem; color: var(--text-muted); }
.btn-load-more {
  display: inline-flex; align-items: center; padding: 11px 32px;
  background: var(--accent); color: #fff; font-size: .875rem; font-weight: 600;
  border-radius: var(--r-full); transition: background .15s;
}
.btn-load-more:hover { background: var(--accent-hover); }

/* ── 13. Post Header — Split (left text | right image) ────── */
.post-header-split {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 0;
}
.post-header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 320px;
}
.post-header-left {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 14px; padding-bottom: 48px;
}
.post-tag { margin-bottom: 4px; }
.post-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.18; letter-spacing: -.03em; }
.post-excerpt { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.6; }
.post-header-meta {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: 4px;
}
.post-header-meta .author-avatar { width: 34px; height: 34px; }
.post-header-meta .meta-text { font-size: .82rem; }

.post-header-right { overflow: hidden; border-radius: var(--r-xl); background: var(--bg-surface); margin-bottom: 48px; max-height: 420px; }
.post-header-image { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; border-radius: var(--r-xl); }

/* ── 14. Post Page Layout (share | content | sidebar) ────── */
.post-page-layout { padding: 0 0 64px; }
.post-page-container { max-width: var(--max-width); }
.post-page-inner {
  display: grid;
  grid-template-columns: 56px 1fr 280px;
  gap: 0 28px;
  padding-top: 44px;
}

/* Share column */
.post-share-col { padding-top: 4px; }
.share-sticky {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.share-label {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px;
}
.share-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.share-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Content column */
.post-content-col {}
.gh-content { font-size: 1.02rem; line-height: 1.78; color: var(--text); }
.gh-content h1,.gh-content h2,.gh-content h3,.gh-content h4,.gh-content h5,.gh-content h6 {
  font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--text); margin: 2em 0 .6em;
}
.gh-content h1 { font-size: 1.8rem; }
.gh-content h2 { font-size: 1.4rem; }
.gh-content h3 { font-size: 1.2rem; }
.gh-content h4 { font-size: 1.05rem; }
.gh-content p { margin-bottom: 1.4em; }
.gh-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--accent-hover); }
.gh-content ul,.gh-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.gh-content li { margin-bottom: .4em; }
.gh-content blockquote {
  border-left: 4px solid var(--accent); padding: 14px 20px; margin: 2em 0;
  background: var(--accent-bg); border-radius: 0 var(--r) var(--r) 0;
  font-style: italic; color: var(--text-secondary);
}
.gh-content pre {
  background: #1e1e2e; color: #cdd6f4; border-radius: var(--r);
  padding: 20px 24px; overflow-x: auto; font-family: var(--font-mono);
  font-size: .875rem; line-height: 1.6; margin: 1.5em 0;
}
.gh-content code {
  font-family: var(--font-mono); font-size: .875em; background: var(--bg-surface);
  padding: 2px 6px; border-radius: var(--r-sm); border: 1px solid var(--border); color: var(--accent);
}
.gh-content pre code { background: none; border: none; padding: 0; color: inherit; }
.gh-content img { border-radius: var(--r); margin: 1.5em 0; }
.gh-content figure { margin: 2em 0; }
.gh-content figcaption { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 8px; }
.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }
.gh-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.gh-content th { background: var(--bg-surface); font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--border); }
.gh-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }

/* Post footer */
.post-footer { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.post-share-bottom { display: flex; align-items: center; gap: 10px; }
.post-share-bottom .share-btn { width: 34px; height: 34px; }

/* Right sidebar column — scrolls naturally with content (no sticky) */
.post-sidebar-col { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }

/* ── 15. Sidebar Widgets ─────────────────────────────────── */
.sidebar-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 20px;
}
.sidebar-brand { margin-bottom: 10px; }
.sidebar-logo { height: 30px; width: auto; }
.sidebar-logo-text { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.sidebar-description { font-size: .83rem; color: var(--text-secondary); line-height: 1.5; margin-top: 6px; }
.sidebar-social { display: flex; gap: 8px; margin-top: 14px; }
.sidebar-social .social-link, .social-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary);
  transition: background .15s, color .15s, border-color .15s;
}
.sidebar-social .social-link:hover, .social-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.sidebar-section {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px;
}
.sidebar-section-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.sidebar-post-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-post-item:first-child { padding-top: 0; }
.sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-thumb { flex-shrink: 0; width: 54px; height: 42px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-surface); }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sidebar-post-title { font-size: .82rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-post-title a { transition: color .15s; }
.sidebar-post-title a:hover { color: var(--accent); }
.sidebar-post-date { font-size: .73rem; color: var(--text-muted); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.sidebar-subscribe-card { text-align: center; }
.subscribe-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.subscribe-desc { font-size: .82rem; color: var(--text-secondary); line-height: 1.45; margin-bottom: 14px; }

/* Member discussion */
.member-discussion { padding: 48px 0 56px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.discussion-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }

/* Related posts — 3 columns */
.related-posts { padding: 52px 0 60px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.related-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 28px; }
.related-posts .posts-grid { grid-template-columns: repeat(3, 1fr); }

/* ── 16. Archive (Tag / Author) ──────────────────────────── */
.archive-page { padding-bottom: 64px; }
.archive-header { padding: 44px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.tag-header-inner { display: flex; align-items: flex-start; gap: 20px; }
.tag-icon-wrap { flex-shrink: 0; width: 68px; height: 68px; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border); }
.tag-icon { width: 100%; height: 100%; object-fit: cover; }
.tag-post-count { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.archive-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 8px; }
.archive-description { font-size: .95rem; color: var(--text-secondary); line-height: 1.55; max-width: 540px; }

.author-header-inner { display: flex; align-items: center; gap: 24px; }
.author-profile-image { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); flex-shrink: 0; }
.author-profile-placeholder { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2rem; font-weight: 700; flex-shrink: 0; }
.author-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.author-location { font-size: .83rem; color: var(--text-muted); }
.author-website { font-size: .83rem; color: var(--accent); text-decoration: underline; }

.archive-grid-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
.posts-grid-sidebar { grid-template-columns: repeat(2, 1fr); }
.archive-sidebar .sidebar-card { position: sticky; top: calc(var(--header-h) + 20px); }

/* ── 17. Static Page ─────────────────────────────────────── */
.page-post .post-content-col { max-width: var(--narrow-width); margin-inline: auto; padding: 40px var(--gap) 80px; }

/* ── 18. Error Page ──────────────────────────────────────── */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 80px 0; }
.error-content { text-align: center; }
.error-code { font-size: 7rem; font-weight: 900; color: var(--bg-surface); line-height: 1; }
.error-message { font-size: 2rem; font-weight: 700; margin: 8px 0 12px; }
.error-description { color: var(--text-secondary); margin-bottom: 28px; }

/* ── 19. Site Footer ─────────────────────────────────────── */
.site-footer { background: #111827; color: #e5e7eb; padding: 52px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo-text { color: #fff; }
.footer-logo-text .logo-dot { color: var(--accent); }
.footer-logo-img { height: 32px; filter: brightness(0) invert(1); }
.footer-description { font-size: .84rem; color: #9ca3af; line-height: 1.55; margin-top: 8px; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social .social-link { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); color: #9ca3af; }
.footer-social .social-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-nav-title { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; margin-bottom: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.footer-nav a, .footer-nav-link { font-size: .84rem; color: #9ca3af; transition: color .15s; list-style: none; }
.footer-nav a:hover, .footer-nav-link:hover { color: #fff; }
.footer-bottom { padding: 18px 0; font-size: .78rem; color: #6b7280; }
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }

/* ── 20. Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-page-inner { grid-template-columns: 44px 1fr 240px; gap: 0 20px; }
  .home-layout { grid-template-columns: 1fr 240px; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .related-posts .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { padding-left: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding-top: 24px; }
  .hero-mini:nth-child(odd) { padding-right: 16px; }
  .hero-mini:nth-child(even) { padding-left: 16px; }

  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { display: none; } /* hide on tablet, show content full-width */

  .archive-grid-wrap { grid-template-columns: 1fr; }
  .archive-sidebar { display: none; }

  .post-page-inner { grid-template-columns: 1fr 240px; }
  .post-share-col { display: none; }

  .related-posts .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .post-header-inner { grid-template-columns: 1fr; min-height: auto; gap: 20px; }
  .post-header-left { padding-bottom: 0; }
  .post-header-right { height: 240px; margin-bottom: 28px; }
  .post-page-inner { grid-template-columns: 1fr; }
  .post-sidebar-col { display: none; }
}

@media (max-width: 720px) {
  :root { --gap: 16px; --header-h: 58px; }
  .header-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: block; }
  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid-sidebar { grid-template-columns: 1fr; }
  .hero-sidebar { grid-template-columns: 1fr; }
  .hero-mini:nth-child(odd), .hero-mini:nth-child(even) { padding-inline: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .related-posts .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .post-title { font-size: 1.5rem; }
}

/* ── Colour overrides: Cyan links/hovers, Ruby buttons ───── */
.btn-accent,
.btn-load-more { background: #F03760; }
.btn-accent:hover,
.btn-load-more:hover { background: #d42050; }

/* Keep sidebar subscribe button Ruby too */
.sidebar-subscribe-card .btn-accent { background: #F03760; }
.sidebar-subscribe-card .btn-accent:hover { background: #d42050; }

/* Author initials avatar uses accent = cyan now; keep it readable */
.author-initials { background: #47BEEE; color: #fff; }
