/* Native, keyboard-accessible language navigation, with room for translated copy. */
.site-header .header-inner{column-gap:18px}
.header-inner>.brand,.header-inner>.h-brand{order:0}
.header-inner>.main-nav{order:1;margin-left:auto}
.language-switcher{order:2;position:relative;flex:0 0 auto;font-size:14px;color:var(--ink,#171717)}
.header-inner>.menu-toggle{order:3}
.language-switcher summary{display:flex;align-items:center;justify-content:center;gap:7px;min-width:54px;min-height:44px;padding:7px 8px;border:1px solid #ddd8d0;border-radius:10px;background:#fff;cursor:pointer;list-style:none;font-weight:700}
.language-switcher summary::-webkit-details-marker{display:none}
.language-chevron{width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-top:-3px}
.language-switcher[open] .language-chevron{transform:rotate(225deg);margin-top:4px}
.language-switcher nav{position:absolute;top:calc(100% + 8px);right:0;min-width:170px;padding:7px;border:1px solid #e4dfd7;border-radius:12px;background:#fff;box-shadow:0 9px 26px #1c182319;z-index:5}
.language-switcher ul{list-style:none;padding:0;margin:0}
.language-switcher a{display:flex;align-items:center;min-height:44px;padding:9px 12px;border-radius:7px;white-space:nowrap;text-decoration:none}
.language-switcher a:hover,.language-switcher a[aria-current=true]{background:#fff0b3}
.language-switcher summary:focus-visible,.language-switcher a:focus-visible{outline:3px solid #5087c3;outline-offset:3px}
html:not([lang=fr]) .h-brand>span{white-space:normal}
html:not([lang=fr]) .main-nav>a:not(.button){line-height:1.4}
html:not([lang=fr]) .support-option-action{white-space:normal}
@media(min-width:761px) and (max-width:1190px){
  .paper-theme .main-nav{gap:16px;font-size:13px}
  .paper-theme .main-nav>a:nth-child(3){display:none}
  .paper-theme .main-nav .h-button-small{padding:11px 14px}
}
@media(min-width:761px) and (max-width:920px){
  .paper-theme .main-nav{gap:12px}
  .paper-theme .main-nav .support-nav{font-size:13px}
  .paper-theme .h-brand,.paper-theme .h-brand img{width:140px}
  .paper-theme .h-brand img{height:auto}
  .paper-theme .h-brand>span{margin-left:35px;font-size:11px}
  .site-header .header-inner{column-gap:12px}
}
@media(max-width:760px){
  .site-header .header-inner,.paper-theme .h-header .header-inner{column-gap:9px}
  .language-switcher{margin-left:auto;font-size:14px}
  .language-switcher nav{right:-48px}
  .header-inner>.main-nav{margin-left:0}
  html:not([lang=fr]) .main-nav>a:not(.button){line-height:1.5}
  html:not(.js) .header-inner>.main-nav{order:4;flex-basis:100%}
}

/* Fit copy to the paper itself, including longer translations and click states.
   Notes may grow with their content; the paper follows instead of clipping text. */
.paper-theme .h-note{container-type:inline-size;box-sizing:border-box;min-width:0;min-block-size:min-content}
.paper-theme .h-note::before{background-size:100% 100%}
.paper-theme .h-note :is(p,.note-label,.s-creation-caption,.s-creation-hint,.h-bulb-label,.r-play-note-label),
.paper-theme .r-rule-note>strong{
  box-sizing:border-box;min-width:0;max-inline-size:80%;padding-inline:0;
  white-space:normal;overflow-wrap:anywhere;hyphens:auto;text-align:center;
  flex-shrink:0;
}
.paper-theme .h-note p span{max-inline-size:100%}
.paper-theme :is(.h-idea-note,.h-studio-note,.s-values-note){padding-block:16px}
.paper-theme .h-note p{font-size:24px;font-size:clamp(18px,14cqi,38px);line-height:1.16}
.paper-theme.page-studio .s-idea-note p{font-size:23px;font-size:clamp(18px,13cqi,35px);line-height:1.2}
.paper-theme .h-studio-values .h-studio-note p{font-size:21px;font-size:clamp(17px,11cqi,27px);line-height:1.2}
.paper-theme.page-studio .s-values-note p{font-size:27px;font-size:clamp(22px,11cqi,38px);line-height:1.2}
.paper-theme.page-studio .s-brand-note{padding-block:14px;gap:6px}
.paper-theme.page-studio .s-creation-caption{font-size:19px;font-size:clamp(16px,11cqi,28px);line-height:1.2}
.paper-theme.page-studio .s-creation-hint{max-inline-size:78%;font-size:10px;font-size:clamp(10px,5cqi,12px)}
.paper-theme .h-bulb-label{font-size:18px;font-size:clamp(16px,11cqi,24px);line-height:1.2}
.paper-theme .r-rule-note{padding:20px 0 12px;gap:5px}
.paper-theme .r-rule-note>strong{font-size:18px;font-size:clamp(15px,15cqi,31px);line-height:1.15}
.paper-theme .r-rule-note>.h-icon{flex-shrink:0}
.paper-theme .r-play-note{padding:18px 0;gap:12px}
.paper-theme .r-play-note-label{font-size:24px;font-size:clamp(18px,12cqi,34px);line-height:1.25}
.paper-theme .support-note{padding:12px 0;gap:6px}
.paper-theme .support-note p{font-size:17px;font-size:clamp(14px,14cqi,28px);line-height:1.18}
.paper-theme .support-note>.h-icon,.paper-theme .support-hero-note>.h-icon{flex-shrink:0}
.paper-theme .support-hero-note{padding:20px 0;gap:14px}
.paper-theme .support-hero-note p{font-size:25px;font-size:clamp(22px,11cqi,36px);line-height:1.2}
.paper-theme .c-game-note{width:110px;white-space:normal;padding:16px 10px;font-size:18px;text-align:center}
.paper-theme .c-game-note .note-label{max-inline-size:100%;font-size:18px;font-size:clamp(14px,19cqi,20px);line-height:1.2}
@media(max-width:760px){
  .paper-theme .c-game-note{width:96px;padding:14px 9px}
  .paper-theme .r-rule-note{gap:4px;padding-block:20px 12px}
  .paper-theme .support-note{padding-block:10px;gap:5px}
}
