/* The media on this stylesheet follows the device, or the reader's explicit choice. */
:root {
    color-scheme: dark;
    --ink: #edf4f1;
    --muted: #bed0c9;
    --gold: #f0c982;
    --brand: #e3ae58;
    --paper: #10191c;
    --soft: #1a2b2c;
    --line: #425855;
    --field: #142225;
    --raised: #1b292d;
    --edge: #768e88;
    --cue: #8ed7c3;
    --cue-soft: #182f2e;
    --cue-line: #405f59;
}
.ae-theme--teal { --cue: #8ed7c3; --cue-soft: #182f2e; --cue-line: #405f59; }
.ae-theme--blue, .knowledge-section { --cue: #9bd2f4; --cue-soft: #1c2c39; --cue-line: #425c70; }
.ae-theme--green { --cue: #b4d99f; --cue-soft: #222f26; --cue-line: #455f48; }
.ae-theme--plum { --cue: #d5bce7; --cue-soft: #2c2635; --cue-line: #63516e; }
.ae-theme--amber { --cue: #edc888; --cue-soft: #322c24; --cue-line: #685942; }
.ae-theme--slate { --cue: #bfd1df; --cue-soft: #242e36; --cue-line: #4c5e6c; }

html, body, .article-copy { background: var(--paper); }
body, .r9-hero-message h1 { color: var(--ink); }
html .site-header, html .site-header .nav > nav, .skip { background: var(--field); color: var(--ink); }
.site-header .logo img { box-sizing: border-box; padding: 4px 8px; border-radius: 5px; background: #fff; }
.site-header .menu-toggle, .site-header .ae-theme-picker select { background: var(--raised); color: var(--ink); border-color: var(--edge); }
.site-header .nav nav > a:is([aria-current="page"], :hover):not(.button) { color: var(--gold); }
.r9-hero, .hero, .page-intro { background: linear-gradient(115deg,var(--cue-soft),var(--paper)); border-color: var(--cue-line); }

:is(.product-card, .product-info, .insight-card, .insight-card-body, .article-cover,
    .contact-form, .knowledge-start, .social-links-feature .social-link, .visual-credit,
    .visual-frame, .visual-resource-label, .catalog-tools, .solution-products > a,
    .r7-news-feature, .r7-editorial-photo, .r7-instrument-cue, .basket-box, .r9-picks a,
    .r9-scroll-controls button, .r8-choice-label, .principal-directory-links a, .faq details) {
    color: var(--ink); background: var(--raised); border-color: var(--line);
}
:is(.app-card, .task-card, .reference-card, .insight-card) { border-top-color: var(--cue); }
:is(.support-section, .education-section, .subtle-panel, .catalog-discovery, .article-aside,
    .r10-guide-models, .r11-sheet-download, .need-shortcuts a, .r9-result-jumps a,
    .faq details[open], .article-copy th, .article-copy tbody tr:nth-child(even),
    .r7-spec-list > div:nth-child(odd), .channel-feature, main .palm-qc-feature) {
    background: var(--cue-soft); border-color: var(--cue-line);
}
.r9-search > div, .r9-search input, input, select, textarea {
    background: var(--field); color: var(--ink); border-color: var(--edge);
}
::placeholder { color: #a1b6af; opacity: 1; }
.r9-hero-message p, .r8-result > p, .r9-picks small, .r9-result-jumps span,
.article-copy p, .article-copy li, .r7-editorial-photo figcaption, .r7-instrument-cue figcaption,
.contact-info address, .principal-directory-links .principal-lines, .visual-credit,
.r11-sheet-download small, .r7-news-meta, .r7-study-scope, .r7-spec-list dt { color: var(--muted); }
.r9-search label, .faq summary, .r9-filters summary, .r9-basket summary { color: var(--ink); }
.r9-find-link, .r9-scroll-controls button, .article-aside h2, .r8-service-links .need-icon,
.r10-guide-models strong, .r10-guide-models a, .r11-sheet-download, .r7-spec-shortcuts a,
.r7-product-help a, .r7-source-list a, .r7-studies a, .faq details[open] summary,
.education-section .education-grid > div > h2, .education-section .eyebrow,
.catalog-discovery .text-link, .r9-result-jumps a, .visual-credit a,
.palm-qc-feature .eyebrow, .palm-qc-copy .text-link { color: var(--cue); }

.button, .button.light, .button:hover, .button.light:hover { color: #1e251f; }
.button.outline, .reference-card .button.outline, .basket-row button {
    background: var(--raised); color: var(--ink); border-color: var(--edge);
}
.r9-search button { color: #0f2521; background: var(--cue); }
.r8-choice:checked + .r8-choice-label, .app-card .visual-card-body .need-icon,
.need-shortcuts a[aria-current], .need-shortcuts a[aria-pressed="true"],
.support-principles .principle-number, .need-icon { color: var(--paper); background: var(--cue); }
.r8-choice-label .need-icon { color: var(--cue); background: var(--cue-soft); }
.r8-service-links .need-icon { background: none; }
.r9-basket summary > span:not(:empty), .translation-note, .release-bar, .notice {
    color: var(--gold); background: #30291f;
}
.form-error { background: #40292a; color: #ffd1c6; }
.social-icon { color: var(--paper); background: var(--ink); }
.toast { background: #253f40; color: var(--ink); border: 1px solid var(--edge); }
::selection { background: #e4c68e; color: #18211c; }

.r9-search button:hover { background: #bae7d8; }
:is(.r9-picks a, .r9-scroll-controls button:enabled, .principal-directory-links a,
    .r9-result-jumps a, .r8-choice-label, .r11-sheet-download, .button.outline):is(:hover, :focus-visible) {
    background: #29433f; color: var(--ink); border-color: var(--cue);
}
.r8-choice:checked + .r8-choice-label { color: var(--paper); background: var(--cue); }
.r9-picks:focus-visible, .r9-picks a:focus-visible, .principal-directory-links a:focus-visible,
.r8-choice:focus-visible + .r8-choice-label, :focus-visible { outline-color: #f2ca7c; }

/* Give transparent instrument photographs and brand marks a neutral mount. */
.principal-directory-links .principal-mark:has(img) { background: #fff; border-radius: 5px; padding: 3px 4px; }
.principal-directory-links .principal-mark img { max-width: 100%; }
.r7-instrument-cue img { background: #fff; border-radius: 5px; }
.product-label, .product-label small { color: #253831; }
