/* Public marketing pages. Keep operational and portal styles outside this layer. */
body[data-editorial] {
  --editorial-ink: #173443;
  --editorial-teal: #22686a;
  --editorial-paper: #fbf8f0;
  --editorial-line: #cdd9d1;
  --editorial-type: "DM Serif Display", Georgia, serif;
}
body[data-editorial] :is(.detail-hero, .case-library-hero) {
  display: block;
  min-height: 0;
  padding: clamp(44px, 6vw, 92px) 0 !important;
  background: var(--editorial-paper) !important;
  border-bottom: 1px solid var(--editorial-line);
}
body[data-editorial="guide"] .detail-hero { background: #eef3ed !important; }
body[data-editorial="evidence"] :is(.detail-hero, .case-library-hero) { background: #e8efeb !important; }
body[data-editorial] :is(.detail-hero, .case-library-hero) > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 5.6vw, 86px);
  align-items: center;
  text-align: left;
}
body[data-editorial] :is(.detail-hero, .case-library-hero) h1 {
  color: var(--editorial-ink) !important;
  font: 400 clamp(37px, 4.6vw, 69px)/1.04 var(--editorial-type) !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
  margin: 16px 0 0 !important;
}
body[data-editorial="guide"] .detail-hero h1 {
  font-size: clamp(34px, 3.8vw, 57px) !important;
}
.editorial-headline > :is(p, .audience-note) {
  max-width: 53ch;
  margin: 20px 0 0 !important;
  font-size: clamp(16px, 1.65vw, 19px);
  line-height: 1.58;
  color: #435b61;
}
.editorial-headline .script-label { color: #315f60; }
.editorial-photo {
  margin: 0;
  border: 1px solid #c3cbc2;
  background: #e1e7dd;
  box-shadow: 9px 9px 0 #dce5db;
}
.editorial-photo img, .carematch-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.editorial-board {
  --board-ink: #244347;
  --board-accent: #376968;
  --board-line: #cbd9d0;
  padding: clamp(22px, 3vw, 43px);
  color: var(--board-ink);
  background: #edf3ec;
  border: 1px solid var(--board-line);
  border-top: 3px solid #58857b;
  text-align: left;
}
body[data-editorial="guide"] .editorial-board { background: #fffcf5; }
body[data-editorial="evidence"] .editorial-board {
  --board-ink: #f5f7ec;
  --board-accent: #bbddd2;
  --board-line: #647e80;
  background: #1b3d47;
  border-top-color: #b89b61;
}
body[data-editorial] .editorial-board .editorial-kicker {
  margin: 0 0 11px;
  color: var(--board-accent);
  font: 700 11px/1.3 Manrope, Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
body[data-editorial] .editorial-board h2 {
  margin: 0 0 22px;
  color: var(--board-ink);
  font: italic 400 clamp(25px, 2.55vw, 39px)/1.12 var(--editorial-type);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.editorial-board dl { margin: 0; }
.editorial-board dl > div {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr);
  gap: 12px;
  border-top: 1px solid var(--board-line);
  padding-block: 11px;
}
.editorial-board dt, .editorial-board dd { font-size: 14px; line-height: 1.42; margin: 0; }
.editorial-board dt { font-weight: 750; }
.editorial-board dd { color: var(--board-ink); }
body[data-editorial] .detail-content .folder-card {
  min-height: 0;
  padding: clamp(18px, 2.65vw, 34px) !important;
  border: 1px solid var(--editorial-line) !important;
  border-top: 3px solid #54857c !important;
  border-radius: 0 !important;
  background: #fffdf7 !important;
  box-shadow: none !important;
}
body[data-editorial] .detail-content .folder-card::before,
body[data-editorial] .detail-content .folder-card::after { display: none !important; }
body[data-editorial] .detail-content .folder-card:hover {
  background: #eef4ee !important;
  border-top-color: #246865 !important;
}
body[data-editorial] .detail-content :is(.folder-card h3, .reading-block h2) {
  font-family: var(--editorial-type) !important;
}
body[data-editorial="photo"] :is(.audience-row, .industry-grid) img[src*="editorial-"],
body[data-editorial="evidence"] :is(.compact-feature, .handoff-feature) img {
  border-radius: 0 !important;
  object-position: center 45%;
}
body[data-editorial="home"] #home { background: var(--editorial-paper); }
body[data-editorial="home"] #home .editorial-hero-visual .hero-photo-wrap {
  border-radius: 0;
  height: auto;
  aspect-ratio: 4 / 3;
}
body[data-editorial="home"] #home .editorial-hero-visual { margin-top: clamp(0px, 2.2vw, 28px); }
body[data-editorial="home"] #home .editorial-hero-visual figcaption { border-left-color: #8e723e; }
body[data-editorial="home"] .proof-stage { height: auto; border-radius: 0; background: #e9f0e9; }
body[data-editorial="home"] .proof-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(22px, 4vw, 62px);
  min-height: 475px;
}
body[data-editorial="home"] .proof-scene[hidden] { display: none; }
body[data-editorial="home"] .proof-scene::after { display: none; }
body[data-editorial="home"] :is(.proof-scene-copy, .proof-exchange) {
  position: relative;
  inset: auto;
  width: auto;
  max-width: none;
}
body[data-editorial="home"] .proof-scene-copy h3 {
  font-family: var(--editorial-type);
  font-size: clamp(25px, 3.1vw, 44px);
}
body[data-editorial="home"] .proof-worry {
  max-width: 34ch;
  background: transparent;
  box-shadow: none;
  border-left: 2px solid #8b7345;
  padding: 0 0 0 16px;
  border-radius: 0;
}
body[data-editorial="home"] .proof-exchange {
  justify-self: center;
  width: min(100%, 350px);
  max-height: 435px;
  border-radius: 4px;
  border: 1px solid #87a49b;
  box-shadow: 6px 6px 0 #cbded4;
}
body[data-editorial="home"] .proof-exchange > img { flex: 1 1 auto; object-position: center top; }
body[data-editorial="home"] .proof-boy-track { flex: 0 0 auto; height: auto; overflow: visible; }
body[data-editorial="home"] .proof-boy {
  position: static;
  width: auto;
  height: auto;
  min-height: 44px;
  animation: none;
  filter: none;
  color: #214a4a;
  border-bottom: 1px solid currentColor !important;
}
body[data-editorial="home"] .proof-dots button,
body[data-editorial="home"] .proof-navigation > button { min-height: 44px; }
body[data-editorial="home"] .proof-guide { justify-content: space-between; }
body[data-editorial="contact"] #contact { background: #1a3844 !important; }
body[data-editorial="contact"] #contact h1 {
  font-family: var(--editorial-type) !important;
  font-weight: 400 !important;
  text-wrap: balance;
}
body[data-editorial="contact"] #contact .cta-info h2,
body[data-editorial="contact"] #contact .consultation-form-title {
  font: 400 clamp(26px, 3.2vw, 38px)/1.1 var(--editorial-type);
}
body[data-editorial="contact"] .master-form {
  background: var(--editorial-paper) !important;
  border-radius: 2px !important;
  border: 1px solid #b9c5b9;
  box-shadow: none !important;
}
body[data-editorial="contact"] .consultation-form-title { margin: 0 0 23px; color: var(--editorial-ink); }
body[data-editorial="contact"] .form-input { border-radius: 2px; }
body[data-editorial="carematch"] .cm-panel,
body[data-editorial="demo"] .landing-panel { border-radius: 3px; box-shadow: none; }
body[data-editorial="carematch"] .cm-story,
body[data-editorial="demo"] .landing-hero { background: #1b3d47; }
body[data-editorial="carematch"] :is(.cm-page h1, .cm-offer h2),
body[data-editorial="demo"] .landing-hero h1 { font-family: var(--editorial-type); font-weight: 400; }
body[data-editorial="carematch"] .cm-offer { align-self: stretch; align-content: center; background: var(--editorial-paper); }
.carematch-photo { margin: 20px 0 0; border: 1px solid #91a49b; }
.carematch-photo img { aspect-ratio: 2 / 1; object-position: center 42%; }
body[data-editorial="utility"] #main-content { background: #e9f0ea !important; }
body[data-editorial="utility"] #main-content section {
  background: var(--editorial-paper) !important;
  border: 1px solid var(--editorial-line) !important;
  border-top: 3px solid #54857c !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
body[data-editorial="utility"] #main-content h1 {
  color: var(--editorial-ink) !important;
  font-family: var(--editorial-type) !important;
  font-weight: 400 !important;
}
body[data-editorial] :focus-visible { outline: 3px solid #117977; outline-offset: 4px; }
body[data-editorial] :is(.bg-navy, .cm-story, .landing-hero) :focus-visible { outline-color: #cde6d5; }

@media (max-width: 760px) {
  body[data-editorial] :is(.detail-hero, .case-library-hero) > .container,
  body[data-editorial="home"] .proof-scene { grid-template-columns: minmax(0, 1fr); }
  body[data-editorial] :is(.detail-hero, .case-library-hero) h1 { text-wrap: initial; }
  .editorial-photo { max-width: 530px; box-shadow: 5px 5px 0 #dce5db; }
  .editorial-photo img { aspect-ratio: 1.4; }
  body[data-editorial="home"] .proof-scene { min-height: 0; }
  body[data-editorial="home"] .proof-scene-copy h3 { max-width: none; }
  body[data-editorial="home"] .proof-guide { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 370px) {
  .editorial-board dl > div { grid-template-columns: 1fr; gap: 3px; }
}

/* Keep the work evidence in the reading flow, with direct access to the source. */
body[data-editorial] .detail-content .editorial-proof {
  margin-block: clamp(24px, 4vw, 54px);
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid #cbd8cf;
  border-top: 3px solid #58857b;
  background: #f2f5ee;
}
.editorial-proof--with-image {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
  gap: clamp(20px, 4vw, 42px);
}
body[data-editorial] .detail-content .editorial-proof h2 {
  margin: 8px 0 14px;
  font: 400 clamp(25px, 3vw, 39px)/1.09 var(--editorial-type);
}
.editorial-proof dl { margin: 20px 0; }
.editorial-proof dl div { padding: 9px 0; border-top: 1px solid #cbd8cf; }
.editorial-proof dt { font-weight: 750; }
.editorial-proof dd { margin: 2px 0 0; line-height: 1.5; }
.editorial-proof figure { margin: 0; min-width: 0; }
.editorial-proof figure a { display: block; }
.editorial-proof img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #b8cbbf;
  border-radius: 0;
}
.editorial-proof figcaption { margin-top: 8px; color: #435b61; font-size: 14px; line-height: 1.5; }
body[data-editorial] .editorial-case-reference {
  padding-left: 18px;
  border-left: 2px solid #8b7750;
}
body[data-editorial] .editorial-case-reference h2 {
  font: 400 clamp(24px, 3vw, 36px)/1.13 var(--editorial-type);
  margin: 0 0 10px;
}
@media (max-width: 860px) {
  .editorial-proof--with-image { grid-template-columns: minmax(0, 1fr); }
  .editorial-proof figure { max-width: 370px; }
}
