/* Book-wide custom CSS overrides, loaded via the html.css.extra
   stringparam in the publication files. */

/* Center the caption under the "Earth from Space" figure in the
   Ethics, Bias, and Future of AI section. */
#intro-ai-globe-west figcaption {
    text-align: center;
}

/* Center the caption under the "Comparison of Machine Learning Types" */
/* figure in the AI Toolbox / Core Subfields section.                 */
#intro-ai-three-learning-types figcaption {
    text-align: center;
}

/* Black-background static code listing for the scikit-learn decision  */
/* tree example in How AI Thinks (not runnable in ActiveCode/CodeLens  */
/* since it depends on an external library).                           */
#intro-ai_traditional-vs-ml pre.program,
#intro-ai_traditional-vs-ml pre.program code {
    background: #1e1e1e;
    color: #d4d4d4;
    text-shadow: none;
}

/* Prism's default theme gives operator/entity tokens (e.g. "=") a          */
/* translucent white background box meant for light pages. Against our     */
/* dark code background that washes out their already-dim text color,      */
/* making punctuation like "=" unreadable. Strip the background and use    */
/* the same light foreground color as the rest of the listing.             */
#intro-ai_traditional-vs-ml pre.program .token.operator,
#intro-ai_traditional-vs-ml pre.program .token.entity,
#intro-ai_traditional-vs-ml pre.program .token.url {
    background: none;
    color: #d4d4d4;
}

/* Bold the "1." numbers in the "Pro Tips for Undergraduate Success" list */
/* in the Future of AI and Human Collaboration section.                  */
#intro-ai-socratic-dialogues ol.decimal > li::marker {
    font-weight: bold;
}

/* Center the caption under the "Input, Layered Processing, Output" */
/* figure in the AI Applications section.                           */
#intro-ai-catSpaceuit figcaption {
    text-align: center;
}

/* Bold the "1." numbers in the Hallucination Rates list in the */
/* Generative AI (2.4.3) subsection.                             */
#intro-ai_generative-ai ol.decimal > li::marker {
    font-weight: bold;
}
