:root {
  --post-accent: #4840a8;
  --post-dark: #302658;
  --post-tint: #f0ebff;
}

.blog-page main { padding-block: 0 clamp(38px, 7vw, 88px); }
.post-crumb { margin-block: 15px 20px; color: var(--muted); }
.post-crumb ol { display: flex; flex-wrap: wrap; gap: .3em .6em; padding: 0; margin: 0; list-style: none; }
.post-crumb li + li::before { content: "/"; margin-inline-end: .6em; }
.post-crumb a { text-decoration: underline; text-underline-offset: .2em; }
.blog-index-head {
  padding: clamp(20px, 5vw, 52px); margin-block: 0 25px; border-radius: 30px;
  background: #eae5ff; border: 1px solid #dcd3ff; box-shadow: var(--card-shadow);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.blog-index-head h1, .post-header h1 { font-size: clamp(2.2rem,4.25vw,3.8rem); letter-spacing: -.047em; line-height: 1.1; }
.blog-index-head p, .post-head-copy p { margin: 13px 0 0; max-width: 49ch; font-size: 1.11rem; color: var(--muted); }
.blog-index-head .button { flex: 0 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.blog-card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0;
  background: #fff; border: 1px solid #e8e4f6; border-radius: 23px; box-shadow: var(--card-shadow);
}
.blog-card > a { display: block; overflow: hidden; }
.blog-card img {
  display: block; width: 100%; aspect-ratio: 1.62; height: auto; object-fit: cover;
  object-position: var(--photo-position, center); transition: scale .28s ease;
}
.blog-card-copy { display: grid; justify-items: start; padding: 20px; gap: 9px; }
.blog-card-copy h2 { font-size: clamp(1.25rem,2.1vw,1.71rem); }
.blog-card-copy p { color: var(--muted); margin: 0; }
.post-icon {
  display: inline-grid; place-items: center; min-width: 45px; min-height: 43px; padding: 5px;
  border-radius: 13px; font-size: 1.45rem; color: var(--post-accent);
  background: color-mix(in srgb, var(--post-tint) 83%, white);
}
.post-header {
  display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr);
  align-items: stretch; overflow: hidden; margin-bottom: 30px; border-radius: 30px;
  background: var(--post-tint); box-shadow: var(--card-shadow);
}
.post-head-copy { padding: clamp(19px,4.35vw,50px); }
.post-head-copy .post-icon { margin-bottom: 11px; }
.post-head-copy .button { margin-top: 20px; gap: .6em; }
.post-figure { margin: 24px auto 31px; min-width: 0; }
.post-figure img { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: 0 6px 21px #20163815; }
.post-cover { height: 100%; width: 100%; margin: 0; }
.post-cover img {
  border-radius: 0; height: 100%; min-height: 330px; object-fit: cover;
  object-position: var(--photo-position, center); box-shadow: none;
}
.post-figure figcaption { margin-top: 9px; color: var(--muted); text-align: center; }
.post-cover .photo-credit {
  display: block; margin: 0; padding-block-start: 9px; text-align: start;
  line-height: 1.45; color: var(--muted);
}
.photo-credit a {
  color: inherit; text-decoration: underline; text-underline-offset: .2em;
}
.blog-card .blog-photo-credit {
  grid-column: 1 / -1; margin: 0; padding: 9px 13px;
  background: #f7f3ff; border-top: 1px solid #e8e4f6; color: var(--muted);
}
.post-diagram { max-width: 730px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(228px, .34fr); gap: clamp(22px,6vw,67px); align-items: start; }
.post-content { min-width: 0; width: 100%; padding-inline: clamp(1px,1vw,12px); overflow-wrap: anywhere; }
.post-content p { line-height: 1.76; margin-block: .9rem 1.05rem; }
.post-content p a, .post-sources a { color: var(--post-accent); text-decoration: underline; text-underline-offset: .2em; }
.post-content .post-intro { font-size: clamp(1.13rem,2vw,1.32rem); line-height: 1.67; margin-top: 2px; color: #333450; }
.post-section { scroll-margin-block: 20px; margin-block: clamp(26px,5vw,47px); }
.post-section h2, .post-related h2, .post-cta h2, .post-sources h2 { font-size: clamp(1.45rem,3vw,2.45rem); }
.post-toc {
  position: sticky; top: 17px; display: grid; gap: 9px; padding: 18px;
  border: 1px solid #e5dfef; border-radius: 20px; background: #fff; box-shadow: var(--card-shadow);
}
.post-toc h2 { font-size: 1.14rem; }
.post-toc a { line-height: 1.35; color: var(--post-accent); }
.post-cta {
  margin-block: 25px; padding: clamp(14px,3.8vw,26px);
  display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: start; gap: 10px 15px;
  color: #fff; background: var(--post-dark); border-radius: 23px; box-shadow: var(--card-shadow);
}
.post-cta p { margin: 5px 0 0; }
.post-cta .button { grid-column: 2; justify-self: start; gap: 10px; background: white; color: var(--post-dark); }
.post-related { margin-top: 25px; padding: 20px; border-radius: 20px; background: var(--post-tint); }
.post-related ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; list-style: none; padding: 0; }
.post-related a { display: flex; gap: 9px; align-items: center; padding: 8px; color: var(--post-dark); text-decoration: underline; text-underline-offset: .2em; }
.post-related a span { color: var(--post-accent); }
.post-sources { margin-block: 30px; }
.post-content .schema-faq { --accordion-ink: var(--post-dark); --accordion-fill: var(--post-tint); }
.post-content .schema-faq details p { margin: 0; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .blog-card:hover img { scale: 1.035; }
}
@media (max-width: 930px) {
  .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .post-layout { grid-template-columns: minmax(0,1fr) minmax(190px,.38fr); gap: 22px; }
}
@media (max-width: 760px) {
  .blog-index-head { align-items: flex-start; flex-direction: column; }
  .blog-grid, .post .post-header, .post-layout { grid-template-columns: minmax(0,1fr); }
  .post-cover img { min-height: 0; max-height: 280px; }
  .post-toc { grid-row: 1; position: static; }
  .post-toc a { margin-block: 2px; }
  .post-related ul { grid-template-columns: 1fr; }
}
