/* Blog styles. Loaded after site.css on /blog pages only. Cream + pine, same fonts as the rest of the site. */
.blog-body { background: var(--cream); color: var(--ink); }
.blog-body .doc-head { position: static; }
.post-wrap { max-width: 44rem; margin: 0 auto; padding: 1.2rem 1.25rem 3rem; }
.blog-index.post-wrap { max-width: 62rem; }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .5rem; font-size: .82rem; font-weight: 700; color: #50614f; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--gold); }
.crumbs a { color: var(--cranberry); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li[aria-current] { color: #50614f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.post-head, .index-head { margin-top: 1.1rem; }
.post-head .kicker, .index-head .kicker { color: var(--cranberry); }
.post h1, .index-head h1 { margin-top: .35rem; font-size: clamp(1.9rem, 6.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.02em; color: var(--pine); }
.post-lede { margin-top: .8rem; font-size: 1.12rem; line-height: 1.5; color: #2f4238; }
.post-meta { margin-top: .8rem; font-size: .88rem; font-weight: 700; color: #50614f; }

.toc { margin: 1.6rem 0 0; padding: 1rem 1.15rem 1.05rem; background: var(--parch); border: 1px solid rgba(16,61,44,.14); border-left: 4px solid var(--gold); border-radius: 12px; }
.toc-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--pine); }
.toc ol { margin: .5rem 0 0; padding-left: 1.25rem; }
.toc li { margin-top: .3rem; font-weight: 700; color: #2f4238; }
.toc a { color: var(--pine); text-decoration-color: var(--gold); text-underline-offset: 3px; }

.post-body { margin-top: 1.5rem; font-size: 1.06rem; line-height: 1.7; color: #26382f; }
.post-body > :first-child { margin-top: 0; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body figure, .post-body table { margin-top: 1rem; }
.post-body h2 { margin-top: 2.2rem; font-size: clamp(1.45rem, 4.6vw, 1.8rem); line-height: 1.2; color: var(--pine); scroll-margin-top: 1rem; text-align: left; }
.post-body h3 { margin-top: 1.7rem; font-size: 1.22rem; line-height: 1.25; color: var(--pine); scroll-margin-top: 1rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; }
.post-body li { margin-top: .45rem; }
.post-body li::marker { color: var(--cranberry); }
.post-body a, .post-faq a { color: var(--cranberry); font-weight: 700; text-underline-offset: 3px; }
.post-body strong { color: var(--pine); }
.post-body blockquote { margin-left: 0; padding: .2rem 0 .2rem 1rem; border-left: 4px solid var(--gold); color: #3a4d43; font-style: italic; }
.post-body img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin-top: 1.2rem; }
.post-body hr { margin: 2rem 0; border: 0; border-top: 1px solid rgba(16,61,44,.18); }
.post-body table { width: 100%; border-collapse: collapse; font-size: .96rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid rgba(16,61,44,.14); }
.post-body th { color: var(--pine); font-weight: 800; }
.post-body code { font-size: .92em; background: var(--parch); padding: .1rem .3rem; border-radius: 4px; }

.post-faq { margin-top: 2.4rem; padding-top: .4rem; border-top: 1px solid rgba(16,61,44,.18); }
.post-faq h2 { margin-top: 1.4rem; font-size: clamp(1.45rem, 4.6vw, 1.8rem); color: var(--pine); text-align: left; }
.faq-item { margin-top: 1.1rem; }
.faq-item h3 { font-size: 1.1rem; line-height: 1.3; color: var(--pine); }
.faq-item p { margin-top: .35rem; line-height: 1.65; color: #26382f; }

.blog-cta { margin-top: 2.6rem; padding: 1.5rem 1.3rem 1.4rem; border-radius: 18px; text-align: center; color: #fff; background: var(--cranberry); border: 2px solid var(--gold); box-shadow: inset 0 0 0 4px var(--cranberry), inset 0 0 0 5px rgba(212,171,97,.45), 0 14px 30px -18px rgba(0,0,0,.6); }
.blog-cta-kicker { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.blog-cta h2 { margin-top: .3rem; font-size: 1.7rem; line-height: 1.15; color: #fff; text-align: center; }
.blog-cta p { margin-top: .5rem; color: #fff; line-height: 1.5; }
.blog-cta .btn { margin-top: 1rem; background: var(--cream); color: var(--cranberry-d); }
.blog-cta .btn:hover { background: #fff; }
.blog-cta .blog-cta-note { margin-top: .9rem; font-size: .82rem; color: rgba(255,248,237,.9); }

.related { margin-top: 2.6rem; }
.related h2, .coming-soon h2 { font-size: 1.5rem; color: var(--pine); text-align: left; }
.card-grid { display: grid; gap: 1rem; margin-top: 1.1rem; grid-template-columns: 1fr; }
.post-card { background: #fff; border: 1px solid rgba(16,61,44,.14); border-top: 3px solid var(--gold); border-radius: 14px; }
.post-card-link { display: block; height: 100%; padding: 1.05rem 1.15rem 1.1rem; color: inherit; text-decoration: none; border-radius: 14px; }
.post-card-link:hover h3, .post-card-link:focus-visible h3 { color: var(--cranberry); }
.post-card-tag { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cranberry); }
.post-card h3 { margin-top: .3rem; font-size: 1.2rem; line-height: 1.22; color: var(--pine); }
.post-card-desc { margin-top: .45rem; font-size: .96rem; line-height: 1.5; color: #3a4d43; }
.post-card-meta { margin-top: .6rem; font-size: .82rem; font-weight: 700; color: #50614f; }
.index-head { margin-bottom: 1.6rem; }
.coming-soon { margin-top: 1rem; padding: 1.6rem 1.3rem; background: var(--parch); border: 1px solid rgba(16,61,44,.14); border-radius: 16px; text-align: left; }
.coming-soon p { margin-top: .5rem; color: #2f4238; }
.coming-soon .btn { margin-top: 1rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.8rem; font-weight: 700; color: #50614f; }
.pager a { color: var(--cranberry); }

.draft-banner { padding: .55rem 1rem; text-align: center; font-size: .85rem; font-weight: 800; background: #fff1b8; color: #5a4300; border-bottom: 1px solid #e0c96a; }
.draft-chip { display: inline-block; padding: .05rem .4rem; border-radius: .3rem; background: #fff1b8; color: #5a4300; font: 800 .7rem var(--sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

@media (min-width: 720px) {
  .post-wrap { padding: 1.6rem 1.5rem 4rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-index .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .blog-index .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-hero { margin: 1.4rem 0 0; }
.post-hero picture, .post-hero img, .post-figure picture, .post-figure img, .post-card-thumb picture, .post-card-thumb img {
  display: block; width: 100%; height: auto;
}
.post-hero img, .post-card-thumb img {
  border-radius: 14px; border: 1px solid rgba(16,61,44,.14);
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--parch);
}
.post-card-thumb img { border-radius: 14px 14px 0 0; border: 0; border-bottom: 1px solid rgba(16,61,44,.1); }
.post-figure { margin: 1.5rem 0 0; }
.post-figure img { border-radius: 14px; border: 1px solid rgba(16,61,44,.14); background: var(--parch); }
.post-figure figcaption, .blog-video figcaption {
  margin-top: .5rem; font-size: .88rem; line-height: 1.45; color: #50614f; font-weight: 700;
}

.post-card-link { padding: 0; }
.post-card-body { padding: 1.05rem 1.15rem 1.1rem; }

.blog-video { margin: 1.6rem 0 0; }
.blog-video-player {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 16px 36px -20px rgba(0,0,0,.55);
  border: 1px solid rgba(16,61,44,.14);
  aspect-ratio: 16 / 9;
}
.blog-video-player video,
.blog-video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.blog-video-poster { object-fit: cover; }
.blog-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  color: #fff;
}
.blog-video-play-icon {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: var(--cranberry);
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.65);
  box-sizing: border-box;
  border: 3px solid rgba(255,248,237,.9);
  position: relative;
}
.blog-video-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: .7rem 0 .7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}
.blog-video-play-label {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.blog-video-play:hover .blog-video-play-icon,
.blog-video-play:focus-visible .blog-video-play-icon { transform: scale(1.06); background: var(--cranberry-d); }
.blog-video-play:focus-visible { outline: none; }
.blog-video-play:focus-visible .blog-video-play-icon { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold); }
.blog-video-player.is-playing .blog-video-play,
.blog-video-player.is-playing .blog-video-poster { display: none; }
.blog-video-player iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
@media (max-width: 899px) {
  .blog-video-play-icon { width: 4rem; height: 4rem; }
}
