/* Readable foreground/background pairs, independent of the surrounding reading theme. */
:root{--rhuna-highlight-paper:#304d3c;--rhuna-highlight-ink:#fff4d6;--choice-label-ink:#58401b}
html[data-theme=light] body{--muted:#526049}
/* My Heroes keeps its forest surround in both modes; the sheet itself is parchment. */
html[data-theme=light] body:has(.heroes-main){--muted:#c2cdb9}
html body :is(.spark-card strong,.rhuna-highlight){background:var(--rhuna-highlight-paper)!important;color:var(--rhuna-highlight-ink)!important}
/* A parchment result is a light surface even while the surrounding site is dark. */
html body .result-parchment{--soft:#e0d2af;--text:#403523;--rhuna-body:#403523;--rhuna-subheading:#38513a;--rhuna-eyebrow:#60461f}
html body :is(.hero-parchment,#heroCreator) .eyebrow{color:#60461f!important}
html body .hero-parchment :is(.editor-hint,.training-gate:not(.is-locked),.item-cell>span:first-child,dt,summary,label,.ability-token-unset){color:#58472e!important}
html body .hero-parchment h4{color:#60421e!important}
html body .hero-parchment summary small{color:inherit!important}
html body :is(#creatorStatus,.solo-story-kicker){color:#60461f!important}
/* Hint text follows the input's own light/dark ink rather than a browser's gray default. */
html body :is(input,textarea)::placeholder{color:currentColor;color:color-mix(in srgb,currentColor 88%,transparent);opacity:1}
/* Active combat positions retain their own contrasting palette in each theme. */
html:not([data-theme=light]) body .position-track li.current strong{color:#fff1cc}
html:not([data-theme=light]) body .position-track li.current small{color:#eef0dd}
html[data-theme=light] body .position-track li.current :is(strong,small){color:#354b27}
/* Two-color keyboard focus remains visible on forest, gold and parchment alike. */
@layer rhuna-actions{
 html body :is(button,a,summary,select,textarea,input:not([type=hidden])):focus-visible{outline:3px solid #4a3518!important;outline-offset:2px!important;box-shadow:0 0 0 5px #fff4d6!important}
}
