/* Shared by the three homepage colour-card block variants. */
.vb[data-variant="home-colour-cards"] {
  --vm-cards-heading: var(--vm-h3);
  padding-block: var(--vm-section-pad);
  color: var(--vm-black);
  background: var(--vm-warm);
  font: 400 var(--vm-body)/1.55 var(--vm-font-body);
  overflow-wrap: break-word;
}
.vb[data-variant="home-colour-cards"] :is(h2, h3, p) { margin: 0; }
.vb[data-variant="home-colour-cards"] h2 {
  color: var(--vm-black);
  font: 600 var(--vm-cards-heading)/1.07 var(--vm-font-display);
  letter-spacing: var(--vm-tracking-tight);
}
.vb[data-variant="home-colour-cards"] h3 {
  color: inherit;
  font: 600 var(--vm-type-h4-size)/var(--vm-type-h4-lh) var(--vm-font-display);
  letter-spacing: var(--vm-tracking-tight);
}
.vb[data-variant="home-colour-cards"] :is(.vb-ssg-head, .vm-cards-head) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: var(--vm-grid-gap-xl);
  margin: 0 0 var(--vm-cards-heading);
}
.vb[data-variant="home-colour-cards"] :is(.vb-ssg-sub, .vm-questions-lead) {
  color: var(--vm-pencil-strong);
  font-size: var(--vm-type-lead-size);
  line-height: var(--vm-type-lead-lh);
  max-width: var(--vm-measure-lead);
}
.vb[data-variant="home-colour-cards"] :is(a, summary):focus-visible {
  outline: 3px solid var(--vm-black);
  outline-offset: var(--vm-space-1);
}
.vb[data-variant="home-colour-cards"] :is(p, .vm-question-answer) a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.vb[data-variant="home-colour-cards"] :is(.vb-ssg-link, .vm-producer-button, .vm-questions-more > summary) {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: var(--vm-space-12);
  padding: var(--vm-space-2) var(--vm-gap-m);
  border: 1.5px solid currentColor;
  border-radius: var(--vm-radius-pill);
  color: inherit;
  font: 600 var(--vm-body)/1.4 var(--vm-font-body);
  text-decoration: none;
}
.vb[data-variant="home-colour-cards"] :is(a, summary):hover { text-decoration: underline; }

/* Retain the rendered service-story-grid, including its original anchors. */
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--vm-grid-gap);
  margin: 0;
}
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--vm-space-4);
  min-width: 0;
  padding: var(--vm-gap-l);
  border: 0;
  border-radius: var(--vm-radius-card);
  background: var(--vm-sage);
  color: var(--vm-forest);
}
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-card:nth-child(2) { background: var(--vm-gold); color: var(--vm-brass); }
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-card:nth-child(3) { background: var(--vm-rose); color: var(--vm-wine); }
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-card:nth-child(4) { background: var(--vm-black); color: var(--vm-white); }
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-body {
  color: inherit;
  font-size: calc((var(--vm-body) + var(--vm-body-lg)) / 2);
  line-height: 1.55;
}
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-card:nth-child(4) .vb-ssg-body { color: var(--vm-text-soft-dark); }
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-link { margin-top: auto; }
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-link [aria-hidden="true"] { display: none; }
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-card:nth-child(4) .vb-ssg-link {
  border-color: var(--vm-white); background: var(--vm-white); color: var(--vm-black);
}
.vb-ssg[data-variant="home-colour-cards"] .vb-ssg-card:nth-child(4) a:focus-visible { outline-color: var(--vm-white); }

/* One focusable destination per post, with the read label inside it. */
.vb-blog[data-variant="home-colour-cards"] { background: var(--vm-cream); }
.vm-cards-index, .vm-article-read { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: var(--vm-space-1); }
.vm-cards-index { display: inline-flex; align-items: center; justify-self: end; min-height: var(--vm-space-12); }
.vm-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vm-grid-gap); }
.vm-article-card { min-width: 0; }
.vm-article-card .blog-link-wrap {
  display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden;
  background: var(--vm-white); color: var(--vm-black); border-radius: var(--vm-radius-card); text-decoration: none;
}
.vb-blog[data-variant="home-colour-cards"] .blog-link-wrap:hover { text-decoration: none; }
.vm-article-card .blog-link-wrap:hover .vm-article-read { text-decoration-thickness: 2px; }
.vm-article-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.vm-article-copy { flex: 1; display: flex; flex-direction: column; gap: var(--vm-gap-s); padding: var(--vm-gap-m) var(--vm-gap-m) var(--vm-space-media-title); }
.vm-article-category {
  align-self: flex-start; padding: var(--vm-space-1) var(--vm-gap-s); border-radius: var(--vm-radius-pill);
  background: var(--vm-rose); color: var(--vm-wine); font-size: var(--vm-type-eyebrow-size); font-weight: 600;
}
.vm-article-category[data-tone="gold"] { background: var(--vm-gold); color: var(--vm-brass); }
.vm-article-category[data-tone="sage"] { background: var(--vm-sage); color: var(--vm-forest); }
.vb-blog[data-variant="home-colour-cards"] .vm-article-copy h3 { font-size: var(--vm-type-h5-size); line-height: 1.2; }
.vm-article-date { color: var(--vm-pencil); font-size: var(--vm-caption); }
.vm-article-read { margin-top: auto; }

/* Native disclosures work with the keyboard and with scripting disabled. */
.vm-questions-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: var(--vm-grid-gap-xl); }
.vb-faq[data-variant="home-colour-cards"] .vm-questions-lead { margin-top: var(--vm-gap-m); }
.vm-questions-ask {
  margin-top: var(--vm-gap-l); padding: var(--vm-space-media-title); border-radius: var(--vm-radius-card);
  display: flex; flex-direction: column; gap: var(--vm-gap-s); background: var(--vm-gold); color: var(--vm-brass);
}
.vm-questions-ask p, .vm-question-answer p { color: inherit; line-height: inherit; }
.vb-faq[data-variant="home-colour-cards"] a.vm-producer-button { background: var(--vm-black); color: var(--vm-white); border-color: var(--vm-black); }
.vm-questions-list, .vm-questions-extra { display: grid; align-content: start; gap: var(--vm-gap-s); }
.vm-question-card {
  margin: 0; padding: var(--vm-space-4) var(--vm-gap-m);
  border-radius: var(--vm-radius-card); background: var(--vm-cream);
}
.vm-question-card[open] { background: var(--vm-white); }
.vm-question-card > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--vm-gap-m);
  min-height: var(--vm-space-12); cursor: pointer;
}
.vm-question-card > summary, .vm-questions-more > summary { list-style: none; }
.vm-question-card > summary::-webkit-details-marker, .vm-questions-more > summary::-webkit-details-marker { display: none; }
.vb-faq[data-variant="home-colour-cards"] .vm-question-card h3 {
  font: 600 var(--vm-body-lg)/1.35 var(--vm-font-body); letter-spacing: normal;
}
.vm-question-icon {
  flex: none; display: grid; place-items: center; width: var(--vm-space-8); height: var(--vm-space-8);
  background: var(--vm-black); color: var(--vm-white); border-radius: 50%;
}
.vm-question-icon::before, .vm-question-icon::after {
  content: ""; grid-area: 1 / 1; width: var(--vm-gap-s); height: 2px; background: currentColor;
}
.vm-question-icon::after { transform: rotate(90deg); }
.vm-question-card[open] > summary .vm-question-icon::after { display: none; }
.vm-question-answer { padding-top: var(--vm-gap-s); color: var(--vm-pencil-strong); max-width: 60ch; }
.vb-faq[data-variant="home-colour-cards"] .vm-question-answer > * + * { margin-top: var(--vm-gap-s); }
.vm-questions-more > summary { width: fit-content; cursor: pointer; }
/* The native summary follows its controlled cards in both reading and tab order. */
.vm-questions-extra:has(+ .vm-questions-more:not([open])),
.vm-questions-more:not([open]) .vm-questions-hide,
.vm-questions-more[open] .vm-questions-show { display: none; }

@media (max-width: 800px) {
  .vb[data-variant="home-colour-cards"] { --vm-cards-heading: var(--vm-type-h2-size); }
  .vb[data-variant="home-colour-cards"] :is(.vb-ssg-head, .vm-cards-head, .vb-ssg-grid, .vm-article-grid, .vm-questions-layout) {
    grid-template-columns: minmax(0, 1fr); gap: var(--vm-gap-m);
  }
  .vb-ssg[data-variant="home-colour-cards"] .vb-ssg-grid { grid-auto-rows: auto; }
  .vb-ssg[data-variant="home-colour-cards"] .vb-ssg-card { padding: var(--vm-space-media-title); }
}
