/* Ultimate Diabetic Cookbook language switcher and language notes (Staff Studio #203) */
.lsw{position:relative;font-family:var(--sans,Inter,system-ui,sans-serif)}
.lsw>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;padding:9px 12px;border-radius:999px;font-size:16px;font-weight:700;color:var(--charcoal,#2b2b2b);border:1px solid var(--line,#e7ddd3);background:#fff;line-height:1;min-height:42px}
.lsw>summary::-webkit-details-marker{display:none}
.lsw>summary:hover,.lsw[open]>summary{border-color:var(--crimson,#b3001b);color:var(--crimson-d,#8f0016)}
.lsw>summary:focus-visible{outline:3px solid #f3c7cd;outline-offset:2px}
.lsw-list{position:absolute;right:0;top:calc(100% + 8px);z-index:80;min-width:200px;background:#fff;border:1px solid var(--line,#e7ddd3);border-radius:14px;box-shadow:0 18px 36px -12px rgba(43,43,43,.35);padding:6px;display:flex;flex-direction:column}
.nav .lsw-list a,.lsw-list a{display:flex;gap:10px;align-items:center;padding:11px 12px;border-radius:9px;color:var(--charcoal,#2b2b2b);text-decoration:none;font:500 16px/1.2 var(--sans,Inter,system-ui,sans-serif);white-space:nowrap}
.lsw-list a b{display:inline-block;min-width:26px;font-size:14px;color:var(--crimson,#b3001b);letter-spacing:.04em}
.lsw-list a:hover{background:#fbeef0;color:var(--crimson-d,#8f0016)}
.lsw-list a[aria-current]{background:var(--charcoal,#2b2b2b);color:#fff}.lsw-list a[aria-current] b{color:#ffb3bd}
.lsw-bar{display:flex;justify-content:flex-end;padding:6px 12px;background:#fff}
/* header: desktop = in the menu right after Members Login; phone = beside the menu button (the menu is folded there) */
.hdr>.lsw-m{display:none;margin-left:auto}
.hdr>.lsw-solo{margin-left:auto}
.nav .lsw-d{margin-left:4px}
@media (max-width:880px){.hdr>.lsw-m{display:block}.nav .lsw-d{display:none}.hdr{gap:10px}}
@media (max-width:400px){.site-header .brand img{width:160px;height:auto}.lsw>summary{padding:8px 9px}}
/* translated menus are longer: keep the menu on one line on mid-size screens */
@media (min-width:881px) and (max-width:1240px){
  html:not([lang=en]) .nav a:not(.btn){padding:11px 8px}
  html:not([lang=en]) .nav a.btn{padding:12px 14px;margin-left:4px}
  html:not([lang=en]) .site-header .brand img{width:180px;height:auto}
}
/* footer language links */
.udc-langs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;padding:16px 0;margin:4px 0 14px;border-top:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14);font-size:16px;color:#ece5e0}
.udc-langs svg{opacity:.75}
.udc-langs a{color:#ece5e0;text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.udc-langs a:hover{color:#fff;text-decoration:underline}
.udc-langs a[aria-current]{font-weight:700;color:#fff}
/* "in English" note beside the buy buttons */
.lang-note{font-size:16px;line-height:1.5;margin:10px 0 0;font-style:italic;opacity:.9}
.band-charcoal .lang-note{color:#ece5e0}
.pricebox .lang-note{color:var(--muted,#6b6460);text-align:center}
.order-side .pricebox .lang-note{text-align:left}
/* long compound words (German, Dutch) break on phones instead of pushing the page sideways */
html:not([lang=en]) main :is(h1,h2,h3,h4,p,li,dt,dd,td,th,blockquote,figcaption,label,a,span){overflow-wrap:break-word}
html:not([lang=en]) main :is(h1,h2,h3,p,li){hyphens:auto;-webkit-hyphens:auto}
html:not([lang=en]) main{overflow-x:clip}
