/* Reading surfaces that retain component-specific colors in the light theme. */
html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .ab-intro, .ab-section, .angel-section, .mine-panel, .pq-related,
    .ng-issuer, .class-guide-moves > article, .class-guide-profile > div,
    .league-rank, .league-rewards > article, .clan-card, .twilight-steps article,
    .twilight-resource, .twilight-spell-groups section, .expedition-stage-map li,
    .nq-section, .season-details-grid article, .city-guide-place > a, .dungeon-index-card,
    .abode-safe-grid > article, .abode-route-grid > article
) {
    background-color: var(--page-paper);
    border-color: var(--page-line);
    color: var(--page-ink);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .ab-ingredient, .rune-slot, .angel-card, .angel-flow > li, .angel-game-entry .angel-item,
    .mine-run-grid > article, .ac-chest, .twilight-note,
    .mine-note, .stability-rank-tool, .bonsai-item, .bonsai-steps > li,
    .bonsai-choices > article, .mine-grid article, .mine-calendar > div,
    .mine-equipment a, .mine-frames a, .mine-pills a, .ac-example, .ac-ability, .ac-fragments li,
    .ab-attributes > div, .angel-guide details, .angel-level-grid figure, .bonsai-disclosure,
    .twilight-object, .twilight-section > details, .nq-dialog, .nq-item,
    .mosaic-holons > div, .help-place-grid > div, .dungeon-index-stat-grid > div,
    .valentine-gallery .valentine-item, .puck-card, .puck-stage > div, .puck-note, .currency-shop h3
) {
    background-color: var(--page-wash);
    border-color: var(--page-line);
    color: var(--page-ink);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .ab-intro, .ab-section, .angel-section, .mine-panel, .pq-related, .ng-issuer,
    .league-rank, .league-rewards > article, .clan-card, .bonsai-steps > li,
    .bonsai-choices > article, .rune-slot, .abode-safe-grid > article, .abode-route-grid > article,
    .twilight-steps article, .twilight-resource, .twilight-spell-groups section, .expedition-stage-map,
    .nq-section, .season-details-grid article, .puck-card, .puck-stage, .puck-note,
    .ac-ability, .help-steps
) :is(h2, h3, h4, strong, legend) {
    color: var(--page-ink);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .ab-intro, .ab-section, .angel-section, .mine-panel, .pq-related, .ng-issuer,
    .league-rank, .league-rewards > article, .clan-card, .bonsai-steps > li,
    .bonsai-choices > article, .abode-safe-grid > article, .abode-route-grid > article
) :is(p, li, dd, time, figcaption, small),
html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .class-guide-profile dd, .class-guide-screen figcaption, .ng-section p, .ng-section li,
    .ng-issuer header span, .dungeon-index-layers > p, .ac-section :is(p, li, small),
    .quests-directory-note, .bonsai-location figcaption, .armory-loot-preview, .armory-loot-more,
    .expedition-cover :is(.expedition-meta li, figcaption), .shop-directory-entry :is(span, small),
    .shop-offer-details :is(p, dd), .shop-offer-role, .shop-offer-level, .shop-offer-price span,
    .rune-slot small, .angel-game-entry .angel-item span, .ng-tasks span, .necro-path-result p,
    .dg-field-images figcaption, .help-steps :is(p, li, figcaption), .mine-calendar span,
    .currency-price, .currency-offer-name small, .currency-shop h3 small,
    .city-guide-place-copy small, .puck-card small, .angel-small, .nq-section figcaption,
    .nq-note, .nq-item small, .dungeon-index-areas, .dungeon-index-card-body > p, .dungeon-index-stat-grid dt
) {
    color: var(--page-muted);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .twilight-section > strong, .twilight-section :is(p, li) > strong, .twilight-with-figure strong,
    .twilight-summary strong, .twilight-route strong, .twilight-note strong,
    .class-guide-steps strong, .class-guide-loadouts strong, .class-guide-moves strong,
    .ac-section strong, .quests-directory-group > h2, .quests-directory-search > label,
    .quests-directory-filters legend, .clan-guide .catalog-group > h2,
    .clan-guide .catalog-item-copy > strong, .armory-loot-index-copy > strong,
    .shop-directory-entry strong, .shop-stock-main > p > strong, .armory-extra-section > h2,
    .armory-item-ensemble-build h4, .armory-loot-quantity, .bestiary-combat-grid h3,
    .expedition-notes > h2, .dungeon-index-filters label, .mine-panel label,
    .ppk-class-filter, .ppk-exchange-columns h4, .ppk-cozy-item strong, .city-guide-place-copy strong,
    .dungeon-index-card-body h3, .dungeon-index-stat-grid dd
) {
    color: var(--page-ink);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content .clan-guide .catalog-item-copy > span {
    color: var(--page-muted);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .clan-callout a, .clan-card a, .ac-return, .ac-section a,
    .ng-chapters a, .ng-section a, .ng-map-links b, .necro-path-panel > summary,
    .ng-disclosure > summary, .necrovill-map .dg-map-search-toggle > summary, .rune-nav a,
    .rune-guide summary, .rune-guide section a, .angel-nav a, .angel-related a,
    .armory-loot-preview b, .move-library .armory-hero a, .move-library > p > a, .move-filters a,
    .city-guide-hero .bk-kicker, .rune-guide > header .bk-kicker,
    .mosaic-guide > header .bk-kicker, .angel-guide > header .bk-kicker,
    .dungeon-hero-route > summary, .shop-offer-price, .shop-offer-stats dt,
    .mine-details > summary, .mine-table caption, .twilight-steps article > span,
    .nq-header .bk-kicker, .nq-item span.nq-quality, .ab-attributes b, .angel-guide summary,
    .twilight-object summary, .twilight-section > details > summary, .bonsai-disclosure summary,
    .dg-map-guide-points summary, .ppk-coordinates summary, .dungeon-index-card summary
),
html[data-element-theme='light'] body.element-site.element-unified.page-help #content .angel-flow > li::before {
    color: var(--page-warm);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .ab-section a, .ab-section details > summary, .angel-section p a, .angel-section li a,
    .angel-item > a, .pq-section a, .pq-related a, .mine-panel a:not(.mine-secondary),
    .class-guide-moves > article a, .bestiary-area .dungeon-index-coordinates a,
    .shop-offer-name a, .shop-offer-details a, .armory-stat-text a, .armory-item-ensemble-build a,
    .nq-section a, .help-steps p a, .dg-map-search-toggle > a, .puck-stage a, .puck-card a,
    .ppk-cozy-map-links a, .ppk-cozy-item small, .currency-shop h3 a,
    .armory-loot-name > span, :where(#dungeon-loot-sources) .armory-set a, .armory-extra .armory-detail p a
) {
    color: var(--page-blue);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .armory-loot-index-contents, .mine-secondary, .mine-hero figcaption
) {
    background: var(--page-wash);
    border-color: var(--page-line);
    color: var(--page-blue);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(
    .armory-loot-index-contents, .mine-secondary, .mine-pills a
):is(:hover, :focus-visible) {
    background: var(--page-paper);
    border-color: var(--page-blue);
    color: var(--page-blue);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content .mine-panel .mine-input-error {
    color: var(--app-danger);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(.twilight-table-wrap table, .angel-table, .valentine-table-wrap table) {
    background-color: var(--page-paper);
    border-color: var(--page-line);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(.twilight-table-wrap, .angel-table, .valentine-table-wrap) td {
    background-color: var(--page-paper);
    border-color: var(--page-line);
    color: var(--page-ink);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(.twilight-table-wrap, .angel-table, .valentine-table-wrap) tbody tr:nth-child(even) td {
    background-color: var(--page-wash);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(.twilight-table-wrap, .angel-table, .valentine-table-wrap) td a {
    color: var(--page-blue);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(.mine-table, .ab-table, .angel-table, .valentine-table-wrap) th {
    background-color: var(--page-wash);
    border-color: var(--page-line);
    color: var(--page-ink);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content .ac-months a {
    background-color: var(--page-wash);
    border-color: var(--page-line);
    color: var(--page-warm);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content :is(.ac-months a:is([aria-current], :hover), .city-guide-place > a:hover) {
    background-color: var(--app-selected);
    border-color: var(--page-warm);
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content .valentine-item .valentine-quality {
    color: #fff;
}

html[data-element-theme='light'] body.element-site.element-unified.page-help #content .valentine-item :is(.valentine-quality-f, .valentine-quality-vr, .valentine-quality-er, .valentine-quality-u) {
    color: #19150d;
}
