/* SPDX-License-Identifier: Apache-2.0
 * SPDX-FileCopyrightText: 2026 T-Systems International GmbH
 * SPDX-FileContributor: Stefan Othmer
 *
 * Maintained by the HCS Platform Engineering team.
 *
 * The theme choice (themes.js): the menu behind the app bar's theme button,
 * and what the light theme needs now that it is a first-class choice. Linked
 * last, on every page.
 *
 * `data-theme` stays dark | light -- hundreds of selectors read it. "System"
 * is a choice, not a third value: it resolves to one of the two.
 */

/* --- the theme menu ------------------------------------------------------ */
.themebtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.themebtn[aria-expanded="true"]{background:var(--surface-2);border-color:var(--border);color:var(--ink)}
.thm-menu{position:fixed;z-index:140;min-width:264px;max-width:calc(100vw - 16px);padding:6px;
  background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-lg);font-size:13px}
.thm-menu[hidden]{display:none}
.thm-head{padding:6px 10px 4px;font-size:10.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3)}
.thm-item{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:6px 10px;border-radius:8px;cursor:pointer}
.thm-item:hover{background:var(--surface-2)}
.thm-item:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;background:var(--surface-2)}
.thm-item svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--ink-2)}
.thm-item .thm-l{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.thm-item .thm-l b{font-weight:600}
.thm-item .thm-l small{font-size:11.5px;color:var(--ink-2)}
.thm-item kbd{flex:none;font:600 10.5px var(--mono);color:var(--ink-2);border:1px solid var(--border);border-radius:5px;padding:2px 5px;background:var(--surface-2)}
.thm-item .thm-dot{flex:none;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--ink-3);box-sizing:border-box}
.thm-item[aria-checked="true"] .thm-dot{border-color:var(--brand);background:radial-gradient(circle,var(--brand) 0 4px,transparent 4.6px)}
.thm-item[aria-checked="true"] .thm-l b{color:var(--ink)}
@media print{.thm-menu{display:none!important}}

/* --- the light theme, where the shell assumed dark ------------------------- */
/* Light theme: the pale pink these carry is the dark theme's accent ink -- on a
   white card it is 2.2:1 to 3:1. Light reads the brand ink (7:1) instead. */
:root[data-theme="light"] .as-open,:root[data-theme="light"] .c-tag.host,:root[data-theme="light"] .c-links a,:root[data-theme="light"] .ys-kicker,:root[data-theme="light"] .ys-steps span.on{color:var(--brand-ink)}
/* The signal colours of the Sync and host pages are the dark theme's (mint,
   amber, coral): as text on a light card they are 1.8:1 to 2.7:1. */
:root[data-theme="light"] #pageSync,:root[data-theme="light"] #pageHost,:root[data-theme="light"] #pageHosts{
  --ys-ok:#1f7a34;--ys-warn:#8a5d00;--ys-crit:#bf2626;--ys-go:#2459c4}
