/*
Theme Name:  QB Studio
Theme URI:   https://yoursite.com
Author:      Your Name
Description: Dark, minimal WordPress theme purpose-built for QB Studio. Full-bleed app shell on shortcode pages; polished dark blog layout everywhere else.
Version:     1.1.0
Text Domain: qb-studio-theme
Tags:        dark, minimal, app, single-column
*/

/* ════════════════════════════════════════════════════════
   RESET & BOX MODEL
════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ════════════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════════════ */
:root {
  --bg:        #090d16;
  --surface:   #0f1521;
  --surface2:  #161d2e;
  --surface3:  #1d2640;
  --border:    #252e48;
  --border2:   #303c5e;
  --accent:    #4f80ff;
  --accent2:   #90b4ff;
  --success:   #30d99a;
  --warn:      #f6c443;
  --danger:    #f56e6e;
  --text:      #f0f2fc;
  --text2:     #9098bc;
  --text3:     #505878;
  --radius:    10px;
  --radius-lg: 16px;
  --font:      'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono:      'Geist Mono', 'Menlo', 'Consolas', monospace;
  --header-h:  64px;
  --content-w: 760px;
  --wide-w:    1060px;
}

/* ════════════════════════════════════════════════════════
   BASE
════════════════════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }

a { color: var(--accent); }

/* ════════════════════════════════════════════════════════
   APP PAGE — full-bleed QB Studio shell, no chrome
════════════════════════════════════════════════════════ */
body.qbs-app-page {
  overflow: hidden;
  height: 100vh;
}
body.qbs-app-page .site-header,
body.qbs-app-page .site-footer,
body.qbs-app-page .site-main {
  display: none !important;
}
body.qbs-app-page #qbs-root {
  position: fixed;
  inset: 0;
  z-index: 10;
}

/* ════════════════════════════════════════════════════════
   SITE HEADER
════════════════════════════════════════════════════════ */
.site-header {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 0;
}

/* Admin bar pushes sticky header down */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ── Logo ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  flex-shrink: 0;
  margin-right: 32px;
}
.site-logo:hover { color: var(--text); }
.site-logo:hover .logo-icon { box-shadow: 0 6px 20px rgba(79,128,255,.5); }

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f80ff 0%, #3260d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(79,128,255,.35);
  flex-shrink: 0;
  transition: box-shadow .2s;
}
.logo-icon svg { width: 18px; height: 18px; fill: white; }

/* ── Primary Nav — WP outputs <ul> inside .site-nav ── */
.site-nav { flex: 1; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.site-nav ul ul { display: none; } /* hide sub-menus for now */

.site-nav li { position: relative; }

.site-nav a {
  display: block;
  padding: 7px 13px;
  border-radius: 8px;
  color: var(--text2);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-page-ancestor > a,
.site-nav .current_page_item > a {
  background: rgba(79,128,255,.1);
  color: var(--accent);
}

/* ── Header right side ── */
.header-spacer { flex: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #4f80ff, #3260d4);
  color: #fff;
  text-decoration: none;
  border-radius: 9px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 3px 14px rgba(79,128,255,.35);
  transition: filter .2s, transform .15s;
  white-space: nowrap;
}
.launch-btn:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }
.launch-btn svg { flex-shrink: 0; }

/* ── Mobile hamburger (shown ≤768px) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 9px;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all .2s;
}

/* ════════════════════════════════════════════════════════
   MOBILE NAV
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .site-logo { margin-right: auto; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    z-index: 100;
  }
  .admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { font-size: .92rem; }
  .launch-btn span { display: none; } /* hide label on mobile, keep icon */
}

/* ════════════════════════════════════════════════════════
   SITE MAIN WRAPPER
════════════════════════════════════════════════════════ */
.site-main {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 56px 24px 80px;
  min-height: calc(100vh - var(--header-h) - 120px);
}

@media (max-width: 600px) {
  .site-main { padding: 32px 16px 60px; }
}

/* ════════════════════════════════════════════════════════
   POST ARCHIVE (index.php)
════════════════════════════════════════════════════════ */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  transform: translateY(-2px);
  color: inherit;
}

.post-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-card-eyebrow .cat-pill {
  background: rgba(79,128,255,.12);
  color: var(--accent2);
  border: 1px solid rgba(79,128,255,.2);
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
}
.post-card:hover .post-card-title { color: var(--accent); }

.post-card-excerpt {
  font-size: .92rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.post-card-meta {
  font-size: .77rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-card-meta .dot { opacity: .4; }

.read-more {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ── Archive header ── */
.archive-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.archive-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 6px;
}
.archive-header p { color: var(--text2); font-size: .95rem; }

/* ════════════════════════════════════════════════════════
   SINGLE POST (single.php)
════════════════════════════════════════════════════════ */
.post-header { margin-bottom: 40px; }

/* Eyebrow: category + date */
.post-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .03em;
  margin-bottom: 16px;
}
.post-eyebrow a { color: var(--accent2); text-decoration: none; }
.post-eyebrow a:hover { color: var(--accent); }
.post-eyebrow .sep { opacity: .3; }
.post-eyebrow .cat-pill {
  background: rgba(79,128,255,.1);
  color: var(--accent2);
  border: 1px solid rgba(79,128,255,.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
}

.post-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: var(--text3);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.post-meta a { color: var(--text2); text-decoration: none; }
.post-meta a:hover { color: var(--accent); }

.post-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,128,255,.3), rgba(79,128,255,.1));
  border: 1px solid rgba(79,128,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 800;
  color: var(--accent2);
  flex-shrink: 0;
}
.post-author-block {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-author-name { font-weight: 600; color: var(--text2); }

/* ── Featured image ── */
.post-thumbnail {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-thumbnail img { width: 100%; height: auto; display: block; }

/* ════════════════════════════════════════════════════════
   POST CONTENT — rich text area
════════════════════════════════════════════════════════ */
.post-content {
  font-size: 1.02rem;
  line-height: 1.82;
  color: var(--text2);
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--text);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
  margin-top: 2.2em;
  margin-bottom: .65em;
}
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.22rem; }
.post-content h4 { font-size: 1.05rem; }
.post-content h5 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); }

/* Don't add top margin to first heading */
.post-content > *:first-child { margin-top: 0; }

/* Paragraphs & flow */
.post-content p { margin-bottom: 1.4em; }

/* Links */
.post-content a {
  color: var(--accent2);
  text-decoration: underline;
  text-decoration-color: rgba(144,180,255,.35);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.post-content a:hover {
  color: var(--accent);
  text-decoration-color: rgba(79,128,255,.6);
}

/* Lists */
.post-content ul,
.post-content ol {
  margin: 0 0 1.4em 1.5em;
  padding: 0;
}
.post-content li { margin-bottom: .45em; }
.post-content li > ul,
.post-content li > ol { margin-top: .45em; margin-bottom: .2em; }

/* Inline code */
.post-content code {
  font-family: var(--mono);
  font-size: .82em;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent2);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Code blocks */
.post-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-x: auto;
  margin: 0 0 1.6em;
  line-height: 1.6;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .85rem;
  color: var(--text2);
  white-space: pre;
}

/* Blockquote */
.post-content blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(79,128,255,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text2);
  font-style: italic;
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: .82rem;
  font-style: normal;
  color: var(--text3);
}

/* HR */
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6em;
  font-size: .9rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.post-content th,
.post-content td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.post-content th {
  background: var(--surface2);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text3);
}
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:hover td { background: rgba(255,255,255,.02); }

/* Images inside content */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: .5em 0 1.4em;
}
.post-content figure { margin: 1.6em 0; }
.post-content figcaption {
  margin-top: 8px;
  font-size: .8rem;
  color: var(--text3);
  text-align: center;
}

/* WP block alignments */
.post-content .alignleft  { float: left;  margin: 0 24px 16px 0; }
.post-content .alignright { float: right; margin: 0 0 16px 24px; }
.post-content .aligncenter,
.post-content .alignwide,
.post-content .alignfull  { float: none; display: block; margin-left: auto; margin-right: auto; }
.post-content .alignwide  { max-width: var(--wide-w); width: calc(100% + 80px); margin-left: -40px; }
@media (max-width: 900px) { .post-content .alignwide { width: 100%; margin-left: 0; } }

/* WP caption */
.post-content .wp-caption { max-width: 100%; margin-bottom: 1.4em; }
.post-content .wp-caption-text {
  font-size: .8rem;
  color: var(--text3);
  text-align: center;
  margin-top: 6px;
}

/* ── Post nav (prev/next) ── */
.post-navigation {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
}
.post-navigation .nav-next { justify-content: flex-end; text-align: right; }

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding: 16px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
  width: 100%;
}
.post-navigation a:hover {
  border-color: var(--accent);
  background: rgba(79,128,255,.05);
}
.post-navigation .nav-subtitle {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text3);
}
.post-navigation .nav-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text2);
  line-height: 1.4;
}
.post-navigation a:hover .nav-title { color: var(--accent); }

@media (max-width: 500px) { .post-navigation { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════
   STATIC PAGE (page.php)
════════════════════════════════════════════════════════ */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
  color: var(--text);
}

/* ════════════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════════════ */
.pagination,
.posts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* WP generates .page-numbers spans/anchors */
.pagination .page-numbers,
.posts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text2);
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: all .15s;
}
.pagination .page-numbers:hover,
.posts-pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79,128,255,.06);
}
.pagination .page-numbers.current,
.posts-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-numbers.dots,
.posts-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--text3);
}

/* ════════════════════════════════════════════════════════
   SITE FOOTER
════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 28px;
}

.footer-inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text2);
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 8px;
}
.footer-brand .logo-icon { width: 28px; height: 28px; border-radius: 7px; }
.footer-brand .logo-icon svg { width: 14px; height: 14px; }

.footer-copy {
  font-size: .78rem;
  color: var(--text3);
  line-height: 1.6;
}
.footer-copy a { color: var(--text3); text-decoration: none; transition: color .15s; }
.footer-copy a:hover { color: var(--accent); }

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  display: block;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text3);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.footer-nav a:hover {
  background: rgba(255,255,255,.04);
  color: var(--text2);
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav ul { justify-content: flex-start; }
}

/* ════════════════════════════════════════════════════════
   404 PAGE
════════════════════════════════════════════════════════ */
.error-404 {
  text-align: center;
  padding: 80px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.error-404-code {
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--border2);
  margin-bottom: 8px;
}
.error-404-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -.03em;
}
.error-404-desc { font-size: .95rem; color: var(--text2); margin-bottom: 32px; line-height: 1.65; }
.error-404-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 4px 16px rgba(79,128,255,.35);
  transition: filter .2s, transform .15s;
}
.error-404-btn:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }

/* ════════════════════════════════════════════════════════
   COMMENTS
════════════════════════════════════════════════════════ */
.comments-area {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 28px;
  color: var(--text);
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-size: .9rem; }
.comment-metadata { font-size: .75rem; color: var(--text3); margin-top: 2px; }
.comment-metadata a { color: var(--text3); text-decoration: none; }
.comment-body p { font-size: .92rem; color: var(--text2); line-height: 1.65; margin-bottom: .8em; }
.reply a {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

/* Comment form */
.comment-respond { margin-top: 36px; }
.comment-reply-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}
.comment-form p { margin-bottom: 14px; }
.comment-form label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .92rem;
  outline: none;
  transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form .submit {
  display: inline-flex;
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s;
}
.comment-form .submit:hover { filter: brightness(1.1); }

/* ════════════════════════════════════════════════════════
   GUTENBERG / WP BLOCK EDITOR COMPATIBILITY
════════════════════════════════════════════════════════ */
.post-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}
.post-content .wp-block-quote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(79,128,255,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content .wp-block-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--text2);
}
.post-content .wp-block-image img { border-radius: var(--radius); border: 1px solid var(--border); }
.post-content .wp-block-table { margin-bottom: 1.6em; }
.post-content .wp-block-table table { border-radius: var(--radius); overflow: hidden; }
.post-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.4em; }
.post-content .wp-block-button__link {
  display: inline-flex;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: filter .2s;
}
.post-content .wp-block-button__link:hover { filter: brightness(1.1); color: #fff; }
.post-content .wp-block-pullquote {
  padding: 28px;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  text-align: center;
  margin: 2em 0;
  color: var(--text);
  font-size: 1.2rem;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════
   UTILITY: SCREEN-READER TEXT
════════════════════════════════════════════════════════ */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--surface);
  clip: auto !important;
  clip-path: none;
  color: var(--text);
  display: block;
  font-size: .85rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  padding: 14px 20px;
  top: 5px;
  width: auto;
  z-index: 9999;
  border-radius: var(--radius);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .post-title { font-size: 1.6rem; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-card { padding: 20px; }
}
