:root {
  --soft-ice: #d6e8ed;
  --soft-paper: #f5f9fa;
  --soft-turquoise: #009da3;
  --soft-slate: #344b57;
  --soft-deep-teal: #195565;
  --soft-white: #ffffff;
  --soft-mist: #c6dce2;
  --soft-ink: #223746;
  --soft-link: #16636b;
  --soft-muted: #4a606b;
  --soft-action: #00787d;
  --soft-action-hover: #00666a;
  --soft-accent-on-dark: #9be2e4;
  --soft-control: #6a8790;
}

/* Corporate pages and the shared navigation inside WordPress. */
.editorial-site {
  --brand: var(--soft-link);
  --deep: var(--soft-slate);
  --dark: var(--soft-slate);
  --navy: var(--soft-slate);
  --aqua: var(--soft-turquoise);
  --light-accent: var(--soft-turquoise);
  --ink: var(--soft-ink);
  --muted: var(--soft-muted);
  --line: var(--soft-mist);
  --mist: var(--soft-ice);
  --paper: var(--soft-paper);
  --white: var(--soft-paper);
  color: var(--soft-ink);
}

.editorial-site :is(h1, h2, h3) { color: var(--soft-slate); }
:is(.corporate-column, .editorial-site) :focus-visible { outline-color: var(--soft-link); }

:is(.home-page, .recruit-page).editorial-site .site-header,
.corporate-column .corporate-header .site-header {
  background: var(--soft-paper);
  color: var(--soft-ink);
  border-color: var(--soft-mist);
}

:is(.home-page, .recruit-page).editorial-site .site-header .brand-dot,
.corporate-column .corporate-header .brand-dot {
  color: var(--soft-turquoise);
}

.editorial-site .site-nav :is(a[aria-current], a:hover, a:focus-visible),
.corporate-column .corporate-header .site-nav :is(a:hover, a:focus-visible),
.nav-group:has(.subnav-toggle[aria-expanded=true]) .nav-parent > a {
  color: var(--soft-link);
  text-decoration-color: var(--soft-turquoise);
}

.editorial-site .site-nav .consult-link,
.corporate-column .corporate-header .site-nav .consult-link,
.editorial-site .home-primary,
.editorial-site .top-contact-submit,
.corporate-column .cta-inner .button {
  color: var(--soft-white);
  background: var(--soft-action);
  border-color: var(--soft-turquoise);
}

.editorial-site .site-nav .consult-link:hover,
.corporate-column .corporate-header .site-nav .consult-link:hover,
.editorial-site .home-primary:hover,
.editorial-site .top-contact-submit:hover,
.corporate-column .cta-inner .button:hover {
  color: var(--soft-white) !important;
  background: var(--soft-action-hover);
  border-color: var(--soft-action-hover);
}

.editorial-site .subnav {
  background: var(--soft-paper);
  border-color: var(--soft-mist);
  border-top-color: var(--soft-turquoise);
  box-shadow: 0 14px 28px rgb(52 75 87 / 13%);
}
.editorial-site .subnav li + li { border-color: var(--soft-mist); }
.editorial-site .subnav-toggle { color: var(--soft-slate); }
.editorial-site .subnav-toggle[aria-expanded=true] { color: var(--soft-link); }
.editorial-site .site-nav .subnav a { color: var(--soft-ink); }
.editorial-site .site-nav .subnav a:is(:hover, :focus-visible) {
  color: var(--soft-link);
  background: var(--soft-ice);
}

/* Retain the full-bleed image and the established typography and layout. */
.editorial-site .corporate-hero {
  color: var(--soft-white);
  background: var(--soft-deep-teal);
}
.editorial-site .hero-content h1 { color: var(--soft-white); }
.editorial-site .hero-content h1 span { color: var(--soft-turquoise); }
.editorial-site .hero-content > p { color: var(--soft-paper); }
.editorial-site .home-secondary {
  color: var(--soft-white);
  border-color: var(--soft-paper);
  background: transparent;
}
.editorial-site .home-secondary:hover {
  color: var(--soft-white);
  border-color: var(--soft-white);
  background: rgb(255 255 255 / 12%);
}
.editorial-site .corporate-hero .hero-layout > figure::after {
  background:
    linear-gradient(180deg, rgb(25 85 101 / 14%), transparent 19%, transparent 83%, rgb(25 85 101 / 15%)),
    linear-gradient(90deg, var(--soft-deep-teal), rgb(25 85 101 / 98%) 17%, rgb(25 85 101 / 95%) 34%, rgb(25 85 101 / 85%) 46%, rgb(25 85 101 / 42%) 62%, transparent 85%);
}

.editorial-site :is(.page-hero, .career-hero) {
  background: linear-gradient(110deg, var(--soft-ice), var(--soft-paper));
  color: var(--soft-ink);
}
.editorial-site :is(.page-hero .crumb, .page-hero .eyebrow, .career-hero .eyebrow) { color: var(--soft-link); }
.editorial-site :is(#about, #design-fields, #cases, #works, #column) {
  background: var(--soft-paper);
  color: var(--soft-ink);
}
.editorial-site :is(#growth-cycle, .support-section) {
  background: var(--soft-ice);
  color: var(--soft-ink);
}
.editorial-site .support-section :is(.eyebrow, .text-link) { color: var(--soft-link); }
.editorial-site .support-section .more-link > a { color: var(--soft-slate); }

:root:has(link[rel=canonical][href$="/about/vision/"]) .editorial-site .page-hero,
.editorial-site .contact-panel {
  background: var(--soft-deep-teal);
  color: var(--soft-white);
}
:root:has(link[rel=canonical][href$="/about/vision/"]) .editorial-site .page-hero :is(h1, .crumb, .eyebrow),
.editorial-site .contact-panel :is(h2, .more-link > a) { color: var(--soft-white); }
.editorial-site .contact-panel :is(.eyebrow, .text-link) { color: var(--soft-accent-on-dark); }
.editorial-site .contact-panel .more-link > a:hover { color: var(--soft-deep-teal); }

.editorial-site :is(.case-card, .column-card, .career-grid article, .service-card, .top-contact-form, .recruit-nav) { background: var(--soft-paper); }
.editorial-site :is(.detail-note, .identity-photo img, .service-card .service-art) { background: var(--soft-paper); }
.editorial-site :is(.space-panel, .service-index .service-feature) { background: var(--soft-mist); }
.editorial-site :is(.space-panel, .service-card) { border-color: var(--soft-mist); }
.editorial-site .column-card:hover { background: var(--soft-mist); }
.editorial-site .region-card .eyebrow { color: var(--soft-link); }
.editorial-site .region-card h3 { color: var(--soft-ink); }
.editorial-site .region-card .region-copy { color: var(--soft-slate); }
.editorial-site :is(.case-card, .column-card, .record-card, .career-grid article) { border-color: var(--soft-turquoise); }
.editorial-site .growth-cycle li { border-color: var(--soft-control); }

.editorial-site .detail-content .top-contact-form { background: var(--soft-ice); }
.editorial-site .top-form-field { color: var(--soft-ink); }
.editorial-site .top-form-field em { color: var(--soft-link); }
.editorial-site .top-form-field :is(input, select, textarea) {
  background: var(--soft-paper);
  color: var(--soft-ink);
  border-color: var(--soft-control);
}
.editorial-site .top-form-field input::placeholder,
.editorial-site .top-form-field textarea::placeholder { color: var(--soft-muted); }
.editorial-site .top-contact-status.is-error { color: #9a2828; }
.editorial-site .top-contact-status.is-success { color: #166343; }
.editorial-site .filters button { color: var(--soft-link); background: var(--soft-paper); border-color: var(--soft-control); }
.editorial-site .filters button[aria-pressed=true] { background: var(--soft-action); color: var(--soft-paper); border-color: var(--soft-action); }

.editorial-site .site-footer,
.corporate-column .corporate-column-footer { background: var(--soft-slate); color: var(--soft-paper); }
.editorial-site .site-footer .footer-map { border-color: rgb(198 220 226 / 45%); }
.editorial-site .site-footer .footer-map > div > a { color: var(--soft-paper); }
.editorial-site .site-footer .footer-map li a,
.corporate-column .corporate-column-footer .footer-map li { color: var(--soft-mist); }
.editorial-site .site-footer a:hover,
.corporate-column .corporate-column-footer a:hover { color: var(--soft-accent-on-dark); }
.editorial-site :is(.corporate-hero, .contact-panel, .site-footer) :focus-visible,
.corporate-column .corporate-column-footer :focus-visible { outline-color: var(--soft-ice); }

/* BIZEAL archive, categories and individual articles. */
.corporate-column {
  --ink: var(--soft-ink);
  --navy: var(--soft-slate);
  --teal: var(--soft-link);
  --teal-light: var(--soft-turquoise);
  --gold: var(--soft-turquoise);
  --muted: var(--soft-muted);
  --line: var(--soft-mist);
  --pale: var(--soft-ice);
  --white: var(--soft-paper);
  background: var(--soft-paper);
}
.corporate-column .media-hero { background: linear-gradient(115deg, var(--soft-ice), var(--soft-paper)); }
.corporate-column .media-hero::after { border-color: var(--soft-mist); }
.corporate-column .media-hero h1 { color: var(--soft-slate); }
.corporate-column :is(.category-nav, .column-subheader) { background: var(--soft-paper); }
.corporate-column :is(.card-meta, .article-meta, .section-count, .column-subheader-brand small, .brand-copy small, .article-body figcaption, .footer-bottom) { color: var(--soft-muted); }
.corporate-column .card-image { background: var(--soft-mist); }
.corporate-column .cta-inner { background: var(--soft-slate); }
.corporate-column .cta-kicker { color: var(--soft-mist); }

/* Existing news templates keep their own layout and type settings. */
body:has(.news-list), body:has(.article-card, .article-body):not(.corporate-column) {
  --brand: var(--soft-link);
  --brand-dark: var(--soft-link);
  --text: var(--soft-ink);
  --muted: var(--soft-muted);
  --line: var(--soft-mist);
  --card: var(--soft-paper);
  background: linear-gradient(180deg, var(--soft-ice), var(--soft-paper));
}
body:not(.corporate-column) :is(.news-list .news-card, .article-card .article-head, .article-card .note-box) { background: var(--soft-paper); }
body:not(.corporate-column) :is(.news-card, .article-card, .header, .site-header) .btn-primary {
  background: var(--soft-action);
  color: var(--soft-paper);
}

@media (max-width: 1120px) {
  .has-menu .editorial-site .menu-toggle,
  .corporate-column .corporate-header:has(.has-disclosure) .menu-toggle {
    color: var(--soft-slate);
    border-color: var(--soft-control);
  }
  .editorial-site .primary-links > li { border-color: var(--soft-mist); }
  .editorial-site .subnav { border-left-color: var(--soft-turquoise); }
}

@media (max-width: 650px) {
  .editorial-site .corporate-hero .hero-layout > figure::after {
    background:
      linear-gradient(180deg, var(--soft-deep-teal) 0%, rgb(25 85 101 / 97%) 24%, rgb(25 85 101 / 92%) 48%, rgb(25 85 101 / 44%) 73%, transparent 91%, rgb(25 85 101 / 17%)),
      linear-gradient(90deg, rgb(25 85 101 / 20%), transparent 69%);
  }
}
