/* Large lettering on white, illustrations, and highlights on navy use
   different values so the same orange stays vivid on each surface. */
:root {
  --flame-display: #fa5c08;
  --flame-fill: #ff7828;
  --flame-hover: #ff963f;
  --flame-ink: #16202b;
  --flame-wash: #ffe3cc;
  --flame-line: #eb5b06;
  --flame-diagram: var(--flame-fill);
}
:root[data-ava-theme=dark] {
  --flame-display: #ff8939;
  --flame-line: #ffa05a;
  --flame-diagram: #ff963f;
  --flame-wash: #543522;
}
html .detail-screen .seo-page .type-hero .type-en { color:var(--flame-display); }

/* Use each control's established palette while retaining its hover motion. */
html .textlink[data-button-sway] {
  padding:.37em .78em;
  border-radius:2px;
  line-height:1.5;
}
@keyframes ava-button-sway {
  0%,100% { translate:0 0; rotate:0deg; }
  30% { translate:1px -2px; rotate:-1.2deg; }
  64% { translate:-1px -1px; rotate:.8deg; }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html :is(button:not(:disabled),[data-button-sway]:not(:disabled),.back,.inq-back,.sx-link,.co-map-open,.ai-medlink):hover,
  html :is(.case-guide,.research-link,.medical-banner,.medical-dock,.pc-trigger,.ai-diagram,.practice-row,summary):hover
    :is(.guide-go,.research-graphic,.medical-out,.external,.pc-stage,.aio-art,.expand,.route-mark,.accordion-sign),
  html main details:not(.practice)>summary:hover::after {
    animation:ava-button-sway .42s ease-out 1;
  }
}

/* Highlight the subject of each drawing, leaving outlines and copy in navy or white. */
.service-symbol .signal-ink { color:var(--flame-hover); stroke:currentColor; }
.service-symbol .signal-ink[stroke=none] { stroke:none; }
.service-symbol .signal-ink[fill=currentColor] { fill:currentColor; }
html .detail-screen :is(.tech-icon,.legacy-icon,.example-icon,.head-art,.print-art,.strategy-scene) {
  --opt-blue:var(--flame-diagram); --p-blue:var(--flame-diagram);
  --art-blue:var(--flame-diagram); --glyph-blue:var(--flame-diagram);
  --figure-blue:var(--flame-diagram); --scene-blue:var(--flame-diagram);
}
html .detail-screen :is(.tech-icon,.example-icon,.legacy-icon,.strategy-scene) {
  --opt-low:var(--flame-wash); --art-pale:var(--flame-wash); --scene-wash:var(--flame-wash);
}
html .detail-screen :is(.seo-scene,.pc-icon,.mk-art,.aio-art) {
  --sc-blue:var(--flame-diagram); --pc-blue:var(--flame-diagram);
  --mk-key:var(--flame-diagram); --draw-blue:var(--flame-diagram);
}
.ms-page :is(.ms-index, #ms-local) .mk-art .blue { fill:var(--flame-diagram); }
.ms-page :is(.ms-index, #ms-local) .mk-art :is(.blue-line, .route) { stroke:var(--flame-diagram); }
.detail-screen :is(.ms-chapter,.ai-service,.sx-service) :is(.blue-line,.result-rule,.ill-tick) { stroke:var(--flame-line); }
html .detail-screen #aio-concerns .aio-art { --draw-detail:var(--flame-diagram); }
html .detail-screen .pc-icon .pc-handle { stroke:var(--flame-diagram); }
html .detail-screen .dc-signet { background:var(--navy); color:#fff; }
html .detail-screen .dc-mini { color:var(--flame-line); }
html .detail-screen :is(.dc-origin,.dc-goal) > .dc-mini { border-color:var(--flame-line); }
html .detail-screen .dc-fork,html .detail-screen .dc-join { --dc-key:var(--flame-line); }
/* The heading and both routes use the same print-style labels on either page. */
.dc-section { --journey-black:#111; }
html .detail-screen :is(.dc-title-seo, .dc-seo .dc-chip) {
  background:var(--journey-black); color:#fff; border:2px solid var(--journey-black);
}
html .detail-screen :is(.dc-title-aio, .dc-aio .dc-chip) {
  background:#fff; color:var(--journey-black); border:2px solid var(--journey-black);
}
html .detail-screen .dc-section .dc-path[data-path] { border-top-color:var(--dc-ink); }
.dc-section .dc-path .dc-work > span { color:var(--dc-ink); }
html[data-ava-theme=dark] .detail-screen :is(.dc-title-seo, .dc-seo .dc-chip) {
  border-color:var(--line);
}

.sx-contact-plain .sx-contactinner > div { max-width:44em; min-width:0; }
.sx-contact-plain .sx-cta { flex-shrink:0; max-width:100%; }
html .detail-screen #support .story-mark .mark-key { fill:var(--flame-diagram); stroke:var(--flame-diagram); }
html .detail-screen #cases .head-art.plate { --p-blue:var(--flame-diagram); }
html .detail-screen :is(.sx-magnifier,.sx-icon) { color:var(--flame-line); }
html .detail-screen .inq-intro {
  --inq-wing-lit:#ffb178; --inq-wing-tip:var(--flame-diagram); --inq-wing-mid:#ff7d35;
  --inq-ridge:#ffdbb4; --inq-trace:var(--flame-line);
}
html .detail-screen .co-map-sheet .location-pin { fill:var(--flame-display); }
html .detail-screen .co-map-sheet .location-leader { stroke:var(--flame-line); }
html .detail-screen .guide-art [fill="#006fb9"] { fill:var(--flame-diagram); }
html .detail-screen .guide-art [stroke="#006fb9"] { stroke:var(--flame-diagram); }
html .detail-screen .guide-art [fill="#f0f6fa"] { fill:var(--flame-wash); }
html .detail-screen .seo-page .sx-case .sx-metric strong,
html .detail-screen .ai-tally:last-child .ai-stat strong,
html .detail-screen .metric b { color:var(--flame-display); }
html .detail-screen .ig-returnline { color:var(--flame-line); }
