/* modern.css — light modernisation layer + language switch (loaded last, no layout/logic changes) */
:root{--esm-radius:14px;--esm-ease:cubic-bezier(.2,.7,.2,1)}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{font-feature-settings:"kern","liga"}
p,.body-l,.tx{text-wrap:pretty}
h1,h2,h3,h4{text-wrap:balance}
button,a,.hub-card,.cn-card,.dopt,.fact{transition:transform .25s var(--esm-ease),box-shadow .25s var(--esm-ease),background-color .25s,border-color .25s,color .2s}
.hub-card:hover,.cn-card:hover{transform:translateY(-3px)}
.hub-card,.cn-card,.fact,.decision,.compare .side,.prov-banner,.learn-meter{border-radius:var(--esm-radius)}
.arch img,.sv-frame img,.ph img,.ph-now img{border-radius:6px}
:focus-visible{outline:3px solid #E6B24E;outline-offset:3px;border-radius:6px}
::selection{background:#E6B24E;color:#1B263B}
/* language switch */
.lang-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1.5px solid currentColor;border-radius:999px;font-family:"Courier Prime",ui-monospace,monospace;font-weight:700;font-size:12px;letter-spacing:.08em;line-height:1;margin-right:6px;flex:none}
.lang-switch{background:rgba(247,241,230,.94);color:#1B263B;border-color:rgba(27,38,59,.35)}
[data-theme="dark"] .lang-switch{background:rgba(27,38,59,.92);color:#F7F1E6;border-color:rgba(247,241,230,.4)}
.lang-switch button{color:inherit}
.lang-switch button{all:unset;color:inherit;cursor:pointer;padding:6px 10px;border-radius:999px;min-width:22px;text-align:center;opacity:.7}
.lang-switch button:hover{opacity:1}
.lang-switch button[aria-pressed="true"]{background:#C8811A;color:#1B1204;opacity:1}
.lang-switch button:focus-visible{outline:2px solid #E6B24E;outline-offset:2px}
.lang-switch.floating{position:fixed;top:12px;right:12px;z-index:9999;background:#F7F1E6;color:#1B263B}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition-duration:.01ms!important}}
