/* Shared secondary text: inherit the readable foreground of its surface.
   Inheriting also preserves white text on dark/coloured buttons and panels. */
:root{--bs-secondary-color:#334155;--bs-secondary-color-rgb:51,65,85;--bs-tertiary-color:#475569}
html body :is(small,.small,.text-muted,.muted,.quiet,.dimmed_text,.form-text,.helptext,.help-text,.hint,.note,.subtitle,.sub-title,.meta,.metadata,.caption,.session-top,.round-status,.bottom-note),
html body #page#page#page :is(small,.small,.text-muted,.muted,.quiet,.dimmed_text,.form-text,.helptext,.help-text,.hint,.note,.subtitle,.sub-title,.meta,.metadata,.caption,.session-top,.round-status,.bottom-note){color:inherit!important;font-weight:600!important;opacity:1!important}
html body :is(input,textarea)::placeholder{color:#475569!important;opacity:1!important;font-weight:500}
html body #s3-premium-rail .s3-rail-link>span{color:inherit!important}
/* Kana descriptions and lesson readings have a known light surface. */
html body #kana-app#kana-app#kana-app :is(.quiet,.note,.session-top,.round-status,.bottom-note,.tile small,.flash small,.lesson small,.deck small,.steps .step){color:#243b4b!important;font-weight:600!important;opacity:1!important}
html body #kana-app#kana-app#kana-app#kana-app .lesson small{font-size:13px!important;font-weight:700!important;line-height:1.6!important}
html body #kana-app#kana-app#kana-app .lesson strong{color:#17333d!important;font-weight:750!important}
html body #kana-app#kana-app#kana-app .lesson[aria-pressed=true] :is(strong,small){color:#111827!important}
/* Standalone Kanji iframe uses its own document, so it loads this same file. */
html body:has(#board) :is(.tag,.selected span,.progress,.hint,footer,header small){color:#243b4b!important;font-weight:600!important}
