/* Light themes back (Claude Code 2026-11-10; owner's wife: Silver Platinum + Lavender Platinum). Newer styles (book-page.css,
   desktop.css …) were written for the dark Royal Navy family; on these two light themes their light-ivory text would sit on a
   light page. Loaded last; only applies to the two light themes. */
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) {
  --lt-ink: #1E2C4A; --lt-ink-2: #4A5671; --lt-acc: #7A5A1C; --lt-glass: rgba(255, 255, 255, .72); --lt-line: rgba(122, 90, 28, .35);
}
html[data-theme="lavender-platinum"] { --lt-ink: #2E2758; --lt-ink-2: #5A5373; --lt-acc: #6A4E9A; --lt-line: rgba(106, 78, 154, .35); }

/* word header line: part of speech, [I/T], IPA */
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .word-meta .pos,
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .word-meta .gram-full { color: var(--lt-ink-2) !important; }
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .word-meta .ipa,
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .word-meta .gram-code { color: var(--lt-acc) !important; }

/* section tabs (Definitions · CEFR Levels · Grammar) */
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .jump-pills .jump-pill:not([aria-selected="true"]):not([aria-current="true"]) {
  color: var(--lt-ink) !important; background: var(--lt-glass) !important; border-color: var(--lt-line) !important; box-shadow: 0 2px 6px rgba(30, 44, 74, .12) !important;
}
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .jump-pills .jump-pill:not([aria-selected="true"]):hover { color: var(--lt-ink) !important; background: #FFFFFF !important; }
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .section-nav.jump-pills { background: transparent !important; }

/* 2026-11-10 owner: "My Space needs to follow the rule — dark blue means it must have colour". Royal Navy's My Space = navy page +
   navy glass panels + gold lines; the light themes get the same build in their own colour (lavender / silver-blue), kept light. */
html[data-theme="lavender-platinum"] { --lt-page: linear-gradient(180deg, #E6DEF7 0%, #CFC2EC 55%, #B9A8E2 100%); --lt-panel: rgba(126, 100, 190, .16); --lt-panel-line: rgba(106, 78, 154, .45); --lt-chip: rgba(255, 255, 255, .6); }
html[data-theme="silver-platinum"] { --lt-page: linear-gradient(180deg, #ECF0F5 0%, #D6DEE8 55%, #BFCAD8 100%); --lt-panel: rgba(70, 96, 130, .12); --lt-panel-line: rgba(70, 96, 130, .4); --lt-chip: rgba(255, 255, 255, .62); }
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) body[data-route="myspace"] { background: var(--lt-page) fixed !important; }
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) body[data-route="myspace"] .app,
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) body[data-route="myspace"] .ambient { background: none !important; }
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .ms-panel,
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .ms-tabs {
  background: var(--lt-panel) !important; border: 1px solid var(--lt-panel-line) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 22px rgba(46, 39, 88, .12) !important;
}
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .ms-screen :is(.ms-panel, .ms-tabs) button:not(.btn-gold):not([aria-selected="true"]):not([aria-pressed="true"]):not(.is-on) { color: var(--lt-ink); }
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .ms-adjust { background: var(--lt-page) !important; }
/* Home: the My Space card in the theme's colour too (was plain white) */
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) #v-home section.card.myspace {
  background: linear-gradient(var(--lt-panel), var(--lt-panel)), var(--lt-page) !important; border: 1px solid var(--lt-panel-line) !important;
}
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) #v-home section.card.myspace .ms-head h2,
html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) #v-home section.card.myspace .ms-title { color: var(--lt-ink) !important; }

/* 2026-11-10 computer side bar on the light themes: pale glass needs dark ink (the rail was made for the dark family) */
@media (min-width: 1100px) and (((hover: hover) and (pointer: fine)) or (orientation: landscape)) {
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail {
    background: linear-gradient(180deg, var(--pg-glass, rgba(246, 248, 251, .86)), var(--pg-glass-2, rgba(236, 240, 246, .82))) !important;
    border-right: 1px solid rgba(176, 138, 58, .4) !important;
  }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail .dr-lexi { color: var(--lt-ink) !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail :is(.dr-global, .dr-wm small) { color: #8A6420 !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail .dr-item { color: var(--lt-ink) !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail .dr-item .ic { color: #8A6420 !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail .dr-item:hover { background: rgba(255, 255, 255, .6) !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail .dr-item[aria-current="page"] { color: #5C4210 !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail .dr-sep { background: rgba(176, 138, 58, .3) !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail .dr-me { color: var(--lt-ink) !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail .dr-name { color: #5C4210 !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .desk-rail .dr-me-t small { color: var(--lt-ink-2) !important; }
}
@media (min-width: 1280px) and (((hover: hover) and (pointer: fine)) or (orientation: landscape)) {
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .dict-panel { border-color: rgba(176, 138, 58, .5) !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .dict-panel .dp-w { color: var(--lt-ink) !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .dict-panel :is(.dp-t, .dp-open) { color: #7A5A1C !important; }
  html:is([data-theme="silver-platinum"], [data-theme="lavender-platinum"]) .dict-panel .dp-open { border-color: rgba(122, 90, 28, .45) !important; }
}
