/* ============================================================
   GETOVERBOOKED GHOST THEME — screen.css
   Design tokens match getoverbooked.ai exactly
   ============================================================ */

/* --- TOKENS ------------------------------------------------ */
:root {
  --t:   #1D9E75;   /* teal primary */
  --td:  #0F6E56;   /* teal dark */
  --tl:  #E8F7F2;   /* teal light bg */
  --b:   #185FA5;   /* blue */
  --r:   #E24B4A;   /* red */
  --a:   #854F0B;   /* amber text */
  --am:  #EF9F27;   /* amber */
  --tx:  #16160F;   /* primary text */
  --tx2: #4A4A42;   /* secondary text */
  --h:   #9A9A90;   /* hint / muted */
  --s:   #FFFFFF;   /* surface */
  --s2:  #F7F7F5;   /* surface 2 */
  --bg:  #F4F4F1;   /* page background */
  --bdr: #E4E4DF;   /* border */

  --font-ui:   'DM Sans', system-ui, sans-serif;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-mono: 'DM Mono', 'Fira Mono', monospace;

  --nav-h: 64px;
  --max-w: 1200px;
  --post-w: 720px;
  --r4: 4px;
  --r8: 8px;
  --r12: 12px;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font-family: inherit; }

/* --- NAV --------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 244, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bdr);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  color: var(--tx);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}

.nav-logo em {
  font-style: normal;
  color: var(--t);
}

.nav-dot { color: var(--h); font-weight: 400; }

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-blog-link,
.nav-tag-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx2);
  padding: 5px 10px;
  border-radius: var(--r4);
  transition: color .15s, background .15s;
}

.nav-blog-link:hover,
.nav-tag-link:hover,
.nav-blog-link.active {
  color: var(--tx);
  background: var(--s2);
}

/* --- NAV SEARCH BUTTON ------------------------------------ */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--bdr);
  border-radius: var(--r4);
  background: var(--s);
  color: var(--tx2);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
}
.nav-search-btn:hover { border-color: var(--t); color: var(--t); }

.nav-right {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--s);
  background: var(--t);
  padding: 8px 16px;
  border-radius: var(--r4);
  transition: background .15s;
}
.nav-cta:hover { background: var(--td); }

/* --- BLOG HERO (light, compact) ---------------------------- */
.blog-hero {
  background: #E8F7F2;
  border-bottom: 1px solid #C8EBE0;
  padding: 32px 24px;
}

.blog-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.blog-hero-left { flex: 1; }
.blog-hero-right { flex-shrink: 0; max-width: 320px; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--td);
  margin-bottom: 10px;
}

.blog-hero-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--tx);
  margin: 0;
}

.blog-hero-sub {
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 680px) {
  .blog-hero-inner { flex-direction: column; gap: 16px; }
  .blog-hero-right { max-width: 100%; }
}

/* --- SECTION LAYOUT --------------------------------------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--h);
  margin-bottom: 24px;
  padding-top: 56px;
}

/* --- FEATURED CARD ---------------------------------------- */
.featured-section { background: var(--bg); }

.featured-grid { display: grid; }

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--s);
  border-radius: var(--r12);
  border: 1px solid var(--bdr);
  overflow: hidden;
}

@media (max-width: 700px) {
  .featured-card { grid-template-columns: 1fr; }
}

.featured-card-image-wrap {
  display: block;
  overflow: hidden;
}

.featured-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.featured-card:hover .featured-card-image { transform: scale(1.03); }

.featured-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--tx);
  margin: 12px 0;
}

.featured-card-title a { color: inherit; }
.featured-card-title a:hover { color: var(--t); }

.featured-card-excerpt {
  font-size: 15px;
  color: var(--tx2);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- POST GRID -------------------------------------------- */
.posts-section { padding-bottom: 64px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

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

@media (max-width: 900px) {
  .posts-grid--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .posts-grid, .posts-grid--three { grid-template-columns: 1fr; }
}

/* --- POST CARD -------------------------------------------- */
.post-card {
  background: var(--s);
  border-radius: var(--r12);
  border: 1px solid var(--bdr);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(22,22,15,.08);
  transform: translateY(-2px);
}

.post-card-image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.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-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--tx);
  margin: 10px 0 10px;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--t); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

/* --- CARD META -------------------------------------------- */
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t);
  background: var(--tl);
  padding: 3px 8px;
  border-radius: 99px;
  transition: background .15s;
}

.card-tag:hover { background: #d0ede3; }

.card-dot { color: var(--bdr); font-size: 12px; }

.card-date,
.card-read {
  font-size: 12px;
  color: var(--h);
}

.card-read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--t);
  margin-top: auto;
  display: inline-block;
  transition: color .15s;
}
.card-read-link:hover { color: var(--td); }

/* --- PAGINATION ------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 40px;
  font-size: 14px;
}

.pagination a {
  padding: 8px 16px;
  border: 1px solid var(--bdr);
  border-radius: var(--r4);
  color: var(--tx2);
  background: var(--s);
  transition: border-color .15s, color .15s;
}

.pagination a:hover {
  border-color: var(--t);
  color: var(--t);
}

.page-number { color: var(--h); }

/* --- BLOG HOME CTA ---------------------------------------- */
.blog-cta {
  background: var(--t);
  color: var(--s);
  padding: 72px 24px;
  text-align: center;
}

.blog-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.blog-cta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}

.blog-cta-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--s);
  margin-bottom: 16px;
}

.blog-cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  line-height: 1.6;
}

.blog-cta-btn {
  display: inline-block;
  background: var(--s);
  color: var(--td);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--r4);
  transition: background .15s, color .15s;
}
.blog-cta-btn:hover { background: var(--tx); color: var(--s); }

.blog-cta-note {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 14px;
}

/* ============================================================
   POST PAGE
   ============================================================ */

/* --- POST HEADER ------------------------------------------ */
.post-header-wrap {
  background: var(--tl);
  color: var(--tx);
  padding: 64px 24px 56px;
  border-bottom: .5px solid rgba(29,158,117,.3);
}

.post-header-inner {
  max-width: var(--post-w);
  margin: 0 auto;
  text-align: left;
}

.post-header-meta {
  margin-bottom: 20px;
  text-align: left;
}

.post-header-meta .card-tag {
  background: rgba(29,158,117,.2);
}

.post-header-meta .card-date,
.post-header-meta .card-read {
  color: var(--h);
}

.post-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--tx);
  margin-bottom: 18px;
  text-align: left;
}

.post-excerpt {
  font-size: 19px;
  color: var(--m);
  line-height: 1.55;
  margin-bottom: 28px;
}

/* --- BYLINE ----------------------------------------------- */
.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(29,158,117,.2);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--t);
  color: var(--s);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.byline-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx);
}

.byline-title {
  font-size: 12px;
  color: var(--h);
}

/* --- FEATURE IMAGE ---------------------------------------- */
.post-feature-image-wrap {
  max-width: 900px;
  margin: -1px auto 0;
  padding: 0 24px;
}

.post-feature-image {
  width: 100%;
  border-radius: 0 0 var(--r12) var(--r12);
  display: block;
}

.post-image-caption {
  font-size: 13px;
  color: var(--h);
  text-align: center;
  margin-top: 8px;
}

/* --- POST CONTENT ----------------------------------------- */
.post-content-wrap {
  padding: 48px 24px 0;
}

.post-content-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 960px) {
  .post-content-inner {
    grid-template-columns: 1fr;
  }
  .post-sidebar { display: none; }
}

/* --- GH CONTENT (Ghost post body) ------------------------- */
.gh-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--tx);
  max-width: var(--post-w);
}

.gh-content h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--tx);
  margin: 48px 0 16px;
}

.gh-content h3 {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--tx);
  margin: 36px 0 12px;
}

.gh-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--tx);
  margin: 28px 0 8px;
  letter-spacing: .02em;
}

.gh-content p {
  margin-bottom: 24px;
}

.gh-content a {
  color: var(--t);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .15s;
}

.gh-content a:hover { color: var(--td); }

.gh-content strong { font-weight: 700; color: var(--tx); }

.gh-content em { font-style: italic; }

.gh-content ul,
.gh-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.gh-content li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.gh-content blockquote {
  border-left: 3px solid var(--t);
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--tl);
  border-radius: 0 var(--r8) var(--r8) 0;
  font-size: 18px;
  color: var(--tx);
  font-style: italic;
  line-height: 1.6;
}

.gh-content code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--s2);
  border: 1px solid var(--bdr);
  padding: 2px 6px;
  border-radius: var(--r4);
  color: var(--tx);
}

.gh-content pre {
  background: var(--tx);
  border-radius: var(--r8);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  line-height: 1.65;
}

.gh-content img {
  max-width: 100%;
  border-radius: var(--r8);
  margin: 32px 0;
}

.gh-content figure {
  margin: 32px 0;
}

.gh-content figcaption {
  font-size: 13px;
  color: var(--h);
  text-align: center;
  margin-top: 8px;
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--bdr);
  margin: 48px 0;
}

/* Data callout — style a blockquote with a data stat */
.gh-content .kg-callout-card {
  background: var(--s2);
  border: 1px solid var(--bdr);
  border-radius: var(--r8);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Table */
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 14px;
}

.gh-content th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--h);
  border-bottom: 2px solid var(--bdr);
  padding: 10px 12px;
}

.gh-content td {
  border-bottom: 1px solid var(--bdr);
  padding: 12px;
  vertical-align: top;
}

.gh-content tr:last-child td { border-bottom: none; }
.gh-content tr:nth-child(even) td { background: var(--s2); }

/* --- SIDEBAR ---------------------------------------------- */
.post-sidebar {
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-cta {
  background: var(--tx);
  border-radius: var(--r12);
  padding: 28px 24px;
  color: var(--s);
}

.sidebar-cta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t);
  margin-bottom: 10px;
}

.sidebar-cta-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  color: var(--s);
  line-height: 1.2;
  margin-bottom: 10px;
}

.sidebar-cta-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
  margin-bottom: 18px;
}

.sidebar-cta-btn {
  display: block;
  background: var(--t);
  color: var(--s);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: var(--r4);
  text-align: center;
  transition: background .15s;
}
.sidebar-cta-btn:hover { background: var(--td); }

.sidebar-related {
  background: var(--s);
  border: 1px solid var(--bdr);
  border-radius: var(--r12);
  padding: 20px;
}

.sidebar-related-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--h);
  margin-bottom: 12px;
}

.sidebar-related-item {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--bdr);
  transition: opacity .15s;
}

.sidebar-related-item:hover { opacity: .75; }

.sidebar-related-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t);
  margin-bottom: 4px;
}

.sidebar-related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx);
  line-height: 1.4;
}

/* --- POST FOOTER ------------------------------------------ */
.post-footer-wrap {
  padding: 40px 24px;
  border-top: 1px solid var(--bdr);
  margin-top: 48px;
}

.post-footer-inner {
  max-width: var(--post-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tag-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--tx2);
  background: var(--s2);
  border: 1px solid var(--bdr);
  padding: 5px 12px;
  border-radius: 99px;
  transition: border-color .15s, color .15s;
}
.post-tag-pill:hover { border-color: var(--t); color: var(--t); }

.post-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-share-label {
  font-size: 12px;
  color: var(--h);
}

.share-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--bdr);
  border-radius: var(--r4);
  color: var(--tx2);
  background: var(--s);
  transition: border-color .15s, color .15s;
}
.share-btn:hover { border-color: var(--t); color: var(--t); }

/* --- SUBSCRIBE SECTION ------------------------------------ */
.post-subscribe {
  background: var(--s2);
  border-top: 1px solid var(--bdr);
  padding: 64px 24px;
  text-align: center;
}

.post-subscribe-inner {
  max-width: 480px;
  margin: 0 auto;
}

.subscribe-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t);
  margin-bottom: 14px;
}

.subscribe-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--tx);
  margin-bottom: 12px;
  line-height: 1.15;
}

.subscribe-sub {
  font-size: 15px;
  color: var(--tx2);
  margin-bottom: 28px;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 12px;
}

.subscribe-input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r4);
  font-size: 14px;
  color: var(--tx);
  background: var(--s);
  outline: none;
  transition: border-color .15s;
}
.subscribe-input:focus { border-color: var(--t); }

.subscribe-btn {
  background: var(--t);
  color: var(--s);
  border: none;
  padding: 11px 18px;
  border-radius: var(--r4);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.subscribe-btn:hover { background: var(--td); }

.subscribe-note {
  font-size: 12px;
  color: var(--h);
}

/* --- RELATED POSTS SECTION -------------------------------- */
.related-posts-section {
  background: var(--bg);
  padding-bottom: 56px;
  border-top: 1px solid var(--bdr);
}

/* --- TAG PAGE --------------------------------------------- */
.tag-header {
  background: var(--s2);
  border-bottom: 1px solid var(--bdr);
  padding: 56px 24px 48px;
}

.tag-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.tag-back {
  font-size: 13px;
  color: var(--h);
  display: inline-block;
  margin-bottom: 24px;
  transition: color .15s;
}
.tag-back:hover { color: var(--t); }

.tag-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--h);
  margin-bottom: 10px;
}

.tag-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--tx);
  margin-bottom: 12px;
}

.tag-desc {
  font-size: 16px;
  color: var(--tx2);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.tag-count {
  font-size: 13px;
  color: var(--h);
  font-family: var(--font-mono);
}

/* --- FOOTER ----------------------------------------------- */
.site-footer {
  background: #F0F0EC;
  border-top: 1px solid var(--bdr);
  color: var(--tx2);
  padding: 40px 24px;
}

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

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-right { text-align: center; }
}

.footer-logo {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.footer-logo em { font-style: normal; color: var(--t); }
.footer-logo span { color: var(--h); font-weight: 400; }

.footer-tagline {
  font-size: 12px;
  color: var(--h);
}

.footer-links {
  display: flex;
  gap: 4px;
}

.footer-links a {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--r4);
  color: var(--tx2);
  transition: color .15s;
}
.footer-links a:hover { color: var(--t); }

.footer-right { text-align: right; }

.footer-copy {
  font-size: 12px;
  color: var(--h);
}

/* --- Ghost Card Width Classes (required) ------------------- */
.kg-width-wide {
  margin-left: calc(50% - min(42vw, 560px));
  margin-right: calc(50% - min(42vw, 560px));
  width: auto;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.kg-image { max-width: 100%; }

/* --- Ghost Gallery Card ------------------------------------ */
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image { flex: 1; overflow: hidden; border-radius: var(--r8); }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Ghost Bookmark Card ----------------------------------- */
.kg-bookmark-card {
  border: 1px solid var(--bdr);
  border-radius: var(--r8);
  overflow: hidden;
  margin-bottom: 24px;
}
.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--tx); }
.kg-bookmark-description { font-size: 13px; color: var(--tx2); line-height: 1.5; margin-bottom: 10px; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--h); }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* --- Ghost Video / Embed ----------------------------------- */
.kg-embed-card { margin-bottom: 24px; }
.kg-embed-card iframe { max-width: 100%; border-radius: var(--r8); }

/* --- Ghost Audio Card -------------------------------------- */
.kg-audio-card {
  border: 1px solid var(--bdr);
  border-radius: var(--r8);
  padding: 16px;
  margin-bottom: 24px;
  background: var(--s2);
}

/* --- Ghost Toggle Card ------------------------------------- */
.kg-toggle-card {
  border: 1px solid var(--bdr);
  border-radius: var(--r8);
  padding: 16px 20px;
  margin-bottom: 16px;
  background: var(--s);
}
.kg-toggle-heading { display: flex; justify-content: space-between; cursor: pointer; font-weight: 600; }
.kg-toggle-content { margin-top: 12px; font-size: 15px; color: var(--tx2); }

/* --- Ghost Button Card ------------------------------------- */
.kg-button-card { text-align: center; margin-bottom: 24px; }
.kg-btn {
  display: inline-block;
  background: var(--t);
  color: var(--s);
  padding: 12px 24px;
  border-radius: var(--r4);
  font-weight: 600;
  font-size: 15px;
  transition: background .15s;
}
.kg-btn:hover { background: var(--td); }

/* --- Ghost Callout Card ------------------------------------ */
.kg-callout-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r8);
  margin-bottom: 24px;
  background: var(--tl);
  border-left: 3px solid var(--t);
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text { font-size: 16px; line-height: 1.6; color: var(--tx); }


@media (max-width: 768px) {
  .nav-center { display: none; }
  .post-content-wrap { padding: 32px 16px 0; }
  .blog-hero { padding: 56px 16px 48px; }
  .section-inner { padding: 0 16px; }
  .featured-card-body { padding: 24px; }
}

/* --- PAGE (static pages, no sidebar) ---------------------- */
.page-content-inner {
  max-width: var(--post-w);
  margin: 0 auto;
}

/* --- AUTHOR PAGE ------------------------------------------ */
.author-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.author-profile-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bdr);
}

.author-profile-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tl);
  color: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
  border: 2px solid var(--bdr);
}

.author-profile-info .tag-title { margin-bottom: 6px; }
