/* Bold Contrast: strong bright cards with protected hover contrast. */
html body .card,
html body .card-link,
html body article[class*="card"],
html body .service-card,
html body .specialty-card,
html body .resource-card,
html body .testimonial-card,
html body .fit-card,
html body .process-card,
html body .detail-card,
html body .summary-card,
html body .portrait-card,
html body .contact-panel,
html body .trust-panel {
  color: #171717 !important;
  text-shadow: none !important;
}

html body .card *,
html body .card-link *,
html body article[class*="card"] *,
html body .service-card *,
html body .specialty-card *,
html body .resource-card *,
html body .testimonial-card *,
html body .fit-card *,
html body .process-card *,
html body .detail-card *,
html body .summary-card *,
html body .portrait-card *,
html body .contact-panel *,
html body .trust-panel * {
  color: #171717 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html body .card:hover,
html body .card-link:hover,
html body article[class*="card"]:hover {
  background: #ffffff !important;
  border-color: rgba(17, 17, 17, .28) !important;
}

html body .button,
html body button,
html body a[class*="button"] {
  color: #ffffff !important;
  background: #171717 !important;
  border-color: #171717 !important;
}

html body .button.secondary,
html body a.button.secondary {
  color: #171717 !important;
  background: #ffffff !important;
  border-color: rgba(17, 17, 17, .28) !important;
}

html body .eyebrow,
html body .tag,
html body .badge,
html body .pill,
html body .label,
html body .kicker,
html body main .grid .card > span:first-child {
  color: #171717 !important;
  background: #ffe45c !important;
  border-color: rgba(17, 17, 17, .18) !important;
}

/* Interior layout identity: bold poster system with big block sections. */
html body.vitalweb-remix .studio-hero {
  display: grid !important;
  grid-template-columns: minmax(0, .62fr) minmax(280px, .38fr) !important;
  align-items: center !important;
  gap: clamp(24px, 5vw, 66px) !important;
  min-height: 600px !important;
  padding: clamp(34px, 6vw, 72px) !important;
  overflow: hidden !important;
  border: 3px solid #171717 !important;
  border-radius: 0 !important;
  box-shadow: 12px 12px 0 #ffe45c !important;
}

html body.vitalweb-remix .studio-copy,
html body.vitalweb-remix .studio-board {
  position: relative !important;
  z-index: 1 !important;
}

html body.vitalweb-remix .studio-board {
  display: grid !important;
  gap: 14px !important;
  justify-items: center !important;
}

html body.vitalweb-remix .board-card {
  display: grid !important;
  gap: 8px !important;
  width: min(360px, 100%) !important;
  padding: 18px !important;
  border: 2px solid #171717 !important;
  background: #ffffff !important;
  box-shadow: 6px 6px 0 #ffe45c !important;
}

html body.vitalweb-remix .board-card span,
html body.vitalweb-remix .fit-ribbon article span {
  display: block !important;
  margin-bottom: 4px !important;
  color: #171717 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

html body.vitalweb-remix .board-card strong {
  display: block !important;
  color: #171717 !important;
}

html body.vitalweb-remix .portrait-orbit {
  max-width: min(320px, 100%) !important;
  margin: 0 auto !important;
}

html body.vitalweb-remix .portrait-orbit img {
  width: min(300px, 100%) !important;
  max-height: 340px !important;
  object-fit: contain !important;
}

html body.vitalweb-remix .fit-ribbon,
html body.vitalweb-remix .mosaic-grid,
html body.vitalweb-remix .reason-stack {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html body.vitalweb-remix .fit-ribbon article,
html body.vitalweb-remix .mosaic-grid article,
html body.vitalweb-remix .reason-stack article,
html body.vitalweb-remix .process-lane li {
  padding: 20px !important;
  border: 2px solid #171717 !important;
  border-radius: 0 !important;
  box-shadow: 7px 7px 0 #ffe45c !important;
}

html body.vitalweb-remix .fit-ribbon article {
  display: grid !important;
  gap: 8px !important;
  min-height: 116px !important;
}

html body.vitalweb-remix .intro-split,
html body.vitalweb-remix .trust-contact {
  display: grid !important;
  grid-template-columns: minmax(0, .5fr) minmax(0, .5fr) !important;
  gap: 18px !important;
}

html body:not(.vitalweb-remix) main {
  width: min(1180px, calc(100% - 34px)) !important;
}

html body:not(.vitalweb-remix) .intro-block {
  max-width: 820px !important;
  border-left: 10px solid #171717 !important;
  padding-left: clamp(18px, 3vw, 30px) !important;
}

html body:not(.vitalweb-remix) .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: start !important;
}

html body:not(.vitalweb-remix) main .grid .card {
  min-height: 350px !important;
  border: 3px solid #171717 !important;
  border-radius: 0 !important;
  box-shadow: 9px 9px 0 #ffe45c !important;
}

html body:not(.vitalweb-remix) main .grid .card:nth-child(1) {
  transform: rotate(-1.2deg) !important;
}

html body:not(.vitalweb-remix) main .grid .card:nth-child(2) {
  transform: translateY(18px) rotate(.8deg) !important;
}

html body:not(.vitalweb-remix) main .grid .card:nth-child(3) {
  transform: rotate(-.6deg) !important;
}

html body:not(.vitalweb-remix) main .grid .card:hover {
  transform: translateY(-5px) rotate(0deg) !important;
}

@media (max-width: 820px) {
  html body:not(.vitalweb-remix) .grid {
    grid-template-columns: 1fr !important;
  }

  html body:not(.vitalweb-remix) main .grid .card,
  html body:not(.vitalweb-remix) main .grid .card:nth-child(1),
  html body:not(.vitalweb-remix) main .grid .card:nth-child(2),
  html body:not(.vitalweb-remix) main .grid .card:nth-child(3) {
    transform: none !important;
  }
}

/* Card spacing safety pass: keeps text from hugging card borders on all sample pages. */
html body :where(.card, .card-link, .summary-card, .portrait-card, .service-card, .specialty-card, .resource-card, .testimonial-card, .fit-card, .process-card, .detail-card, .board-card, .contact-panel, .trust-panel, .detail-module, .detail-console),
html body :where(.service-list, .support-grid, .systems-grid, .trust-grid, .mosaic-grid, .reason-stack, .fit-ribbon) > article,
html body :where(.process-lane) li {
  box-sizing: border-box !important;
  padding: clamp(20px, 2.4vw, 30px) !important;
}

/* Form spacing safety pass: keeps labels and controls comfortably inside contact forms. */
html body :where(form, .lead-form, .quote-form, .managed-form) {
  box-sizing: border-box !important;
  padding: clamp(22px, 2.6vw, 34px) !important;
}

/* Mobile fit pass: keep bold provider pages from squeezing text or forms. */
@media (max-width: 700px) {
  html body.vitalweb-remix main,
  html body.vitalweb-remix .studio-hero,
  html body.vitalweb-remix .trust-contact,
  html body.vitalweb-remix .contact-panel,
  html body.vitalweb-remix form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body.vitalweb-remix .studio-hero,
  html body.vitalweb-remix .studio-board,
  html body.vitalweb-remix .trust-contact,
  html body.vitalweb-remix form.contact-panel {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  html body.vitalweb-remix .studio-copy,
  html body.vitalweb-remix .studio-copy *,
  html body.vitalweb-remix .hero-lede,
  html body.vitalweb-remix label,
  html body.vitalweb-remix input,
  html body.vitalweb-remix textarea,
  html body.vitalweb-remix select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  html body.vitalweb-remix .studio-copy h1 {
    font-size: clamp(36px, 12vw, 48px) !important;
    line-height: 1.02 !important;
  }
}

/* Final readability/media safety pass: keeps page images contained and tiny marks readable. */
html body img {
  max-width: 100% !important;
}

html body :where(.brand-mark, .tag, .badge, .label, .kicker) {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body :where(.brand-mark) {
  color: #102326 !important;
  background: #f7fff9 !important;
  border: 1px solid rgba(16, 35, 38, .14) !important;
}

html body:not(.vitalweb-remix) main .grid .card,
html body:not(.vitalweb-remix) main .grid .card:visited {
  color: inherit !important;
  overflow: hidden !important;
}

html body:not(.vitalweb-remix) main .grid .card * {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body .button,
html body button,
html body a[class*="button"] {
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Contact form safety pass: keeps compact demo forms readable on every page. */
html body form.contact-panel,
html body .contact-panel:is(form) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  align-content: start !important;
}

html body form.contact-panel label,
html body .contact-panel:is(form) label {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px !important;
  min-width: 0 !important;
  color: inherit !important;
  font-weight: 700 !important;
}

html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  font: inherit !important;
}

html body form.contact-panel textarea,
html body .contact-panel:is(form) textarea {
  min-height: 116px !important;
  resize: vertical;
}

/* Form field readability pass: prevents dark inherited controls on light contact layouts. */
html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  color: #172126 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(23, 33, 38, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

html body form.contact-panel input::placeholder,
html body form.contact-panel textarea::placeholder,
html body .contact-panel:is(form) input::placeholder,
html body .contact-panel:is(form) textarea::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}
