/* ============================================================
   BLOG — single.php + archive.php
   Covers: post hero, article body, author bio,
           related posts, archive grid, pagination.
   Global styles (nav, buttons, footer) live in global.css.
   ============================================================ */

/* ── POST HERO ───────────────────────────────────────────── */
.post-hero {
  background: var(--navy);
  padding: clamp(110px, 16vh, 160px) 0 clamp(56px, 8vw, 88px);
  position: relative;
  overflow: hidden;
}
.post-hero-atm {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 80% 30%, rgba(45,107,116,.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 10% 75%, rgba(125,31,46,.10) 0%, transparent 55%);
}
.post-hero-gt {
  position: absolute; inset: 0; pointer-events: none; opacity: .02;
  background-image:
    linear-gradient(rgba(201,168,76,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,1) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}
.post-hero-orb-1 { width:440px; height:440px; top:-100px; right:-80px;  animation: floatA 14s ease-in-out infinite; }
.post-hero-orb-2 { width:240px; height:240px; bottom:-60px; left:-60px; animation: pulseRing 10s ease-in-out infinite 3s; }

.post-hero-inner {
  position: relative; z-index: 2;
  max-width: 800px;
  padding: 0 clamp(20px, 5vw, 64px);
  margin: 0 auto;
}

/* Category eyebrow */
.post-cat-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.post-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); transition: color .2s;
}
.post-cat::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}
.post-cat:hover                { color: var(--gold-lt); }
.post-tax-pill {
  display: inline-block;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(201,168,76,.2);
  color: rgba(201,168,76,.55);
  transition: border-color .2s, color .2s;
}
.post-tax-pill:hover            { border-color: rgba(201,168,76,.5); color: var(--gold-lt); }

/* Post title */
.post-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 400; line-height: 1.1; color: #fff;
  margin-bottom: 24px;
  animation: riseIn .95s cubic-bezier(.22,1,.36,1) .2s both;
}
.post-hero h1 em               { color: var(--gold); font-style: italic; }

/* Excerpt / deck */
.post-deck {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,.5);
  line-height: 1.88; max-width: 640px;
  margin-bottom: 32px;
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) .35s both;
}

/* Author + meta row */
.post-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) .5s both;
}
.post-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(201,168,76,.3);
  object-fit: cover; flex-shrink: 0;
}
.post-avatar-fallback {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(201,168,76,.1);
  border: 2px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; color: var(--gold);
  flex-shrink: 0;
}
.post-meta-text              { display: flex; flex-direction: column; gap: 3px; }
.post-author-name {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: .06em; color: rgba(255,255,255,.75);
}
.post-date-read {
  font-size: 0.72rem; color: rgba(255,255,255,.35);
  letter-spacing: .06em;
}
.post-date-read span           { margin: 0 6px; opacity: .4; }

/* ── FEATURED IMAGE ──────────────────────────────────────── */
.post-featured-img-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  margin-top: -clamp(24px, 5vw, 48px);
  position: relative; z-index: 3;
}
.post-featured-img-wrap img {
  width: 100%; height: auto;
  display: block;
  aspect-ratio: 16/7;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,.1);
}
.post-featured-caption {
  font-size: 0.78rem; color: var(--text-lt);
  font-style: italic; margin-top: 10px;
  padding: 0 4px;
}

/* ── ARTICLE BODY ────────────────────────────────────────── */
.post-body-wrap {
  max-width: 800px;
  margin: clamp(48px, 7vw, 80px) auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.post-content {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-md);
  line-height: 1.92;
}
.post-content p                { margin-bottom: 1.6em; }
.post-content p:last-child     { margin-bottom: 0; }

.post-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 400; color: var(--navy);
  line-height: 1.18; margin: 2em 0 .75em;
}
.post-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 400; color: var(--navy);
  line-height: 1.2; margin: 1.75em 0 .6em;
}
.post-content h4 {
  font-size: 1rem; font-weight: 600;
  letter-spacing: .04em; color: var(--navy);
  margin: 1.5em 0 .5em;
}
.post-content ul,
.post-content ol {
  padding-left: 1.5em; margin-bottom: 1.6em;
}
.post-content li               { margin-bottom: .5em; line-height: 1.75; }
.post-content a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(45,107,116,.3);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.post-content a:hover          { color: var(--navy); text-decoration-color: var(--navy); }
.post-content strong           { font-weight: 600; color: var(--navy); }
.post-content em               { font-style: italic; color: var(--text); }

/* Pull quote / blockquote */
.post-content blockquote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic; color: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 18px 0 18px 28px;
  margin: 2em 0; line-height: 1.55;
}
.post-content blockquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem; font-style: normal;
  font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-lt);
  margin-top: 12px;
}
.post-content figure           { margin: 2em 0; }
.post-content figcaption {
  font-size: 0.82rem; color: var(--text-lt);
  font-style: italic; margin-top: 8px;
  text-align: center;
}
.post-content img {
  max-width: 100%; height: auto; display: block;
  border: 1px solid var(--rule);
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
}

/* ── TAGS ROW ────────────────────────────────────────────── */
.post-tags-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.post-tags-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-lt); margin-right: 4px;
}
.post-tag-link {
  display: inline-block;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid var(--rule);
  color: var(--text-md);
  transition: border-color .2s, color .2s, background .2s;
}
.post-tag-link:hover           { border-color: var(--navy); color: var(--navy); background: var(--cream); }

/* ── SHARE ROW ───────────────────────────────────────────── */
.post-share-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.post-share-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-lt);
}
.post-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; font-size: 0.72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--text-md);
  transition: all .2s; cursor: pointer;
}
.post-share-btn:hover          { background: var(--navy); border-color: var(--navy); color: var(--gold); }

/* ── AUTHOR BIO ──────────────────────────────────────────── */
.post-author-bio {
  max-width: 800px;
  margin: 0 auto clamp(48px, 7vw, 80px);
  padding: 0 clamp(20px, 5vw, 64px);
}
.post-author-bio-inner {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.post-bio-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid rgba(201,168,76,.3);
  object-fit: cover;
}
.post-bio-avatar-fallback {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--navy); border: 2px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.8rem; color: var(--gold);
}
.post-bio-label {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dk); margin-bottom: 6px;
}
.post-bio-name {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400; color: var(--navy);
  margin-bottom: 12px; line-height: 1.15;
}
.post-bio-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-md); line-height: 1.82;
  margin-bottom: 16px;
}
.post-bio-links               { display: flex; flex-wrap: wrap; gap: 10px; }
.post-bio-link {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); transition: color .2s;
}
.post-bio-link:hover           { color: var(--navy); }

/* ── RELATED POSTS ───────────────────────────────────────── */
.post-related {
  background: var(--cream);
  padding: clamp(64px, 9vw, 100px) 0;
  border-top: 1px solid var(--rule);
}
.post-related-sh {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.post-related-sh h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400; color: var(--navy); margin-top: 12px;
}
.related-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

/* ── POST CARD (used in related + archive) ───────────────── */
.post-card {
  background: #fff;
  display: flex; flex-direction: column;
  border-bottom: 3px solid transparent;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13,27,42,.08);
  border-bottom-color: var(--gold);
}
.post-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  background: var(--navy);
  transition: transform .4s;
}
.post-card:hover .post-card-img { transform: scale(1.03); }
.post-card-img-wrap            { overflow: hidden; }

.post-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(145deg, var(--navy-md) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 0.85rem;
  color: rgba(201,168,76,.2); letter-spacing: .15em;
  text-transform: uppercase;
}
.post-card-body {
  padding: clamp(20px, 3vw, 32px);
  display: flex; flex-direction: column; flex: 1;
}
.post-card-cat {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 10px;
}
.post-card-title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 400; color: var(--navy);
  line-height: 1.22; margin-bottom: 12px;
  transition: color .2s;
}
.post-card:hover .post-card-title { color: var(--burg); }
.post-card-excerpt {
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  color: var(--text-md); line-height: 1.75;
  flex: 1; margin-bottom: 20px;
  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; flex-wrap: wrap; gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--rule);
  margin-top: auto;
}
.post-card-date {
  font-size: 0.72rem; color: var(--text-lt);
  letter-spacing: .04em;
}
.post-card-read-more {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); transition: color .2s;
}
.post-card:hover .post-card-read-more { color: var(--navy); }

/* Category colour accents */
.cat-color-gold   { color: var(--gold-dk); }
.cat-color-burg   { color: var(--burg); }
.cat-color-teal   { color: var(--teal); }
.cat-color-navy   { color: var(--navy); }

/* ── ARCHIVE HERO ────────────────────────────────────────── */
.archive-hero {
  background: var(--navy);
  padding: clamp(110px,16vh,160px) 0 clamp(56px,8vw,88px);
  position: relative; overflow: hidden;
  text-align: center;
}
.archive-hero-atm {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,168,76,.05) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 85% 80%, rgba(45,107,116,.12) 0%, transparent 55%);
}
.archive-hero-orb-1 { width:400px; height:400px; top:-100px; right:-80px;   animation: floatA 14s ease-in-out infinite; }
.archive-hero-orb-2 { width:220px; height:220px; bottom:-60px; left:-60px;  animation: pulseRing 10s ease-in-out infinite 3s; }
.archive-hero-inner {
  position: relative; z-index: 2;
  padding: 0 clamp(20px, 5vw, 64px);
  max-width: 640px; margin: 0 auto;
}
.archive-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400; color: #fff; line-height: 1.12;
  margin-top: 14px; margin-bottom: 16px;
  animation: riseIn .95s cubic-bezier(.22,1,.36,1) .2s both;
}
.archive-hero h1 em            { color: var(--gold); font-style: italic; }
.archive-hero p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,.45); line-height: 1.82;
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) .35s both;
}

/* ── ARCHIVE GRID SECTION ────────────────────────────────── */
.archive-posts {
  background: var(--warm);
  padding: clamp(64px, 9vw, 100px) 0;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(48px, 7vw, 72px);
}

/* ── PAGINATION ──────────────────────────────────────────── */
.post-pagination,
.archive-pagination {
  display: flex; justify-content: center;
  align-items: center; flex-wrap: wrap; gap: 8px;
}
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: .06em; color: var(--text-md);
  border: 1px solid var(--rule);
  transition: all .2s;
}
.page-numbers:hover             { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.page-numbers.current           { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.page-numbers.dots              { border-color: transparent; cursor: default; }
.page-numbers.prev,
.page-numbers.next              { width: auto; padding: 0 20px; letter-spacing: .1em; text-transform: uppercase; font-size: 0.72rem; }

/* ── IN-POST PAGINATION ──────────────────────────────────── */
.post-page-links {
  margin: 2em 0;
  font-size: 0.875rem;
  color: var(--text-lt);
}
.post-page-links a             { color: var(--teal); margin: 0 4px; }

/* ── BLOG CLOSE CTA ──────────────────────────────────────── */
.blog-cta {
  background: var(--navy);
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 64px);
  text-align: center; position: relative; overflow: hidden;
}
.blog-cta-orb-1 { width:400px; height:400px; top:-80px; right:-80px;    animation: floatA 16s ease-in-out infinite; }
.blog-cta-orb-2 { width:240px; height:240px; bottom:-60px; left:-60px;  animation: floatB 13s ease-in-out infinite 3s; }
.blog-cta-in {
  max-width: 640px; margin: 0 auto;
  position: relative; z-index: 1;
}
.blog-cta-in h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: #fff; line-height: 1.15; margin-bottom: 16px;
}
.blog-cta-in h2 em             { color: var(--gold); font-style: italic; }
.blog-cta-in p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,.45); line-height: 1.82;
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* ── RESPONSIVE: TABLET 960px ───────────────────────────── */
@media (max-width: 960px) {
  .related-g      { grid-template-columns: 1fr 1fr; }
  .archive-grid   { grid-template-columns: 1fr 1fr; }
  .post-author-bio-inner { grid-template-columns: 60px 1fr; }
  .post-bio-avatar,
  .post-bio-avatar-fallback { width: 60px; height: 60px; }
}

/* ── RESPONSIVE: MOBILE 640px ───────────────────────────── */
@media (max-width: 640px) {
  .post-hero h1   { font-size: 1.9rem; }
  .related-g      { grid-template-columns: 1fr; }
  .archive-grid   { grid-template-columns: 1fr; }
  .post-author-bio-inner { grid-template-columns: 1fr; }
  .post-featured-img-wrap img { aspect-ratio: 16/9; }
  .post-meta-row  { gap: 12px; }
  .post-share-row { flex-direction: column; align-items: flex-start; }
}

/* ── TOUCH DEVICES ───────────────────────────────────────── */
@media (hover: none) {
  .post-card:hover { transform: none; }
  .post-card-img   { transform: none !important; }
}