/* Shared repair of existing template roles. Does not adopt managed articles. */
body.gkg-site-typography-v2 :is(.gkg-archive-hero,.gkg-next-steps,.gkg-review-card,.gkg-section--dark) .gkg-kicker {
  color: #a7f432;
}
/* Preserve the full asset, including embedded labels and equipment. The PHP
   thumbnail filter supplies a proportional source rather than a hard crop. */
body.gkg-site-typography-v2 .gkg-site .gkg-card__media:has(img) {
  background-image: none !important;
  background-color: #edf0f4;
}
body.gkg-site-typography-v2 .gkg-site .gkg-card__media img {
  opacity: 1 !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Only direct prose headings in the old article template. Managed pages,
   cards, tool headings and teaching graphics keep their component owners. */
body.gkg-site-typography-v2 .gkg-article-content:not(:has(.gkg-page)) > h2 {
  font-size: clamp(28px,3vw,35px);
  line-height: 1.22;
  text-align: left;
  text-wrap: balance;
  margin: 48px 0 18px;
}
body.gkg-site-typography-v2 .gkg-article-content:not(:has(.gkg-page)) > h3 {
  font-size: 24px;
  line-height: 1.3;
  text-align: left;
  text-wrap: balance;
  margin: 32px 0 12px;
}
@media (max-width:650px) {
  body.gkg-site-typography-v2 .gkg-article-content:not(:has(.gkg-page)) > h2 { margin-top:38px; }
  body.gkg-site-typography-v2 .gkg-article-content:not(:has(.gkg-page)) > h3 { font-size:22px; }
}
/* The legacy theme resets list markers. Restore ordinary prose sequences;
   named card/checklist components keep their existing presentation. */
body.gkg-site-typography-v2 .gkg-article-content:not(:has(.gkg-page)) > ol:not([class]) {
  list-style: decimal outside;
  padding-left: 1.6em;
}
body.gkg-site-typography-v2 .gkg-article-content:not(:has(.gkg-page)) > ul:not([class]) {
  list-style: disc outside;
  padding-left: 1.6em;
}
body.gkg-site-typography-v2 .gkg-article-content:not(:has(.gkg-page)) > :is(ol,ul):not([class]) > li {
  display: list-item;
}
body.gkg-site-typography-v2 .gkg-article-content:not(:has(.gkg-page)) > ol:not([class]) > li { list-style-type:decimal; }
body.gkg-site-typography-v2 .gkg-article-content:not(:has(.gkg-page)) > ul:not([class]) > li { list-style-type:disc; }
