/* Contrast fixes scoped to the theme's existing dark-mode switch. */
.dark-skin {color-scheme:dark;--local-text:#e8edf2;--local-muted:#b9c5d2;--local-surface:#1c222b;--local-link:#8ac8ff}
.dark-skin #content,.dark-skin .entry,.dark-skin .entry p,.dark-skin .entry li,.dark-skin .widget,.dark-skin .post-title,.dark-skin .post-title a,.dark-skin .entry h1,.dark-skin .entry h2,.dark-skin .entry h3,.dark-skin .entry h4,.dark-skin .entry h5,.dark-skin .entry h6,.dark-skin .entry figcaption{color:var(--local-text)}
.dark-skin .entry a:not(.button):not(.shortc-button):not(.wp-block-button__link):not(.wp-element-button):not(.more-link){color:var(--local-link)}
.dark-skin .post-meta,.dark-skin .post-meta a,.dark-skin .post-meta span,.dark-skin .widget .post-meta,.dark-skin .comment-metadata{color:var(--local-muted)}
.dark-skin input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),.dark-skin textarea,.dark-skin select{background:var(--local-surface);color:var(--local-text);border-color:#697788}
.dark-skin input::placeholder,.dark-skin textarea::placeholder{color:var(--local-muted);opacity:1}
.dark-skin .entry th,.dark-skin .entry td{color:var(--local-text);border-color:#697788;background:#1c222b}
.dark-skin .entry pre,.dark-skin .entry code,.dark-skin .entry blockquote{color:var(--local-text);background:#252e3a}
body a:focus-visible,body button:focus-visible,body input:focus-visible,body select:focus-visible,body textarea:focus-visible{outline:3px solid #318fe7;outline-offset:3px}
.entry{overflow-wrap:anywhere}.entry img,.entry video{max-width:100%;height:auto}.entry iframe{max-width:100%}.entry pre{overflow-x:auto;max-width:100%}
@media(max-width:767px){.entry table{display:block;max-width:100%;overflow-x:auto}.entry input,.entry textarea,.entry select{font-size:16px}.main-content,.sidebar{min-width:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Native disclosure buttons and panel visibility for keyboard and touch users. */
.toggle-head>button{appearance:none;display:flex;align-items:center;gap:.5em;width:100%;background:transparent;color:inherit;border:0;padding:0;font:inherit;line-height:inherit;text-align:inherit;cursor:pointer}
.toggle-head>button>span:last-child{margin-inline-start:auto}
.toggle-head>button:focus-visible,[role=tab]:focus-visible{outline:3px solid #318fe7;outline-offset:3px}
.tab-content[hidden],.toggle-content[hidden]{display:none!important}

.local-tooltip{z-index:100001;pointer-events:auto}
.local-tooltip .tooltip-inner{font-size:14px;line-height:1.7;max-width:min(280px,calc(100vw - 24px));overflow-wrap:anywhere}

/* Retain text inherited by controls and scroll long source/code without widening the page. */
.entry .toggle-head>button{white-space:normal;overflow-wrap:anywhere}
.dark-skin .entry .wp-block-table figcaption,.dark-skin .entry .wp-caption-text{color:var(--local-muted)}
.entry .tabs-wrapper [role=tab]{white-space:normal;overflow-wrap:anywhere}
@media(max-width:767px){.entry .tabs-wrapper{min-width:0;max-width:100%}.entry .tabs-wrapper [role=tablist]{max-width:100%;overflow-x:auto}.entry .toggle-content{max-width:100%;min-width:0}}

/* Native carousel controls */
.local-slider-arrow{font:inherit;color:inherit;background:transparent;border:0;cursor:pointer;width:100%;height:100%}.local-slider-arrow:disabled{cursor:default;opacity:.4}.local-slider-toggle{display:block;margin:8px auto;padding:6px 12px;font:inherit;color:inherit;background:transparent;border:1px solid currentColor;border-radius:4px;cursor:pointer}.local-slider-toggle[hidden]{display:none}.local-slider-arrow:focus-visible,.local-slider-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}
