/* CODE-C: header language switcher (no JS). Same look as the nav buttons; opens a small list. */
.lang-sw{position:relative}
.lang-sw summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-weight:600;font-size:.9rem}
.lang-sw summary::-webkit-details-marker{display:none}
.lang-sw summary:focus-visible,.lang-sw a:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.lang-sw ul{position:absolute;right:0;top:calc(100% + 6px);z-index:60;margin:0;padding:6px;list-style:none;min-width:150px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.14)}
.lang-sw li a{display:block;padding:10px 12px;border-radius:8px;color:var(--ink);text-decoration:none;white-space:nowrap}
.lang-sw li a:hover,.lang-sw li a[aria-current]{background:var(--line)}
.lang-sw li a[aria-current]{font-weight:700}
@media (max-width:860px){.lang-sw ul{right:0}}
/* c317: "Industries" header menu, same no-JS dropdown look */
.ind-menu{position:relative;display:inline-block}
.ind-menu summary{list-style:none;cursor:pointer;color:inherit;font:inherit}
.ind-menu summary::-webkit-details-marker{display:none}
.ind-menu summary:focus-visible,.ind-menu a:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.ind-menu ul{position:absolute;left:0;top:calc(100% + 6px);z-index:60;margin:0;padding:6px;list-style:none;min-width:170px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.14)}
.ind-menu li a{display:block;padding:10px 12px;border-radius:8px;color:var(--ink);text-decoration:none}
.ind-menu li a:hover{background:var(--line)}
@media (max-width:860px){.ind-menu ul{position:static;box-shadow:none;border:0;padding:0 0 0 12px}}
.tk-badge-ok{background:#e7f3ea;color:#1b5e32}
/* c322: Listen button (shown only when the device has a voice for the page language) */
/* c322: Gurmukhi and Chinese glyphs. Inter has neither, so name the system fonts that do (Windows, Mac/iPhone, Android, Linux). */
html:lang(pa){--font:Inter,"Nirmala UI","Gurmukhi MN","Gurmukhi Sangam MN","Noto Sans Gurmukhi","Raavi",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
html:lang(zh){--font:Inter,"PingFang SC","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC","Hiragino Sans GB",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
html:lang(pa) body,html:lang(pa) p,html:lang(pa) li{line-height:1.6}
html:lang(zh) body,html:lang(zh) p,html:lang(zh) li{line-height:1.7}
/* c325: guided tour + How-to strip */
.tour-back{position:fixed;inset:0;z-index:1000;background:rgba(15,23,42,.35)}
.tour-box{position:fixed;z-index:1001;left:50%;bottom:20px;transform:translateX(-50%);width:min(520px,calc(100vw - 32px));background:var(--surface,#fff);color:var(--ink,#111);border:2px solid var(--ink,#111);border-radius:16px;padding:18px 20px;box-shadow:0 12px 40px rgba(0,0,0,.28)}
.tour-count{margin:0 0 4px;font-size:.85rem;opacity:.75}
.tour-h{margin:0 0 6px;font-size:1.25rem;line-height:1.3}
.tour-p{margin:0 0 14px;font-size:1rem;line-height:1.5}
.tour-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tour-gap{flex:1}
.tour-actions button{min-height:44px;min-width:44px;padding:0 16px;border-radius:10px;border:1px solid var(--line,#ccc);background:var(--surface,#fff);color:inherit;font:inherit;font-weight:600;cursor:pointer}
.tour-actions .tour-next{background:var(--ink,#111);color:var(--surface,#fff);border-color:var(--ink,#111)}
.tour-actions .tour-skip{border-color:transparent;text-decoration:underline}
.tour-actions button[hidden]{display:none}
.tour-actions button:focus-visible{outline:3px solid #0b57d0;outline-offset:2px}
.tour-target{position:relative;z-index:999;outline:4px solid #0b57d0;outline-offset:6px;border-radius:12px}
.tour-cta{margin:12px 0}
.tour-cta[hidden],.tour-cta button[hidden]{display:none}
.howto-strip{padding:14px 0}
.howto-strip .howto-h{margin:0 0 6px;font-weight:700}
.howto-strip ol{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:0;list-style:none;counter-reset:ht}
.howto-strip li{counter-increment:ht;display:flex;align-items:center;gap:8px;font-size:.98rem}
.howto-strip li::before{content:counter(ht);display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--ink,#111);color:var(--surface,#fff);font-weight:700;font-size:.85rem}
@media (prefers-reduced-motion:reduce){.tour-box{transition:none}}
@media (max-width:600px){.tour-box{bottom:10px;padding:14px 16px}}

/* 15:00 order: the language list must never be clipped or hidden. The header sits above the launch banner (front.css gave both z-index 1, so the banner painted over the list), the list is never cut by a parent, and on phones it opens fixed under the header at full width. */
header.nav,.fr-home header.nav{position:sticky;top:0;z-index:300}
.lang-sw[open]{z-index:310}
.lang-sw ul{overflow:visible;max-height:none;min-width:190px;z-index:320}
@media (max-width:860px){.lang-sw ul{position:fixed;top:64px;right:8px;left:auto;width:min(260px,calc(100vw - 16px));max-height:calc(100vh - 80px);overflow-y:auto}}
.demo-voice{margin:.4rem 0 0;font-size:.9rem}.demo-voice[hidden]{display:none}.demo-voice label{cursor:pointer}
.demo-voice-note{margin-left:.5rem;opacity:.8}
