/*
 * The generic CMS blocks (Text, Image and text, Form) and the consent banner. Not part of the
 * design files: written for the CMS, with the original tokens and classes (.wrap,
 * .sec-t, .pill) so they sit with the rest of the page. Every selector starts with `.cg`, `.cgf-`
 * or `.consent`, none of which the original stylesheets use, so loading this file changes
 * nothing on the existing sections.
 */
.cg {
  padding: 96px 0;
}
.cg-tint {
  background: var(--bg2);
}
.cg-inner {
  max-width: 760px;
}
.cg-prose {
  margin-top: 20px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.6;
}
.cg-prose p,
.cg-prose ul {
  margin: 0 0 1em;
}
.cg-prose ul {
  padding-left: 1.2em;
}
.cg-prose a {
  color: var(--violet);
}
.cg-media-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.cg-media-img {
  margin: 0;
}
.cg-media-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.cg-eyebrow {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}
.cg-media-copy .pill {
  margin-top: 8px;
  padding: 12px 22px;
}
@media (min-width: 900px) {
  .cg-media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cg-img-right .cg-media-img {
    order: 2;
  }
}

/* Language switch in the nav (lib/sections/chrome.ts), shown when a page exists in both languages */
.cg-lang {
  margin-right: 14px;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.cg-lang:hover {
  text-decoration: underline;
}

/* Forms */
.cgf-intro {
  margin-top: 16px;
  color: var(--dim);
}
.cgf-form {
  margin-top: 32px;
}
.cgf-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 16px;
}
.cgf-field {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.cgf-field[style] {
  flex-basis: calc(var(--cgf-w) - 16px);
}
.cgf-field[hidden] {
  display: none;
}
.cgf-field label,
.cgf-field legend {
  font-size: 16px;
  font-weight: 600;
}
.cgf-field input:not([type='checkbox'], [type='radio']),
.cgf-field select,
.cgf-field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--hl);
  border-radius: 12px;
  background: #fff;
  color: inherit;
}
.cgf-field input:focus-visible,
.cgf-field select:focus-visible,
.cgf-field textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}
.cgf-check,
.cgf-option {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.cgf-req {
  margin-left: 2px;
  color: var(--violet);
}
.cgf-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cgf-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.cgf-actions .pill {
  padding: 12px 22px;
  border: 0;
  cursor: pointer;
}
.cgf-error {
  margin: 0;
  color: #b42318;
}
.cgf-done {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg2);
}

/* Consent banner (components/cms/ConsentBanner.astro) */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: 18px;
  background: var(--card-d);
  color: #fff;
  box-shadow: var(--sh-3);
}
.consent[hidden] {
  display: none;
}
.consent-text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 16px;
  line-height: 1.5;
}
.consent-actions {
  display: flex;
  gap: 12px;
}
.consent-btn {
  padding: 12px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}
.consent-btn-primary {
  background: var(--pill);
  border-color: var(--pill);
}
@media (min-width: 900px) {
  .consent {
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 560px;
  }
}

/* The product videos (YouTube) in the home page's video dialog (v5, D32): the original <video> box. */
.vmodal-yt iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 11.2px;
  background: #000;
}
/* The original base rule (img,video{display:block}) beats the UA [hidden] rule; keep the empty
   <video> out of the dialog while a YouTube video plays. */
.vmodal video[hidden] {
  display: none;
}
