/*
Theme Name:  FreeGPACalculator Blog
Theme URI:   https://freegpacalculator.io/blog/
Author:      freegpacalculator.io
Author URI:  https://freegpacalculator.io
Description: Custom WordPress theme for freegpacalculator.io/blog/ — matches the static site design system exactly. Fraunces + Public Sans typography, teal/gold palette, dark-mode aware.
Version:     1.0.0
License:     Proprietary
Text Domain: fgc-blog
Tags:        custom-background, custom-logo, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — mirrors tokens.css from the static site exactly
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand colours */
  --teal:          #0F766E;
  --teal-dark:     #134E4A;
  --teal-deep:     #0D3D3A;
  --teal-ghost:    #F0FDFA;
  --gold:          #D97706;
  --gold-on-dark:  #FBBF24;

  /* Neutrals */
  --ink:           #0C1F1E;
  --ink-muted:     #5C7370;
  --paper:         #F8FAFB;
  --surface:       #FFFFFF;
  --rule:          #D1DBD9;

  /* Inputs */
  --input-bg:      #F4F8F7;
  --input-bd:      #B8CECC;
  --input-bd-focus:#0F766E;

  /* Semantic */
  --danger:        #DC2626;
  --danger-muted:  #FEF2F2;

  /* Typography */
  --font-display:  'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:     'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Consolas', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   0.6875rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-md:   1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  2.75rem;

  /* Line heights */
  --leading-tight:   1.07;
  --leading-snug:    1.25;
  --leading-normal:  1.55;
  --leading-relaxed: 1.65;

  /* Letter spacings */
  --tracking-tight:   -0.025em;
  --tracking-wide:     0.03em;
  --tracking-wider:    0.08em;

  /* Spacing (4pt grid) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;

  /* Layout */
  --wrap-max:  1160px;
  --wrap-pad:  28px;
  --nav-height:56px;

  /* Radius */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(13,61,58,.08), 0 1px 3px rgba(0,0,0,.05);
  --btn-shadow:  0 2px 8px rgba(15,118,110,.30);

  /* Transitions */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-sm: 120ms;
  --duration-md: 200ms;
}

/* Dark — system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal:         #2DD4C8;
    --teal-dark:    #14B8A6;
    --teal-deep:    #061413;
    --teal-ghost:   #0D2623;
    --gold:         #F59E0B;
    --gold-on-dark: #FBBF24;
    --ink:          #E2F4F2;
    --ink-muted:    #7AA8A4;
    --paper:        #0A1A19;
    --surface:      #0F2523;
    --rule:         #1A3330;
    --input-bg:     #0A1A19;
    --input-bd:     #1A3330;
    --input-bd-focus:#2DD4C8;
    --danger:       #F87171;
    --danger-muted: #1C0909;
    --shadow-card:  0 2px 12px rgba(0,0,0,.40), 0 1px 3px rgba(0,0,0,.20);
    --btn-shadow:   0 2px 8px rgba(45,212,200,.20);
  }
}

/* Dark — explicit toggle */
:root[data-theme="dark"] {
  --teal:         #2DD4C8;
  --teal-dark:    #14B8A6;
  --teal-deep:    #061413;
  --teal-ghost:   #0D2623;
  --gold:         #F59E0B;
  --gold-on-dark: #FBBF24;
  --ink:          #E2F4F2;
  --ink-muted:    #7AA8A4;
  --paper:        #0A1A19;
  --surface:      #0F2523;
  --rule:         #1A3330;
  --input-bg:     #0A1A19;
  --input-bd:     #1A3330;
  --input-bd-focus:#2DD4C8;
  --danger:       #F87171;
  --danger-muted: #1C0909;
  --shadow-card:  0 2px 12px rgba(0,0,0,.40), 0 1px 3px rgba(0,0,0,.20);
  --btn-shadow:   0 2px 8px rgba(45,212,200,.20);
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: var(--leading-tight); }

/* WP resets */
.wp-block-image { margin: var(--space-8) 0; }
figure { margin: 0; }
img { height: auto; }


/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}
.wrap-narrow {
  max-width: 740px;
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 860px) { :root { --wrap-pad: 20px; } }
@media (max-width: 480px) { :root { --wrap-pad: 16px; } }


/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION — exact mirror of static site
   ═══════════════════════════════════════════════════════════════════════════ */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-8);
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark__icon { flex-shrink: 0; display: block; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--duration-sm) var(--ease-out),
              background var(--duration-sm) var(--ease-out);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--teal-ghost); }
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--teal);
  font-weight: 700;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  padding: 4px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-hamburger:focus-visible { outline: var(--focus-ring, 2px solid var(--teal)); }
.nav-hamburger__bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--duration-md) var(--ease-out),
              opacity var(--duration-sm) ease;
}
[aria-expanded="true"] .nav-hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .nav-hamburger__bar:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .nav-hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-hamburger { display: flex; }
  #nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-4) var(--wrap-pad) var(--space-6);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }
  #nav-menu.nav-open { display: block; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .nav-links a { width: 100%; font-size: var(--text-base); padding: var(--space-3) var(--space-2); }
  .nav-body-lock { overflow: hidden; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER — exact mirror of static site
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--teal-deep);
  color: var(--gold-on-dark);
  padding-block: var(--space-14) var(--space-10);
  margin-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: rgba(255,255,255,.45);
  margin-bottom: var(--space-4);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.70);
  text-decoration: none;
  transition: color var(--duration-sm) var(--ease-out);
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.footer-copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.50);
}
.footer-copy a { color: rgba(255,255,255,.70); }
.footer-copy a:hover { color: #fff; }

.footer-tagline {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
}
.footer-tagline a { color: rgba(255,255,255,.50); }
.footer-tagline a:hover { color: rgba(255,255,255,.80); }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.60);
  text-decoration: none;
  transition: background var(--duration-sm) var(--ease-out),
              border-color var(--duration-sm) var(--ease-out),
              color var(--duration-sm) var(--ease-out);
}
.share-bar__icon svg { width: 13px; height: 13px; }
.share-bar__icon:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.50);
  color: #fff;
  text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS + EYEBROW/KICKER LABELS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  text-decoration: none;
  transition: background var(--duration-sm) var(--ease-out),
              border-color var(--duration-sm) var(--ease-out),
              color var(--duration-sm) var(--ease-out),
              box-shadow var(--duration-sm) var(--ease-out);
}
.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--btn-shadow);
}
.btn--primary:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.btn--secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--secondary:hover { background: var(--teal-ghost); text-decoration: none; }

.eyebrow, .kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--teal);
}


/* ═══════════════════════════════════════════════════════════════════════════
   BLOG HOMEPAGE (index.php) — post card grid
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-hero {
  background: #0F766E;
  padding-block: var(--space-14) var(--space-10);
}

.blog-hero .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-wrap: balance;
  margin-top: var(--space-3);
  color: #ffffff;
}

.blog-hero__desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  max-width: 58ch;
  margin-top: var(--space-5);
  line-height: var(--leading-normal);
}

/* Featured post (first post, large card) */
.blog-featured {
  padding-block: var(--space-12) var(--space-10);
  border-bottom: 1px solid var(--rule);
}

.blog-featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 860px) {
  .blog-featured__inner { grid-template-columns: 1fr; }
}

.blog-featured__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--teal-ghost);
}
.blog-featured__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.post-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-3);
  background: var(--teal-ghost);
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
  text-decoration: none;
}
.post-category-tag:hover { background: var(--teal); color: #fff; text-decoration: none; }

.blog-featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}
.blog-featured__title a { color: var(--ink); text-decoration: none; }
.blog-featured__title a:hover { color: var(--teal); }

.blog-featured__excerpt {
  color: var(--ink-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

/* Post grid — remaining posts */
.blog-grid-section {
  padding-block: var(--space-10) var(--space-14);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.post-card {
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-sm) var(--ease-out),
              border-color var(--duration-sm) var(--ease-out);
}
.post-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--teal);
}

.post-card__thumb {
  aspect-ratio: 16/9;
  background: var(--teal-ghost);
  overflow: hidden;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-snug);
}
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--teal); }

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.post-card__footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--rule);
}
.post-card__read-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.post-card__read-link:hover { text-decoration: underline; }

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-block: var(--space-10);
  border-top: 1px solid var(--rule);
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding-inline: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-sm) var(--ease-out);
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  text-decoration: none;
}
.blog-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE POST (single.php)
   ═══════════════════════════════════════════════════════════════════════════ */

.post-header {
  padding-block: var(--space-14) var(--space-10);
  border-bottom: 1px solid var(--rule);
}

.post-header__cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.post-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: var(--leading-snug);
  text-wrap: balance;
  max-width: 22ch;
  margin-bottom: var(--space-6);
}

.post-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}

.post-byline__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  color: var(--ink);
}

.post-byline__avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.post-byline__sep {
  color: var(--rule);
  font-size: 1.2em;
}

.post-byline__reading-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Featured image */
.post-featured-image {
  margin-block: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}
.post-featured-image img {
  width: 100%;
  object-fit: cover;
  max-height: 480px;
}

/* Post content typography */
.post-content {
  padding-block: var(--space-10);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: var(--leading-snug);
  margin-top: var(--space-14);
  margin-bottom: var(--space-5);
  color: var(--ink);
}
.post-content h2:first-child { margin-top: 0; }

.post-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--ink);
}

.post-content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.post-content p {
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
  font-size: var(--text-md);
  max-width: 72ch;
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
  line-height: var(--leading-relaxed);
  max-width: 68ch;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: var(--space-2); }
.post-content li + li { margin-top: 0; }

.post-content a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover { color: var(--teal-dark); }

.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; }

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--teal-ghost);
  color: var(--teal-dark);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

.post-content pre {
  background: var(--teal-deep);
  color: #e2f4f2;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}
.post-content pre code { background: none; color: inherit; padding: 0; }

.post-content blockquote {
  border-left: 3px solid var(--teal);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--teal-ghost);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.post-content blockquote p { color: var(--teal-dark); font-style: italic; margin: 0; max-width: none; }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  overflow-x: auto;
  display: block;
}
.post-content table thead { background: var(--teal-deep); color: #fff; }
.post-content table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.post-content table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule);
}
.post-content table tbody tr:hover { background: var(--teal-ghost); }

.post-content img {
  border-radius: var(--radius-md);
  margin-block: var(--space-6);
  box-shadow: var(--shadow-card);
}

.post-content figure { margin-block: var(--space-8); }
.post-content figcaption {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  text-align: center;
  margin-top: var(--space-2);
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin-block: var(--space-10);
}

/* Post footer: tags */
.post-tags-section {
  padding-block: var(--space-8);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.post-tags-section__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
  padding-top: 3px;
}
.post-tags-section__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-3);
  background: var(--teal-ghost);
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--rule);
}
.post-tag:hover { background: var(--teal); color: #fff; border-color: var(--teal); text-decoration: none; }

/* Related posts */
.related-posts {
  padding-block: var(--space-12);
  border-top: 1px solid var(--rule);
}

.related-posts__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-8);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

/* WP-specific overrides */
.alignleft  { float: left;  margin: var(--space-4) var(--space-6) var(--space-4) 0; }
.alignright { float: right; margin: var(--space-4) 0 var(--space-4) var(--space-6); }
.aligncenter { margin-inline: auto; text-align: center; }
.wp-caption-text { font-size: var(--text-sm); color: var(--ink-muted); text-align: center; }

/* Comments */
.comments-area {
  padding-block: var(--space-10);
  border-top: 1px solid var(--rule);
  max-width: 740px;
}
.comments-area h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-8);
}
.comment-body { padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); }
.comment-meta { font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: var(--space-3); }
.comment-author b { font-weight: 700; color: var(--ink); }
.comment-content p { font-size: var(--text-base); line-height: var(--leading-relaxed); margin-bottom: var(--space-3); }

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--input-bd);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--ink);
  margin-top: var(--space-2);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--input-bd-focus); }
.comment-form .form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-base);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  margin-top: var(--space-4);
}
.comment-form .form-submit .submit:hover { background: var(--teal-dark); }

/* No-posts placeholder */
.blog-no-posts {
  padding-block: var(--space-20);
  text-align: center;
  color: var(--ink-muted);
  font-size: var(--text-lg);
}
