/* Romance Chemistry language switcher and language notes (Staff Studio #194) */
.lsw{position:relative;font-family:var(--sans,Roboto,system-ui,sans-serif)}
.lsw>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;font-size:15px;font-weight:700;color:var(--plum,#400a46);border:1px solid var(--line,#efdbe7);background:#fff;line-height:1;min-height:40px}
.lsw>summary::-webkit-details-marker{display:none}
.lsw>summary:hover,.lsw[open]>summary{border-color:var(--berry,#b52e6d);color:var(--berry,#b52e6d)}
.lsw>summary:focus-visible{outline:3px solid #f7a8cf;outline-offset:2px}
.lsw-list{position:absolute;right:0;top:calc(100% + 8px);z-index:70;min-width:200px;background:#fff;border:1px solid var(--line,#efdbe7);border-radius:14px;box-shadow:0 18px 36px -12px rgba(64,10,70,.35);padding:6px;display:flex;flex-direction:column}
.lsw-list a{display:flex;gap:10px;align-items:center;padding:11px 12px;border-radius:9px;color:var(--ink,#2a1230);text-decoration:none;font-size:16px;font-weight:500}
.lsw-list a b{display:inline-block;min-width:26px;font-size:13px;color:var(--berry,#b52e6d);letter-spacing:.04em}
.lsw-list a:hover{background:#fdf0f6}
.lsw-list a[aria-current]{background:var(--plum,#400a46);color:#fff}.lsw-list a[aria-current] b{color:#fbd9ec}
.lsw-bar{display:flex;justify-content:flex-end;padding:6px 12px;background:#fff}
/* header: desktop = after the menu; phone = just before the burger */
@media (min-width:861px){.rc-header-in .lsw{order:3}.rc-header-in .rc-nav{margin-left:auto}}
@media (max-width:860px){.rc-header-in .lsw{margin-left:auto}.rc-header-in{gap:10px}}
@media (max-width:400px){.rc-header-in .rc-logo img{width:150px}.lsw>summary{padding:8px 9px}}
/* translated menus are longer: keep the menu on one line on mid-size screens */
@media (min-width:861px){html:not([lang=en]) .rc-nav a{white-space:nowrap}}
@media (min-width:861px) and (max-width:1180px){
  html:not([lang=en]) .rc-nav{gap:16px}
  html:not([lang=en]) .rc-nav a:not(.rc-btn){font-size:.96rem}
  html:not([lang=en]) .rc-nav .rc-btn{padding:10px 16px}
  html:not([lang=en]) .rc-logo img{width:170px}
}
@media (min-width:861px) and (max-width:1020px){html:not([lang=en]) .rc-nav a:first-child:not(.rc-btn){display:none}}
/* footer language links */
.rc-langs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;padding:16px 0;margin:4px 0 8px;border-top:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14);font-size:15px}
.rc-langs svg{opacity:.75}
.rc-langs a{color:inherit;text-decoration:none;opacity:.88;min-height:32px;display:inline-flex;align-items:center}
.rc-langs a:hover{text-decoration:underline;opacity:1}
.rc-langs a[aria-current]{font-weight:700;opacity:1}
/* "in English" notes beside the buy buttons */
.lang-note{font-size:15px;line-height:1.5;margin:8px 0 0;font-style:italic;opacity:.85}
.hc-hero .lang-note{color:#f2dcea;text-align:center}
.rc-sticky .lang-note{display:none}
/* 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}
/* the book cover on The Books page pokes 1-2px past the edge at ~1100px (also on the English page): no sideways scroll */
html:not([lang=en]) main{overflow-x:clip}
