/* Blog posts and archive (MDT_Bento_Blog) — same palette and type as the bento homepage. */
body.mdt-blog-page { margin: 0; background: #EEF4F0; }
.mdt-blog {
  --mdt-white: #F7FBFA;
  --mdt-dark: #1a3a2d;
  --mdt-dark2: #2D5C47;
  --mdt-green2: #3D8B6A;
  --mdt-green-light: #a8ddc8;
  --mdt-mint: #E8F6F0;
  --mdt-r2: 28px;
  color: var(--mdt-dark);
  font-family: 'Inter', system-ui, sans-serif;
  padding: 24px 0 64px;
}
.mdt-blog-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; gap: 20px; }
.mdt-blog h1, .mdt-blog h2, .mdt-blog h3, .mdt-blog-card-title {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.mdt-blog a { color: var(--mdt-dark2); }

/* hero */
.mdt-blog-hero { background: var(--mdt-dark); color: #e3f1ea; border-radius: var(--mdt-r2); padding: clamp(28px, 5vw, 64px); }
.mdt-blog-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); margin: 10px 0 18px; max-width: 900px; }
.mdt-blog-lead { font-size: 19px; line-height: 1.6; max-width: 680px; margin: 0; }
.mdt-blog-crumbs { font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; color: var(--mdt-green-light); }
.mdt-blog .mdt-blog-crumbs a { color: var(--mdt-green-light); text-decoration: none; }
.mdt-blog .mdt-blog-crumbs a:hover { text-decoration: underline; }
.mdt-blog-byline { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; }
.mdt-blog-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; }

/* article */
.mdt-blog-layout { display: grid; gap: 20px; align-items: start; }
.mdt-blog-layout.has-toc { grid-template-columns: 260px minmax(0, 1fr); }
.mdt-blog-toc { position: sticky; top: 96px; background: var(--mdt-white); border-radius: 24px; padding: 22px; font-size: 15px; }
.mdt-blog-toc-title { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mdt-dark2); margin: 0 0 10px; }
.mdt-blog-toc ol { margin: 0; padding-left: 1.2em; }
.mdt-blog-toc li { margin-bottom: 8px; line-height: 1.35; }
.mdt-blog .mdt-blog-toc a { text-decoration: none; }
.mdt-blog .mdt-blog-toc a:hover { text-decoration: underline; }

.mdt-blog-article { background: var(--mdt-white); border-radius: var(--mdt-r2); padding: clamp(24px, 5vw, 64px); min-width: 0; }
.mdt-blog-content { max-width: 700px; margin: 0 auto; font-size: 18px; line-height: 1.75; }
.mdt-blog-content > * { margin-top: 0; margin-bottom: 1.1em; }
.mdt-blog-content h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 1.8em 0 0.6em; scroll-margin-top: 96px; }
.mdt-blog-content h3 { font-size: 22px; margin: 1.5em 0 0.5em; }
.mdt-blog-content h2:first-child, .mdt-blog-content h3:first-child { margin-top: 0; }
.mdt-blog-content ul, .mdt-blog-content ol { padding-left: 1.3em; }
.mdt-blog-content li { margin-bottom: 0.4em; }
.mdt-blog-content li p { margin: 0; }
.mdt-blog-content strong { color: var(--mdt-dark); }
.mdt-blog-content blockquote { margin: 1.4em 0; padding: 18px 24px; background: var(--mdt-mint); border-left: 4px solid var(--mdt-green2); border-radius: 0 16px 16px 0; font-style: italic; }
.mdt-blog-content blockquote p:last-child { margin-bottom: 0; }
.mdt-blog-content img { max-width: 100%; height: auto; border-radius: 18px; }
.mdt-blog-content figure { margin-left: 0; margin-right: 0; }
.mdt-blog-content figcaption { font-size: 14px; color: var(--mdt-dark2); text-align: center; }
.mdt-blog-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.mdt-blog-content th, .mdt-blog-content td { border-bottom: 1px solid rgba(26,58,45,0.14); padding: 8px 10px; text-align: left; }
.mdt-blog-content hr { border: 0; border-top: 1px solid rgba(26,58,45,0.14); margin: 2em 0; }
.mdt-blog-content .mdt-svc-blog-cta { margin-top: 2em !important; }

.mdt-blog-author { max-width: 700px; margin: 40px auto 0; display: flex; gap: 18px; align-items: flex-start; background: var(--mdt-mint); border-radius: 24px; padding: 22px; font-size: 16px; line-height: 1.6; }
.mdt-blog-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.mdt-blog-author p { margin: 0 0 8px; }
.mdt-blog-author-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 20px; }

/* cards */
.mdt-blog-related { background: var(--mdt-white); border-radius: var(--mdt-r2); padding: clamp(24px, 4vw, 48px); }
.mdt-blog-related h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 18px; }
.mdt-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mdt-blog .mdt-blog-card {
  display: flex; flex-direction: column; background: var(--mdt-white); border-radius: 24px; overflow: hidden;
  text-decoration: none; color: var(--mdt-dark); transition: transform 0.25s, box-shadow 0.25s;
}
.mdt-blog-related .mdt-blog-card { background: var(--mdt-mint); }
.mdt-blog .mdt-blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(26,58,45,0.14); }
.mdt-blog-card-img { display: block; aspect-ratio: 16 / 9; background: var(--mdt-mint) center / cover no-repeat; }
.mdt-blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.mdt-blog-meta { font-size: 13px; color: var(--mdt-green2); font-weight: 600; }
.mdt-blog-card-title { font-size: 22px; }
.mdt-blog-card-text { font-size: 15px; line-height: 1.6; color: var(--mdt-dark2); }
.mdt-blog-card-more { margin-top: auto; font-weight: 600; font-size: 15px; }
.mdt-blog-grid.is-archive .mdt-blog-card.is-big { grid-column: 1 / -1; background: var(--mdt-dark); color: #e3f1ea; }
.mdt-blog-card.is-big .mdt-blog-card-body { padding: clamp(24px, 4vw, 44px); }
.mdt-blog-card.is-big .mdt-blog-card-title { font-size: clamp(26px, 3vw, 38px); color: #fff; }
.mdt-blog-card.is-big .mdt-blog-card-text { color: #cfe6dc; font-size: 17px; max-width: 760px; }
.mdt-blog-card.is-big .mdt-blog-meta, .mdt-blog-card.is-big .mdt-blog-card-more { color: var(--mdt-green-light); }
.mdt-blog-card.is-big.has-img { flex-direction: row; }
.mdt-blog-card.is-big.has-img .mdt-blog-card-img { aspect-ratio: auto; width: 42%; min-height: 280px; }

.mdt-blog-pages { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.mdt-blog-pages a, .mdt-blog-pages span { padding: 10px 16px; border-radius: 20px; background: var(--mdt-white); text-decoration: none; font-weight: 600; }
.mdt-blog-pages .current { background: var(--mdt-dark); color: #fff; }

@media (max-width: 1024px) {
  .mdt-blog-layout.has-toc { grid-template-columns: 1fr; }
  .mdt-blog-toc { position: static; }
  .mdt-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mdt-blog-grid { grid-template-columns: 1fr; }
  .mdt-blog-card.is-big.has-img { flex-direction: column; }
  .mdt-blog-card.is-big.has-img .mdt-blog-card-img { width: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .mdt-blog-content { font-size: 17px; }
  .mdt-blog-author { flex-direction: column; }
}
