/*
 * Night theme for what the page stylesheets do not paint themselves: the old theme stylesheet (scss/styles.css, with
 * Bootstrap 3), WooCommerce and plugin boxes. The page stylesheets read the colour tokens in ye-tokens.css and change
 * on their own. Every rule here only applies under <html data-theme="dark"> (inc/theme-mode.php), so the light site
 * looks exactly as before. :where() keeps each rule exactly as strong as the old rule it answers, and this file loads
 * after the others, so it wins only that tie.
 */

/* Switching: no colour transitions halfway through the page. */
html.ye-theme-switching *,
html.ye-theme-switching *::before,
html.ye-theme-switching *::after { transition: none !important; }

/* ---------------------------------------------------------------------------------------------------------------
 * Old theme stylesheet: the same selectors with the light colours swapped for tokens.
 * --------------------------------------------------------------------------------------------------------------- */
:where([data-theme="dark"]) mark { color: var(--ye-ink); }
:where([data-theme="dark"]) fieldset { border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) body { color: var(--ye-text); background-color: var(--ye-surface); }
:where([data-theme="dark"]) a { color: var(--ye-info); }
:where([data-theme="dark"]) a:hover,
:where([data-theme="dark"]) a:focus { color: var(--ye-info); }
:where([data-theme="dark"]) hr { border-top: 1px solid var(--ye-border); }
:where([data-theme="dark"]) h1 small,
:where([data-theme="dark"]) h2 small,
:where([data-theme="dark"]) h3 small,
:where([data-theme="dark"]) h4 small,
:where([data-theme="dark"]) h5 small,
:where([data-theme="dark"]) h6 small,
:where([data-theme="dark"]) .h1 small,
:where([data-theme="dark"]) .h2 small,
:where([data-theme="dark"]) .h3 small,
:where([data-theme="dark"]) .h4 small,
:where([data-theme="dark"]) .h5 small,
:where([data-theme="dark"]) h1 .small,
:where([data-theme="dark"]) h2 .small,
:where([data-theme="dark"]) h3 .small,
:where([data-theme="dark"]) h4 .small,
:where([data-theme="dark"]) h5 .small,
:where([data-theme="dark"]) h6 .small,
:where([data-theme="dark"]) .h1 .small,
:where([data-theme="dark"]) .h2 .small,
:where([data-theme="dark"]) .h3 .small,
:where([data-theme="dark"]) .h4 .small,
:where([data-theme="dark"]) .h5 .small { color: var(--ye-text); }
:where([data-theme="dark"]) mark,
:where([data-theme="dark"]) .mark { background-color: var(--ye-gold-tint); }
:where([data-theme="dark"]) blockquote { border-left: 5px solid var(--ye-border); }
:where([data-theme="dark"]) blockquote footer,
:where([data-theme="dark"]) blockquote small,
:where([data-theme="dark"]) blockquote .small { color: var(--ye-text); }
:where([data-theme="dark"]) code { color: var(--ye-danger); background-color: var(--ye-sale-tint); }
:where([data-theme="dark"]) pre { color: var(--ye-text); background-color: var(--ye-paper); border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) caption { color: var(--ye-text); }
:where([data-theme="dark"]) .table > thead > tr > th,
:where([data-theme="dark"]) .table > tbody > tr > th,
:where([data-theme="dark"]) .table > tfoot > tr > th,
:where([data-theme="dark"]) .table > thead > tr > td,
:where([data-theme="dark"]) .table > tbody > tr > td,
:where([data-theme="dark"]) .table > tfoot > tr > td { border-top: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .table > thead > tr > th { border-bottom: 2px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .table > tbody + tbody { border-top: 2px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .table .table { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .table-bordered { border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .table-bordered > thead > tr > th,
:where([data-theme="dark"]) .table-bordered > tbody > tr > th,
:where([data-theme="dark"]) .table-bordered > tfoot > tr > th,
:where([data-theme="dark"]) .table-bordered > thead > tr > td,
:where([data-theme="dark"]) .table-bordered > tbody > tr > td,
:where([data-theme="dark"]) .table-bordered > tfoot > tr > td { border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .table > thead > tr > td.active,
:where([data-theme="dark"]) .table > tbody > tr > td.active,
:where([data-theme="dark"]) .table > tfoot > tr > td.active,
:where([data-theme="dark"]) .table > thead > tr > th.active,
:where([data-theme="dark"]) .table > tbody > tr > th.active,
:where([data-theme="dark"]) .table > tfoot > tr > th.active,
:where([data-theme="dark"]) .table > thead > tr.active > td,
:where([data-theme="dark"]) .table > tbody > tr.active > td,
:where([data-theme="dark"]) .table > tfoot > tr.active > td,
:where([data-theme="dark"]) .table > thead > tr.active > th,
:where([data-theme="dark"]) .table > tbody > tr.active > th,
:where([data-theme="dark"]) .table > tfoot > tr.active > th { background-color: var(--ye-paper); }
:where([data-theme="dark"]) .table > thead > tr > td.success,
:where([data-theme="dark"]) .table > tbody > tr > td.success,
:where([data-theme="dark"]) .table > tfoot > tr > td.success,
:where([data-theme="dark"]) .table > thead > tr > th.success,
:where([data-theme="dark"]) .table > tbody > tr > th.success,
:where([data-theme="dark"]) .table > tfoot > tr > th.success,
:where([data-theme="dark"]) .table > thead > tr.success > td,
:where([data-theme="dark"]) .table > tbody > tr.success > td,
:where([data-theme="dark"]) .table > tfoot > tr.success > td,
:where([data-theme="dark"]) .table > thead > tr.success > th,
:where([data-theme="dark"]) .table > tbody > tr.success > th,
:where([data-theme="dark"]) .table > tfoot > tr.success > th { background-color: var(--ye-green-tint); }
:where([data-theme="dark"]) .table > thead > tr > td.info,
:where([data-theme="dark"]) .table > tbody > tr > td.info,
:where([data-theme="dark"]) .table > tfoot > tr > td.info,
:where([data-theme="dark"]) .table > thead > tr > th.info,
:where([data-theme="dark"]) .table > tbody > tr > th.info,
:where([data-theme="dark"]) .table > tfoot > tr > th.info,
:where([data-theme="dark"]) .table > thead > tr.info > td,
:where([data-theme="dark"]) .table > tbody > tr.info > td,
:where([data-theme="dark"]) .table > tfoot > tr.info > td,
:where([data-theme="dark"]) .table > thead > tr.info > th,
:where([data-theme="dark"]) .table > tbody > tr.info > th,
:where([data-theme="dark"]) .table > tfoot > tr.info > th { background-color: var(--ye-info-tint); }
:where([data-theme="dark"]) .table > thead > tr > td.warning,
:where([data-theme="dark"]) .table > tbody > tr > td.warning,
:where([data-theme="dark"]) .table > tfoot > tr > td.warning,
:where([data-theme="dark"]) .table > thead > tr > th.warning,
:where([data-theme="dark"]) .table > tbody > tr > th.warning,
:where([data-theme="dark"]) .table > tfoot > tr > th.warning,
:where([data-theme="dark"]) .table > thead > tr.warning > td,
:where([data-theme="dark"]) .table > tbody > tr.warning > td,
:where([data-theme="dark"]) .table > tfoot > tr.warning > td,
:where([data-theme="dark"]) .table > thead > tr.warning > th,
:where([data-theme="dark"]) .table > tbody > tr.warning > th,
:where([data-theme="dark"]) .table > tfoot > tr.warning > th { background-color: var(--ye-gold-tint); }
:where([data-theme="dark"]) legend { color: var(--ye-text); border-bottom: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) output { color: var(--ye-text); }
:where([data-theme="dark"]) .form-control { color: var(--ye-text); background-color: var(--ye-surface); border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .form-control[disabled],
:where([data-theme="dark"]) .form-control[readonly],
:where([data-theme="dark"]) fieldset[disabled] .form-control { background-color: var(--ye-tint); }
:where([data-theme="dark"]) .btn:hover,
:where([data-theme="dark"]) .btn:focus,
:where([data-theme="dark"]) .btn.focus { color: var(--ye-text); }
:where([data-theme="dark"]) .btn-primary .badge { color: var(--ye-info); background-color: var(--ye-surface); }
:where([data-theme="dark"]) .btn-success .badge { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .btn-danger .badge { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .nav > li > a:hover,
:where([data-theme="dark"]) .nav > li > a:focus { background-color: var(--ye-tint); }
:where([data-theme="dark"]) .nav > li.disabled > a { color: var(--ye-text); }
:where([data-theme="dark"]) .nav > li.disabled > a:hover,
:where([data-theme="dark"]) .nav > li.disabled > a:focus { color: var(--ye-text); }
:where([data-theme="dark"]) .nav .open > a,
:where([data-theme="dark"]) .nav .open > a:hover,
:where([data-theme="dark"]) .nav .open > a:focus { background-color: var(--ye-tint); }
:where([data-theme="dark"]) .breadcrumb { background-color: var(--ye-paper); }
:where([data-theme="dark"]) .breadcrumb > .active { color: var(--ye-text); }
:where([data-theme="dark"]) .pagination > li > a,
:where([data-theme="dark"]) .pagination > li > span { color: var(--ye-info); background-color: var(--ye-surface); border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .pagination > li > a:hover,
:where([data-theme="dark"]) .pagination > li > span:hover,
:where([data-theme="dark"]) .pagination > li > a:focus,
:where([data-theme="dark"]) .pagination > li > span:focus { color: var(--ye-info); background-color: var(--ye-tint); border-color: var(--ye-border-strong); }
:where([data-theme="dark"]) .pagination > .disabled > span,
:where([data-theme="dark"]) .pagination > .disabled > span:hover,
:where([data-theme="dark"]) .pagination > .disabled > span:focus,
:where([data-theme="dark"]) .pagination > .disabled > a,
:where([data-theme="dark"]) .pagination > .disabled > a:hover,
:where([data-theme="dark"]) .pagination > .disabled > a:focus { color: var(--ye-text); background-color: var(--ye-surface); border-color: var(--ye-border-strong); }
:where([data-theme="dark"]) .thumbnail { background-color: var(--ye-surface); border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .progress { background-color: var(--ye-paper); }
:where([data-theme="dark"]) .panel { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .well { background-color: var(--ye-paper); border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .well blockquote { border-color: var(--ye-border-strong); }
:where([data-theme="dark"]) .close { color: var(--ye-ink); }
:where([data-theme="dark"]) .close:hover,
:where([data-theme="dark"]) .close:focus { color: var(--ye-ink); }
:where([data-theme="dark"]) blockquote { border-right: 5px solid var(--ye-border); }
:where([data-theme="dark"]) blockquote.pull-left { border-left: 5px solid var(--ye-border); }
:where([data-theme="dark"]) body { color: var(--ye-text); background-color: var(--ye-surface) !important; }
:where([data-theme="dark"]) a { color: var(--ye-text); }
:where([data-theme="dark"]) a:hover { color: var(--ye-text); }
:where([data-theme="dark"]) input[type=text],
:where([data-theme="dark"]) input[type=password],
:where([data-theme="dark"]) input[type=email] { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) select,
:where([data-theme="dark"]) textarea { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) input[type=number],
:where([data-theme="dark"]) input[type=tel] { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) input[type=text]:focus,
:where([data-theme="dark"]) input[type=password]:focus,
:where([data-theme="dark"]) input[type=email]:focus { border-color: var(--ye-border-strong); }
:where([data-theme="dark"]) select:focus,
:where([data-theme="dark"]) textarea:focus { border-color: var(--ye-border-strong); }
:where([data-theme="dark"]) input[type=number]:focus,
:where([data-theme="dark"]) input[type=tel]:focus { border-color: var(--ye-border-strong); }
:where([data-theme="dark"]) .styled .wp-caption { background-color: var(--ye-surface); border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .screen-reader-text:focus { background-color: var(--ye-tint); color: var(--ye-text); }
:where([data-theme="dark"]) .headbar { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .head-hero .head-cd .counter { border: 2px solid var(--ye-border); }
:where([data-theme="dark"]) .head-hero .head-cd .counter strong { background-color: var(--ye-surface); color: var(--ye-ink); }
:where([data-theme="dark"]) .head-hero .head-cd .counter strong:before { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .small-hero .head-cd .counter strong { background-color: var(--ye-surface); color: var(--ye-ink); }
:where([data-theme="dark"]) .small-hero .head-cd .counter strong:before { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .small-hero .btns a { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .small-hero .btns a:hover { background-color: var(--ye-surface); color: var(--ye-ink); }
:where([data-theme="dark"]) .yellow-text { color: var(--ye-gold-ink); }
:where([data-theme="dark"]) .purple-text { color: var(--ye-muted); }
:where([data-theme="dark"]) .sec-header { color: var(--ye-text); }
:where([data-theme="dark"]) .price { color: var(--ye-ink); }
:where([data-theme="dark"]) .btn-solid-white { background-color: var(--ye-surface); color: var(--ye-ink); }
:where([data-theme="dark"]) .btn-solid-white.sadoo-cd-second-btn:hover,
:where([data-theme="dark"]) .btn-solid-white.sadoo-cd-second-btn:focus { background-color: var(--ye-surface); color: var(--ye-ink); }
:where([data-theme="dark"]) .supbtn { border: 2px solid var(--ye-border); }
:where([data-theme="dark"]) .supbtn:hover i { color: var(--ye-muted); }
:where([data-theme="dark"]) .supbtn i { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .menubtntrg { color: var(--ye-muted); }
:where([data-theme="dark"]) .menubtntrg i { color: var(--ye-muted); }
:where([data-theme="dark"]) .blog-single .styled { color: var(--ye-text); }
:where([data-theme="dark"]) .blog-single .styled a { color: var(--ye-muted); }
:where([data-theme="dark"]) .blog-single .styled h5 { color: var(--ye-text); }
:where([data-theme="dark"]) .blog-single .styled h4 { color: var(--ye-text); }
:where([data-theme="dark"]) .blog-single .styled h3 { color: var(--ye-text); }
:where([data-theme="dark"]) .blog-single .styled h2 { color: var(--ye-text); color: var(--ye-gold-ink); }
:where([data-theme="dark"]) .blog-single .styled h3,
:where([data-theme="dark"]) .blog-single .styled h4,
:where([data-theme="dark"]) .blog-single .styled h5,
:where([data-theme="dark"]) .blog-single .styled h6 { color: var(--ye-gold-ink); }
:where([data-theme="dark"]) .comments-head { color: var(--ye-gold-ink); }
:where([data-theme="dark"]) .comments-head .inner { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .comment-body-inner { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .comment-meta { color: var(--ye-text); }
:where([data-theme="dark"]) .comment-reply-title { color: var(--ye-muted); }
:where([data-theme="dark"]) .blog-list .header { color: var(--ye-muted); }
:where([data-theme="dark"]) .mem-ava:hover { border: 5px solid var(--ye-border); }
:where([data-theme="dark"]) .mem-item .inner { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .mem-item .socials { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .mem-item .socials a { color: var(--ye-text); background-color: var(--ye-surface); }
:where([data-theme="dark"]) .team-sec-title { color: var(--ye-muted); }
:where([data-theme="dark"]) .single-mem-header h1 { color: var(--ye-text); }
:where([data-theme="dark"]) .team-mem-page .styled { color: var(--ye-text); }
:where([data-theme="dark"]) .shop-sec:hover i { color: var(--ye-muted); }
:where([data-theme="dark"]) .shop-sec strong { color: var(--ye-text); }
:where([data-theme="dark"]) .shop-sec span { color: var(--ye-text); }
:where([data-theme="dark"]) .pcat-list .swiper-container .there-is-more { background-color: var(--ye-surface); background: linear-gradient(90deg, var(--ye-surface) 15%, rgba(255, 255, 255, 0) 100%); }
:where([data-theme="dark"]) .pcat-list .pcat-list-more .pcat-item { background-color: var(--ye-tint); color: var(--ye-ink); }
:where([data-theme="dark"]) .pcat-item .price { color: var(--ye-ink); }
:where([data-theme="dark"]) .pcat-item .btns { color: var(--ye-green); }
:where([data-theme="dark"]) .pcat-item .btns a { color: var(--ye-ink); }
:where([data-theme="dark"]) .product-titleh1,
:where([data-theme="dark"]) .product-title.h1 { color: var(--ye-text); }
:where([data-theme="dark"]) .product-desc { color: var(--ye-text); }
:where([data-theme="dark"]) .sadpop .inner form { background-color: rgb(var(--ye-surface-rgb) / 0.94); }
:where([data-theme="dark"]) .sadpop .h2 { color: var(--ye-text); background-color: var(--ye-tint); }
:where([data-theme="dark"]) .logreg-tabs button { color: var(--ye-ink); }
:where([data-theme="dark"]) .social-login-btn { color: var(--ye-text); }
:where([data-theme="dark"]) .userishere .baton { border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .userishere .themenu { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .userishere .themenu a { border-bottom: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .single-page-header h1,
:where([data-theme="dark"]) .single-page-header .h1 { color: var(--ye-text); }
:where([data-theme="dark"]) .woocommerce-cart table.cart td.actions .coupon .input-text,
:where([data-theme="dark"]) .woocommerce-checkout table.cart td.actions .coupon .input-text { border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .woocommerce #reviews #comments h2 { color: var(--ye-muted); }
:where([data-theme="dark"]) .woocommerce #reviews #comments h2 span { color: var(--ye-text); }
:where([data-theme="dark"]) .woocommerce #reviews #comments ol.commentlist li .comment-text { background-color: var(--ye-surface); border-right: 2px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .woocommerce-MyAccount-navigation ul { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .woocommerce-MyAccount-navigation li a { color: var(--ye-text); }
:where([data-theme="dark"]) .woocommerce-MyAccount-navigation li a:hover { color: var(--ye-muted); }
:where([data-theme="dark"]) .userishere .baton { border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .userishere .themenu { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .userishere .themenu a { border-bottom: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .single-page-header h1 { color: var(--ye-text); }
:where([data-theme="dark"]) .woocommerce-cart table.cart td.actions .coupon .input-text,
:where([data-theme="dark"]) .woocommerce-checkout table.cart td.actions .coupon .input-text { border: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .woocommerce #reviews #comments h2 { color: var(--ye-muted); }
:where([data-theme="dark"]) .woocommerce #reviews #comments h2 span { color: var(--ye-text); }
:where([data-theme="dark"]) .woocommerce #reviews #comments ol.commentlist li .comment-text { background-color: var(--ye-surface); border-right: 2px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .woocommerce-MyAccount-navigation ul { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .woocommerce-MyAccount-navigation li a { color: var(--ye-text); }
:where([data-theme="dark"]) .woocommerce-MyAccount-navigation li a:hover { color: var(--ye-muted); }
:where([data-theme="dark"]) textarea#comment { color: var(--ye-text); }
:where([data-theme="dark"]) td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-number a { color: var(--ye-muted); }
:where([data-theme="dark"]) .woocommerce-MyAccount-content mark { color: var(--ye-muted); }
:where([data-theme="dark"]) .user-sidebar .user-widget .av img { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .user-sidebar .user-widget .meta { color: var(--ye-text); }
:where([data-theme="dark"]) .user-panel-wrap .lesson-updates .item { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .user-panel-wrap .lesson-updates .item h2 { color: var(--ye-text); }
:where([data-theme="dark"]) .user-panel-wrap .user-courses .item { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .user-panel-wrap .user-courses .item h2 a { color: var(--ye-text); }
:where([data-theme="dark"]) .product-bundle-wrapper .item { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .user-panel-title { color: var(--ye-muted); }
:where([data-theme="dark"]) .show-writing-type a { color: var(--ye-muted); }
:where([data-theme="dark"]) .writing-list-msg { color: var(--ye-muted); }
:where([data-theme="dark"]) .teacher-writings .item { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .teacher-writings .head .opentogglebtn { background-color: var(--ye-surface); border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .teacher-writings .head h2 { color: var(--ye-text); }
:where([data-theme="dark"]) .teacher-writings .head .meta { color: var(--ye-text); }
:where([data-theme="dark"]) .teacher-writings .head .paid-fee { color: var(--ye-green); }
:where([data-theme="dark"]) .teacher-writings .head .actions a { color: var(--ye-muted); }
:where([data-theme="dark"]) .teacher-writings .head .status .green { color: var(--ye-green); }
:where([data-theme="dark"]) .teacher-writings .body .in { color: var(--ye-text); border: 1px solid var(--ye-border); background-color: var(--ye-paper); }
:where([data-theme="dark"]) .teacher-writings .body .boxtitle { color: var(--ye-muted); }
:where([data-theme="dark"]) .teacher-writings .body .writing { background-color: var(--ye-surface); border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .teacher-writings .body form { border: 1px solid var(--ye-border); background-color: var(--ye-surface); }
:where([data-theme="dark"]) .teacher-writings .body form .save-check { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .teacher-pagination .page-numbers { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .msgboard-wrapper .msgboard-msgs { background-color: var(--ye-surface); border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .msgboard-wrapper .msgboard-msgs .read-all { color: var(--ye-muted); }
:where([data-theme="dark"]) .msgboard-wrapper .msg-item { border-bottom: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .header-action-btn { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .header-action-btn.active { color: var(--ye-muted); }
:where([data-theme="dark"]) .mag-archive .h1 { color: var(--ye-ink); }
:where([data-theme="dark"]) .mag-single-wrapper .h1 { color: var(--ye-ink); }
:where([data-theme="dark"]) .mag-single-wrapper .side { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .mag-single-wrapper .pages .page { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .mag-thanks-dl .mag-donate .h2 { color: var(--ye-green); }
:where([data-theme="dark"]) .mag-thanks-dl .mag-donate .donate-btn.outline { color: var(--ye-green); background-color: var(--ye-surface); }
:where([data-theme="dark"]) .mag-donate { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .mag-donate .h2 { color: var(--ye-ink); }
:where([data-theme="dark"]) .mag-donate .donate-actions .item { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .mag-donate .donate-actions .item:hover strong { color: var(--ye-gold-ink); }
:where([data-theme="dark"]) .mag-donate .donate-actions .item:hover:after { border: var(--ye-border) solid 1px; }
:where([data-theme="dark"]) .mag-donate .donate-actions .item strong { color: var(--ye-muted); }
:where([data-theme="dark"]) .mag-donate .donate-actions .item span { color: var(--ye-ink); }
:where([data-theme="dark"]) .mag-dl-pop { background-color: var(--ye-surface); background-color: var(--ye-surface); }
:where([data-theme="dark"]) .mag-dl-pop .text .h2 { color: var(--ye-muted); }
:where([data-theme="dark"]) .mag-dl-pop .pop-donate-actions .item { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .mag-dl-pop .pop-donate-actions .item:hover strong { color: var(--ye-gold-ink); }
:where([data-theme="dark"]) .mag-dl-pop .pop-donate-actions .item:hover:after { border: var(--ye-border) solid 1px; }
:where([data-theme="dark"]) .mag-dl-pop .pop-donate-actions .item strong { color: var(--ye-muted); }
:where([data-theme="dark"]) .mag-dl-pop .pop-donate-actions .item span { color: var(--ye-ink); }
:where([data-theme="dark"]) .mag-dl-pop .donate-btn.outline { color: var(--ye-muted); background-color: var(--ye-surface); }
:where([data-theme="dark"]) .display-one .next,
:where([data-theme="dark"]) .display-one .prev { border: 2px solid var(--ye-border); }
:where([data-theme="dark"]) .woocommerce-MyAccount-content .boxtitle { color: var(--ye-muted); }
:where([data-theme="dark"]) .teacher-time-item-grid { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .teacher-time-item-grid .title-day { color: var(--ye-text); }
:where([data-theme="dark"]) .teacher-time-item-grid .title-time { color: var(--ye-text); }
:where([data-theme="dark"]) .teacher-time-item-grid .status { color: var(--ye-muted); }
:where([data-theme="dark"]) .teacher-meeting-item-grid { border: 1px solid var(--ye-border); border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .teacher-meeting-item-grid .title-day { color: var(--ye-text); }
:where([data-theme="dark"]) .teacher-meeting-item-grid .title-time { color: var(--ye-text); }
:where([data-theme="dark"]) .teacher-meeting-item-grid .teacher-box { border-top: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .teacher-meeting-item-grid.for-user .teacher-notes { border-top: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .teacher-meeting-item-grid .teacher-notes { border-top: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .teacher-meeting-item-grid .teacher-notes .title button { color: var(--ye-muted); }
:where([data-theme="dark"]) .teacher-available-times .day-title { color: var(--ye-muted); }
:where([data-theme="dark"]) .register-teacher-meet-item { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .register-teacher-meet-item .costs button { background-color: var(--ye-surface); color: var(--ye-muted); }
:where([data-theme="dark"]) .register-teacher-meet-item .costs button strong { color: var(--ye-ink); }
:where([data-theme="dark"]) .register-teacher-meet-item .from-to { color: var(--ye-muted); }
:where([data-theme="dark"]) .register-teacher-meet-item .from-to .time { color: var(--ye-text); }
:where([data-theme="dark"]) .register-teacher-meet-item .register-btn { color: var(--ye-muted); }
:where([data-theme="dark"]) .register-teacher-meet-item .register-btn.disabled { color: var(--ye-text); }
:where([data-theme="dark"]) .register-teacher-meet-item .register-btn.disabled:hover { color: var(--ye-text); }
:where([data-theme="dark"]) .register-meeting-time-popup .inwrap { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .register-meeting-time-popup .inwrap .fa-spinner { color: var(--ye-muted); }
:where([data-theme="dark"]) .smart-pop-wrapper .fa-times { background-color: var(--ye-surface); color: var(--ye-muted); }
:where([data-theme="dark"]) .smart-pop-wrapper .smart-pop { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .smart-pop-wrapper .titlebar { color: var(--ye-muted); }
:where([data-theme="dark"]) .smart-pop-wrapper .titlebar .h3 { color: var(--ye-text); }
:where([data-theme="dark"]) .teacher-time-add-form .cost-row { border-top: 2px dotted var(--ye-border); }
:where([data-theme="dark"]) .teacher-time-add-form .boxtitle { color: var(--ye-muted); }
:where([data-theme="dark"]) .teacher-time-add-form input[type=time] { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .add-meeting-day-card { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .add-meeting-day-card .name { color: var(--ye-text); }
:where([data-theme="dark"]) .add-meeting-day-card .name span:nth-of-type(2) { color: var(--ye-muted); }
:where([data-theme="dark"]) .product-ph-features { background-color: var(--ye-surface); border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .product-ph-features .item { background-color: var(--ye-surface); color: var(--ye-muted); }
:where([data-theme="dark"]) .product-ph-features .item i { color: var(--ye-muted); }
:where([data-theme="dark"]) section.home-shop .items { background-color: var(--ye-surface); }
:where([data-theme="dark"]) section.home-shop .items .cover { background-color: rgb(var(--ye-surface-rgb) / 0.6); }
:where([data-theme="dark"]) section.home-shop .items .there-is-more { color: var(--ye-text); }
:where([data-theme="dark"]) section.home-shop .items .there-is-more a { color: var(--ye-muted); }
:where([data-theme="dark"]) section.home-shop .items .item .price { color: var(--ye-muted); background-color: var(--ye-surface); }
:where([data-theme="dark"]) section.home-shop .items .item .con .title a { color: var(--ye-text); }
:where([data-theme="dark"]) section.home-shop .items .item:hover { background-color: var(--ye-surface); }
:where([data-theme="dark"]) section.home-shop .sec-header .inner { background: linear-gradient(21deg, var(--ye-tint-soft), var(--ye-surface)); }
:where([data-theme="dark"]) section.home-shop .sec-header .h1 { color: var(--ye-muted); }
:where([data-theme="dark"]) .physhop-product-wrapper { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .physhop-product-wrapper .woocommerce-product-gallery__trigger { background-color: rgb(var(--ye-surface-rgb) / 0.7); }
:where([data-theme="dark"]) .page-physhop .item { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .page-physhop .item .con .title a { color: var(--ye-text); }
:where([data-theme="dark"]) .app-bar { border: 4px solid var(--ye-border); }
:where([data-theme="dark"]) .app-bar .in .btn { background-color: var(--ye-surface); color: var(--ye-ink); }
:where([data-theme="dark"]) .logreg .inner .logregcol { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .logreg .inner .form-head-box h2 { color: var(--ye-ink); }
:where([data-theme="dark"]) .logreg .inner .form-head-box h3 { color: var(--ye-text); }
:where([data-theme="dark"]) .mustreg .top h2 { color: var(--ye-danger); }
:where([data-theme="dark"]) .mustreg .top h3 { color: var(--ye-text); }
:where([data-theme="dark"]) .lesson-wrapper { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .les-sidebar { background-color: var(--ye-surface); border-top: 1px solid var(--ye-border-strong); }
:where([data-theme="dark"]) .les-video { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .path .per { background-color: var(--ye-tint); }
:where([data-theme="dark"]) .content-types a { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .content-types a.active i { color: var(--ye-muted); background-color: var(--ye-surface); }
:where([data-theme="dark"]) .les-lessons { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .les-lessons .item { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .les-lessons .item .types span { background-color: var(--ye-surface); color: var(--ye-text); }
:where([data-theme="dark"]) .les-lessons .item .h3 i.taken { color: var(--ye-green); background-color: var(--ye-surface); }
:where([data-theme="dark"]) .lesson-pop { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .content-types-grid.stick { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .lesson-feedbackform .msg { color: var(--ye-muted); }
:where([data-theme="dark"]) .header-cart .mini-cart ul li { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .header-cart .mini-cart ul li .quantity { color: var(--ye-muted); }
:where([data-theme="dark"]) .header-cart .mini-cart .total { color: var(--ye-text); }
:where([data-theme="dark"]) .header-cart .mini-cart .total .amountz { color: var(--ye-green); }
:where([data-theme="dark"]) .header-cart .mini-cart .buttons a { color: var(--ye-muted); }
:where([data-theme="dark"]) .sadoo-notice-container { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .sadoo-notice-container .close-it i { color: var(--ye-text); background-color: var(--ye-surface); }
:where([data-theme="dark"]) .sadoo-notice-container .close-it:hover i { background-color: var(--ye-tint); }
@media (max-width: 481px) {
	:where([data-theme="dark"]) section.home-shop .items .item .con .title a { color: var(--ye-text); }
	:where([data-theme="dark"]) section.home-shop .sec-header .inner { background: linear-gradient(21deg, var(--ye-tint-soft), var(--ye-surface)); }
	:where([data-theme="dark"]) section.home-shop .sec-header .h1 { color: var(--ye-muted); }
}
@media (max-width: 768px) {
	:where([data-theme="dark"]) .togglablemainmenui { background-color: var(--ye-surface); }
	:where([data-theme="dark"]) .shopsecs .row .shop-sec-grid .shop-sec { border-right: 1px solid var(--ye-border); border-left: 1px solid var(--ye-border); border-top: 1px solid var(--ye-border); }
	:where([data-theme="dark"]) .product-header { border-bottom: 3px dotted var(--ye-border-strong); }
}
:where([data-theme="dark"]) .localfaces .lf-msg { color: var(--ye-muted); }
:where([data-theme="dark"]) .localfaces h3 { color: var(--ye-muted); }
:where([data-theme="dark"]) .localfaces form input[type=file] { background-color: var(--ye-tint); }
:where([data-theme="dark"]) .localfaces .current-avatar img { background-color: var(--ye-surface); border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .woocommerce .to-free-shipping { border: 1px solid var(--ye-border); }
:where([data-theme="dark"]) .woocommerce .to-free-shipping strong { color: var(--ye-green); }
:where([data-theme="dark"]) .nsl-button.nsl-button-google { background-color: var(--ye-surface) !important; color: var(--ye-text) !important; border: 1px solid var(--ye-border-strong) !important; }
:where([data-theme="dark"]) .nsl-button.nsl-button-google:hover { background-color: var(--ye-paper) !important; color: var(--ye-ink) !important; }
:where([data-theme="dark"]) .header-cart .mini-cart ul li.woocommerce-mini-cart-item,
:where([data-theme="dark"]) .header-cart .mini-cart ul li.mini_cart_item { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .header-cart .mini-cart ul li .remove_from_cart_button { background-color: var(--ye-sale-tint); }
:where([data-theme="dark"]) .header-cart .mini-cart .woocommerce-mini-cart__empty-message { background-color: var(--ye-tint-soft); border: 1px solid var(--ye-border); color: var(--ye-text); }
:where([data-theme="dark"]) .pcat-item > a:first-of-type { background-color: var(--ye-tint); }
:where([data-theme="dark"]) .woocommerce-checkout #customer_details,
:where([data-theme="dark"]) .woocommerce-checkout #order_review { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .woocommerce-checkout #order_review_heading { color: var(--ye-ink); }
:where([data-theme="dark"]) .woocommerce-checkout .woocommerce-billing-fields h3,
:where([data-theme="dark"]) .woocommerce-checkout .woocommerce-additional-fields h3 { color: var(--ye-ink); }
:where([data-theme="dark"]) .woocommerce-checkout .form-row label { color: var(--ye-ink); }
:where([data-theme="dark"]) .woocommerce-checkout #payment { background-color: var(--ye-tint-soft); }
:where([data-theme="dark"]) .woocommerce-checkout #payment ul.payment_methods li { background-color: var(--ye-surface); }
:where([data-theme="dark"]) .woocommerce-checkout #payment div.payment_box { color: var(--ye-text); }
:where([data-theme="dark"]) .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox.checkbox { color: var(--ye-text); }
:where([data-theme="dark"]) .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text a { color: var(--ye-ink); }
:where([data-theme="dark"]) .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text a:hover { color: var(--ye-muted); }

/* ---------------------------------------------------------------------------------------------------------------
 * WooCommerce, plugins and a few boxes the page stylesheets leave light.
 * --------------------------------------------------------------------------------------------------------------- */
:root[data-theme="dark"] {
	/* WooCommerce reads these for its forms, buttons and notices. */
	--wc-content-bg: var(--ye-surface);
	--wc-subtext: var(--ye-muted);
	--wc-secondary: var(--ye-tint-strong);
	--wc-secondary-text: var(--ye-ink);
	--wc-form-color-background: var(--ye-paper);
	--wc-form-color-text: var(--ye-ink);
	--wc-form-border-color: var(--ye-border-strong);
}

/* Text fields the browser draws: dark, with light text. Any field a page styles itself keeps its own look. */
:where([data-theme="dark"]) :where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="range"], [type="color"], [type="file"], [type="image"]), textarea, select) {
	border-color: var(--ye-border-strong);
	background-color: var(--ye-paper);
	color: var(--ye-ink);
}
:root[data-theme="dark"] .woocommerce form .form-row :is(.input-text, select),
:root[data-theme="dark"] .woocommerce-Input,
:root[data-theme="dark"] .select2-container--default .select2-selection--single,
:root[data-theme="dark"] .wpcf7-form-control:not(.wpcf7-submit, .wpcf7-checkbox, .wpcf7-radio, .wpcf7-acceptance) {
	border-color: var(--ye-border-strong);
	background-color: var(--ye-paper);
	color: var(--ye-ink);
}
:root[data-theme="dark"] ::placeholder { color: var(--ye-faint); opacity: 1; }
:root[data-theme="dark"] .select2-dropdown { border-color: var(--ye-border-strong); background: var(--ye-surface); color: var(--ye-ink); }
:root[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ye-ink); }
:root[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
:root[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ye-tint-strong); color: var(--ye-ink); }

/* WooCommerce notices */
:root[data-theme="dark"] .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notice),
:root[data-theme="dark"] :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) { background-color: var(--ye-paper); color: var(--ye-text); }
:root[data-theme="dark"] :is(.woocommerce-info, .woocommerce-message) { border-top-color: var(--ye-accent); }
:root[data-theme="dark"] .woocommerce-error { border-top-color: var(--ye-danger); }

/* Sign in with Google keeps Google's white button. */
:root[data-theme="dark"] .nsl-container .nsl-button.nsl-button-google,
:root[data-theme="dark"] .nsl-button.nsl-button-google:hover { background: #fff !important; }
:root[data-theme="dark"] .nsl-button-google .nsl-button-label-container { color: #3c3c3c; }

/* Contact forms: the send button had a white edge drawn for the light page. */
:root[data-theme="dark"] .wpcf7-form .wpcf7-submit { border-color: transparent; }

/* Course packages: their warm edge */
:root[data-theme="dark"] .cl-pack { border-color: var(--ye-gold-line); }

/* The logo picture is purple on transparent; a little light lifts it off the dark header. */
:root[data-theme="dark"] :is(.sc-logo, .sc-drawer__logo) img { filter: brightness(1.45) saturate(.95); }

/* Pictures with white paper (course covers, article images) sit a touch softer at night. */
:root[data-theme="dark"] :is(.styled, .yb-content, .lp-rich) img:not([src$=".svg"]) { filter: brightness(.94); }

/* WooCommerce's grey buttons (back to the shop, review send) */
:root[data-theme="dark"] .woocommerce :is(a.button, button.button, input.button):not(.alt),
:root[data-theme="dark"] .woocommerce #respond input#submit { background-color: var(--ye-tint-strong); color: var(--ye-ink); }
:root[data-theme="dark"] .woocommerce :is(a.button, button.button, input.button):not(.alt):hover,
:root[data-theme="dark"] .woocommerce #respond input#submit:hover { background-color: var(--ye-border-strong); color: var(--ye-ink); }
