/* Article preferences stay available in native details, including without JS. */
.tkh-reader-settings{max-width:100%;min-width:0;font:400 .875rem/1.5 var(--wp--preset--font-family--sans)}
.tkh-reader-settings>summary{display:flex;align-items:center;gap:10px;min-height:44px;width:fit-content;max-width:100%;padding:8px 12px;border:1px solid var(--tkh-border);border-radius:6px;background:transparent;color:var(--tkh-teal);font-weight:650;cursor:pointer;list-style:none}
.tkh-reader-settings>summary::-webkit-details-marker{display:none}
.tkh-reader-settings>summary::after{content:'+';font-size:1.2rem;line-height:1}
.tkh-reader-settings[open]>summary::after{content:'−'}
.tkh-reader-settings>summary:hover{border-color:var(--tkh-teal)}
.tkh-reader-settings>summary:focus-visible{outline:3px solid var(--tkh-teal);outline-offset:3px}
.tkh-reader-panel{margin-top:10px;padding:14px;border:1px solid var(--tkh-border);border-radius:8px;background:#fff;color:var(--tkh-ink)}
.tkh-reader-panel .tkh-reader-note{margin:10px 0 0;font-size:.75rem;line-height:1.5;color:var(--tkh-muted)}
/* Scope colours to article main and theme overlays; header/footer keep their palette.
   Keep every state in this protected file: CCSS/UCSS sees the default light page. */
@media screen{
 html[data-tkh-reading-theme=dark] .single-post{background:#102c28}
 html[data-tkh-reading-theme=dark] .single-post :is(main,.tkh-image-viewer,.tkh-table-viewer,.tkh-quote-panel){
  --wp--preset--color--ink:#e9f2ec;--wp--preset--color--teal:#9bdacb;--wp--preset--color--muted:#b8cdc3;--wp--preset--color--line:#55766c;--wp--preset--color--paper:#102c28;--wp--preset--color--mint:#203e38;--wp--preset--color--white:#193934;
  --tkh-ink:var(--wp--preset--color--ink);--tkh-teal:var(--wp--preset--color--teal);--tkh-muted:var(--wp--preset--color--muted);--tkh-border:var(--wp--preset--color--line);--tkh-paper:var(--wp--preset--color--paper);--tkh-mist:var(--wp--preset--color--mint);--tkh-surface:#193934;
  background:var(--tkh-paper);color:var(--tkh-ink);color-scheme:dark
 }
 html[data-tkh-reading-theme=dark] .single-post main :is(h1,h2,h3,h4,h5,h6){color:var(--tkh-ink)}
 html[data-tkh-reading-theme=dark] .single-post main a:not(:where(.tkh-ad-area *,.tkh-ad-fallback *,.adsbygoogle *,.google-auto-placed *,.wp-element-button,.wp-block-button__link)){color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post main a:not(:where(.tkh-ad-area *,.tkh-ad-fallback *,.adsbygoogle *,.google-auto-placed *)):hover{color:var(--tkh-ink)}
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkh-card-meta,.wp-block-post-date,.tkh-breadcrumbs,.tkh-reading-time,figcaption){color:var(--tkh-muted)}
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkh-reader-panel,.tkh-text-size button,.tkh-reading-spacing select,.tkh-more-actions>summary,.tkh-share-buttons a,.tkh-share-buttons button,.tkh-share input,.tkh-share textarea,.tkh-section-copy-panel input,.tkh-reference-summary,.tkh-faq-controls button,.tkh-feedback button,.tkh-table-expand,.tkh-image-expand,.comment-respond,.wp-block-comment-content,.tkh-comment-preview-body,.tkh-comment-preview-toggle,.tkh-comment-preview-edit,.tkh-comment-draft button,.tkh-comment-notify,.tkh-discussion-filter a,.wp-block-comment-reply-link a,:where(#cancel-comment-reply-link)){background:var(--tkh-surface);color:var(--tkh-ink);border-color:var(--tkh-border)}
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkh-article-topics a,.tkh-topic-links a,.tkh-card-save,.tkh-card-save-status){background:var(--tkh-surface);color:var(--tkh-teal);border-color:var(--tkh-border)}
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkh-article-topics a,.tkh-topic-links a,.tkh-card-save):hover{background:var(--wp--preset--color--mint);color:var(--tkh-ink);border-color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post main .tkh-card-save[aria-pressed=true]{background:var(--tkh-teal);color:var(--tkh-paper);border-color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post main .tkh-comments :is(input:not([type=checkbox]):not([type=submit]):not([type=hidden]),textarea:not([aria-hidden=true])){background:var(--tkh-paper);color:var(--tkh-ink);border-color:var(--tkh-border)}
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkh-text-size button:disabled,.tkh-reading-spacing select:disabled){color:var(--tkh-muted);background:var(--tkh-paper)}
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkh-comment-staff,.tkh-comment-pinned)>.wp-block-comment-content{background:var(--wp--preset--color--mint);border-inline-start-color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post main .tkh-comment-staff-badge{background:var(--wp--preset--color--mint);color:var(--tkh-teal);border-color:var(--tkh-border)}
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkh-comment-pin-badge,.tkh-discussion-filter a[aria-current=page],.tkh-comments input[type=submit],.tkh-comments .wp-block-comments-pagination .current,.tkh-feedback button[aria-pressed=true],.tkh-resume-buttons button:not([data-tkh-resume-action=restart])){background:var(--tkh-teal);color:var(--tkh-paper);border-color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post main .tkh-feedback button.tkh-feedback-skip{background:transparent;color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkh-share-buttons a,.tkh-share-buttons button,.tkh-text-size button,.tkh-faq-controls button,.tkh-discussion-filter a,.wp-block-comment-reply-link a):hover{background:var(--wp--preset--color--mint);border-color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post main .tkh-discussion-filter a[aria-current=page]:hover{color:var(--tkh-ink)}
 html[data-tkh-reading-theme=dark] .single-post main .tkh-resume-buttons [data-tkh-resume-action=restart]{background:var(--tkh-surface);color:var(--tkh-ink)}
 html[data-tkh-reading-theme=dark] .single-post main .tkh-toc a[aria-current=location]{background:var(--tkh-surface);color:var(--tkh-ink);box-shadow:0 0 0 3px var(--tkh-surface)}
 html[data-tkh-reading-theme=dark] .single-post main .tkh-toc-current{color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post :is(main,.tkh-table-viewer) .tkh-editorial-table thead th,
 html[data-tkh-reading-theme=dark] .single-post .tkh-table-viewer-stage>table>thead.tkh-table-sticky-head{background:var(--wp--preset--color--mint);color:var(--tkh-ink)}
 /* Plugin blocks keep their markup, interactions and semantic notice tones. */
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkcb-faq,.tkcb-faq-item,.tkcb-notice){--tkcb-question-background:var(--wp--preset--color--mint)!important;--tkcb-background-color:var(--tkh-surface)!important;--tkcb-question-color:var(--tkh-ink)!important;--tkcb-answer-color:var(--tkh-ink)!important;--tkcb-title-color:var(--tkh-ink)!important;--tkcb-active-color:var(--tkh-ink)!important;--tkcb-active-background:var(--wp--preset--color--mint)!important;--tkcb-accent-color:#91cbe8!important;border-color:var(--tkh-border)}
 html[data-tkh-reading-theme=dark] .single-post main .tkcb-notice{border-inline-start-color:var(--tkcb-accent-color)}
 html[data-tkh-reading-theme=dark] .single-post main .tkcb-notice[data-tone=warning]{--tkcb-accent-color:#e9c76e!important}
 html[data-tkh-reading-theme=dark] .single-post main .tkcb-notice[data-tone=important]{--tkcb-accent-color:#f29f9f!important}
 html[data-tkh-reading-theme=dark] .single-post main .tkcb-notice[data-tone=success]{--tkcb-accent-color:#9bdacb!important}
 html[data-tkh-reading-theme=dark] .single-post main .tkcb-faq-toggle-all{color:var(--tkh-teal);border-color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkcb-question,.tkcb-faq button,.tkcb-notice button):focus-visible{outline-color:var(--tkh-teal)}
 /* Older bibliography releases use fixed colours; newer releases use variables. */
 html[data-tkh-reading-theme=dark] .single-post main .sb-bibliography{--sb-background:var(--tkh-surface)!important;--sb-color:var(--tkh-ink)!important;--sb-bordercolor:var(--tkh-border)!important;--sb-linkcolor:var(--tkh-teal)!important;background:var(--tkh-surface)!important;color:var(--tkh-ink)!important;border-color:var(--tkh-border)!important}
 html[data-tkh-reading-theme=dark] .single-post main .sb-bibliography :is(.sb-bibliography-title,.sb-bibliography-list,.sb-bibliography-list>li){color:var(--tkh-ink)!important}
 html[data-tkh-reading-theme=dark] .single-post main .sb-bibliography a{color:var(--tkh-teal)!important}
 html[data-tkh-reading-theme=dark] .single-post main .sb-bibliography a:is(:hover,:focus){color:var(--tkh-ink)!important}
 html[data-tkh-reading-theme=dark] .single-post main :is(.uagb-faq-item,.uagb-faq-content,.uagb-faq-questions-button,.uagb-notice){background:var(--tkh-surface)!important;color:var(--tkh-ink)!important;border-color:var(--tkh-border)!important}
 html[data-tkh-reading-theme=dark] .single-post main :is(.uagb-faq-question,.uagb-notice-title){color:var(--tkh-ink)!important}
 /* Body-mounted theme viewers inherit this palette without altering image pixels. */
 html[data-tkh-reading-theme=dark] .single-post :is(.tkh-image-viewer,.tkh-table-viewer,.tkh-quote-panel){border-color:var(--tkh-border)}
 html[data-tkh-reading-theme=dark] .single-post :is(.tkh-image-viewer-actions a,.tkh-image-viewer-actions button,.tkh-image-viewer-navigation button,.tkh-quote-panel textarea,.tkh-quote-actions .tkh-quote-close){background:var(--tkh-surface);color:var(--tkh-ink);border-color:var(--tkh-border)}
 html[data-tkh-reading-theme=dark] .single-post :is(.tkh-image-viewer-close,.tkh-table-viewer-close,.tkh-quote-actions button:not(.tkh-quote-close)){background:var(--tkh-teal);color:var(--tkh-paper);border-color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post .tkh-image-viewer-stage{background:var(--tkh-surface)}
 html[data-tkh-reading-theme=dark] .single-post .tkh-image-viewer :is(a,button,[tabindex]):focus-visible{outline-color:var(--tkh-teal)}
 html[data-tkh-reading-theme=dark] .single-post main .wp-block-button__link:not(.has-background){background:var(--tkh-teal);color:var(--tkh-paper)}
 /* Advertisements retain their normal palette, including iframe/embed controls. */
 html[data-tkh-reading-theme=dark] .single-post main :is(.tkh-ad-area,.tkh-ad-fallback,.adsbygoogle,.google-auto-placed){--wp--preset--color--ink:#163b38;--wp--preset--color--teal:#17665b;--wp--preset--color--muted:#576963;--wp--preset--color--line:#dbe4dd;--wp--preset--color--paper:#fafaf6;--wp--preset--color--mint:#eaf2ed;--wp--preset--color--white:#fff;--tkh-ink:var(--wp--preset--color--ink);--tkh-teal:var(--wp--preset--color--teal);--tkh-muted:var(--wp--preset--color--muted);--tkh-border:var(--wp--preset--color--line);--tkh-paper:var(--wp--preset--color--paper);color:#163b38;color-scheme:light}
}
@media print{.tkh-reader-settings{display:none!important}}
