/* Shared AXIS route navigation: home, previous, next. */
.axis-route-nav{
  width:max-content;
  min-width:0;
  display:inline-grid;
  grid-template-columns:repeat(3,26px);
  align-items:center;
  gap:3px;
  padding:3px;
  box-sizing:border-box;
  border:1px solid rgba(74,163,255,.34);
  border-radius:11px;
  background:rgba(8,29,48,.58);
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 6px 16px rgba(0,28,60,.12);
}

.axis-route-control{
  width:26px;
  height:26px;
  min-width:26px;
  min-height:26px;
  display:inline-grid;
  place-items:center;
  padding:0;
  border:1px solid transparent;
  border-radius:7px;
  color:#e9f8ff;
  background:transparent;
  box-shadow:none;
  font-family:Arial,sans-serif;
  font-size:17px;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}

.axis-route-control--home{
  font-size:14px;
}

.axis-route-control:not(:disabled):hover{
  border-color:rgba(105,205,255,.55);
  color:#fff;
  background:rgba(46,142,207,.28);
  transform:translateY(-1px);
}

.axis-route-control:not(:disabled):active{
  transform:translateY(0) scale(.95);
}

.axis-route-control:focus-visible{
  outline:2px solid #58bdff;
  outline-offset:2px;
}

.axis-route-control[aria-current="page"]{
  border-color:rgba(69,204,255,.38);
  color:#7cd7ff;
  background:rgba(41,128,190,.22);
}

.axis-route-control:disabled{
  color:rgba(169,196,214,.34);
  background:rgba(38,57,72,.18);
  cursor:default;
  opacity:.58;
}

.axis-route-control--next:not(:disabled){
  border-color:rgba(46,211,161,.38);
  color:#f1fff9;
  background:rgba(20,144,111,.72);
}

body.surface-white .axis-route-nav,
.surface-white .axis-route-nav{
  border-color:rgba(22,119,255,.5);
  background:rgba(255,255,255,.88);
  box-shadow:0 5px 15px rgba(22,119,255,.1);
}

body.surface-white .axis-route-control,
.surface-white .axis-route-control{
  color:#10263c;
}

body.surface-white .axis-route-control[aria-current="page"],
.surface-white .axis-route-control[aria-current="page"]{
  border-color:rgba(22,119,255,.42);
  color:#075fa8;
  background:rgba(68,165,239,.12);
}

body.surface-white .axis-route-control:disabled,
.surface-white .axis-route-control:disabled{
  color:rgba(45,70,92,.3);
  background:rgba(78,114,142,.07);
}

body.subscription-page .subscription-brand{
  gap:12px;
}

body.subscription-page .subscription-brand .axis-route-nav{
  flex:0 0 auto;
}

body .header > .axis-route-nav{
  position:absolute;
  top:16px;
  left:70px;
  z-index:119;
}

@media (max-width:370px){
  .axis-route-nav{
    grid-template-columns:repeat(3,23px);
    gap:2px;
    padding:2px;
    border-radius:9px;
  }

  .axis-route-control{
    width:23px;
    min-width:23px;
    height:23px;
    min-height:23px;
    border-radius:6px;
    font-size:15px;
  }

  .axis-route-control--home{font-size:12px}

  body .header > .axis-route-nav{
    top:15px;
    left:58px;
  }
}

@media (min-width:160px) and (max-width:320px){
  body .header{
    padding-top:46px !important;
  }

  body .header > .account-menu-wrap{
    top:8px;
    left:8px;
  }

  body .header > .axis-route-nav{
    top:26px;
    left:50%;
    z-index:119;
    transform:translateX(-50%);
  }

  body .header > .library-menu-wrap{
    top:8px;
    right:8px;
  }

  body .header > .axis-header-lockup{
    margin-top:0;
  }

  body .header > .axis-header-lockup img{
    transform:translateY(6px);
  }

  body .header > .axis-header-lockup span{
    transform:translateY(3px);
  }

  body.subscription-page .subscription-brand{
    gap:clamp(3px,1.8vw,6px);
  }

  body.subscription-page .subscription-brand .subscription-mark strong{
    display:none;
  }

  body.subscription-page .subscription-card{
    grid-template-areas:
      "brand topbar"
      "overview overview"
      "commerce commerce";
  }
}

@media (min-width:321px) and (max-width:767px){
  body .header{
    padding-top:clamp(58px,15vw,78px) !important;
    padding-bottom:16px !important;
  }

  body .header > .account-menu-wrap{
    top:clamp(10px,2.6vw,14px);
    left:clamp(10px,2.6vw,14px);
  }

  body .header > .library-menu-wrap{
    top:clamp(10px,2.6vw,14px);
    right:clamp(10px,2.6vw,14px);
  }

  body .header > .status{
    top:max(clamp(9px,2.5vw,13px),env(safe-area-inset-top));
    bottom:auto;
    z-index:990;
    width:clamp(120px,42vw,190px);
    max-width:none;
    min-height:clamp(32px,8vw,38px);
    max-height:44px;
    grid-template-columns:14px minmax(0,1fr);
    gap:5px;
    padding:5px 8px;
    overflow:hidden;
    border-radius:10px;
    font-size:clamp(8.5px,2.35vw,10.5px);
    font-weight:900;
    line-height:1.12;
    overflow-wrap:anywhere;
    white-space:normal;
    text-align:center;
  }

  body .header > .status::before{
    width:14px;
    height:14px;
    font-size:8px;
  }

  body .header > .axis-route-nav{
    top:clamp(45px,11.8vw,58px);
    left:50%;
    z-index:119;
    transform:translate(-50%,-10px);
  }

  body .header > .axis-header-lockup{
    margin-top:0;
    margin-bottom:17px;
    transform:translateY(7px);
  }

  body .header > .axis-header-lockup img{
    transform:translateY(6px);
  }

  body .header > .axis-header-lockup span{
    transform:translateY(3px);
  }

  body .header > h1{
    margin-bottom:13px;
  }

  body .header > .motto{
    margin-top:8px;
  }

  body .header > .actions{
    margin-top:8px;
  }

  body.subscription-page .subscription-card{
    grid-template-areas:"topbar" "overview" "commerce";
  }
}

@media (min-width:768px){
  body.subscription-page .subscription-card{
    grid-template-areas:
      "brand topbar"
      "overview commerce";
  }
}

/* Navigation and logout form one fixed group; status has its own column. */
body.subscription-page .subscription-controls{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:6px;
}
body.subscription-page .subscription-controls button#logoutButton.logout-btn{
  position:static!important;
  inset:auto!important;
  display:inline-flex!important;
  flex:0 0 34px;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  min-width:34px!important;
  height:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:4px 3px!important;
  border:1px solid rgba(88,180,247,.3)!important;
  border-radius:999px!important;
  background:rgba(26,104,166,.13)!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
  cursor:pointer;
}
body.subscription-page .subscription-controls .logout-icon{display:none!important}
body.subscription-page .subscription-controls button#logoutButton.logout-btn .logout-text{
  display:inline;
  color:inherit!important;
  font:800 10.5px/1 system-ui;
  text-shadow:none!important;
}
body.subscription-page .subscription-topbar .subscription-state{
  flex:0 0 100px;
  width:100px;
  min-width:100px;
  justify-content:center;
  white-space:nowrap;
}
@media (min-width:371px) and (max-width:767px){
  body.subscription-page .subscription-brand{min-height:38px}
  body.subscription-page .subscription-topbar{padding-left:0}
}
@media (min-width:371px) and (max-width:389px){
  body.subscription-page .subscription-brand{gap:8px}
  body.subscription-page .subscription-topbar .subscription-state{
    flex-basis:94px;
    width:94px;
    min-width:94px;
  }
}
@media (max-width:370px){
  body.subscription-page .subscription-brand{gap:6px}
  body.subscription-page .subscription-controls{gap:4px}
  body.subscription-page .subscription-controls button#logoutButton.logout-btn{
    flex-basis:30px;
    width:30px!important;
    min-width:30px!important;
    height:26px!important;
    min-height:26px!important;
  }
  body.subscription-page .subscription-controls button#logoutButton.logout-btn .logout-text{font-size:9px}
  body.subscription-page .subscription-topbar .subscription-state{
    flex-basis:86px;
    width:86px;
    min-width:86px;
  }
}
@media (max-width:280px){
  body.subscription-page .subscription-card{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"brand" "topbar" "overview" "commerce";
  }
  body.subscription-page .subscription-brand{justify-self:center;flex-wrap:wrap;justify-content:center}
  body.subscription-page .subscription-topbar{padding:0;justify-self:center}
}

@media print{
  .axis-route-nav{display:none !important}
}
