/* Public editorial surfaces. Load after company, legal, support and blog styles.
   Reuses the approved SOCEO paper, artwork and localized glass materials.
   Reading, sticky navigation, forms and illustration geometry stay native. */

:is(.mix-vision-page, .mix-mission-page, .mix-values-page, .mix-story-page,
    .mix-purpose-page, .mix-ethics-page, .mix-legal-page, .mix-support-page,
    .mix-blog-page, .mix-content-page) {
  --editorial-paper: var(--soceo-brand-paper, #fdfdfb);
  --editorial-cream: var(--soceo-brand-cream, #f6f2ed);
  --editorial-ink: var(--soceo-brand-ink, #151517);
  --editorial-purple: var(--soceo-brand-purple, #7839ee);
  --editorial-deep: var(--soceo-brand-deep, #16033a);
  --editorial-line: var(--soceo-brand-line, #d9d1e5);
  --editorial-muted: #665a76;
  --editorial-artwork: var(--soceo-brand-artwork, url('/assets/hero/soceo-glass/background-1600.webp'));
  color: var(--editorial-ink);
  background: var(--editorial-paper);
  font-family: Inter, Arial, sans-serif;
}

:is(.mix-vision-page, .mix-mission-page, .mix-values-page, .mix-story-page,
    .mix-purpose-page, .mix-ethics-page, .mix-legal-page, .mix-support-page,
    .mix-blog-page, .mix-content-page) :is(h1, h2, h3) {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 650;
  letter-spacing: -.03em;
  text-wrap: balance;
}

:is(.mix-vision-page, .mix-mission-page, .mix-values-page, .mix-story-page,
    .mix-purpose-page, .mix-ethics-page, .mix-legal-page, .mix-support-page,
    .mix-blog-page, .mix-content-page) ::selection {
  color: #fff;
  background: var(--editorial-purple);
}

:is(.mix-blog-page, .mix-content-page) :is(input, textarea, select) {
  caret-color: var(--editorial-purple);
  accent-color: var(--editorial-purple);
}

:is(.mix-vision-page, .mix-mission-page, .mix-values-page, .mix-story-page,
    .mix-purpose-page, .mix-ethics-page, .mix-legal-page, .mix-support-page,
    .mix-blog-page, .mix-content-page) :is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--editorial-purple);
  outline-offset: 4px;
}

/* Institutional introductions use the same clear cream and purple as Fontes. */
/* This route canvas alone needs important to replace vision-page.css's native
   important dark canvas now that its hero is cream. Other route canvases stay native. */
html.mix-vision-route, html.mix-vision-route body {
  background-color: var(--soceo-brand-cream, #f6f2ed) !important;
}
.mix-vision-page { --vision-ink: var(--editorial-ink); --vision-lilac: #b79cff; }
.mix-mission-page { --mission-ink: var(--editorial-ink); --mission-muted: var(--editorial-muted); --mission-violet: var(--editorial-purple); --mission-line: var(--editorial-line); }
.mix-values-page { --values-ink: var(--editorial-ink); --values-muted: var(--editorial-muted); --values-violet: var(--editorial-purple); }
.mix-story-page { --story-ink: var(--editorial-ink); --story-muted: var(--editorial-muted); --story-violet: var(--editorial-purple); --story-violet-dark: #6728d4; --story-deep: var(--editorial-deep); }
.mix-purpose-page { --purpose-ink: var(--editorial-ink); --purpose-muted: var(--editorial-muted); --purpose-violet: var(--editorial-purple); --purpose-cream: var(--editorial-cream); --purpose-line: var(--editorial-line); }
.mix-ethics-page { --ethics-ink: var(--editorial-ink); --ethics-muted: var(--editorial-muted); --ethics-purple: var(--editorial-purple); --ethics-paper: var(--editorial-paper); --ethics-line: var(--editorial-line); }

.mix-vision-hero, .mix-mission-hero, .mix-values-hero,
.mix-story-hero, .mix-purpose-hero, .mix-ethics-hero {
  color: var(--editorial-ink);
  background: var(--editorial-cream);
}
.mix-story-hero::before { background: transparent; }
.mix-vision-hero__grid { opacity: .06; }
.mix-vision-hero__glow { border-color: #7839ee33; box-shadow: 0 0 0 70px #7839ee05, 0 0 0 150px #7839ee03; }
.mix-vision-hero h1, .mix-mission-hero h1, .mix-values-hero__copy h1,
.mix-story-hero h1, .mix-purpose-hero h1, .mix-ethics-hero h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}
.mix-values-hero__copy h1 { max-width: 15ch; }
.mix-vision-hero h1 em, .mix-mission-hero h1 em, .mix-story-hero h1 em { color: var(--editorial-purple); }
.mix-vision-kicker, .mix-mission-overline, .mix-purpose-overline,
.mix-story-hero__chapter, .mix-vision-fragment__intro > span,
.mix-vision-horizon__head > span, .mix-vision-conditions__head > span,
.mix-mission-origin__title > p, .mix-mission-lens__intro > div > p {
  color: var(--editorial-purple);
  font-weight: 650;
}
.mix-vision-hero__content > p:not(.mix-vision-kicker),
.mix-values-hero__copy p, .mix-story-hero__copy > p,
.mix-purpose-hero__lead, .mix-ethics-hero__inner > div > p {
  color: var(--editorial-muted);
}
.mix-vision-hero__foot, .mix-story-hero__base, .mix-values-hero__base { color: var(--editorial-muted); border-color: var(--editorial-line); }
.mix-values-hero__base span:first-child { color: var(--editorial-purple); }
.mix-story-hero__jump, .mix-values-hero__copy a, .mix-purpose-hero__links a:last-child,
.mix-ethics-hero__link { color: #6728d4; }
.mix-purpose-hero__links a:last-child:hover { color: var(--editorial-deep); }
/* The incumbent vision link declares important colors; override only that link. */
.mix-vision-page .mix-vision-link { color: #6728d4 !important; border-color: var(--editorial-purple); }
.mix-vision-page .mix-vision-link:hover { color: var(--editorial-deep) !important; }
.mix-vision-hero__signal i { color: var(--editorial-muted); }
.mix-vision-hero__signal span { background: var(--editorial-purple); box-shadow: none; }

/* Actual featured diagrams: official artwork behind their own readable layers. */
.mix-mission-hero__diagram, .mix-values-hero__sequence, .mix-story-hero__art,
.mix-purpose-sequence, .mix-ethics-hero__note {
  color: #fff;
  border-color: #ffffff40;
  border-radius: 16px;
  background: linear-gradient(#16033a5c, #16033a5c), var(--editorial-artwork) center / cover no-repeat, #6728d4;
  box-shadow: 0 24px 54px #16033a14;
}
.mix-ethics-hero__note { padding: 28px; }
.mix-story-hero__art { overflow: hidden; }
.mix-values-hero__sequence li::before { background: #6728d4; }
.mix-mission-orbit__label {
  border-color: #ffffff66;
  background: linear-gradient(135deg, #ffffff33, #ffffff0d), #16033ab3;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mix-ethics-hero__note :is(span, p), .mix-purpose-sequence :is(p, b),
.mix-values-hero__sequence :is(p, small), .mix-mission-hero__diagram-head,
.mix-mission-hero__diagram > p { color: #ebe6fb; }

.mix-vision-fragment, .mix-vision-conditions, .mix-mission-origin,
.mix-values-commitments, .mix-values-chapter, .mix-story-lab { background: var(--editorial-paper); }
.mix-vision-horizon, .mix-vision-end, .mix-mission-lens, .mix-mission-promises,
.mix-values-practice, .mix-values-close, .mix-story-question, .mix-story-timeline,
.mix-story-shift, .mix-purpose-start, .mix-purpose-now, .mix-ethics-register { background: var(--editorial-cream); }
.mix-values-chapter:nth-child(even) { background: var(--editorial-cream); }
.mix-vision-horizon__stage, .mix-mission-lens__frame, .mix-story-shift__diagram { border-color: var(--editorial-line); background: var(--editorial-paper); box-shadow: 0 24px 54px #16033a0d; }
/* The lens has native light text and tabs; keep their dark reading surface. */
.mix-mission-lens__frame { background: var(--editorial-deep); }
.mix-vision-horizon__controls { background: var(--editorial-cream); }
.mix-vision-horizon__controls button[aria-selected="true"] { background: var(--editorial-purple); }
.mix-story-years, .mix-values-index, .mix-purpose-jump, .mix-ethics-nav { background: var(--editorial-paper); }

/* The full-width quotes keep quiet ink; artwork belongs to the closing CTAs. */
.mix-mission-statement, .mix-vision-promise, .mix-story-solo,
.mix-story-foundation, .mix-purpose-method, .mix-values-lab { background: var(--editorial-deep); }
.mix-mission-close, .mix-story-next, .mix-ethics-contact {
  background: linear-gradient(90deg, #16033ade, #16033ac7), var(--editorial-artwork) center / cover no-repeat, #6728d4;
}
.mix-story-next h2 span { color: #ebe6fb; }
.mix-values-lab__tabs button[aria-selected="true"],
.mix-values-lab__tabs button:hover {
  background: linear-gradient(135deg, #ffffff24, #ffffff0d);
  color: #fff;
}
.mix-vision-end a, .mix-mission-close__links a:first-child,
.mix-story-next a { border-radius: 6px; }

/* Legal documents: paper reading column, cream cover, explicit purple links. */
.mix-legal-page {
  --legal-paper: var(--editorial-paper);
  --legal-ink: var(--editorial-ink);
  --legal-muted: var(--editorial-muted);
  --legal-violet: #6728d4;
  --legal-border: var(--editorial-line);
  background: linear-gradient(var(--editorial-cream) 0 420px, var(--editorial-paper) 420px);
}
.mix-legal-header { padding: 0 0 32px; }
.mix-legal-page h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.1; }
.mix-legal-page h2 { font-size: 26px; line-height: 1.25; }
.mix-legal-eyebrow { font-weight: 650; }
.mix-legal-back { padding: 24px; border: 1px solid var(--editorial-line); border-radius: 12px; background: var(--editorial-cream); }

/* Help/developer splashes and partner reading retain their actual layouts. */
.mix-support-page { --support-ink: var(--editorial-ink); --support-muted: var(--editorial-muted); --support-violet: var(--editorial-purple); --support-line: var(--editorial-line); }
.mix-support-hero, .mix-support-section--tint, .mix-support-splash { background: var(--editorial-cream); }
.mix-support-hero h1, .mix-support-splash h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.08; }
.mix-support-kicker, .mix-support-splash__status { color: #6728d4; font-weight: 650; }
.mix-support-hero__visual, .mix-support-splash__visual {
  border-radius: 16px;
  background: linear-gradient(#16033a26, #16033a40), var(--editorial-artwork) center / cover no-repeat, #6728d4;
  box-shadow: 0 24px 54px #16033a14;
}
.mix-support-hero__visual::before { opacity: .12; }
.mix-support-splash__bar { border-color: var(--editorial-line); background: var(--editorial-paper); box-shadow: 0 12px 28px #16033a08; }
.mix-support-splash__nav { background: var(--editorial-cream); }
.mix-support-splash__nav a[aria-current="page"] { color: #6728d4; background: #ebe6fb; box-shadow: none; }
.mix-support-splash__return, .mix-support-splash__primary, .mix-support-button { border-radius: 6px; }
.mix-support-splash__return, .mix-support-splash__primary, .mix-support-button--primary { background: var(--editorial-purple); }
.mix-support-section--partner-offer { background: var(--editorial-deep); }
.mix-support-contact { background: linear-gradient(90deg, #16033ade, #16033ac7), var(--editorial-artwork) center / cover no-repeat, #6728d4; }
.mix-support-contact .mix-support-kicker { color: #ebe6fb; }
.mix-support-partner, .mix-support-process li { background: var(--editorial-paper); border-color: var(--editorial-line); }
.mix-support-anchor-nav { background: var(--editorial-paper); }
.mix-support-contact :is(a, button):focus-visible { outline-color: #fff; }

/* Blog covers and factual article imagery remain their current assets. */
.mix-blog-page { --landing-paper: var(--editorial-paper); --landing-cream: var(--editorial-cream); --landing-ink: var(--editorial-ink); --landing-muted: var(--editorial-muted); --landing-cobalt: var(--editorial-purple); --landing-border: var(--editorial-line); }
.mix-blog-hero, .mix-blog-method { background: var(--editorial-cream); }
.mix-blog-list, .mix-blog-post > article { background: var(--editorial-paper); }
.mix-blog-hero h1, .mix-post-head h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.1; }
.mix-blog-page .mix-blog-featured-copy h2 { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 650; }
.mix-blog-page .mix-section-eyebrow { color: var(--editorial-purple); font-weight: 650; }
.mix-blog-hero .mix-blog-featured-card { border-radius: 16px; border-color: var(--editorial-line); box-shadow: 0 24px 54px #16033a0d; }
.mix-blog-featured-card, .mix-blog-card, .mix-post-related a { background: var(--editorial-paper); border-color: var(--editorial-line); border-radius: 12px; }
.mix-blog-hero .mix-blog-featured-copy, .mix-post-cover { background-color: var(--editorial-paper); }
.mix-blog-search, .mix-blog-topic { border-color: var(--editorial-line); background-color: #fff; border-radius: 6px; }
.mix-blog-filters button { border-color: var(--editorial-line); border-radius: 6px; }
.mix-blog-filters button[aria-pressed="true"] { border-color: var(--editorial-purple); background: var(--editorial-purple); }
.mix-post-toc, .mix-post-toc-rail { border-color: var(--editorial-line); background: var(--editorial-paper); }
.mix-blog-cta { background: linear-gradient(90deg, #16033ade, #16033ac7), var(--editorial-artwork) center / cover no-repeat, #6728d4; }
.mix-blog-page .mix-blog-cta .mix-section-eyebrow { color: #ebe6fb; }
.mix-blog-cta a { border-radius: 6px; }
.mix-blog-cta a:focus-visible { outline-color: #fff; }

/* Content hub: keep real post art, replace only its invented gradient fallback. */
.mix-content-page { --content-ink: var(--editorial-ink); --content-paper: var(--editorial-paper); --content-muted: var(--editorial-muted); --content-violet: var(--editorial-purple); --content-blue: #6728d4; --content-line: var(--editorial-line); }
.mix-content-hub, .mix-hub-hero, .mix-content-newsletter, .mix-newsletter-hero { background: var(--editorial-cream); }
.mix-content-page .mix-hub-feature::after { background: var(--editorial-artwork) center / cover no-repeat, #6728d4; }
.mix-hub-feature:is(.is-materiais, .is-ferramentas, .is-faculdade) { background: var(--editorial-artwork) center / cover no-repeat, #6728d4; }
.mix-hub-feature__type { color: var(--editorial-deep); border: 1px solid #ffffff94; border-radius: 6px; background: #fffffff0; }
.mix-content-page .mix-hub-feature > strong { font-weight: 650; line-height: 1.08; }

/* Newsletter panel holds artwork; its working form stays solid paper. */
.mix-newsletter-card {
  background: linear-gradient(90deg, #16033a9e, #16033a40), var(--editorial-artwork) center / cover no-repeat, #6728d4;
  border-radius: 16px;
}
.mix-newsletter-card::before { background-image: none; }
.mix-newsletter-card__type { color: var(--editorial-deep); background: #fffffff0; border-radius: 6px; }
.mix-newsletter-card__copy h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.08; }
.mix-newsletter-card__topics span {
  color: #fff;
  border-color: #ffffff66;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff33, #ffffff0d), #16033ab3;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mix-newsletter-form-card { background: var(--editorial-paper); border-radius: 12px; box-shadow: 0 20px 44px #16033a14; }
.mix-newsletter-form-card__index { color: #6728d4; }
.mix-newsletter-form-card button { background: var(--editorial-purple); border-radius: 6px; }
.mix-newsletter-benefits { background: var(--editorial-paper); }
.mix-newsletter-benefits__grid article { background: var(--editorial-cream); border-color: var(--editorial-line); border-radius: 12px; }

/* Materials catalog and every detail share paper forms and SOCEO cover art. */
.mix-content-materials, .mix-material-detail-page { background: var(--editorial-cream); }
.mix-content-materials .mix-materials-finder, .mix-material-detail__hero { background: var(--editorial-cream); }
.mix-content-materials .mix-materials-filters { border-color: var(--editorial-line); background: var(--editorial-paper); }
.mix-content-materials .mix-material-card__cover {
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(180deg, #16033a12, #16033ac7), var(--editorial-artwork) center / cover no-repeat, #6728d4;
}
.mix-content-materials .mix-material-card__cover--paper { background-position: center, left center; }
.mix-content-materials .mix-material-card__cover--indigo { background-position: center, right center; }
.mix-material-card__format { opacity: 1; border-color: #ffffff94; background: #16033a99; border-radius: 4px; }
.mix-material-card__topic { color: #6728d4; border-color: #7839ee66; }
.mix-materials-faq, .mix-material-detail__faq { background: var(--editorial-paper); }
.mix-material-detail__context { background: var(--editorial-paper); }
.mix-material-detail__form-card {
  /* Six-pixel artwork frame replaces the native 1px line. Keep the same
     content inset by subtracting the additional 5px from native padding. */
  padding: calc(clamp(25px, 3vw, 36px) - 5px);
  border: 6px solid transparent;
  border-radius: 16px;
  background: linear-gradient(var(--editorial-paper), var(--editorial-paper)) padding-box,
    var(--editorial-artwork) center / cover border-box;
  box-shadow: 0 24px 54px #16033a0d;
}
.mix-material-detail__form-card button[type="submit"] { border-radius: 6px; background: var(--editorial-purple); }
.mix-material-detail__tags span { border-color: var(--editorial-line); background: var(--editorial-paper); }
.mix-material-delivery { background: var(--editorial-paper); }
.mix-materials-blog-cta { background: linear-gradient(90deg, #16033ade, #16033ac7), var(--editorial-artwork) center / cover no-repeat, #6728d4; }
.mix-materials-blog-cta p { color: #ebe6fb; }
.mix-materials-blog-cta a { border-radius: 6px; }

/* Faculty index, each course, every lesson and unavailable states. */
.mix-content-faculty, .mix-faculty-catalog, .mix-faculty-course-page,
.mix-faculty-lesson-page, .mix-faculty-unavailable { background: var(--editorial-cream); }
.mix-faculty-hero, .mix-faculty-course-hero, .mix-faculty-lesson,
.mix-faculty-sidebar, .mix-faculty-course { background: var(--editorial-paper); }
.mix-faculty-eyebrow { color: #6728d4; font-weight: 650; }
.mix-faculty-hero h1, .mix-faculty-course-hero h1,
.mix-faculty-lesson h1, .mix-faculty-unavailable h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.1; }
.mix-faculty-visual { border-radius: 16px; background: linear-gradient(#16033a40, #16033a80), var(--editorial-artwork) center / cover no-repeat, #6728d4; }
.mix-faculty-course { border-color: var(--editorial-line); border-radius: 12px; }
.mix-faculty-outcomes { background: var(--editorial-deep); }
.mix-faculty-outcomes li { background: var(--editorial-deep); }
.mix-faculty-lesson__body { color: var(--editorial-ink); }
.mix-faculty-callout, .mix-faculty-steps li, .mix-faculty-quiz fieldset { border-color: var(--editorial-line); background: var(--editorial-paper); border-radius: 8px; }
.mix-faculty-callout strong { background: var(--editorial-deep); }
.mix-faculty-callout p { background: var(--editorial-cream); }
.mix-faculty-primary:not(.mix-faculty-primary--locked),
.mix-faculty-quiz button, .mix-faculty-lesson footer button:not(:disabled) { background: var(--editorial-purple); border-radius: 6px; }
.mix-faculty-primary:not(.mix-faculty-primary--locked):hover,
.mix-faculty-quiz button:hover, .mix-faculty-lesson footer button:not(:disabled):hover { background: #6728d4; }

/* Tools keep solid inputs/results and reserve glass for dark diagram controls. */
.mix-content-tools, .mix-tools-hero, .mix-tools-next { background: var(--editorial-cream); }
.mix-tools-workspace, .mix-catalog-section { background: var(--editorial-paper); }
.mix-tools-hero__copy h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.1; }
.mix-tools-hero__diagram { color: #fff; border-color: #ffffff40; border-radius: 16px; background: linear-gradient(#16033a80, #16033a80), var(--editorial-artwork) center / cover no-repeat, #6728d4; box-shadow: 0 24px 54px #16033a14; }
.mix-tools-hero__diagram-head, .mix-tools-hero__diagram div span,
.mix-tools-hero__diagram > strong { color: #ebe6fb; }
.mix-tools-hero__diagram > div { border-color: #ffffff40; }
.mix-tools-hero__diagram-head { border-color: #ffffff40; }
.mix-tools-panel, .mix-tools-tab, .mix-catalog-card,
.mix-catalog-detail { border-color: var(--editorial-line); background: var(--editorial-paper); border-radius: 12px; }
.mix-tools-tab[aria-selected="true"] { border-color: var(--editorial-purple); background: #ebe6fb; }
.mix-tools-panel__result, .mix-catalog-output { background: var(--editorial-deep); }
.mix-catalog-card:hover { border-color: var(--editorial-purple); background: var(--editorial-cream); }
.mix-catalog-detail__header { background: var(--editorial-cream); }
.mix-catalog-filters button { border-color: var(--editorial-line); border-radius: 6px; }
.mix-catalog-filters button[aria-pressed="true"], .mix-catalog-submit,
.mix-tools-hero__link, .mix-tools-next a { background: var(--editorial-purple); border-radius: 6px; }
.mix-tools-next { border-color: var(--editorial-line); }

@media (max-width: 700px) {
  .mix-vision-hero h1, .mix-mission-hero h1, .mix-values-hero__copy h1,
  .mix-story-hero h1, .mix-purpose-hero h1, .mix-ethics-hero h1,
  .mix-support-hero h1, .mix-support-splash h1,
  .mix-blog-hero h1, .mix-post-head h1, .mix-newsletter-card__copy h1,
  .mix-faculty-hero h1, .mix-faculty-course-hero h1,
  .mix-faculty-lesson h1, .mix-faculty-unavailable h1,
  .mix-tools-hero__copy h1 { font-size: clamp(34px, 9.6vw, 46px); }
  .mix-ethics-hero__note { padding: 24px; }
  .mix-legal-back { padding: 20px; }
  .mix-material-detail__form-card { padding: 18px 13px; }
}

/* Preserve the splash's existing compact height contract on short phones. */
@media (max-width: 650px) and (max-height: 600px) {
  .mix-support-splash h1 { font-size: clamp(32px, 8.5vw, 34px); }
}
