/* Intro: only visible when the head script flags the first visit of the session. */
#am-intro{display:none;position:fixed;inset:0;z-index:200;pointer-events:none}
html.am-intro #am-intro{display:block}
html.am-intro{overflow:hidden}

/* Custom cursor (fine pointers only, enabled by site.js). */
#am-cursor{position:fixed;left:0;top:0;z-index:150;pointer-events:none;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;border:1.5px solid #00BDFA;display:none;align-items:center;justify-content:center;overflow:hidden;font-family:Raleway,sans-serif;font-size:14px;color:#001855;transition:width 400ms cubic-bezier(.19,1,.22,1),height 400ms cubic-bezier(.19,1,.22,1),margin 400ms cubic-bezier(.19,1,.22,1),background 300ms}
#am-cursor span{opacity:0;transition:opacity 200ms}
html.am-cursor [data-cursor],html.am-cursor [data-cursor] *{cursor:none !important}

/* Reveal helpers (initial states are set by site.js so the page stays readable without JS). */
.am-line{display:block;overflow:hidden;padding-bottom:.06em}
.am-line > span{display:block}
@media (prefers-reduced-motion:reduce){#am-intro{display:none !important}}

/* Buttons: fill from the bottom on hover and drain out through the top, like the header buttons. */
.am-fill{position:relative;overflow:hidden;isolation:isolate;transition:color 300ms,border-color 500ms cubic-bezier(.19,1,.22,1)}
.am-fill::before{content:"";position:absolute;inset:0;z-index:-1;background:#00BDFA;transform:scaleY(0);transform-origin:top;transition:transform 500ms cubic-bezier(.19,1,.22,1)}
.am-fill:hover::before,.am-fill:focus-visible::before{transform:scaleY(1);transform-origin:bottom}
.am-fill:hover,.am-fill:focus-visible{color:#001855 !important;border-color:#00BDFA !important}
.am-fill--white::before{background:#fff}
.am-fill--white:hover,.am-fill--white:focus-visible{border-color:#fff !important}

/* Form fields (as in the design): no outline; on focus a light-blue tint, a 2px cyan underline and the text shifts in. */
.am-field{outline:none;border-radius:0;transition:background 300ms,box-shadow 300ms,padding 300ms}
.am-field:focus,.am-field:focus-visible{outline:none;background:rgba(203,242,255,.45) !important;box-shadow:inset 0 -2px 0 #00BDFA;padding-left:12px !important}

/* Download rows: the icon circle fills navy with a white icon, and the arrow drops out at the bottom and comes back in from the top. */
.am-dl__icon{transition:background 500ms,border-color 500ms,color 300ms}
.am-dl:hover .am-dl__icon,.am-dl:focus-visible .am-dl__icon{background:#001855;border-color:#001855;color:#fff}
.am-dl:hover .am-dl__icon svg,.am-dl:focus-visible .am-dl__icon svg{animation:am-drop 650ms cubic-bezier(.19,1,.22,1)}
@keyframes am-drop{0%{transform:translateY(0)}45%{transform:translateY(200%)}45.1%{transform:translateY(-200%)}100%{transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.am-dl:hover .am-dl__icon svg,.am-dl:focus-visible .am-dl__icon svg{animation:none}}

/* Text links with a currentColor underline that wipes out to the right and redraws from the left on hover
   (same motion as the footer CTA line). Works on any background, e.g. the cyan and red warning banners. */
.am-wipe::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;transform-origin:left}
.am-wipe:hover::after,.am-wipe:focus-visible::after{animation:am-wipe 750ms cubic-bezier(.65,0,.35,1)}
@keyframes am-wipe{0%{transform:scaleX(1);transform-origin:right}50%{transform:scaleX(0);transform-origin:right}50.1%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(1);transform-origin:left}}
@media (prefers-reduced-motion:reduce){.am-wipe:hover::after,.am-wipe:focus-visible::after{animation:none}.am-wipe:hover{opacity:.75}}

/* Warning banner: icon, message, ghost link and a close button on one row; on tablet and mobile the title gets its
   own row with the close button aligned to it, and the text and link go underneath. */
.am-banner{display:flex;align-items:center;gap:16px 24px;padding:14px max(clamp(24px,3vw,40px), calc((100% - 1440px) / 2))}
.am-banner__icon{flex:none;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:Raleway,sans-serif;font-size:18px;line-height:1}
.am-banner__msg{flex:1 1 320px;font-size:16px;line-height:24px}
.am-banner__close{flex:none;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform 500ms cubic-bezier(.19,1,.22,1)}
.am-banner__close:hover{transform:rotate(90deg)}
.am-banner__close:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media (max-width:1023px){
  .am-banner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"icon title close" "text text text" "link link link";gap:12px 16px;padding-top:16px;padding-bottom:20px}
  .am-banner__msg{display:contents}
  .am-banner__icon{grid-area:icon}
  .am-banner__title{grid-area:title}
  .am-banner__text{grid-area:text}
  .am-banner-link{grid-area:link;justify-self:start}
  .am-banner__close{grid-area:close}
  .am-banner--urgent{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"icon title" "text text" "link link"}
}
/* Warning banner link: a ghost button; on hover an underline draws in from the left. */
.am-banner-link{position:relative;display:inline-flex;align-items:center;padding:4px 0;color:var(--fg);font-family:Raleway,sans-serif;font-size:16px;line-height:24px;white-space:nowrap}
.am-banner-link::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform 600ms cubic-bezier(.19,1,.22,1)}
.am-banner-link:hover::after,.am-banner-link:focus-visible::after{transform:scaleX(1);transform-origin:left}
.am-banner-link:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
