:root {
  --red: #ad1742;
  --ruby-light: #ff91ae;
  --ruby-sheen: linear-gradient(105deg, #b92a55, #ef7197 38%, #cd3d69 67%, #a91b48);
  --ruby-fill: linear-gradient(164deg, #bd2b57 0%, #ae1b47 44%, #8f163c 100%);
  --editorial-section: #f7f5f1;
  --editorial-panel: #f8edf0;
  --editorial-edge: #e6d9dd;
  --editorial-shadow: 0 4px 16px #3c142410;
}

/* Carry the Blog's warm canvas and white cards through the homepage. */
#main > :is(.intro, .services, .highlights, .activity-section, .events, .blog),
#main .ecosystem-intro {
  background-color: var(--editorial-section);
}

#main :is(.editorial-heading, .intro-grid, .ecosystem-statement) {
  border-top-color: var(--editorial-edge);
}

#main :is(.blog-grid article, .brand-grid .brand-card, .activity-card, .poster-feature),
.brief-card {
  color: var(--ink, #292320);
  border: 1px solid var(--editorial-edge);
  border-top: 3px solid transparent;
  border-radius: 8px;
  background: linear-gradient(#fff, #fff) padding-box, var(--ruby-sheen) border-box;
  box-shadow: var(--editorial-shadow);
}

#main .brand-grid .brand-card-copy strong,
#main .event-carousel .poster-date {
  color: var(--ink);
}

#main .brand-grid .brand-card-copy :is(p, .brand-specs),
#main .event-carousel .poster-feature-copy p:not(.poster-date) {
  color: #55595d;
}

#main .events .event-carousel,
.brief-carousel {
  color: var(--ink, #292320);
  background: var(--editorial-panel);
  border: 1px solid var(--editorial-edge);
  border-radius: 10px;
  box-shadow: var(--editorial-shadow);
}

.brief-carousel { --brief-red: var(--red); }

#main .backdrop-tags span {
  color: var(--red);
  background: #fff;
  border-color: var(--editorial-edge);
}

#main .event-carousel-track,
.brief-track {
  scrollbar-color: #be6a83 #f1e4e8;
}

#main .events .event-carousel :is(.event-backdrop-head h3, .poster-feature h4) {
  color: var(--ink);
}

#main :is(.intro .intro-lead .eyebrow, .intro .section-title em, .intro .rule-link,
.activity-category, .activity-event-link, .brand-grid article .brand-card-copy span,
.brand-grid .brand-card-copy .brand-source,
.event-carousel .eyebrow, .poster-feature-copy a),
.brief-card .brief-link {
  color: var(--red);
}

#main .intro .intro-copy { border-left-color: var(--red); }

/* Photo-backed sections keep their dark panels and gain the same ruby trim. */
#main :is(.hero-reach, .intro .investment-grid article, .operations .operation-head,
.operations .operation-list article, .ecosystem .eco-grid > div),
.age-card,
.partner-dialog {
  border-top: 3px solid var(--red);
  border-image: var(--ruby-sheen) 1 0 0 0;
}

#main :is(.intro .investment-no, .operations .eyebrow, .operations .operation-list article > span,
.ecosystem .eyebrow, .flow-row > span:first-child, .flow-row > span:last-child),
.age-label {
  color: var(--ruby-light);
}

.de-header .de-header-cta,
#main .button:not(.button-light),
#main .statement,
#main .operations .operation-symbol,
.age-actions button:first-child,
.partner-submit {
  color: #fff;
  background: var(--ruby-fill);
  border-color: #a91b48;
}

.de-header .de-header-cta,
#main .button:not(.button-light),
.age-actions button:first-child,
.partner-submit {
  box-shadow: inset 0 1px 0 #ffffff52, 0 3px 9px #81133726;
}

.de-header .de-header-cta:hover,
#main .button:not(.button-light):hover,
.partner-submit:not(:disabled):hover {
  background: linear-gradient(164deg, #bb305b, #96183e);
}

#main :is(.brand-gallery-controls, .activity-controls, .event-carousel-controls) button,
.brief-controls button {
  color: var(--red);
  background: #fff;
  border-color: #d7adbb;
}

#main :is(.brand-gallery-controls, .activity-controls, .event-carousel-controls)
button:not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible),
.brief-controls button:not([aria-disabled="true"]):is(:hover, :focus-visible) {
  color: #fff;
  background: var(--ruby-fill);
  border-color: var(--red);
}

#main :is(.event-carousel-track, .event-carousel-controls button, .poster-feature-copy a, .poster-image):focus-visible,
.brief-card a:focus-visible,
.brief-controls button:focus-visible,
.brief-track:focus-visible {
  outline-color: var(--red);
}

@media (forced-colors: active) {
  #main :is(.blog-grid article, .brand-grid .brand-card, .activity-card, .poster-feature),
  .brief-card { border-top-color: CanvasText; }
}
