/* Save Marriage Tips language switcher and language notes (Staff Studio #201) */
.lsw{position:relative;font-family:var(--head,system-ui,sans-serif);order:3;flex:none}
.lsw>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;font-size:16px;font-weight:700;color:#fff;border:1px solid rgba(255,255,255,.35);background:transparent;line-height:1;min-height:42px}
.lsw>summary::-webkit-details-marker{display:none}
.lsw>summary:hover,.lsw[open]>summary{border-color:var(--gold,#ffbb24);color:var(--gold,#ffbb24)}
.lsw>summary:focus-visible{outline:3px solid var(--gold,#ffbb24);outline-offset:2px}
.lsw-list{position:absolute;right:0;top:calc(100% + 10px);z-index:70;min-width:210px;background:#fff;border:1px solid #dfe6ef;border-radius:14px;box-shadow:0 18px 36px -12px rgba(4,34,66,.45);padding:6px;display:flex;flex-direction:column}
.lsw-list a{display:flex;gap:10px;align-items:center;padding:11px 12px;border-radius:9px;color:#1d2733;text-decoration:none;font-size:16px;font-weight:500;font-family:var(--body,system-ui,sans-serif)}
.lsw-list a b{display:inline-block;min-width:26px;font-size:14px;color:#042242;letter-spacing:.04em}
.lsw-list a:hover{background:#eef3f9}
.lsw-list a[aria-current]{background:var(--navy,#042242);color:#fff}.lsw-list a[aria-current] b{color:var(--gold,#ffbb24)}
.lsw-bar{display:flex;justify-content:flex-end;padding:6px 12px;background:var(--navy,#042242)}
/* desktop: after the menu; phone: between the logo and the menu button */
.top-in>.lsw{margin-left:6px}
@media (max-width:900px){.top-in>.lsw{margin-left:auto}.top-in>.menu-btn{order:4}.top-in{gap:10px}}
@media (max-width:400px){.top-in .logo-img{width:170px;height:auto}.lsw>summary{padding:8px 9px}}
/* translated menus are longer: keep the menu on one line on mid-size screens */
@media (min-width:901px){html:not([lang=en]) .nav a{white-space:nowrap}}
@media (min-width:901px) and (max-width:1240px){
  html:not([lang=en]) .nav a:not(.nav-cta){padding:10px 8px;font-size:15px}
  html:not([lang=en]) .nav a.nav-cta{margin-left:4px;padding:10px 14px;font-size:15px}
  html:not([lang=en]) .top-in{gap:12px}
  html:not([lang=en]) .top-in .logo-img{width:190px;height:auto}
}
/* footer language links */
.sml-langs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;padding:16px 0;margin:18px 0 4px;border-top:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14);font-size:16px;color:#c3cfdf}
.sml-langs svg{opacity:.75;flex:none}
.foot .sml-langs a{display:inline-flex;align-items:center;min-height:32px;padding:0}
.sml-langs a[aria-current]{font-weight:700;color:#fff}
/* "in English" notes beside the guide buttons and the free-course form */
.lang-note{font-size:16px;line-height:1.5;margin:8px 0 0;font-style:italic;color:var(--muted,#5b6b7d)}
.btn-note+.lang-note{margin-top:6px}
.xpop .lang-note,.course .lang-note{opacity:.9}
/* 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}
