/* Fylcora 125 tool pages: accessible dark/light contrast v1.
   Scoped to tool page wrappers. Workspace stays light for reliable form controls. */

/* Legacy tools: outer title previously inherited hardcoded dark ink. */
body.theme-dark .legacy-tool {
  --ink:#f4f7ff;
  --muted:#c2cee7;
  color:#eef3ff;
}
body.theme-dark .legacy-tool .tool-title h1,
body.theme-dark .legacy-tool .tool-title > div > h1 {
  color:#f7f9ff;
  -webkit-text-fill-color:#f7f9ff;
}
body.theme-dark .legacy-tool .tool-title p:not(.eyebrow) {color:#c7d3ef;}
body.theme-dark .legacy-tool .tool-title .eyebrow {color:#ada4ff;}
body.theme-dark .legacy-tool .crumbs,
body.theme-dark .legacy-tool .crumbs span {color:#b7c7e5;}
body.theme-dark .legacy-tool .crumbs a {color:#c4bdff;}
body.theme-dark .legacy-tool .tool-glyph {background:#26355e;color:#d6d0ff;}
/* Important: preserve strong dark text on white file-processing panels */
body.theme-dark .legacy-tool .editor-card,
body.theme-dark .legacy-tool .info-panel {
  --ink:#172641;
  --muted:#586d88;
  color:#172641;
  color-scheme:light;
}
body.theme-dark .legacy-tool .editor-card :is(h1,h2,h3,h4,legend,strong,label),
body.theme-dark .legacy-tool .info-panel :is(h1,h2,h3,h4) {color:#152343;}
body.theme-dark .legacy-tool .editor-card :is(input,textarea,select) {color-scheme:light;}
body.theme-dark .legacy-tool .editor-card :is(input,textarea,select)::placeholder {color:#60738d;opacity:1;}
body.theme-dark .legacy-tool .side-panel .info-panel a {color:#5747d6;}
/* Image workspace title uses global theme vars: enforce contrast and avoid theme clashes. */
body.theme-dark .workspace-page .tool-heading h1 {color:#f7f9ff;-webkit-text-fill-color:#f7f9ff;}
body.theme-dark .workspace-page .tool-heading p {color:#c8d3ed;}
body.theme-dark .workspace-page .crumb {color:#adbedf;}
body.theme-dark .workspace-page .crumb a {color:#c4bbff;}
body.theme-dark .workspace-page .tool-heading .eyebrow {color:#aaa2ff;}
/* Content guide uses theme surfaces, and must remain readable in both modes. */
body.theme-dark :is(.workspace-page,.legacy-tool) .fyl-guide-section,
body.theme-dark .fyl-rich-public .fyl-guide-section {color:var(--ink,#f4f7ff);}
body.theme-dark :is(.workspace-page,.legacy-tool) .fyl-guide-section a,
body.theme-dark .fyl-rich-public .fyl-guide-section a {color:#c7bfff;}
/* Light mode intentionally leaves original appearance intact. */
@media (max-width:620px) {
  body.theme-dark .legacy-tool .tool-title h1 {font-size:clamp(25px,7vw,35px);line-height:1.23;}
  body.theme-dark .legacy-tool .crumbs {line-height:1.7;}
}
