.rianovLanguageFlag{display:block;width:23px;height:16px;object-fit:cover;border:1px solid #111;box-sizing:border-box}
.rianovLanguagePromptOption .rianovLanguageFlag{width:29px;height:20px}
:is(.desktopNav,.mobileNav,.accountDesktopNav,.accountMobileNav)>a:is([href="https://actionsites.web.app"],[href="https://actionsites.web.app/"]){
  text-transform:uppercase;
}

/* Keep the account controls and the compact menu together at the right. */
@media(max-width:1360px){
  .topLine:has(>.headerAccountActions){justify-content:flex-start}
  .topLine>.headerAccountActions{margin-inline:auto 0;justify-self:end}
  .topLine:has(>.headerAccountActions)>.mobileMenuButton{margin-inline-start:0;justify-self:end}
}
@media(max-width:620px){
  .topLine:has(>.headerAccountActions){
    grid-template-columns:minmax(0,1fr) max-content max-content!important;
    column-gap:clamp(5px,1.5vw,9px);
  }
}
@media(max-width:360px){
  .topLine.isDocked:has(>.headerAccountActions){inset-inline:8px;padding-inline:6px}
}

.contactInquiry .inquiryForm select{
  appearance:none;
  -webkit-appearance:none;
  padding-inline-end:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 15px center;
}
@media(forced-colors:active){
  .contactInquiry .inquiryForm select{appearance:auto;-webkit-appearance:auto;background-image:none}
}

.resetScene>.resetPerson{mix-blend-mode:normal;filter:none}
/* Mirror the original contact composition without changing its dimensions. */
@media(min-width:621px){
  #contact.finalScene>.finalCopy{margin-left:0;margin-right:auto}
  #contact.finalScene>img{left:auto;right:1%;object-position:right bottom}
}
@media(min-width:621px) and (max-width:900px){
  #contact.finalScene>img{right:0}
}

/* Mirror the text edge of RIANOV/RU against the outside control. */
@media (width <= 1360px){
  header.topLine:has(>.headerAccountActions):not(.isDocked){inset-inline:5%}
}
@media (621px <= width <= 1360px){
  header.topLine.isDocked:has(>.headerAccountActions){
    inset-inline:14px;
    /* Match the left inset plus 9px of padding inside the brand badge. */
    padding-inline-end:26px;
  }
}
@media (width <= 340px){
  header.topLine:has(>.headerAccountActions) > a:first-child{font-size:8px}
  header.topLine:has(>.headerAccountActions) > .mobileMenuButton{padding-inline:3px;gap:2px}
}
@media (width > 1360px){
  html:has(header.topLine>.headerAccountActions):has(.pixelApple){
    --site-header-outer:5%;
    --site-header-dock-width:min(1392px,calc(100% - 96px));
    --site-header-dock-text-edge:calc((100% - var(--site-header-dock-width)) / 2 + 28px);
    --site-header-r-clip-inset:3.78px;
  }
  html:has(header.topLine>.headerAccountActions) .pixelApple{
    /* The painted right edge is at 93% of the 54px hit area. */
    inset-inline-end:calc(var(--site-header-outer) - var(--site-header-r-clip-inset));
  }
  html:has(header.topLine.isDocked>.headerAccountActions) .pixelApple{
    inset-inline-end:calc(var(--site-header-dock-text-edge) - var(--site-header-r-clip-inset));
  }
  html:has(.pixelApple) header.topLine:has(>.headerAccountActions):not(.isDocked){
    inset-inline:var(--site-header-outer);
  }
  html:has(.pixelApple) header.topLine.isDocked:has(>.headerAccountActions){
    width:var(--site-header-dock-width);
  }
  html:has(.pixelApple) header.topLine:has(>.headerAccountActions){
    display:grid;
    grid-template-columns:minmax(max-content,1fr) max-content minmax(max-content,1fr);
    column-gap:clamp(8px,calc(1.2vw - 8px),14px);
  }
  html:has(.pixelApple) header.topLine:has(>.headerAccountActions) > a:first-child{justify-self:start}
  html:has(.pixelApple) header.topLine:has(>.headerAccountActions) .desktopNav{
    /* Center by default; yield room for long translated account buttons. */
    position:static;
    transform:none;
    gap:clamp(8px,calc(1.3vw - 8px),18px);
  }
  html:has(.pixelApple) header.topLine > .headerAccountActions{
    justify-self:end;
    margin-inline-end:61px;
  }
  html:has(.pixelApple) header.topLine.isDocked > .headerAccountActions{margin-inline-end:70px}
}
