
body.ce-public-v3 .ce-theme-switch {
  flex: 0 0 auto;
  margin-inline-start: auto;
  padding: .48rem .65rem;
  border: 1px solid currentColor;
  border-radius: .45rem;
  background: #15243a;
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.ce-theme-switch[hidden] { display: none !important; }
.ce-theme-switch:focus-visible { outline: 3px solid #b1812a; outline-offset: 3px; }
@media (max-width: 480px) {
  body.ce-public-v3 .brand-row > .brand-link { min-width: 0; }
  body.ce-public-v3 .brand-row > .brand-link img { max-width: 100%; height: auto; }
}
html[data-ce-theme="light"] { color-scheme: light; }
html[data-ce-theme="light"] body.ce-public-v3 {
  background: #f1f5fa;
  color: #172742;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(
  .site-header, .main-nav, .mobile-links, .hero, .hero-panel, .hero-aside,
  .section, .site-footer, .capability, .card, .audience-card, .inset-note,
  .link-band, .directory-toolbar, .market-card, .selection-panel,
  .contact-panel, .contact-form, .faq-item, .faq-side, .comparison
) { background: #f8fafd; color: #172742; border-color: #c8d5e5; }
html[data-ce-theme="light"] body.ce-public-v3 :is(
  .site-header, .hero-copy, .section, .site-footer
) :is(h1,h2,h3,p,li,label,summary,.lead,.footer-title,.market-domain,.market-region,.directory-note) {
  color: #172742;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(.eyebrow,.kicker,.small-label,.hero-highlight) {
  color: #795214;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(
  .main-nav a,.mobile-links a,.workspace-links a,.footer-links a,.text-link,
  .breadcrumbs a,.market-wire,.market-login,.support-links a,.faq-nav a
) { color: #174b83; }
html[data-ce-theme="light"] body.ce-public-v3 :is(.button--secondary,.market-login,.market-wire) {
  background: #fff;
  border-color: #9bacc4;
  color: #174b83;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(.contact-form,.directory-controls) :is(input,select,textarea) {
  background: #fff;
  border-color: #8da0bd;
  color: #172742;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(.map-panel,.map-placeholder,.cta-band) {
  background-color: #172742;
  color: #fff;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(.map-panel,.map-placeholder,.cta-band) :is(h2,h3,p,li) {
  color: #fff;
}
html[data-ce-theme="light"] body.ce-public-v3 .ce-theme-switch[aria-pressed="true"] {
  color: #172742;
  background: #e9d5a7;
}

/* CityEngine light button contrast */
html[data-ce-theme="light"] body.ce-public-v3 :is(
  .workspace-links a,
  .main-nav a,
  .mobile-links a,
  .mobile-menu > summary,
  .map-list-details > summary
) {
  color: #fff;
}

html[data-ce-theme="light"] body.ce-public-v3 .mobile-links a {
  background-color: #203452;
}

.ce-appearance-row {
  display: flex;
  justify-content: flex-end;
  max-width: 1160px;
  margin-inline: auto;
  padding: .35rem 1rem;
}
.ce-appearance:not([hidden]) {
  display: inline-flex;
  gap: .15rem;
  padding: .15rem;
  border: 1px solid #6b7f9d;
  border-radius: .45rem;
  background: #15243a;
}
.ce-appearance button {
  padding: .24rem .55rem;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: #fff;
  font: 600 .8rem/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.ce-appearance button[aria-pressed="true"] { background: #e9d5a7; color: #172742; }
.ce-appearance button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
html[data-ce-theme="light"] body.ce-public-v3 :is(
  .main-nav a, .workspace-links a, .mobile-links a, .footer-links a,
  .mobile-menu > summary, .map-list-details > summary
) { color: #fff; background-color: #203452; }

/* CityEngine logo and appearance controls */
.ce-brand-appearance {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.ce-brand-appearance .brand-link { min-width: 0; }
.ce-brand-appearance .brand-logo { max-width: 100%; height: auto; }
.ce-brand-appearance .ce-appearance-row { padding: 0; margin: 0; flex: 0 0 auto; }
@media (max-width: 420px) {
  .ce-brand-appearance { gap: .3rem; }
  .ce-brand-appearance .ce-appearance button { padding-inline: .35rem; }
}

/* CityEngine Light mode text contrast */
html[data-ce-theme="light"] body.ce-public-v3 :is(
  .hero-topics span, .hero-panel figcaption, .section figcaption,
  .market-card .state-label, .capability .capability-index,
  .breadcrumbs, .breadcrumbs span, .selection-panel .selection-visual span
) { color: #294563; }
html[data-ce-theme="light"] body.ce-public-v3 .map-panel .map-status {
  color: #243d59;
  background: #eaf1f8;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(
  .site-header .mobile-menu > summary,
  .section .map-list-details > summary
) { color: #fff; }
html[data-ce-theme="light"] body.ce-public-v3 .cta-band :is(h2,h3,p) {
  color: #fff;
}

/* CityEngine Light mode badge and supporting text contrast */
html[data-ce-theme="light"] body.ce-public-v3 .hero-topics span {
  color: #172742;
  background: #e5eef9;
  border-color: #9ab0cb;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(.quiet-note,.contact-form small) {
  color: #294563;
}
html[data-ce-theme="light"] body.ce-public-v3 .comparison > article {
  background: #e5eef9;
  border-color: #9ab0cb;
  color: #172742;
}
html[data-ce-theme="light"] body.ce-public-v3 .selection-panel .selection-hint span {
  color: #294563;
}

/* CityEngine Light mode market directory */
html[data-ce-theme="light"] body.ce-public-v3 .network-explorer-v4 .directory-note {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border: 1px solid #bdcde1;
  border-radius: .65rem;
  background: #eaf1f9;
  color: #243e5b;
  font-size: .9rem;
  line-height: 1.6;
}
html[data-ce-theme="light"] body.ce-public-v3 .network-explorer-v4 .directory-note a {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #164a7d;
  text-decoration: underline;
  text-underline-offset: .16em;
}
html[data-ce-theme="light"] body.ce-public-v3 .network-explorer-v4 .map-list-details {
  background: #eaf1f9;
  border-color: #bdcde1;
}
html[data-ce-theme="light"] body.ce-public-v3 .network-explorer-v4 .map-list-details > summary {
  color: #fff;
}

/* CE_PUBLIC_CONTRAST_07 */
/* Keep the foreground and the painted surface together for each component. */
html[data-ce-theme="light"] body.ce-public-v3 {
  --ce-readable-ink: #192e48;
  --ce-readable-muted: #354f6c;
  --ce-readable-pale: #eef4fb;
}
html[data-ce-theme="light"] body.ce-public-v3 .hero-inner {
  background: linear-gradient(130deg,#f8fbff,#e6eff9);
  color: var(--ce-readable-ink);
}
html[data-ce-theme="light"] body.ce-public-v3 .hero-inner :is(h1,.lead) {
  color: var(--ce-readable-ink);
}
html[data-ce-theme="light"] body.ce-public-v3 .hero-inner :is(figcaption,.small-label) {
  background: var(--ce-readable-pale);
  color: var(--ce-readable-muted);
}
/* These anchors and summaries are painted buttons in the original design. */
html[data-ce-theme="light"] body.ce-public-v3 :is(
  a.text-link, .breadcrumbs a, .faq-nav a, .support-links a, .faq-item > summary
) {
  color: white !important;
  background-color: #203754;
  text-shadow: none;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(
  a.text-link, .breadcrumbs a, .faq-nav a, .support-links a, .faq-item > summary
):is(:hover,:focus-visible,:active) {
  color: white !important;
  background: #173757;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(
  a.text-link, .breadcrumbs a, .faq-nav a, .support-links a, .faq-item > summary
):focus-visible {
  outline: 3px solid #9b6200;
  outline-offset: 3px;
}
html[data-ce-theme="light"] body.ce-public-v3 .network-explorer-v4 :is(
  .map-heading, .selection-head, .map-placeholder
) {
  background: linear-gradient(125deg,#192e4c,#26395f);
  color: #fff;
}
html[data-ce-theme="light"] body.ce-public-v3 .network-explorer-v4
:is(.map-heading,.selection-head,.map-placeholder) :is(h2,h3,p,.eyebrow,.map-kicker) {
  color: #fff;
}
html[data-ce-theme="light"] body.ce-public-v3 .network-explorer-v4 .map-brand-mark {
  color: #fff;
  background: #26395f;
}
html[data-ce-theme="light"] body.ce-public-v3 :is(
  .selection-hint,.selection-hint > span,.capability .capability-index,
  .market-selection .market-selection-note
) {
  background: var(--ce-readable-pale);
  color: var(--ce-readable-ink);
}
