/* Blog frontend — extends new-design-2 tokens (--gold, --cream, --ink…) */

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-family: var(--display); font-size: .78rem; margin-bottom: 1.2rem;
  color: var(--on-dark-mute);
}
.crumbs a { color: var(--on-dark-mute); }
.crumbs a:hover { color: var(--gold); }
.crumbs i { font-size: .6rem; opacity: .6; }
.crumbs span { color: var(--gold); }

/* ---------------- listing hero ---------------- */
.blog-hero {
  background: linear-gradient(160deg, var(--ink-900), var(--ink-700));
  border-bottom: 1px solid var(--ink-line);
  padding: 130px 0 70px;
  position: relative; overflow: clip;
}
.blog-hero::after {
  content: ""; position: absolute; width: 460px; height: 460px;
  right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,138,0,.4), transparent 68%);
  filter: blur(90px); pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 2; }
.blog-hero h1 { color: #fff; margin-bottom: .8rem; }
.blog-hero-lead { color: var(--on-dark-mute); max-width: 640px; font-size: 1.02rem; margin: 0; }
@media (max-width: 767.98px) { .blog-hero { padding: 100px 0 52px; } }

/* ---------------- result bar ---------------- */
.blog-resultbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--cream-line); border-radius: 12px;
  padding: .85rem 1.1rem; margin-bottom: 1.6rem; font-size: .9rem; color: var(--on-light-mute);
}
.blog-resultbar b { color: var(--on-light); }
.blog-clear { font-size: .82rem; color: var(--gold-dk); white-space: nowrap; }

/* ---------------- post cards ---------------- */
.pcard {
  background: #fff; border: 1px solid var(--cream-line); border-radius: var(--r-md);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pcard:hover {
  transform: translateY(-6px); border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(119,72,0,.13);
}
/* The artwork has headlines baked into the image, so `cover` would slice words
   off. 35 of 40 sources are exactly 16:9, so this box fits them edge to edge;
   the few 2:1 ones letterbox onto #fdfcf5 — sampled from the artwork's own
   background — so the band is invisible rather than looking like a gap. */
.pcard-media {
  display: block; position: relative; aspect-ratio: 16 / 9;
  overflow: hidden; background: #fdfcf5;
}
.pcard-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .6s var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.06); }
/* Fallback for a post with no image: branded and deliberate, not a grey void. */
.pcard-noimg {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(140deg, #fff8ee, var(--cream-2));
  color: var(--gold); font-size: 1.8rem; opacity: .55;
}

.pcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }

/* Date and category sit together on one meta row, below the image. */
.pcard-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .5rem .7rem; margin-bottom: .6rem;
}
.pcard-date { font-size: .76rem; color: var(--on-light-mute); display: inline-flex; align-items: center; }
.pcard-date i { color: var(--gold); margin-right: .35rem; }
.pcard-cat {
  font-family: var(--display); font-size: .64rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-dk); background: #fff8ee;
  border: 1px solid var(--gold-line, #f3e3c9);
  padding: .25rem .65rem; border-radius: 30px;
  transition: all .28s var(--ease);
}
a.pcard-cat:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.pcard-title { font-size: 1.05rem; line-height: 1.4; margin-bottom: .6rem; }
.pcard-title a { color: var(--on-light); }
.pcard-title a:hover { color: var(--gold-dk); }
.pcard-body p { font-size: .87rem; color: var(--on-light-mute); margin-bottom: 1rem; }
.pcard-more {
  margin-top: auto; align-self: flex-start;
  font-family: var(--display); font-size: .78rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dk);
  display: inline-flex; align-items: center; gap: .45rem;
}
.pcard-more i { transition: transform .35s var(--ease); font-size: .7em; }
.pcard-more:hover i { transform: translateX(4px); }

/* ---------------- empty state ---------------- */
.blog-none {
  text-align: center; background: #fff; border: 1px dashed var(--cream-line);
  border-radius: var(--r-lg); padding: 60px 30px;
}
.blog-none i { font-size: 2.4rem; color: var(--gold); opacity: .5; }
.blog-none h3 { margin: 1rem 0 .4rem; }
.blog-none p { color: var(--on-light-mute); margin-bottom: 1.4rem; }

/* ---------------- pagination ---------------- */
.blog-pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2.6rem; }
.blog-pager a, .blog-pager .gap {
  min-width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--cream-line); border-radius: 10px; background: #fff;
  font-family: var(--display); font-size: .85rem; color: var(--on-light);
  transition: all .3s var(--ease); padding: 0 .5rem;
}
.blog-pager a:hover { border-color: var(--gold); color: var(--gold-dk); }
.blog-pager a.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.blog-pager .gap { border: 0; background: none; color: var(--on-light-mute); }

/* ---------------- sidebar ---------------- */
.sb-sticky { position: sticky; top: 100px; display: grid; gap: 18px; }
@media (max-width: 991.98px) { .sb-sticky { position: static; } }

.sb-box, .sb-doctor, .sb-cta {
  background: #fff; border: 1px solid var(--cream-line);
  border-radius: var(--r-md); padding: 22px;
}
.sb-head {
  font-family: var(--display); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dk);
  padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 1px solid var(--cream-line);
}

.sb-cats { display: grid; gap: .15rem; }
.sb-cats a {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .55rem .7rem; border-radius: 8px; font-size: .89rem; color: var(--on-light);
  transition: all .28s var(--ease);
}
.sb-cats a span {
  font-size: .74rem; background: var(--cream-2); color: var(--on-light-mute);
  border-radius: 20px; padding: .1rem .5rem; min-width: 26px; text-align: center;
}
.sb-cats a:hover { background: #fff8ee; color: var(--gold-dk); padding-left: 1rem; }
.sb-cats a.on { background: var(--gold); color: #fff; }
.sb-cats a.on span { background: rgba(255,255,255,.25); color: #fff; }

.sb-recent { display: grid; gap: .9rem; }
.sb-recent a { display: flex; gap: .75rem; align-items: flex-start; }
/* Same reasoning as the cards: contain, not cover, so nothing is sliced. */
.sb-recent img {
  width: 74px; height: 42px; object-fit: contain;
  background: var(--cream-2); border-radius: 6px; flex-shrink: 0;
}
.sb-recent b {
  display: block; font-family: var(--display); font-size: .85rem; font-weight: 500;
  line-height: 1.45; color: var(--on-light); transition: color .28s var(--ease);
}
.sb-recent a:hover b { color: var(--gold-dk); }
.sb-recent small { font-size: .72rem; color: var(--on-light-mute); }

.sb-doctor { text-align: center; }
.sb-doctor img {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover; object-position: top;
  margin: 0 auto .9rem; border: 3px solid var(--gold); background: var(--cream-2);
}
.sb-doctor h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.sb-doctor-role { font-size: .82rem; color: var(--on-light-mute); margin-bottom: 1rem; line-height: 1.6; }
.sb-doctor-chips { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.sb-doctor-chips span {
  font-family: var(--display); font-size: .68rem; border: 1px solid var(--gold);
  color: var(--gold-dk); background: #fff8ee; border-radius: 20px; padding: .25rem .6rem;
}

.sb-cta { background: linear-gradient(150deg, var(--ink-800), var(--ink-900)); border-color: var(--ink-line); }
.sb-cta h3 { color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.sb-cta p { color: var(--on-dark-mute); font-size: .85rem; margin-bottom: 1.1rem; }
.sb-cta-map { display: block; margin-top: .8rem; font-size: .8rem; color: var(--on-dark-mute); }
.sb-cta-map:hover { color: var(--gold); }

/* ---------------- post hero ---------------- */
.post-hero {
  background: linear-gradient(160deg, var(--ink-900), var(--ink-700));
  padding: 140px 0 70px; position: relative; overflow: clip;
  border-bottom: 1px solid var(--ink-line);
}
/* Soft brand glow instead of a photo, so the headline stays fully legible. */
.post-hero::after {
  content: ""; position: absolute; width: 460px; height: 460px;
  right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,138,0,.4), transparent 68%);
  filter: blur(90px); pointer-events: none;
}
.post-hero .container { position: relative; z-index: 2; }
.post-cat {
  display: inline-block; background: var(--gold); color: #1a1305;
  font-family: var(--display); font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 30px; margin-bottom: 1rem;
}
.post-title {
  font-family: var(--display); font-weight: 700; color: #fff;
  font-size: clamp(1.75rem, 3.6vw, 2.9rem); line-height: 1.15;
  letter-spacing: -.025em; max-width: 900px; margin-bottom: 1.1rem;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--on-dark-mute); font-size: .84rem; }
.post-meta i { color: var(--gold); margin-right: .35rem; }
@media (max-width: 767.98px) { .post-hero { padding: 110px 0 52px; } }

/* ---------------- TOC ---------------- */
.post-toc {
  background: #fff; border: 1px solid var(--cream-line);
  border-left: 4px solid var(--gold); border-radius: var(--r-md);
  padding: 6px 20px 6px; margin-bottom: 2rem;
}
.post-toc-head {
  width: 100%; background: none; border: 0; padding: 14px 0;
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--on-light);
}
.post-toc-head > i:first-child { color: var(--gold); }
.post-toc-count {
  font-size: .7rem; background: #fff8ee; border: 1px solid var(--gold);
  color: var(--gold-dk); border-radius: 20px; padding: .1rem .5rem;
}
.post-toc-caret { margin-left: auto; color: var(--gold); font-size: .75rem; transition: transform .35s var(--ease); }
.post-toc-list { max-height: 420px; overflow-y: auto; }
.post-toc-head[aria-expanded="false"] .post-toc-caret { transform: rotate(180deg); }
.post-toc-list { margin: 0 0 14px; padding: 0 0 0 1.1rem; display: grid; gap: .4rem; }
.post-toc-list[hidden] { display: none; }
.post-toc-list li { font-size: .88rem; }
.post-toc-list li.lvl-h3 { padding-left: 1rem; font-size: .84rem; }
.post-toc-list a { color: var(--on-light-mute); }
.post-toc-list a:hover { color: var(--gold-dk); }

/* ---------------- post content ---------------- */
.post-content { font-size: 1rem; line-height: 1.85; color: var(--on-light); }
.post-content > *:first-child { margin-top: 0; }
.post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--display); color: var(--on-light);
  margin: 2.2rem 0 .9rem; line-height: 1.3; scroll-margin-top: 100px;
}
.post-content h2 { font-size: 1.55rem; }
.post-content h3 { font-size: 1.22rem; }
.post-content h4 { font-size: 1.05rem; }
.post-content p { margin-bottom: 1.15rem; color: var(--on-light-mute); }
.post-content a { color: var(--gold-dk); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--gold); }
.post-content ul, .post-content ol { margin: 0 0 1.3rem; padding-left: 1.3rem; color: var(--on-light-mute); }
.post-content li { margin-bottom: .5rem; }
.post-content ul { list-style: none; padding-left: 0; }
.post-content ul li { position: relative; padding-left: 1.5rem; }
.post-content ul li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.post-content img { border-radius: var(--r-md); margin: 1.5rem 0; height: auto; }
.post-content blockquote {
  margin: 1.8rem 0; padding: 1.2rem 1.5rem;
  background: #fff8ee; border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0; font-size: 1.02rem; color: var(--on-light);
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content table {
  width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .92rem;
  background: #fff; border: 1px solid var(--cream-line); border-radius: 10px; overflow: hidden;
}
.post-content th, .post-content td { padding: .75rem .9rem; border-bottom: 1px solid var(--cream-line); text-align: left; }
.post-content th { background: #fff8ee; font-family: var(--display); font-weight: 600; color: var(--on-light); }
.post-content figure { margin: 1.5rem 0; }
/* wide content must scroll inside itself, never the page */
.post-content .table-wrap, .post-content pre { overflow-x: auto; }

/* ---------------- FAQ ---------------- */
.post-faq { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--cream-line); }
.post-faq h2 { font-size: 1.55rem; margin-bottom: 1.4rem; }
.faq-item { border: 1px solid var(--cream-line); border-radius: 12px; background: #fff; margin-bottom: .7rem; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  padding: 18px 20px; display: flex; align-items: center; gap: 1rem;
  font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--on-light);
}
.faq-q i { margin-left: auto; color: var(--gold); transition: transform .35s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q { color: var(--gold-dk); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a > div { padding: 0 20px 18px; color: var(--on-light-mute); font-size: .93rem; line-height: 1.8; }
.faq-list.all-open .faq-q { cursor: default; }
.faq-list.all-open .faq-q i { display: none; }

.post-backbar { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--cream-line); }

/* Section wrapper on light pages inherits new-design-2's .sec-light */
.blog-main, .post-main { padding: 70px 0 90px; }
@media (max-width: 767.98px) { .blog-main, .post-main { padding: 50px 0 70px; } }

/* ---------------- footer contact ----------------
   Flex items default to min-width:auto, so an unbreakable token (an email
   address) refuses to shrink and pushes past the column. */
.ftr-contact li { min-width: 0; }
.ftr-contact li a,
.ftr-contact li span { min-width: 0; overflow-wrap: anywhere; }

/* ---------------- 404 ---------------- */
.nf {
  min-height: 62vh; display: grid; place-items: center; text-align: center;
  background: var(--ink-900); padding: 120px 20px 80px;
}
.nf h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--gold); margin-bottom: .4rem; }
.nf p { color: var(--on-dark-mute); margin-bottom: 1.6rem; }

/* The post's featured image, shown once at the top of the article. Much of
   this artwork is a wide banner with text in it, so it is never cropped. */
.post-figure {
  margin: 0 0 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--cream-line);
  background: var(--cream-2);
}
.post-figure img { width: 100%; height: auto; display: block; }
